Skip to content

chore(deps-dev): Bump pangu from 7.2.1 to 8.2.0 - #333

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/pangu-8.2.0
Closed

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps pangu from 7.2.1 to 8.2.0.

Changelog

Sourced from pangu's changelog.

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
  • c85b10c add FIXME
  • 7efcf86 chore: bump version to 8.2.0
  • 1338f34 update README
  • b897c6e fix: pair FIX_QUOTE_ANY_QUOTE quotes across line breaks
  • 518097b fix: capture verify script exit code instead of relying on set -e
  • 7c7a64e docs: document pangu/browser ESM-only change in HISTORY.md
  • c1c1b63 fix: declare CommonJS named exports in emitted .d.cts
  • a170bce docs: add NBSP preserve and boundary fix entries to HISTORY.md
  • 4a041aa fix: preserve author NBSP instead of normalizing it to a space
  • 99d5efd fix: don't stack a space next to a text-node-edge NBSP
  • 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 8.2.0.
- [Changelog](https://github.com/vinta/pangu.js/blob/master/HISTORY.md)
- [Commits](vinta/pangu.js@v7.2.1...v8.2.0)

---
updated-dependencies:
- dependency-name: pangu
  dependency-version: 8.2.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 27, 2026
@netlify

netlify Bot commented Jul 27, 2026

Copy link
Copy Markdown

Deploy Preview for sustech-app ready!

Name Link
🔨 Latest commit 98a4c0a
🔍 Latest deploy log https://app.netlify.com/projects/sustech-app/deploys/6a67d3473e77d30008da2c65
😎 Deploy Preview https://deploy-preview-333--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.

@dependabot @github

dependabot Bot commented on behalf of github Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #335.

@dependabot dependabot Bot closed this Jul 28, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/pangu-8.2.0 branch July 28, 2026 21:53
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: Done

Development

Successfully merging this pull request may close these issues.

0 participants