Skip to content

Upgrade Node.js to 22.22.2 (Active LTS)#265

Merged
dfalling merged 1 commit intomainfrom
fix/node-22
Mar 30, 2026
Merged

Upgrade Node.js to 22.22.2 (Active LTS)#265
dfalling merged 1 commit intomainfrom
fix/node-22

Conversation

@dfalling
Copy link
Copy Markdown
Owner

Summary

  • Upgrades Node.js from 18.12.0 (EOL April 2025) to 22.22.2 (Active LTS)
  • Fixes a bundling failure caused by @rollup/plugin-terser@1.0.0 using serialize-javascript@7.x, which calls crypto.getRandomValues() at load time in worker threads — a global not exposed in Node 18 worker threads
  • Both @rollup/plugin-terser@1.0.0 and serialize-javascript@7.x declare engines: { "node": ">=20.0.0" }, so this was the correct fix

Test plan

  • npm run lint — no errors
  • npm run bundle — completes without the ReferenceError: crypto is not defined error

🤖 Generated with Claude Code

Node 18 reached end-of-life in April 2025. Node 22 is Active LTS and
fixes a crypto availability issue in worker threads that caused
`@rollup/plugin-terser` to fail during bundling on Node 18.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dfalling dfalling merged commit 17ef83b into main Mar 30, 2026
4 checks passed
@dfalling dfalling deleted the fix/node-22 branch March 30, 2026 22:42
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