Website: upgrade TypeScript 5 -> 6#14700
Open
ondrejmirtes wants to merge 1 commit into
Open
Conversation
typescript 5.9.3 -> 6.0.3 TypeScript 6 surfaced a few issues that 5.x masked (it no longer auto-includes every @types package): - The code uses es2016-es2019 APIs (Array.includes, Object.entries/ values/fromEntries) but lib was pinned to es2015. Bumped target/lib to es2020. This is type-check only; Vite transpiles using its own browserslist target, so the shipped bundles are byte-identical. - moduleResolution "node" (node10) is deprecated in TS 6; switched to "bundler", which is the correct fit for a Vite project. - Added a module declaration for the '@docsearch/css' side-effect import. npm run check passes; build output (JS/CSS asset hashes, HTML, RSS) is unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
typescript5.9.3 → 6.0.3.TypeScript 6 no longer auto-includes every
@typespackage and is stricter, which surfaced a few latent issues that 5.x had masked:Array.includes,Object.entries/values/fromEntries) whilelibwas pinned toes2015. Bumpedtarget/libtoes2020. This is type-check only — Vite transpiles using its own browserslist target, so the shipped JS/CSS bundles are byte-identical (verified: asset hashes unchanged).moduleResolution: "node"(node10) is deprecated in TS 6 and removed in TS 7. Switched to"bundler", the correct fit for a Vite-bundled project.declare module '@docsearch/css';ambient declaration (next to the existing one inuntyped.d.ts).Verification
npm run checkpasses (tsc 6 + ESLint).🤖 Generated with Claude Code