Repository navigation
Move bridge to TypeScript 7 where its tools allow - #190
Merged
Merged
Conversation
The nine packages that only run tsc or Vite (bridge, -core, -compiler, -parser, -graphql, -stdlib, -types, bridge-syntax-highlight, playground) move from typescript ^6.0.2 to ^7.0.2. The root and docs-site stay on ^6.0.2, because the tools that load the classic compiler API live there: typescript-eslint (peer < 6.1.0) and @stryker-mutator/typescript-checker at the root, @astrojs/check (peer ^5 || ^6) in docs-site. pnpm resolves each workspace's own typescript, so no override is needed. The playground type check needs "vite/client" in its tsconfig types: TS 7 reports the side-effect import of ./index.css as an error without it. Built output of the published packages: JavaScript identical; the stdlib tool .d.ts files change shape (same types) and some .d.ts.map files change. A patch changeset for bridge-stdlib covers it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: c302e4d The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
aarne
approved these changes
Oct 27, 2026
Contributor
|
Merged on @aarne's approval: #190 (review) |
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.
Fixes #188
Refs stackables/release-manager#7
Release manager: session
aarnes-imac/release-manager-2/claude:4821297f-6c77-4218-8bb6-24361330e1d2, in the boxes UI: ask it anything, or give it your feedback there.What this does
Moves bridge to TypeScript 7 where its tools allow. The seven published packages,
bridge-syntax-highlightand the playground build withtypescript^7.0.2. The root anddocs-sitekeep ^6.0.2 for the three tools that need TypeScript's classic compiler API, which TS 7 no longer ships. pnpm resolves each workspace's owntypescript, so the split needs no overrides or tool config changes. A patch changeset for@stackables/bridge-stdlibcovers its changed declarations.Merge order: independent of stackables/oauth-tester#38 (the other half of stackables/release-manager#7); either can merge first.
Needs your attention
@astrojs/checksupport it. Which and why.d.ts.map-only changes in four packages. WhyValidation
🟢 pass at
c302e4d, no findings. CI green (Test, CodeQL, Bencher, Workers build).pnpm e2e, the playground build (tsc 7 + Vite), bridge-syntax-highlight build andlint:types, the docs-site build withastro checkon TS 6.0.3..d.tsdiffers only inbridge-stdlib/tools/{arrays,audit,strings}.d.ts(same types, declared differently), which type-check for a strict consumer on TypeScript 5.0, 5.4, 5.9 and 6.0.3.Tests: a toolchain change with no behaviour of its own: the existing builds, lint, tests, fuzz and e2e on the split, and the TS 6 vs 7 output comparison, are its test.
Time: coding 6 min, validation 3 min, one part, no fix rounds.
Decisions for you
Declined findings
G1 · Stryker's dry run fails with
Cannot find Checker plugin "typescript"(medium, fails on main) · verdicttypescript@7.0.2and its native binaries).Judgement calls
The root and docs-site stay on TypeScript 6 (as stackables/release-manager#7 asked when the tools do not support 7)
typescript-eslint8.72.1 (root): peertypescript >=4.8.4 <6.1.0. Tracking: Enhancement: Use TS 7 (tsgo / typescript-go) for type information typescript-eslint/typescript-eslint#10940@stryker-mutator/typescript-checker10.1.1 (root): type-checks mutants through the compiler API. Tracking: TypeScript 7 migration strategy stryker-mutator/stryker-js#6110, Support mutant grouping with TypeScript 7 stryker-mutator/stryker-js#6112@astrojs/check0.9.12 (docs-site): peertypescript ^5.0.0 || ^6.0.0. Tracking: astro/check thinks typescript is not installed when using TypeScript 7 withastro/astro#17268 (closed, butastro checkstill needs TS 7.1 and feat(vscode): hand .astro to the TypeScript 7 content mapper when available withastro/astro#17852)No changeset for
.d.ts.map-only changes in bridge-compiler, -core, -graphql and -parser.d.tsare identical under TS 7; only source-map positions in.d.ts.mapmove, and those point intosrc/, which is not published. Users see no difference, so the changesets rule (a change to what users get) does not ask for a release..changeset/typescript-7-declarations.md.Proposed follow-ups
pnpm exec stryker run --dryRunOnlyfails withCannot find Checker plugin "typescript"on main, so mutation testing does not run. Find why@stryker-mutator/typescript-checkerdoes not load (plugin resolution from the root, its version against@stryker-mutator/core) and make the dry run pass.