Repository navigation
Closed
Description
Part of stackables/release-manager#7: move every stackables repo that uses TypeScript to TypeScript 7.
What
bridge has typescript ^6.0.2 in 11 package.json files. Move it to ^7 where its tools allow.
TypeScript 7's catch
TypeScript 7 is the native compiler. Its npm package no longer exposes the classic JavaScript compiler API: its main export is only lib/version.cjs, and what remains is under typescript/unstable/*. A tool that does import ts from "typescript" breaks, whatever its peer range says. tsc itself, knip and the bundlers work on 7.
Three tools in bridge need the old API, and none had a release supporting TS 7 when this was written (2026-10-27):
| Tool | Where | Supports TS 7? |
|---|---|---|
typescript-eslint ^8 |
eslint.config.mjs (not type-aware, but its parser still loads typescript) |
no: 8.72.1 has peer typescript >=4.8.4 <6.1.0 |
@stryker-mutator/typescript-checker ^10 |
the root, mutation testing | no: it type-checks mutants through the compiler API |
@astrojs/check ^0.9 |
packages/docs-site (astro check in build) |
no: peer typescript ^5.0.0 || ^6.0.0 |
Steps
- Check npm again: if a release of one of these tools now supports TS 7 and is at least 7 days old, take it.
- Otherwise try the split: move what can move (for example the packages'
tscbuilds) to TS 7, while the three tools keep a TypeScript 6 they resolve on their own (for example through pnpmoverrides/packageExtensionsscoped to those tools, or an aliasedtypescript6 dependency they resolve). Only if it is clean: every tool resolves the TypeScript it needs without hacks in its own config, and a person can see inpackage.jsonwhy there are two. - If the split is not clean, leave bridge on TS 6 and change no code.
- Either way, report what still keeps bridge (or a part of it) on TS 6: each tool, the version checked, and the link to that tool's TS 7 tracking issue on GitHub.
Constraints
- Don't switch any of the three tools off to get to TS 7: no dropping lint rules, the Stryker checker or
astro check. - No check may be lost: no script, test, CI step or type-check removed or skipped.
- bridge is published, released with changesets. A compiler move is a
devDependencieschange: no changeset, unless the emitted JavaScript or.d.tsof a published package changes. Compare the build output of every published package (@stackables/bridge,-core,-compiler,-parser,-graphql,-stdlib,-types) before and after; if any differs, add apatchchangeset for those packages saying what changed for users, and say so in the PR.
Done when
- bridge is on
typescript^7 (in every package where it can be), or this issue documents exactly which tool keeps it on 6, with a link to that tool's TS 7 tracking issue. - Every check that runs on main (lint, type-check, build including
astro check, tests, mutation testing config) still runs and passes. - The published packages' build output is unchanged, or a patch changeset covers the difference.
base branch: main (feature branch factory/7-typescript-7)
Metadata
Metadata
Assignees
Labels
No labels
Activity
factory-release-manager commentedon Oct 27, 2026
What keeps bridge partly on TypeScript 6 (checked on npm on 2026-10-27)
The published packages,
bridge-syntax-highlightand the playground move totypescript^7. The root and docs-site stay ontypescript^6, because the tools there load TypeScript's classic compiler API, which TS 7 no longer ships:typescript-eslinteslint.config.mjs)typescript >=4.8.4 <6.1.0@stryker-mutator/typescript-checker@astrojs/checkpackages/docs-site(astro check)typescript ^5.0.0 || ^6.0.0astro checkstill needs TS 7.1 and withastro/astro#17852)pnpm resolves each workspace's own
typescript, so the split needs no overrides. Once these tools ship TS 7 support, the root and docs-site can move too.#188: Move bridge to TypeScript 7 where its tools allow
factory-coder commentedon Oct 27, 2026
✅ Ready for validation
Pushed
factory/7-typescript-7and opened #190 intomain. It saysFixes stackables/bridge#188.The nine packages that only run
tscor Vite are on TypeScript^7.0.2. The root and docs-site stay on^6.0.2, because the three tools that need the classic compiler API live there. None of them supports TS 7 yet. The tracking issues are in the PR body:@stryker-mutator/typescript-checker@astrojs/checkThe published packages' JavaScript is identical. The stdlib
.d.tsfiles change shape (same types), so there is a patch changeset for@stackables/bridge-stdlib. The.d.ts.mapfiles of bridge-compiler, bridge-core, bridge-graphql and bridge-parser also change, and I wrote no changeset for them. The Stryker checker doesn't load onmaineither, so I couldn't confirm the mutation run.The checks listed in the handoff pass, including a clean-checkout build of the branch head. The commit is the one already held (
c302e4d), and the branch holds only this session's own commit.factory-validator commentedon Oct 27, 2026
🟢 Pass
The nine packages that only run
tsc, esbuild or Vite now resolve TypeScript 7.0.2. The root and docs-site still resolve 6.0.3, so typescript-eslint, the Stryker checker andastro checkkeep the classic compiler API. I confirmed this withreadlinkon every workspace'snode_modules/typescript. No source, script or config file in the moved packages importstypescript, and no check was removed. The lockfile diff only addstypescript@7.0.2and its native binaries. Their integrity hashes match npm.What was run. CI does not run e2e or the playground, syntax-highlight and docs-site builds, so I ran them here and all passed.
astro checkran on TS 6.0.3 with 0 errors. I built the 7 published packages with both compilers. The JavaScript is identical. The.d.tsfiles differ only inbridge-stdlib/tools/{arrays,audit,strings}.d.ts, and the patch changeset covers that. I type-checked a strict consumer against the new stdlib declarations on TypeScript 5.0, 5.4, 5.9 and 6.0.3. It passed on all four, andbridgekeeps its{ sync: true; trace: false }type, which an@ts-expect-errorline confirmed. npm confirms the versions the PR names: typescript-eslint 8.72.1 acceptstypescriptup to<6.1.0, and @astrojs/check 0.9.12 accepts^5 || ^6.Open points that don't block:
.d.ts.mapfiles change, but only their source-map positions, and they point intosrc/, which is not published. Users see no difference, so I did not ask for a changeset for them.Cannot find Checker plugin "typescript". It fails the same way on main, because nothing at the root changed. Mutation testing was already broken before this PR and still is; it needs its own fix.Notes.
docs/agents/validation.md, so the checks came fromtest.ymlandpackage.json, and I used the default review.packages/docs-site/worker-configuration.d.ts(wrangler typesuses the installed workerd), so I restored it withgit checkout..stryker-tmp. It is not git-ignored and held only empty sandbox folders, two of them from an earlier run. I removed it.factory-validator commentedon Oct 27, 2026
🟢 Pass
Integration check of #190 at
c302e4d. It is a single part, and the part has already passed validation at this same head (verdict). I did not review its lines again. I checked what that validation and PR CI could not see: the TypeScript 6/7 split across workspaces, and the release path that only runs after merge.typescript@7.0.2and its native binaries)c302e4dWhat I ran
typescript. All 9 moved packages get 7.0.2. The root and docs-site get 6.0.3, which is what typescript-eslint, the Stryker checker andastro checkload.release.ymlrunspnpm smokebeforechangeset publish, and only on pushes to main, so PR CI never runs it. I ran it here and it passed.prepackbuilt it with tsc 7.build/tools/arrays.d.tsnow has the TS 7export { syncUtility as bridge }form.tsc --noEmitpassed for a consumer on TypeScript ^5.9. So the TS 7 declarations work across the whole chain of published packages, not just inside the monorepo.Testjob, and loads notypescript.Unattended choice: the Bencher PR job was still running when I submitted. It is recorded as skipped, and the release manager's CI gate covers it.
docs/agents/validation.mddoes not exist, so the checks were taken from the CI workflows andpackage.json.