Repository navigation
chore: upgrade TypeScript to 6.0.3 - #437
Merged
Merged
Conversation
TypeScript 6 broke the declaration build in #187 because api-extractor did not support it yet. api-extractor 7.60.1, added in #436, bundles TypeScript 6.0.3, and the build now emits the same declarations as on 5.9. - Bump typescript from ~5.9.3 to ~6.0.3, the latest 6.x release. - Drop baseUrl from tsconfig.json: TypeScript 6 deprecates it and nothing relies on it, as every import inside src/ is relative. TypeScript 7 is still out of reach: its native compiler ships no JavaScript API for vite-plugin-dts, and typescript-eslint refuses to run on it.
This was referenced Nov 16, 2026
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Upgrades TypeScript from
~5.9.3to~6.0.3, the latest 6.x release.Why it works now
The previous attempt (#187) shipped empty declarations (
export {}) because@microsoft/api-extractordid not support TypeScript 6. #436 brought api-extractor back as a direct devDependency, and version 7.60.1 bundles TypeScript 6.0.3.Changes
typescript:~5.9.3to~6.0.3.tsconfig.json: removebaseUrl. TypeScript 6 deprecates it (TS5101, stops working in 7.0) and nothing relies on it, as every import insidesrc/is relative.Verification
npm run buildemits all six declaration files with the same size as on 5.9 (index 705 lines, vite-plugin 321, runner 109, runner-ci 74, ui 42, bundled 41).npm run check:types: nodenext, node16 and bundler pass.npm ls typescriptreports no invalid peer ranges.tsc --noEmitreports the same 17 diagnostics at the same locations on 5.9 and 6.0, so the upgrade introduces none. They are pre-existing and not part of CI: missing@types/node, and two insrc/tests/e2e/url.spec.ts.Why not TypeScript 7
Tried 7.0.2 first. Two independent blockers:
vite-plugin-dtsfails and no declarations are emitted.typescript-eslintexits withdoes not support TS 7.0(tracked in Enhancement: Use TS 7 (tsgo / typescript-go) for type information typescript-eslint/typescript-eslint#10940).The Dependabot rule ignoring TypeScript majors stays as is.