Skip to content

ci(renovate): keep Node and @types/node on the 22 line - #434

Merged
gitfromwildan merged 1 commit into
mainfrom
ci/renovate-pin-node-22
Oct 31, 2026
Merged

gitfromwildan merged 1 commit into
mainfrom
ci/renovate-pin-node-22

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

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.

Node Minimum macOS (BUILDING.md)
22.x (LTS) 11.0
23.x (EOL, odd) 11.0
24.x 13.5
26.x 13.5

Renovate was proposing node 22 → 26 in every workflow (renovate/node-26.x), and @types/node 26 in packages/ through the devDependencies majors group.

Changes

  • .github/renovate.json: allowedVersions: "<23" for node and @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 pinned packageManager) and formatted with Prettier like the committed lockfile. Besides @types/node 25.9.9 → 22.20.5, pnpm recomputed the optional flag on a few snapshots (the @oxc-parser/binding-*@0.152.0 bindings and [email protected]). The bindings are still under oxc-parser's optionalDependencies, so platform skipping doesn't change. Clean main reinstalls with no lockfile diff, and install and install --lockfile-only give 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.
  • Local Renovate 44 lookup (--platform=local --dry-run=lookup): 15 branches, down from 16.
    • renovate/node-26.x is gone. CI node 22 and both engines fields get no updates.
    • @types/node: only core (^20.19.43 → ^22.0.0) is left in major-packages-devdependencies-majors. flame and themes-colors have no updates.
    • The 3 pnpm-workspace.overrides majors are still disabled.
  • pnpm install --frozen-lockfile reports "Lockfile is up to date".
  • pnpm turbo typecheck test --filter=@docubook/themes-colors passes (120 tests).
  • The tooling majors still pending all support Node 22 (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

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
@gitfromwildan gitfromwildan self-assigned this Oct 31, 2026
@vercel

vercel Bot commented Oct 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Oct 31, 2026 3:47am UTC

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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" on node and @types/node covers every node source in the repo: the actions/setup-node node-version: 22 pins in ci.yml, release.yml and commitlint.yml, and both engines.node fields. There's no .nvmrc and no Node Docker image (Dockerfile.builder uses oven/bun).
  • @types/node alignment: themes-colors now matches flame at ^22.20.5. It's a devDependency, so no changeset is needed. core (^20.19.43) can still move up to ^22 through the devDependency majors group.
  • Lockfile: [email protected] is now marked optional, which is correct because the only @types/node still using it is itself optional. The @oxc-parser/binding-* snapshots no longer carry optional: 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-gnu on Linux. All CI checks pass on f3c7c89.

ℹ️ 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?

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 169b7f9 into main Oct 31, 2026
16 checks passed
@gitfromwildan
gitfromwildan deleted the ci/renovate-pin-node-22 branch October 31, 2026 03:59
@pullfrog pullfrog Bot mentioned this pull request Nov 4, 2026
1 task
@gitfromwildan gitfromwildan mentioned this pull request Nov 5, 2026
12 tasks
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.

1 participant