chore: upgrade TypeScript to 6.0.3#48
Conversation
Bump typescript from ^5.9.3 to ^6.0.3 (latest stable; the JS-based compiler, ecosystem-compatible). TS 7 is the native rewrite and does not yet expose the JS compiler API that father/typescript-eslint need. Modernize tsconfig for 6.x's deprecations (removed in 7.0): - moduleResolution: node -> bundler - drop deprecated baseUrl - make path mappings relative Verified: pnpm compile (dts + eslint hook), pnpm test (28/28), tsc --noEmit on src all pass.
|
Warning Review limit reached
More reviews will be available in 44 minutes and 31 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Walkthrough将 变更内容TypeScript 6 升级与配置调整
预计代码审查工作量🎯 1 (Trivial) | ⏱️ ~3 minutes 诗
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the TypeScript dependency to version 6.0.3 and refactors the TypeScript configuration in tsconfig.json by changing moduleResolution to 'bundler', removing baseUrl, and prefixing path mappings with './'. The feedback suggests explicitly defining the 'module' option to avoid potential configuration errors when using the bundler module resolution strategy.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| "target": "esnext", | ||
| "moduleResolution": "node", | ||
| "baseUrl": "./", | ||
| "moduleResolution": "bundler", |
There was a problem hiding this comment.
When using "moduleResolution": "bundler", it is highly recommended to explicitly set the "module" option (e.g., to "esnext" or "preserve"). Relying on the implicit default of "module" based on "target" can lead to configuration errors (such as TS5095: Option 'moduleResolution' must be set to 'node' ...) in certain IDEs or tooling environments that default to CommonJS.
| "moduleResolution": "bundler", | |
| "module": "esnext", | |
| "moduleResolution": "bundler", |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
TS 6 enables noImplicitAny by default, surfacing latent issues: - add ambient declare module '*.less' for docs example imports - annotate implicitly-any test params/vars in RawList tests tsc --noEmit -p tsconfig.json now passes with zero errors.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #48 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 207 207
Branches 61 61
=========================================
Hits 207 207 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|

Summary
typescriptfrom^5.9.3to^6.0.3— the latest stable release, still the JS-based compiler and compatible with the existing toolchain.tsconfig.jsonfor 6.x deprecations (which become hard errors in 7.0), fixing them properly instead of suppressing withignoreDeprecations:moduleResolution: node→bundlerbaseUrlpathsmappings relativeWhy not TypeScript 7?
TS 7 is the native (Go) compiler rewrite. Its npm package ships only the
tscbinary plus an experimentaltypescript/unstable/*API — it does not exposerequire('typescript'), the JS compiler API thatfather(dts generation) and@typescript-eslintdepend on.npm run compilefails on native TS7 (ERR_PACKAGE_PATH_NOT_EXPORTED). 6.0.3 is the newest usable TS today; this tsconfig is already 7.0-ready for when the ecosystem catches up.Test plan
npm run compile— father bundless (es/lib) + declaration generation + eslint hook all passnpm test— 28/28 passtsc --noEmitonsrc/— no errorsSummary by CodeRabbit