Repository navigation
Upgrade direct Node usage to Node 26 - #99
Merged
Merged
Conversation
Node 25 stopped bundling corepack, so the image now installs a pinned corepack from npm to keep providing yarn. npm's global install also links pnpm/pnpx shims the bundled corepack never exposed; disable them so the image still ships yarn only.
Moves the broker image, its CI jobs, and @types/node to the Node 26 LTS line together, so the types match the runtime it ships on.
Kept apart from the broker's own runtime: this changes the image user projects build and test under, and can be reverted on its own.
npm checks the tarball only against the hash the registry reports, so a swapped tarball would still install. Pin its sha256 as Ruby's is. Restore the original wording of the corepack env comment while here.
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.
Moves every place the repo pins Node directly to the Node 26 LTS line (v26.13.0).
NODE_MAJOR24 → 26. Node 25+ no longer bundles corepack (verified absent from both the official tarball and the NodeSource deb), so the image installs a pinnedcorepack@0.36.0from npm (COREPACK_VERSIONbuild arg) to keepyarn. npm's global install also linkspnpm/pnpx;corepack disable pnpmkeeps the image yarn-only as before.26-alpine, CIsetup-node"26",@types/node^22 → ^26.6.6 (lockfile also movesundici-types6.21 → 8.9).node:26-alpine. This is a separate commit because it changes what user projects run under.Verification
npm test(tsc + 28 tests) passes on real node v26.13.0; e2e ran against a fakedockershim (there's no Docker in the dev env), and the server boots with--throw-deprecation.make testpasses (1027 tests).corepack/yarn/yarnpkgremain,yarn→ 1.22.22, no prompt,package.jsonuntouched.make build_harnesses/make build_brokerimage build.Review
An adversarial panel reviewed it with four lenses: security/supply chain, correctness/runtime compatibility, completeness, and conventions/docs. All four returned SAFE. Lockfile and corepack integrity hashes were checked against the registry.
Out of scope
actions/checkout@v4andactions/setup-node@v4still run on GitHub's Node 20 action runtime. Bumping them would be a separate change.