Skip to content

Move bridge to TypeScript 7 where its tools allow - #190

Merged
factory-release-manager[bot] merged 1 commit into
mainfrom
factory/7-typescript-7
Oct 27, 2026
Merged

factory-release-manager[bot] merged 1 commit into
mainfrom
factory/7-typescript-7

Conversation

@factory-coder

@factory-coder factory-coder Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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-highlight and the playground build with typescript ^7.0.2. The root and docs-site keep ^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 own typescript, so the split needs no overrides or tool config changes. A patch changeset for @stackables/bridge-stdlib covers 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

  1. bridge is only partly on TS 7: the root and docs-site stay on 6 until typescript-eslint, Stryker's typescript-checker and @astrojs/check support it. Which and why
  2. Declined G1: Stryker's dry run cannot load its typescript checker, on main too. Why it is safe to leave
  3. Judgement: no changeset for .d.ts.map-only changes in four packages. Why

Validation

🟢 pass at c302e4d, no findings. CI green (Test, CodeQL, Bencher, Workers build).

  • Run in the box beyond CI: pnpm e2e, the playground build (tsc 7 + Vite), bridge-syntax-highlight build and lint:types, the docs-site build with astro check on TS 6.0.3.
  • Published output built with TS 6.0.3 and 7.0.2 and compared: JavaScript identical in all seven packages; .d.ts differs only in bridge-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) · verdict

  • Safe to leave because: it fails the same way on main, with TypeScript 6 everywhere. This PR leaves the root's Stryker packages and its TypeScript 6.0.3 unchanged (the lock file diff touches only typescript@7.0.2 and its native binaries).
  • What it means: mutation testing does not run today, before or after this PR. Nothing here makes it worse, but this PR could not confirm the mutation run on the root's TS 6 either.
  • Recommendation: merge as is; follow-up F1.

Judgement calls


The root and docs-site stay on TypeScript 6 (as stackables/release-manager#7 asked when the tools do not support 7)


No changeset for .d.ts.map-only changes in bridge-compiler, -core, -graphql and -parser

  • Why: their JavaScript and .d.ts are identical under TS 7; only source-map positions in .d.ts.map move, and those point into src/, which is not published. Users see no difference, so the changesets rule (a change to what users get) does not ask for a release.
  • What it means: those four ship the TS 7 maps with their next release for another reason. If you read "any build output change" strictly, add a patch for the four to .changeset/typescript-7-declarations.md.

Proposed follow-ups

  • F1 · Stryker cannot find its typescript checker plugin (stackables/bridge) — covers G1. pnpm exec stryker run --dryRunOnly fails with Cannot find Checker plugin "typescript" on main, so mutation testing does not run. Find why @stryker-mutator/typescript-checker does not load (plugin resolution from the root, its version against @stryker-mutator/core) and make the dry run pass.

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-bot

changeset-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c302e4d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@stackables/bridge-stdlib Patch
@stackables/bridge-compiler Patch
@stackables/bridge-core Patch
@stackables/bridge-graphql Patch
@stackables/bridge-parser Patch
@stackables/bridge Patch

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

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

ProjectThe Bridge
Branchfactory/7-typescript-7
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
compiled: absolute baseline (passthrough, no tools)📈 view plot
🚷 view threshold
0.00 ns
(+5.61%)Baseline: 0.00 ns
0.00 ns
(79.21%)
compiled: array + SYNC tool-per-element 10📈 view plot
🚷 view threshold
0.01 ns
(+15.91%)Baseline: 0.01 ns
0.01 ns
(84.74%)
compiled: array + SYNC tool-per-element 100📈 view plot
🚷 view threshold
0.03 ns
(+29.95%)Baseline: 0.03 ns
0.05 ns
(76.71%)
compiled: array + tool-per-element 10📈 view plot
🚷 view threshold
0.01 ns
(-2.61%)Baseline: 0.01 ns
0.01 ns
(69.13%)
compiled: array + tool-per-element 100📈 view plot
🚷 view threshold
0.03 ns
(-11.21%)Baseline: 0.04 ns
0.05 ns
(58.81%)
compiled: chained 3-tool fan-out📈 view plot
🚷 view threshold
0.01 ns
(+11.64%)Baseline: 0.01 ns
0.01 ns
(85.18%)
compiled: flat array 10 items📈 view plot
🚷 view threshold
0.01 ns
(-0.29%)Baseline: 0.01 ns
0.01 ns
(70.96%)
compiled: flat array 100 items📈 view plot
🚷 view threshold
0.01 ns
(-12.86%)Baseline: 0.01 ns
0.02 ns
(53.44%)
compiled: flat array 1000 items📈 view plot
🚷 view threshold
0.07 ns
(-18.64%)Baseline: 0.09 ns
0.16 ns
(44.84%)
compiled: nested array 10x10📈 view plot
🚷 view threshold
0.02 ns
(-8.78%)Baseline: 0.02 ns
0.03 ns
(59.01%)
compiled: nested array 20x10📈 view plot
🚷 view threshold
0.03 ns
(-10.58%)Baseline: 0.04 ns
0.06 ns
(56.83%)
compiled: nested array 5x5📈 view plot
🚷 view threshold
0.01 ns
(-3.72%)Baseline: 0.01 ns
0.01 ns
(66.23%)
compiled: short-circuit (overdefinition bypass)📈 view plot
🚷 view threshold
0.00 ns
(+5.78%)Baseline: 0.00 ns
0.00 ns
(79.39%)
compiled: simple chain (1 tool)📈 view plot
🚷 view threshold
0.00 ns
(+4.85%)Baseline: 0.00 ns
0.01 ns
(78.87%)
exec: absolute baseline (passthrough, no tools)📈 view plot
🚷 view threshold
0.00 ns
(+9.22%)Baseline: 0.00 ns
0.01 ns
(79.41%)
exec: array + SYNC tool-per-element 10📈 view plot
🚷 view threshold
0.04 ns
(-34.59%)Baseline: 0.07 ns
0.15 ns
(29.77%)
exec: array + SYNC tool-per-element 100📈 view plot
🚷 view threshold
0.36 ns
(-38.49%)Baseline: 0.58 ns
1.31 ns
(27.06%)
exec: array + tool-per-element 10📈 view plot
🚷 view threshold
0.05 ns
(-31.61%)Baseline: 0.08 ns
0.16 ns
(32.47%)
exec: array + tool-per-element 100📈 view plot
🚷 view threshold
0.44 ns
(-35.44%)Baseline: 0.68 ns
1.47 ns
(29.74%)
exec: chained 3-tool fan-out📈 view plot
🚷 view threshold
0.02 ns
(-25.75%)Baseline: 0.03 ns
0.07 ns
(35.33%)
exec: flat array 10 items📈 view plot
🚷 view threshold
0.01 ns
(-8.73%)Baseline: 0.01 ns
0.02 ns
(55.32%)
exec: flat array 100 items📈 view plot
🚷 view threshold
0.04 ns
(-33.47%)Baseline: 0.06 ns
0.13 ns
(30.56%)
exec: flat array 1000 items📈 view plot
🚷 view threshold
0.31 ns
(-41.11%)Baseline: 0.53 ns
1.23 ns
(25.16%)
exec: nested array 10x10📈 view plot
🚷 view threshold
0.08 ns
(-25.13%)Baseline: 0.10 ns
0.20 ns
(38.29%)
exec: nested array 20x10📈 view plot
🚷 view threshold
0.14 ns
(-27.50%)Baseline: 0.20 ns
0.39 ns
(36.42%)
exec: nested array 5x5📈 view plot
🚷 view threshold
0.04 ns
(-16.33%)Baseline: 0.04 ns
0.08 ns
(47.59%)
exec: short-circuit (overdefinition bypass)📈 view plot
🚷 view threshold
0.01 ns
(+7.36%)Baseline: 0.01 ns
0.01 ns
(72.70%)
exec: simple chain (1 tool)📈 view plot
🚷 view threshold
0.01 ns
(+6.51%)Baseline: 0.01 ns
0.01 ns
(74.11%)
parse: large bridge (20 handles x 5 wires)📈 view plot
🚷 view threshold
1.10 ns
(-5.11%)Baseline: 1.16 ns
1.67 ns
(66.23%)
parse: simple bridge📈 view plot
🚷 view threshold
0.03 ns
(-2.85%)Baseline: 0.03 ns
0.05 ns
(70.19%)
🐰 View full continuous benchmarking report in Bencher

@factory-release-manager
factory-release-manager Bot merged commit 5d39680 into main Oct 27, 2026
10 checks passed
@factory-release-manager

Copy link
Copy Markdown
Contributor

Merged on @aarne's approval: #190 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move bridge to TypeScript 7 where its tools allow

1 participant