Skip to content

chore(deps): update dependency typescript to v7 - #619

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/typescript-7.x
Open

chore(deps): update dependency typescript to v7#619
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/typescript-7.x

Conversation

@renovate

@renovate renovate Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
typescript (source) ^5.9.3^7.0.2 age confidence

Release Notes

microsoft/TypeScript (typescript)

v7.0.2

Compare Source

v6.0.3: TypeScript 6.0.3

Compare Source

For release notes, check out the release announcement blog post.

Downloads are available on:

v6.0.2: TypeScript 6.0

Compare Source

For release notes, check out the release announcement blog post.

Downloads are available on:


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/typescript-7.x branch 2 times, most recently from 5713c99 to 665fe31 Compare August 14, 2026 18:12
@renovate
renovate Bot force-pushed the renovate/typescript-7.x branch 2 times, most recently from 6101338 to fac4a6d Compare August 28, 2026 14:23

@pikachuren pikachuren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

结论:请求修改 — 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 本身的行为差异——而后者恰恰是这次升级唯一有风险的部分。

合并前建议至少补上这些验证:

  1. 本地执行 pnpm lint,确认 tsc 7 --noEmit 在当前代码库上零报错,并把结果贴到 PR 里;
  2. 检查 tsconfig.json 中是否使用了 TS 7 已废弃或改变语义的编译选项;
  3. 留意 lockfile 里新增的一批 @typescript/typescript-* 平台原生二进制包(aix-ppc64、darwin-arm64、freebsd 等)。依赖形态从纯 JS 变成了平台相关的原生产物,这会影响 CI 缓存命中、离线/受限网络环境下的安装,以及非主流架构上的构建能力,建议确认所有目标构建环境都有对应产物;
  4. 编辑器侧的 TS Server 与项目 TS 版本是否匹配,也需要向贡献者说明,避免本地和 CI 出现类型结论不一致。

另外顺带一提:既然类型检查目前完全不在 CI 中,无论这个 PR 是否合并,把 pnpm lint 加进 PR 流水线都是值得单独做的改进——不然任何类型层面的回归都要等到有人本地跑才会暴露。

pnpm lint 的结果给出之前,建议先不要合并。

@renovate
renovate Bot force-pushed the renovate/typescript-7.x branch from fac4a6d to c01a724 Compare September 2, 2026 16:56
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.

1 participant