chore(deps-dev): bump typescript from 5.5.4 to 6.0.3#653
chore(deps-dev): bump typescript from 5.5.4 to 6.0.3#653dependabot[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: lokalise/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe TypeScript development dependency in Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Line 42: package.json currently pins "typescript": "^6.0.3" but the toolchain
dependencies Vite and Vitest must be upgraded to be compatible; update the
package.json dependency entries for "vite" to 6.0+ and "vitest" to 4.0+ (and any
related Vite plugins or vite-related devDependencies) so they support TypeScript
6, then run build/test/lint as described; locate and update the "vite" and
"vitest" dependency lines in package.json and ensure any plugins (e.g.,
vite-plugin-*) are upgraded to versions compatible with Vite 6 before merging.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: lokalise/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: cdbae9eb-6cd1-440c-8b58-3cc2c47f284f
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (1)
package.json
| "@semantic-release/release-notes-generator": "^14.1.0", | ||
| "semantic-release": "^25.0.3", | ||
| "typescript": "^5.5.4", | ||
| "typescript": "^6.0.3", |
There was a problem hiding this comment.
🧩 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:
- 1: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html
- 2: https://gist.github.com/privatenumber/3d2e80da28f84ee30b77d53e1693378f
- 3: TypeScript 6.0 Iteration Plan microsoft/TypeScript#63085
- 4: https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-rc
- 5: https://devblogs.microsoft.com/typescript/announcing-typescript-6-0/
🌐 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:
- 1: https://gist.github.com/privatenumber/3d2e80da28f84ee30b77d53e1693378f
- 2: chore(deps): bump TypeScript to 5.6 vitejs/vite#18254
- 3: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html
- 4: https://v6.vite.dev/guide/migration
- 5: chore(deps): bump TypeScript to 5.6 vitejs/vite#18254
- 6: https://github.com/vitejs/vite/blob/v5.4.20/packages/vite/CHANGELOG.md
- 7: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-4.html
- 8: https://vite.dev/releases
- 9: https://github.com/vitejs/vite/blob/v5.4.19/packages/vite/CHANGELOG.md
- 10: vitejs/vite@v5.4.14...v6.0.0
- 11: vitejs/vite@v5.4.19...v6.0.0
- 12: vitejs/vite@v5.4.11...v6.0.0
- 13: vitejs/vite@cc41398
- 14: https://github.com/vitest-dev/vitest/releases/tag/v3.2.0
- 15: https://vitest.dev/blog/vitest-3-2
- 16: https://vitest.dev/blog/vitest-3-2.html
- 17: https://vitejs.dev/blog/announcing-vite6
- 18: https://main.vitejs.dev/blog/announcing-vite6
- 19: https://vite.dev/blog/announcing-vite6
- 20: https://vite.dev/blog/announcing-vite6.html
- 21: https://github.com/vitest-dev/vitest/releases/tag/v4.0.0
- 22: https://main.vitest.dev/blog/vitest-4
- 23: https://vitest.dev/blog/vitest-4
- 24: https://vitest.dev/blog/vitest-4.html
- 25: https://v4.vitest.dev/guide/migration
- 26: refactor: upgrade to typescript 6 vitejs/vite#22110
🏁 Script executed:
#!/bin/bash
# Description: Verify TypeScript compilation and type checking works after the upgrade
# Check if package-lock.json or node_modules reflect the update
echo "=== Checking TypeScript version in lockfile ==="
fd -t f "package-lock.json" --exec jq -r '.packages."node_modules/typescript".version' {} \;
# Look for any TypeScript configuration files
echo -e "\n=== TypeScript configuration files ==="
fd -e json "tsconfig" --exec echo {} \;
# Check for any .d.ts files that might be affected
echo -e "\n=== Checking for type definition files ==="
fd -e ts ".d.ts$" | head -20
# Look for potential type errors in source files
echo -e "\n=== Source TypeScript files ==="
fd -e ts -e tsx --type f -E "node_modules" -E "dist" | head -20Repository: lokalise/npm-package-template
Length of output: 305
🏁 Script executed:
#!/bin/bash
# Read the tsconfig.json to see current configuration
cat -n tsconfig.jsonRepository: 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:
- Verify the build succeeds with Vite 6.0+ and Vitest 4.0+
- Run
npm run lint:tsto ensure type checking passes with the new defaults - Run
npm run testandnpm run buildto verify the full pipeline works
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 42, package.json currently pins "typescript": "^6.0.3"
but the toolchain dependencies Vite and Vitest must be upgraded to be
compatible; update the package.json dependency entries for "vite" to 6.0+ and
"vitest" to 4.0+ (and any related Vite plugins or vite-related devDependencies)
so they support TypeScript 6, then run build/test/lint as described; locate and
update the "vite" and "vitest" dependency lines in package.json and ensure any
plugins (e.g., vite-plugin-*) are upgraded to versions compatible with Vite 6
before merging.
7d669e0 to
49c9dcc
Compare
49c9dcc to
09fa0ac
Compare
09fa0ac to
77e36ba
Compare
77e36ba to
484110d
Compare
484110d to
81b3b8b
Compare
81b3b8b to
52a51c5
Compare
52a51c5 to
700a8d7
Compare
700a8d7 to
74b16aa
Compare
74b16aa to
508761c
Compare
508761c to
f68301f
Compare
f68301f to
82c87d1
Compare
82c87d1 to
2478320
Compare
2478320 to
9dbaf63
Compare
9dbaf63 to
6549491
Compare
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.5.4 to 6.0.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.5.4...v6.0.3) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
6549491 to
f79ff30
Compare
Bumps typescript from 5.5.4 to 6.0.3.
Release notes
Sourced from typescript's releases.
... (truncated)
Commits
050880cBump version to 6.0.3 and LKGeeae9dd🤖 Pick PR #63401 (Also check package name validity in...) into release-6.0 (#...ad1c695🤖 Pick PR #63368 (Harden ATA package name filtering) into release-6.0 (#63372)0725fb4🤖 Pick PR #63310 (Mark class property initializers as...) into release-6.0 (#...607a22aBump version to 6.0.2 and LKG9e72ab7🤖 Pick PR #63239 (Fix missing lib files in reused pro...) into release-6.0 (#...35ff23d🤖 Pick PR #63163 (Port anyFunctionType subtype fix an...) into release-6.0 (#...e175b69Bump version to 6.0.1-rc and LKGaf4caacUpdate LKG8efd7e8Merge remote-tracking branch 'origin/main' into release-6.0