Bump typescript from 5.1.6 to 6.0.3#2090
Conversation
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.1.6 to 6.0.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.1.6...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>
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
|
| Filename | Overview |
|---|---|
| package.json | Bumps typescript from ^5.1.6 to ^6.0.3 — a major version jump with several breaking changes that the rest of the project hasn't been updated to handle yet (strict-by-default, deprecated moduleResolution, and incompatible tooling peers). |
| package-lock.json | Lock file updated to pin typescript to 6.0.3 — mechanical change, no independent issues. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["TypeScript 5.1.6 → 6.0.3 bump"] --> B["strict: true by default"]
A --> C["moduleResolution 'node' deprecated"]
A --> D["noUncheckedSideEffectImports: true by default"]
A --> E["Peer tooling compatibility"]
B --> B1["tsconfig.json has no explicit strict setting\n→ strict checks now enabled silently"]
C --> C1["tsconfig.json uses moduleResolution: node\n→ compiler error at tsc / lint time"]
E --> E1["typedoc ^0.25.1 supports TS ≤ 5.4 only\n→ docs / doc:json scripts fail"]
E --> E2["@typescript-eslint/parser ^6.4.1\nno confirmed TS 6.0 support\n→ lint fails"]
style B1 fill:#ffcccc
style C1 fill:#ffcccc
style E1 fill:#ffcccc
style E2 fill:#ffcccc
Comments Outside Diff (1)
-
package.json, line 102-103 (link)@typescript-eslintversions do not yet support TypeScript 6.0@typescript-eslint/parseris pinned to^6.4.1and@typescript-eslint/eslint-pluginto^7.0.0. TypeScript 6 support for typescript-eslint is still open (TypeScript 6 Support typescript-eslint/typescript-eslint#12123) and has not landed in the v6/v7 releases. Runningnpm run lint(eslint --ext .ts) will fail or silently mangle the parse tree because the parser calls internal TypeScript compiler APIs that changed in 6.0. The typescript-eslint packages need to be upgraded to a version that explicitly lists TypeScript 6.0 as a supported peer before this TypeScript bump can be merged safely.
Reviews (1): Last reviewed commit: "Bump typescript from 5.1.6 to 6.0.3" | Re-trigger Greptile
| "typedoc": "^0.25.1", | ||
| "typedoc-plugin-markdown": "^4.0.3", | ||
| "typescript": "^5.1.6" | ||
| "typescript": "^6.0.3" |
There was a problem hiding this comment.
typedoc: "^0.25.1" is incompatible with TypeScript 6.0
TypeDoc 0.25 officially supports TypeScript 4.6 through 5.4 only (it is now unmaintained). Running npm run docs or npm run doc:json against TypeScript 6.0 will fail at runtime because TypeDoc 0.25 does not understand the TypeScript 6 compiler API. TypeDoc 0.28+ is required for TypeScript 5.0–5.8 support, and TypeScript 6.0 support requires an even newer TypeDoc release (tracked in TypeStrong/typedoc#3084). The typedoc and typedoc-plugin-markdown devDependencies must be upgraded before this bump can land.
| "typedoc": "^0.25.1", | ||
| "typedoc-plugin-markdown": "^4.0.3", | ||
| "typescript": "^5.1.6" | ||
| "typescript": "^6.0.3" |
There was a problem hiding this comment.
strict now defaults to true in TypeScript 6.0
Neither tsconfig.json nor test/tsconfig.json sets "strict" explicitly. Under TypeScript 5.x the implicit default was false; TypeScript 6.0 flips this to true, silently enabling strictNullChecks, noImplicitAny, strictFunctionTypes, strictPropertyInitialization, and several other checks at once. Any code that was previously compiling cleanly may now emit errors on the first tsc --noEmit or microbundle build invocation. Either confirm the codebase already passes strict-mode checks (and add "strict": true explicitly), or add "strict": false to tsconfig.json to preserve the previous behaviour.
| "typedoc": "^0.25.1", | ||
| "typedoc-plugin-markdown": "^4.0.3", | ||
| "typescript": "^5.1.6" | ||
| "typescript": "^6.0.3" |
There was a problem hiding this comment.
moduleResolution: "node" is deprecated and removed in TypeScript 6.0
Both tsconfig.json (line 4) and test/tsconfig.json (line 3) use "moduleResolution": "node", which is the old node10 algorithm. TypeScript 6.0 deprecates this option with a compiler error (tracked in microsoft/TypeScript#62200, milestoned for 6.0.0). Running tsc, type-check, or lint after this bump will produce an error on those tsconfig files. The resolution mode should be migrated to "node16", "nodenext", or "bundler" depending on the target environment, and the module settings should be aligned accordingly.
Bumps typescript from 5.1.6 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.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)