Skip to content

ci: Raise the Node baseline from 20 to 22 - #139

Merged
wolpert merged 1 commit into
mainfrom
chore/node-22-baseline
Jul 29, 2026
Merged

ci: Raise the Node baseline from 20 to 22#139
wolpert merged 1 commit into
mainfrom
chore/node-22-baseline

Conversation

@wolpert

@wolpert wolpert commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Unblocks the browser-mutation CI job, which fails on #137's jsdom 29 → 30 bump.

Why

jsdom 30.0.0 raised its floor to ^22.22.2 || ^24.15.0 || >=26.0.0. Both CI jobs pin node-version: '20', where jsdom's undici calls webidl.util.markAsUncloneable — a function Node 20 does not have. Every vitest fork worker dies at startup:

Error: [vitest-pool]: Failed to start forks worker for .../test/results.test.ts
Caused by: TypeError: webidl.util.markAsUncloneable is not a function
  ❯ new CacheStorage node_modules/undici/lib/web/cache/cachestorage.js:20:17
  ❯ Object.<anonymous> node_modules/jsdom/lib/api.js:12:33

The job then reports Test Files no tests with 0% coverage and exits 1. npm ci doesn't catch the mismatch because npm doesn't enforce engines without engine-strict.

Node 20 is past end-of-life, so raising the baseline beats pinning the dev dependency a major behind.

Changes

  • .github/workflows/ci.ymlbrowser-mutation and e2e jobs move to node-version: '22' (latest 22.x is v22.23.1, above jsdom's floor)
  • clients/passkeys-browser/package.jsonengines.node>=22.22.2
  • README.md / RELEASE.md / CLAUDE.md — documented prerequisite updated

Verification

Scratch install of jsdom 30.0.1 against the current test suite on Node 22: 10 test files / 103 tests pass. On Node 20 the same install reproduces the CI failure.

After this merges, @dependabot rebase on #137 should go green.

🤖 Generated with Claude Code

jsdom 30 raised its floor to ^22.22.2 || ^24.15.0 || >=26.0.0. On Node 20 the
vitest jsdom environment fails to load — jsdom's undici calls
webidl.util.markAsUncloneable, which does not exist there — so every fork
worker dies at startup and the browser-mutation job reports "no tests" with 0%
coverage (see the failure on dependabot PR #137).

Node 20 is also past end-of-life, so pin both CI jobs to Node 22 (latest 22.x
is v22.23.1, above jsdom's floor) rather than holding the dev dependency back,
and align the SDK's engines field and the documented prerequisites.

Verified against a scratch install of jsdom 30.0.1 on Node 22: 10 test files /
103 tests pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@wolpert
wolpert enabled auto-merge (rebase) July 29, 2026 13:53
@wolpert
wolpert merged commit fd7dbd0 into main Jul 29, 2026
8 checks passed
@wolpert
wolpert deleted the chore/node-22-baseline branch July 29, 2026 13:53
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