Skip to content

v0.2.1 — Restore UTF-8 package description

Choose a tag to compare

@fu827707013 fu827707013 released this 12 Sep 08:38
· 2 commits to main since this release

Fix

The 0.2.0 version bump rewrote package.json's Chinese description as mojibake (e.g. 复用 → 澶嶇敤). The bump script read the file with Get-Content -Raw, which decodes UTF-8 as GBK on Windows, and then wrote the mis-decoded text back as UTF-8. The corrupted description shipped to both npmjs and GitHub Packages with 0.2.0.

  • Restore the original description bytes — verified byte-identical to the 0.1.8 blob via git diff.
  • Scan every tracked file for mojibake markers; package.json was the only casualty.
  • Rebuild lib/ so the embedded version literal matches (host-heartbeat chunk hash moves to dfEY9CR-).

This patch exists because a published npm version cannot be overwritten, so the correction has to ship as a new version.

Verification

  • pnpm run check green: typecheck + 249 tests passed (1 skipped) + build.
  • npm view dsh-codebuddy-cli description reports the correct Chinese text after publish.