Repository navigation
ci(renovate): keep Node and @types/node on the 22 line - #434
Merged
Merged
Conversation
A maintainer's Mac is capped at macOS 12.7. Node 22 is the last LTS line that runs there: from Node 24 the minimum is macOS 13.5 (Node 26 too), and Node 23 is an EOL odd release. Renovate was proposing node 22 -> 26 in every workflow and @types/node 26 in packages/. - add allowedVersions "<23" for node and @types/node, so CI keeps running the Node the maintainer develops on and the types do not expose APIs Node 22 lacks - align @docubook/themes-colors to @types/node ^22.20.5 (was ^25.9.9), matching flame. devDependency only, so no changeset A local Renovate 44 lookup no longer returns the node-26.x branch, and the packages devDependencies group now proposes @types/node ^22 for core (currently ^20) only. The tooling majors still pending (vitest 5, jsdom 30, lint-staged 17, @changesets/cli 3, mermaid 12) all support Node 22. Refs #432
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This review covers the Renovate rule that caps node and @types/node below 23, plus the matching @types/node downgrade in @docubook/themes-colors (mode: standard).
- Renovate Node cap:
allowedVersions: "<23"onnodeand@types/nodecovers everynodesource in the repo: theactions/setup-nodenode-version: 22pins inci.yml,release.ymlandcommitlint.yml, and bothengines.nodefields. There's no.nvmrcand no Node Docker image (Dockerfile.builderusesoven/bun). @types/nodealignment:themes-colorsnow matches flame at^22.20.5. It's a devDependency, so no changeset is needed.core(^20.19.43) can still move up to^22through the devDependency majors group.- Lockfile:
[email protected]is now markedoptional, which is correct because the only@types/nodestill using it is itself optional. The@oxc-parser/binding-*snapshots no longer carryoptional: true. Platform skipping still works:pnpm install --frozen-lockfile(pnpm 12.3.4) reports "Lockfile is up to date" and installs only@oxc-parser/binding-linux-x64-gnuon Linux. All CI checks pass onf3c7c89.
ℹ️ The cap has no exit once Node 22 reaches end of life
Node 22 reaches end of life on 2027-04-30, about six months from now. Because of <23, Renovate will never offer a newer line, so CI and the @types/node ranges will stay on an unsupported runtime without any reminder. Nothing needs to change in this PR, but it's worth tracking a revisit date, for example in #432 or in the rule's description.
Technical details
# Node 22 cap has no revisit trigger
## Affected sites
- .github/renovate.json:90-94 — `allowedVersions: "<23"` for `node` and `@types/node`
## Required outcome
- Someone knows to revisit the cap before Node 22 EOL (2027-04-30), either because the macOS 12 constraint is gone or to pick an alternative
## Open questions for the human
- Should the revisit be tracked in #432, a dated note in the rule `description`, or a separate issue?claude-opus-5-5 | 𝕏
1 task
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.

Summary
This settles the Node decision in T2 of the plan in #432. A maintainer's Mac is capped at macOS 12.7, so Node stays on the last LTS line that still runs there.
Renovate was proposing
node 22 → 26in every workflow (renovate/node-26.x), and@types/node26 inpackages/through the devDependencies majors group.Changes
.github/renovate.json:allowedVersions: "<23"fornodeand@types/node. CI keeps running the Node the maintainer develops on, and the types don't expose APIs that Node 22 lacks.@docubook/themes-colors:@types/node^25.9.9→^22.20.5, matching flame. It's a devDependency only, so there's no changeset.pnpm-lock.yaml: regenerated by pnpm 12.3.4 (the pinnedpackageManager) and formatted with Prettier like the committed lockfile. Besides@types/node25.9.9 → 22.20.5, pnpm recomputed theoptionalflag on a few snapshots (the@oxc-parser/binding-*@0.152.0bindings and[email protected]). The bindings are still underoxc-parser'soptionalDependencies, so platform skipping doesn't change. Cleanmainreinstalls with no lockfile diff, andinstallandinstall --lockfile-onlygive the same output.engines(root^20.19.0 || ^22.13.0 || >=24, flame>=20.11) is unchanged. It describes what users can run, not what CI runs.Verification
renovate-config-validator --strict(Renovate 44) passes.--platform=local --dry-run=lookup): 15 branches, down from 16.renovate/node-26.xis gone. CInode 22and bothenginesfields get no updates.@types/node: onlycore(^20.19.43→^22.0.0) is left inmajor-packages-devdependencies-majors.flameandthemes-colorshave no updates.pnpm-workspace.overridesmajors are still disabled.pnpm install --frozen-lockfilereports "Lockfile is up to date".pnpm turbo typecheck test --filter=@docubook/themes-colorspasses (120 tests).engines.node): vitest 5^22.12.0, jsdom 30^22.22.2, lint-staged 17>=22.22.1, @changesets/cli 3^22.11, jest-dom 7>=22, mermaid 12>=22.12.0, @sentry/bun 11>=22.12.0 <23. Local Node has to be at least 22.22.2 for jsdom 30.Refs #432