Skip to content

chore: upgrade TypeScript to 5.9 - #156

Merged
luojiyin1987 merged 1 commit into
masterfrom
chore/typescript-5-9
Aug 22, 2026
Merged

luojiyin1987 merged 1 commit into
masterfrom
chore/typescript-5-9

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

Closes #155

改动

- "typescript": "^4.8.4"
+ "typescript": "^5.9.0"

分阶段升级的 PR A:只动 TypeScript 一项,零源码修改。TS 5.9 是 5.x 最后一代成熟版本,不会立刻触发 TS 6 的 deprecated config 问题。

注:package-lock.json 在本仓库被 gitignore,不随 PR 提交。

验证(TypeScript 5.9.3 实测)

检查项 结果
npm run typecheck 通过,零类型错误
prettier check 通过
npm test -- --runInBand 25 suites / 205 tests 通过
npm run test:package 通过(pack → 全局安装 → version → stdin lint → 文件 lint → --fix → 复检)

后续

  • PR B:单独现代化 tsconfig(评估 moduleResolution: "Node"baseUrl: "./"
  • PR C:tsconfig 清理后再升 TypeScript 6.0

@luojiyin1987
luojiyin1987 merged commit 8f07e9d into master Aug 22, 2026
7 checks passed
@luojiyin1987
luojiyin1987 deleted the chore/typescript-5-9 branch August 22, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: upgrade TypeScript to 5.9

1 participant