Repository navigation
build!: move the toolchain to Node 26 and cover every supported Node line in engines - #138
Merged
Merged
Conversation
…line in engines Engines now accept Node 22.12 or later, 24 and 26. Node 25 is dropped with the other end-of-life lines. The dev shell, the attw Nix wrapper and @types/node move to Node 26.
# Conflicts: # .github/workflows/ci.yml
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.
What changes
Moves the toolchain to Node 26 and sets
engineson every package that declares it to cover each Node line that is not end-of-life (22, 24, 26). Node 25 drops out of>=24, so the two published packages are narrowed: their intents areminorand the commit isbuild!. Pre-1.0 semantics do not apply here:arethetypeswrongis at 8.0.0 andarethetypeswrong-cliat 4.3.0, so a reviewer may want this asmajor. The bump isminoras the owner's rule says for narrowing; flagged for confirmation.Two commits:
ci: pin the reusable CI workflow to 9e947ae10f: the reusable-CI SHA was7544b79(an ancestor of9e947ae10f), so it moves on its own commit.build!: move the toolchain to Node 26 and cover every supported Node line in engines.Pins changed (11 pins, plus 1 doc line)
.github/workflows/ci.yml:18(reusable-ci SHA)@7544b79a7f94d783ba7832bc7b07a413d5c60793@9e947ae10f72d9614e9dbd702bd2c424aceb7099packages/arethetypeswrong/package.json:89(engines.node)>=24^22.12.0 || ^24.0.0 || >=26.0.0apps/arethetypeswrong-cli/package.json:71(engines.node)>=24^22.12.0 || ^24.0.0 || >=26.0.0packages/arethetypeswrong-recipes/package.json:37(engines.node)>=24^22.12.0 || ^24.0.0 || >=26.0.0apps/arethetypeswrong-cli-e2e/package.json:36(engines.node)>=24^22.12.0 || ^24.0.0 || >=26.0.0flake.nix:57pkgs.nodejs_24pkgs.nodejs_26nix/attw.nix:12nodejs_24,nodejs_26,nix/attw.nix:57nodejs_24nodejs_26nix/attw.nix:78${nodejs_24}/bin/node${nodejs_26}/bin/nodenix/attw.nix:80[ nodejs_24 ][ nodejs_26 ]pnpm-workspace.yaml:33(catalog@types/node)^24.13.4^26.6.10(latest 26.x the lockfile resolves)Doc:
apps/arethetypeswrong-cli/README.md:32: "attwrequires Node >= 24" → "attwrequires Node 22.12 or later, Node 24.x, or Node 26 and later".Changesets (the README requires one per changed package path):
@systemfsoftware/arethetypeswrong:minor, "Supports Node 22.12 or later, Node 24 and Node 26; Node 25 is no longer supported."@systemfsoftware/arethetypeswrong-cli:minor, same body.@systemfsoftware/arethetypeswrong-recipes,@systemfsoftware/arethetypeswrong-cli-e2e(private):none.Verification
nix eval .#devShells.x86_64-linux.default.drvPath: succeeds; nonix flake updateneeded.nix develop -c node --version→v26.13.0nix eval .#packages.x86_64-linux.attw.drvPath→ succeeds (attw-4.3.0.drv), so the Nix wrapper evaluates withnodejs_26.pnpm install --frozen-lockfile --ignore-scripts→Done in 309ms using pnpm v11.27.0, exit 0. Lock updated withpnpm install --no-frozen-lockfile --ignore-scripts(@types/node@26.6.10).pnpm exec turbo run typecheck typecheck:node lint --affected→Tasks: 12 successful, 12 total, exit 0. Lint runs because@types/nodechanged.Not verified
attwNix package now runs on Node 26 (nix/attw.nix); theattwtarget itself was not built here (CI runsattwin the affected graph).Added after the first push: turbo
globalEnvCommit
build: pass NODE_RUNTIME_VERSION through turbo globalEnvadds"globalEnv": ["NODE_RUNTIME_VERSION"]toturbo.json(after$schema). Turbo task hashes then change with the Node release, so CI cannot replay cached Node 24 results after the switch. The shared CI exports the variable in a separate change.Checks after this commit:
pnpm exec turbo run typecheck --dry=jsonexits 0, which validates the config. Typecheck and lint were run before this commit; the change touches hashes only, not code.Added after the second push: reusable-CI pin
Commit
ci: pin the reusable CI workflow to 2d696dc8dcmoves.github/workflows/ci.ymlfrom9e947ae10fto2d696dc8dca6bdfe13d0f1ff604cbd497dc3672a. That SHA includes systemfsoftware#1119, where the shared CI exportsNODE_RUNTIME_VERSION, so theglobalEnvhash carries the Node release. The workflow's CI run uses the new pin.Merged with --admin: the queue requires an approving review, which a pull request opened by the bot account cannot obtain; CI is green on 670c723.