Skip to content

chore(deps-dev): Bump pangu from 7.2.1 to 9.0.0 - #335

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/pangu-9.0.0
Open

chore(deps-dev): Bump pangu from 7.2.1 to 9.0.0#335
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/pangu-9.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 28, 2026

Copy link
Copy Markdown
Contributor

Bumps pangu from 7.2.1 to 9.0.0.

Changelog

Sourced from pangu's changelog.

v9.0.0 / 2026-07-28

  • 修正 <wbr> 這類元素把 / 兩邊拆成不同文字節點時,斜線前面會漏加空格的問題
  • 拿掉了 package.jsonmodule 欄位
  • 拿掉了 package.jsonbrowser 欄位
    • 瀏覽器端請改用 import pangu from 'pangu/browser',本來就是文件建議的用法,型別也一直是對的
    • 之前用 bundler 直接 import pangu from 'pangu',執行時會拿到瀏覽器版本,但是 TypeScript 給的型別是 Node.js 版本
    • <script> 載入 UMD 檔案、或是已經在用 pangu/browser 的話都不受影響
  • 支援的 Node.js 版本改成 v20 以上

v8.2.0 / 2026-07-26

  • 修正引號的加空格規則,當引號的內容跨越換行時,不會再把引號外面本來就有的空格吃掉

v8.1.0 / 2026-07-26

  • 修正 - * = < > _ + 這些符號的加空格規則,夾在半形字元中間時會跟兩邊黏成同一個詞,不會再被拆開
  • 修正 + 在字尾的加空格規則
  • 修正 | 的加空格規則,同一行只要有 | 直接貼著中文,整行的 | 都會當成分隔符來加空格,例如 標題|網站名稱 會變成 標題 | 網站名稱
  • 修正 + 直接貼著中文時會當成分隔符來加空格,跟 | 一樣以行為單位來判斷
  • 修正 ! ; , ? 後面直接貼著中文時的加空格規則,現在不管這些符號前面是什麼字元,都會在符號後面加空格
  • 修正純文字中的 <tag> 現在會被當成一個詞來加空格,但是一般網頁中的 HTML 標籤不受影響
  • 修正文字節點的開頭或結尾是 &nbsp;、旁邊又緊接著連結之類的元素時,會多加一個半形空格的問題
  • Chrome extension 的工具列圖示新增了 OFF 狀態,切到手動模式、或是目前網址被黑白名單排除時,圖示會換成頭戴紙袋的圖示
  • Chrome extension 會在所有網頁啟用瀏覽器原生的 text-autospace: normal; 排版
    • 預設啟用,可以在設定裡關掉
    • 需要 Chrome v140 以上版本
  • pangu/browser 改成只提供 ESM,拿掉了 require 條件,require('pangu/browser') 會出現 ERR_PACKAGE_PATH_NOT_EXPORTED
    • 用 bundler 的話 import 照舊,不受影響
    • 在瀏覽器裡直接用 <script> 載入 UMD 檔案的方式也不受影響

v8.0.0 / 2026-07-19

  • 各位觀眾!Paranoid Text Spacing 演算法 v8!
    • 修正有些網頁加空格會抖動的問題
    • 修正 /& 的加空格規則
    • 修正單獨出現的 &nbsp; 會造成空格判斷錯誤的問題,現在會先把它當成一般的半形空格
    • 修正引號緊鄰日文時,空格規則跟中文不一致的問題
    • 修正同一批動態新增的相鄰節點之間會正確加空格了
    • 修正兩個變動的節點中間如果隔著沒變動的內容,不會再把它們誤判成相鄰節點而加錯空格
    • 修正連結被其他元素包住、後面又接著其他文字時,連結前後漏加空格的問題
    • 修正兩段文字中間本來就有空白時,不會再多加一個空格,之前隔著 <a> 這類元素、或空白被包在 <span> 這類元素裡時會看不到那個空白
  • 又一次史詩級性能提升!
Commits
  • fcb713e update changelog
  • af45e4e chore: sync package-lock.json engines.node with package.json
  • 63df5e2 docs: lead with ESM import in README usage examples
  • 9c595f6 fix: write back tail space when junction spacing lands inside current run
  • f1e17a8 refactor: replace cast-and-mutate CJS export object with PanguModule subclass
  • 85ad7e5 refactor: use import = require in node CJS entry
  • 9ff7805 chore: bump version to 9.0.0
  • c764987 Merge pull request #308 from vinta/refactor/build-configs
  • 42199c7 run extension test in browser-test job
  • 91d8921 update changelogs
  • Additional commits viewable in compare view
Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pangu](https://github.com/vinta/pangu.js) from 7.2.1 to 9.0.0.
- [Changelog](https://github.com/vinta/pangu.js/blob/master/HISTORY.md)
- [Commits](vinta/pangu.js@v7.2.1...v9.0.0)

---
updated-dependencies:
- dependency-name: pangu
  dependency-version: 9.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 28, 2026
@netlify

netlify Bot commented Jul 28, 2026

Copy link
Copy Markdown

Deploy Preview for sustech-app ready!

Name Link
🔨 Latest commit a3b6b95
🔍 Latest deploy log https://app.netlify.com/projects/sustech-app/deploys/6a6924e59ae743000761b4b9
😎 Deploy Preview https://deploy-preview-335--sustech-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

0 participants