-
Notifications
You must be signed in to change notification settings - Fork 1
chore(deps-dev): bump typescript from 5.5.4 to 6.0.3 #653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
TypeScript 6.0 breaking changes and migration guide💡 Result:
TypeScript 6.0, released on March 23, 2026, is a transition release preparing for the native Go-based TypeScript 7.0. It introduces breaking changes through new defaults, deprecations (ignored via "ignoreDeprecations": "6.0" but removed in 7.0), and behavioral shifts. ## Key Breaking Changes and New Defaults - strict: true (was false) - Enables all strict type-checking options. - target: es2025 (was ES3/ES5, lowest now es2015). - types: [] (was [""] auto-installing all
@types/) - Explicitly list needed types like ["node"]. - rootDir: config directory (was inferred) - Set explicitly e.g. "./src". - moduleResolution: bundler/nodenext (node10/classic deprecated). - esModuleInterop: true by default. - noUncheckedSideEffectImports: true. - lib: dom includes dom.iterable/asynciterable. - --outFile removed - Migrate to bundlers like esbuild/webpack. - Deprecated: baseUrl, module=namespace (use namespace), import assert { } (use with { }), triple-slash refs, downlevelIteration, legacy module targets (AMD/UMD/System). ## Behavioral Changes - Less context-sensitivity for this-less functions (may affect inference). - Type ordering may differ (use --stableTypeOrdering flag to preview 7.0 behavior). ## Migration Guide / Checklist 1. npm install -D typescript@latest (6.0+). 2. Add "ignoreDeprecations": "6.0" temporarily to tsconfig.json to suppress warnings. 3. Explicitly set changed defaults: "strict": true/false, "target": "es2022"/runtime match, "types": ["node"], "rootDir": "./src". 4. Update module/moduleResolution: e.g. "module": "nodenext", "moduleResolution": "bundler". 5. Replace deprecated import assert {} with with {}. 6. Remove baseUrl/outFile/downlevelIteration etc. 7. Run npx tsc --noEmit to check errors. 8. Test with --stableTypeOrdering. 9. Use codemod ts5to6 for baseUrl/rootDir auto-fixes. 10. Verify with TypeScript 7.0 native preview if available. Official docs: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html. Address deprecations before 7.0 as ignoreDeprecations won't work there. Most projects need types[] and rootDir fixes first.Citations:
🌐 Web query:
TypeScript 6.0 compatibility with Vite 5.4 and Vitest 3.2💡 Result:
TypeScript 6.0 is not compatible with Vite 5.4 or Vitest 3.2. Vite 5.4 supports up to TypeScript 5.6, as shown in its dependency updates. Vitest 3.2, released in June 2025, also aligns with TypeScript versions prior to 6.0. TypeScript 6.0, released around April 2026, introduces breaking changes like new defaults (strict: true, target: es2025) and deprecations that require updates. Vite added TypeScript 6.0 support in April 2026 via PR
#22110, which updates templates and configs (e.g., typescript: ~6.0.2, handling new behaviors like moduleResolution: bundler and ignoreDeprecations: '6.0'). This is in Vite 6+ or main branch, not backported to 5.4. Vitest 4.0 requires Vite >=6.0.0, implying it supports TypeScript 6.0 alongside newer Vite. To use TypeScript 6.0, upgrade to Vite 6+ and Vitest 4+. Follow TypeScript 6.0 migration guide for tsconfig changes (e.g., explicit target/moduleResolution, handle baseUrl removal). No reported specific compatibility issues beyond general TS 6.0 migration needs.Citations:
🏁 Script executed:
Repository: lokalise/npm-package-template
Length of output: 305
🏁 Script executed:
Repository: lokalise/npm-package-template
Length of output: 525
Upgrade Vite to 6.0+ and Vitest to 4.0+ to support TypeScript 6.0.
TypeScript 6.0.3 is incompatible with Vite 5.4.11 and Vitest 3.2.4. Vite 5.x supports only up to TypeScript 5.6, and Vitest 3.2 does not support TypeScript 6.0. These toolchain dependencies must be upgraded to Vite 6.0+ and Vitest 4.0+ for the TypeScript 6.0 upgrade to work.
Additionally, TypeScript 6.0 introduces major breaking changes and new defaults. While the tsconfig.json is mostly compatible (target: ESNext, moduleResolution: bundler, strict: true, and explicit types are all appropriate), you must follow the TypeScript 6.0 migration checklist before merging:
npm run lint:tsto ensure type checking passes with the new defaultsnpm run testandnpm run buildto verify the full pipeline works🤖 Prompt for AI Agents