Skip to content

chore: 采用 TypeScript 6(dependabot #33) - #70

Open
Last-emo-boy wants to merge 2 commits into
betafrom
chore/typescript-6
Open

chore: 采用 TypeScript 6(dependabot #33)#70
Last-emo-boy wants to merge 2 commits into
betafrom
chore/typescript-6

Conversation

@Last-emo-boy

Copy link
Copy Markdown
Owner

概述

将 TypeScript 从 5.9.3 升级到 6.0.3,并配套升级相关工具链。对应 dependabot PR #33(编译器 major,单独隔离验证)。

改动

依赖/配置 变更 说明
typescript 5.9.3 → 6.0.3 root + runtime-node + windows-host-agent(后两者各自 pin 了 ts,一并升)
ts-jest 29.4.6 → 29.4.11 peer typescript >=4.3 <7,覆盖 TS6
@typescript-eslint/parser+plugin 8.56.1 → 8.62.0 peer typescript <6.1.0,minor 升级,覆盖 TS6
packages/tsconfig/base.json +"ignoreDeprecations": "6.0" 静音 TS5107(moduleResolution=node10 弃用),保持现有解析行为
shared/runtime-node/windows-host-agent tsconfig +"types": ["node"] TS6 下 legacy node10 解析不再向上 walk 到 root node_modules/@types,显式声明 node 类型

验证

  • 干净安装(无 --legacy-peer-deps):peer 全部解析通过,证明 CI 的 npm ci 可过。
  • tsc --noEmit:0 错误。
  • npm run build(turbo 4 包 + tsc emit + copy-static):通过,dist/index.js 产出。
  • npm run lint:0 错误。
  • 全量 jest(373 suites / 2529 tests):与 beta(TS5) 基线逐项对比 —— 零真实回归。差异仅为:
    • 20 个失败是 beta 上同样失败的环境类用例(ghidra 未安装 / Windows 专属 ProcMon/ETW/win32 ComSpec);
    • 1 个 decompiler-workerSqliteError: disk I/O error 是全量并行下的瞬时磁盘错误,隔离单跑 44/44 全过

风险

编译器大版本。已保持 moduleResolution 行为不变(仅静音弃用),未改动模块解析语义。建议合并前让 CI 完整复跑。

🤖 Generated with Claude Code

Last-emo-boy and others added 2 commits June 29, 2026 17:54
- typescript 5.9.3 -> 6.0.3(root + runtime-node + windows-host-agent)
- ts-jest 29.4.6 -> 29.4.11(peer typescript <7)
- @typescript-eslint/parser+plugin 8.56.1 -> 8.62.0(peer typescript <6.1)
- packages/tsconfig/base.json: +ignoreDeprecations 6.0(静音 node10 弃用 TS5107)
- shared/runtime-node/windows-host-agent tsconfig: +types:[node]
  (TS6 下 node10 解析不再向上拾取 root @types/node)
对应 dependabot PR #33。tsc 0 错误、build(4 包 + emit)通过。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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