chore(deps): update dependency typescript to v7 - #619
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/typescript-7.x
branch
2 times, most recently
from
August 14, 2026 18:12
5713c99 to
665fe31
Compare
renovate
Bot
force-pushed
the
renovate/typescript-7.x
branch
2 times, most recently
from
August 28, 2026 14:23
6101338 to
fac4a6d
Compare
pikachuren
reviewed
Sep 1, 2026
pikachuren
left a comment
Collaborator
There was a problem hiding this comment.
结论:请求修改 — CI 绿灯在这个 PR 上不构成兼容性证据
TypeScript 5.9 → 7.0 是跨大版本升级,而 7.0 是编译器的原生(Go)重写版本,不只是版本号递进。这个 PR 的 Build Check 是通过的,但我认为不能据此判定安全,原因是仓库的 CI 并不做类型检查。
build_pr.yml 里执行的是 ./build.sh --dev --no-compress --skip-i18n,最终只跑 vite build。而类型检查在 package.json 中是一个独立的、CI 未调用的脚本:
"lint": "tsc -p tsconfig.json --noEmit"Vite/rolldown 走的是「只转译、不做类型检查」的路径,.ts/.tsx 里的类型错误根本不会让构建失败。换句话说,这个 PR 的绿灯只证明了「换了 typescript 包之后代码仍能被转译打包」,完全没有覆盖 tsc 7 本身的行为差异——而后者恰恰是这次升级唯一有风险的部分。
合并前建议至少补上这些验证:
- 本地执行
pnpm lint,确认tsc 7 --noEmit在当前代码库上零报错,并把结果贴到 PR 里; - 检查
tsconfig.json中是否使用了 TS 7 已废弃或改变语义的编译选项; - 留意 lockfile 里新增的一批
@typescript/typescript-*平台原生二进制包(aix-ppc64、darwin-arm64、freebsd 等)。依赖形态从纯 JS 变成了平台相关的原生产物,这会影响 CI 缓存命中、离线/受限网络环境下的安装,以及非主流架构上的构建能力,建议确认所有目标构建环境都有对应产物; - 编辑器侧的 TS Server 与项目 TS 版本是否匹配,也需要向贡献者说明,避免本地和 CI 出现类型结论不一致。
另外顺带一提:既然类型检查目前完全不在 CI 中,无论这个 PR 是否合并,把 pnpm lint 加进 PR 流水线都是值得单独做的改进——不然任何类型层面的回归都要等到有人本地跑才会暴露。
在 pnpm lint 的结果给出之前,建议先不要合并。
renovate
Bot
force-pushed
the
renovate/typescript-7.x
branch
from
September 2, 2026 16:56
fac4a6d to
c01a724
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.9.3→^7.0.2Release Notes
microsoft/TypeScript (typescript)
v7.0.2Compare Source
v6.0.3: TypeScript 6.0.3Compare Source
For release notes, check out the release announcement blog post.
Downloads are available on:
v6.0.2: TypeScript 6.0Compare Source
For release notes, check out the release announcement blog post.
Downloads are available on:
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.