Skip to content

chore(deps): upgrade TypeScript 5.9.3 → 6.0.3 (explicit dep) - #17

Open
xdanger wants to merge 2 commits into
mainfrom
claude/sleepy-ritchie-MtgEZ
Open

chore(deps): upgrade TypeScript 5.9.3 → 6.0.3 (explicit dep)#17
xdanger wants to merge 2 commits into
mainfrom
claude/sleepy-ritchie-MtgEZ

Conversation

@xdanger

@xdanger xdanger commented May 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds typescript as an explicit devDependency at ^6.0.0 (resolves to 6.0.3)
  • Previously TypeScript was auto-installed as a peer dependency of typescript-eslint at 5.9.3
  • All other direct dependencies were already at their latest stable versions (confirmed via pnpm outdated + npm show)

Dependency scan results

Package Current Latest Action
@eslint/js 10.0.1 10.0.1 ✅ up to date
autocorrect-node 2.14.0 2.14.0 ✅ up to date
eslint 10.3.0 10.3.0 ✅ up to date
globals 17.6.0 17.6.0 ✅ up to date
husky 9.1.7 9.1.7 ✅ up to date
lint-staged 17.0.4 17.0.4 ✅ up to date
prettier 3.8.3 3.8.3 ✅ up to date
typescript 5.9.3 (peer, implicit) 6.0.3 ⬆️ upgraded + made explicit
typescript-eslint 8.59.3 8.59.3 ✅ up to date
pnpm 11.1.1 11.1.1 ✅ up to date

Breaking-change risk

Low. TypeScript 6.0 removes some deprecated APIs and tightens checks, but:

  • typescript-eslint@8.59.3 explicitly supports >=4.8.4 <6.1.0, so 6.0.3 is within range
  • No src/ directory exists yet — no TypeScript source to re-check
  • pnpm audit reports no vulnerabilities

Test plan

  • pnpm install resolves cleanly with TypeScript 6.0.3
  • pnpm lint passes (ESLint + Prettier checks green)

https://claude.ai/code/session_01SYPqPxEz3auppJaTYH6Jbr


Generated by Claude Code

Previously TypeScript was auto-installed as a peer dependency of
typescript-eslint at 5.9.3. This commit pins it explicitly as a
devDependency at ^6.0.0.

typescript-eslint@8.59.3 supports TypeScript >=4.8.4 <6.1.0, so
6.0.3 is fully within the supported range. All other direct
dependencies were already at their latest stable versions.

https://claude.ai/code/session_01SYPqPxEz3auppJaTYH6Jbr
@xdanger
xdanger marked this pull request as ready for review July 14, 2026 17:45
@xdanger
xdanger requested a review from Copilot July 14, 2026 17:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Makes TypeScript an explicit devDependency and upgrades the resolved TypeScript version from 5.9.3 (previously pulled implicitly via typescript-eslint peer resolution) to 6.0.3, keeping the toolchain deterministic.

Changes:

  • Add typescript@^6.0.0 as an explicit devDependency (resolves to 6.0.3).
  • Update pnpm-lock.yaml to reflect TypeScript 6.0.3 and updated typescript-eslint peer resolution bindings.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Adds typescript as an explicit dev dependency at ^6.0.0.
pnpm-lock.yaml Locks typescript to 6.0.3 and updates dependent snapshot entries accordingly.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@greptile-apps

greptile-apps Bot commented Jul 14, 2026

Copy link
Copy Markdown

Greptile Summary

此 PR 将 typescript 从隐式 peer 依赖(由 typescript-eslint 自动安装,版本 5.9.3)升级为显式 devDependency,版本固定为 ^6.0.0(解析为 6.0.3)。变更范围仅限 package.jsonpnpm-lock.yaml,无生产代码改动。

  • typescript@6.0.3 添加为显式 devDependency,消除隐式依赖带来的版本不确定性;typescript-eslint@8.60.1 的 peer 依赖范围为 >=4.8.4 <6.1.0,6.0.3 在此区间内,兼容性已确认。
  • pnpm-lock.yaml 中所有 @typescript-eslint/* 子包的 TypeScript peer 快照均从 5.9.3 更新为 6.0.3,锁文件与 package.json 声明一致。
  • 现有 tsconfig.json 已显式设置 strict: truemodule: ESNextmoduleResolution: bundler,均符合 TypeScript 6.0 的要求,不受新版本默认值变更影响。

Confidence Score: 5/5

此 PR 仅将 TypeScript 从隐式 peer 依赖提升为显式 devDependency 并升级至 6.0.3,变更范围极小且完全向后兼容。

变更仅涉及 package.json 与 pnpm-lock.yaml;typescript-eslint@8.60.1 的 peer 依赖范围 >=4.8.4 <6.1.0 明确涵盖 6.0.3;tsconfig.json 的现有选项均与 TypeScript 6.0 兼容;项目暂无 src/ 源文件,不存在编译回归风险。

无需特别关注的文件,所有变更均为预期的锁文件快照替换。

Important Files Changed

Filename Overview
package.json 新增 typescript: ^6.0.0 为显式 devDependency,与 typescript-eslint 的 peer 依赖范围兼容,无其他改动。
pnpm-lock.yaml 所有 @typescript-eslint/* 子包的 TypeScript peer 快照统一从 5.9.3 更新为 6.0.3,锁文件内容一致性良好。

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[pnpm install] --> B{typescript 声明}
    B -->|升级前| C["隐式 peer dep\ntypescript@5.9.3\n由 typescript-eslint 自动引入"]
    B -->|升级后| D["显式 devDependency\ntypescript@^6.0.0\n解析为 6.0.3"]
    D --> E["typescript-eslint@8.60.1\npeer: >=4.8.4 <6.1.0 ✅"]
    D --> F["tsconfig.json\nstrict: true ✅\nmodule: ESNext ✅\nmoduleResolution: bundler ✅"]
    E --> G[pnpm lint 通过]
    F --> G
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[pnpm install] --> B{typescript 声明}
    B -->|升级前| C["隐式 peer dep\ntypescript@5.9.3\n由 typescript-eslint 自动引入"]
    B -->|升级后| D["显式 devDependency\ntypescript@^6.0.0\n解析为 6.0.3"]
    D --> E["typescript-eslint@8.60.1\npeer: >=4.8.4 <6.1.0 ✅"]
    D --> F["tsconfig.json\nstrict: true ✅\nmodule: ESNext ✅\nmoduleResolution: bundler ✅"]
    E --> G[pnpm lint 通过]
    F --> G
Loading

Reviews (2): Last reviewed commit: "🔧 chore(deps): align TypeScript 6 upgra..." | Re-trigger Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a1f7d1841

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
"husky": "^9.1.7",
"lint-staged": "^17.0.4",
"prettier": "^3.8.3",
"typescript": "^6.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Pin TypeScript below 6.1 for ESLint compatibility

This range allows future 6.x releases such as 6.1.0, but the locked typescript-eslint@8.59.3 peer dependency still requires typescript: '>=4.8.4 <6.1.0' in pnpm-lock.yaml. In any install that refreshes the lockfile or resolves dependencies without the current lock, TypeScript can move outside the parser/plugin's supported range and make the type-aware lint setup unsupported; constrain this to the 6.0 line until typescript-eslint supports 6.1+.

Useful? React with 👍 / 👎.

- 🔧 preserve the compatible upgrade on current main

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread package.json
Comment on lines 20 to 22
"prettier": "^3.8.3",
"typescript": "^6.0.0",
"typescript-eslint": "^8.60.1"
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.

3 participants