Skip to content

Bump typescript from 5.9.3 to 6.0.2#4025

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/typescript-6.0.2
Closed

Bump typescript from 5.9.3 to 6.0.2#4025
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/typescript-6.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 2, 2026

Bumps typescript from 5.9.3 to 6.0.2.

Release notes

Sourced from typescript's releases.

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 2, 2026
@raineorshine
Copy link
Copy Markdown
Contributor

@copilot Suggest a migration path to upgrade to Typescript v6

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 23f31fb to a6666a3 Compare April 3, 2026 18:47
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

@copilot Suggest a migration path to upgrade to Typescript v6

Here's a migration path for upgrading to TypeScript v6. The good news is this project is already in great shape — strict: true is already set, no namespaces are used, and no import ... assert syntax exists. Running tsc --noEmit against v6.0.2 shows only 2 deprecation warnings (treated as errors), with zero actual type errors.


Phase 1: Fix deprecation errors (required now)

Only two issues block compilation:

  1. downlevelIteration is deprecated — Since target is "es2018" which natively supports iterators, downlevelIteration is unnecessary. Remove it from tsconfig.json.

  2. moduleResolution: "node" (aka node10) is deprecated — Replace with "moduleResolution": "bundler" which is the correct setting for Vite-based projects. This is the recommended resolution strategy for apps using a bundler and matches how Vite actually resolves modules.

After these two changes, tsc --noEmit passes cleanly with v6.0.2.

Phase 2: Recommended cleanup (optional but advised)

  1. Bump target from "es2018" to "es2022" — Aligns with the "lib": ["dom", "es2022"] already set. Since Vite handles transpilation, the target here mainly affects type-checking and emit helpers.

  2. Update sub-package configs:

    • server/package.json still pins TypeScript at ^4.9.4 — consider upgrading it too, or at minimum ensure it's compatible.
    • Several scripts/*/tsconfig.json files extend the main tsconfig and set "module": "commonjs" — these are fine for now, but CommonJS may see stricter treatment in TS 7.0.
  3. Update @typescript-eslint packages — The current ^8.54.0 should work with TS 6, but verify by running yarn lint.

Phase 3: Prepare for TypeScript 7.0 (Go rewrite)

  1. TS 6.0 is the last JS-based compiler. For a smooth transition to v7:
    • Avoid moduleResolution: "node10" and downlevelIteration (will stop working entirely).
    • Keep module/target settings explicit — defaults change significantly in v7.
    • Monitor @typescript-eslint and vite-plugin-checker for v7 compatibility.

TL;DR: Remove downlevelIteration and change moduleResolution to "bundler" in tsconfig.json. That's all that's needed to make this build pass on TS 6.0.2.

@raineorshine
Copy link
Copy Markdown
Contributor

@copilot Open a new PR and begin the migration.

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

@raineorshine I've opened a new pull request, #4030, to work on those changes. Once the pull request is ready, I'll request review from you.

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch 2 times, most recently from 3633eab to 5cd0ccf Compare April 10, 2026 01:14
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 5cd0ccf to b80f0bb Compare April 13, 2026 18:55
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch 2 times, most recently from d000f9b to 3057dfc Compare April 20, 2026 17:51
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 3057dfc to a6e9408 Compare April 20, 2026 19:56
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 23, 2026

Superseded by #4170.

@dependabot dependabot Bot closed this Apr 23, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/typescript-6.0.2 branch April 23, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants