Skip to content

chore(deps-dev): Bump pangu from 9.1.1 to 10.0.0 - #339

Merged
sghng merged 1 commit into
masterfrom
dependabot/npm_and_yarn/pangu-10.0.0
Sep 14, 2026
Merged

sghng merged 1 commit into
masterfrom
dependabot/npm_and_yarn/pangu-10.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 14, 2026

Copy link
Copy Markdown
Contributor

Bumps pangu from 9.1.1 to 10.0.0.

Changelog

Sourced from pangu's changelog.

v10.0.0 / 2026-09-11

pangu.js

  • 各位觀眾!Paranoid Text Spacing 演算法 v10 強勢登場!
    • 中文和 / 之間不會加空格,除非是 /src/index.ts 之類的檔案路徑
      • 本來就有空格的 A / B 則維持不變
    • 所有 http://、https:// 開頭的網址裡面都不會加空格,包含中文的網址會維持原樣
    • 英文單字後面緊接著 + 再接中文時,+ 不再當成單字的後綴,而是當成分隔符號
      • 同一行只要有 + 直接碰到中文,這一行其他的 + 也會一起加空格;+ 碰到全形標點符號的那一邊則不加空格
      • 同一行有兩個以上的 + 時,右括號後面的 + 就算緊接著全形引號或括號也會當成分隔符號,只在右括號那一邊加空格
    • ⁺、²、³、™、℠、® 這類上標字元會跟前面的文字黏在一起,後面接中文時只在上標後面加空格
      • 網頁裡的 <sup> 元素也一樣,跟前面的文字之間不加空格,空格只加在 </sup> 後面
    • ℃、℉、№ 這類 Letterlike Symbols 區段的字元碰到中文時會加空格,而 © 後面緊接著數字時也會加空格
  • 所有 spacingXxx() methods 改名為 spaceXxx()
    • spacingText() -> spaceText()
    • spacingFile() -> spaceFile()
    • spacingFileSync() -> spaceFileSync()
    • spacingPage() -> spacePage()
    • spacingNode() -> spaceNode()
    • autoSpacingPage() -> autoSpacePage()
    • stopAutoSpacingPage() -> stopAutoSpacePage()

為什麼你們就是不能加個空格呢?

  • 新功能:使用 Chrome 的 Prompt API 來處理 pangu.js 的規則難以判斷的加空格情境
    • 中文後面緊接著 - 再接數字時,由模型判斷 - 是負號還是分隔符號:氣溫是-5度 會變成 氣溫是 -5 度
    • Disney+、Apple TV+、公視+、AA+、AB+ 這類名字後面的 + 和 - 會黏回去
    • 所有的操作只在你的電腦上運行(完全離線,沒有任何資料會被上傳到雲端)
    • 缺點是 Prompt API 只能用 on-device 模型:Gemini Nano,現階段的效果差強人意。不過總比沒有好,而且免錢的東西就不要要求太多了
  • 修正動態填入內容的元素(例如原本是空的 <span> 後來才由 JavaScript 塞進數字)跟旁邊已經加過空格的文字之間會漏加空格的問題
  • 修正在 GitHub 這類不重新載入頁面就換網址的網站上的黑名單和白名單不會跟著網址生效的問題
  • Chrome extension 支援的最低版本改成 Chrome 102
    • 為了用 window.navigation API
Commits
  • a12ba5b npm publish
  • 4e121b7 Merge branch 'fix/late-fix-ignored-ancestry'
  • 45dbe87 test: rename queued fix to late fix in late-fixes title
  • 3a5b0f9 fix: skip late fixes in ignored content
  • ce5bc17 Merge pull request #334 from vinta/feature/refine-slash-rules
  • 82cbadb docs: regroup v10.0.0 changelog wording
  • 3cee25e test: mark URL-CJK tight-prose cases as open FIXME
  • d3fd94d update test cases
  • c59a6d8 fix tests
  • 3ec71d9 align test cases
  • Additional commits viewable in compare view

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 9.1.1 to 10.0.0.
- [Changelog](https://github.com/vinta/pangu.js/blob/master/CHANGELOG.md)
- [Commits](vinta/pangu.js@v9.1.1...v10.0.0)

---
updated-dependencies:
- dependency-name: pangu
  dependency-version: 10.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 Sep 14, 2026
@dependabot dependabot Bot added the javascript Pull requests that update javascript code label Sep 14, 2026
@netlify

netlify Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sustech-app ready!

Name Link
🔨 Latest commit 24d724f
🔍 Latest deploy log https://app.netlify.com/projects/sustech-app/deploys/6aa86cfda192600008e950fd
😎 Deploy Preview https://deploy-preview-339--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.

@sghng
sghng merged commit 55fb94e into master Sep 14, 2026
6 checks passed
@sghng
sghng deleted the dependabot/npm_and_yarn/pangu-10.0.0 branch September 14, 2026 22:08
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.

1 participant