unstale

npm / pinyin-pro

pinyin-pro

What changed in pinyin-pro 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

1 new APIs and options13 performance1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

pinyin-pro 315 changes

New APIs and options 1

  • Supports continuous third-tone sandhi, enabled with thirdTone, while preserving the compatible semantics of the existing toneSandhi boolean.

    3.29.5release notes

Performance 13

  • Optimizes node lookup and queue processing during AC automaton construction.

    3.29.5release notes

  • Merges consecutive custom pronunciation updates to reduce repeated custom dictionary builds.

    3.29.5release notes

  • Uses backtracking pointers to reconstruct match paths, reducing array allocations during matching.

    3.29.5release notes

  • Optimizes prefix matching to reduce unnecessary string processing.

    3.29.5release notes

  • Reuses already-split text characters to avoid splitting them repeatedly.

    3.29.5release notes

  • Reuses final parsing results to reduce repeated computation in type: 'all' mode.

    3.29.5release notes

  • Optimized repeated computation in the DP process and reduced memory usage.

    3.29.4release notes

  • In Node, no longer prebuilds the AC automaton through setTimeout, further reducing import overhead.

    3.29.4release notes

  • Skips the repeated-character processor when text does not contain 々, contributing to a reported 20%+ performance improvement.

    3.29.3release notes

  • Avoids prefix string allocation when building the AC automaton, improving segmentation performance.

    3.29.3release notes

  • Reuses child-node lookups during AC matching to improve segmentation performance.

    3.29.3release notes

  • Uses backtracking pointers to reconstruct the maximum-probability path, improving segmentation performance.

    3.29.3release notes

  • Uses a native split fast path for BMP text.

    3.29.3release notes

Fixes and other changes 1

  • Compatible with restrictions in runtimes such as Cloudflare Workers that disable timers during module initialization.

    3.29.4release notes