Skip to content

chore: require Node.js 22.1 or newer - #449

Merged
stevenjoezhang merged 1 commit into
masterfrom
agent/drop-node20-support
Aug 13, 2026
Merged

chore: require Node.js 22.1 or newer#449
stevenjoezhang merged 1 commit into
masterfrom
agent/drop-node20-support

Conversation

@stevenjoezhang

Copy link
Copy Markdown
Member

What does it do?

  • Raises the minimum supported Node.js version to 22.1.0.
  • Updates the test matrix to Node.js 22, 24, and 26 across Linux, Windows, and macOS.
  • Updates the Node.js type definitions to the Node 22 line.

Why is it needed?

Node.js 20 has reached end of life. Node.js 22.1.0 is also the first Node 22 release that provides the non-throwing WHATWG URL.parse() API, which will allow a focused follow-up to remove the remaining legacy url.parse() calls discussed in hexojs/hexo#3846.

Users running Node.js 18 or 20 will need to upgrade before adopting the next release containing this change.

Checks

  • npm test on Node.js 26: 257 passing
  • npm run eslint
  • TypeScript build and 257 tests on Node.js 22.1.0

@stevenjoezhang
stevenjoezhang marked this pull request as ready for review August 12, 2026 19:24
@SukkaW

SukkaW commented Aug 12, 2026

Copy link
Copy Markdown
Member

Do remember this is a breaking change though.

@stevenjoezhang
stevenjoezhang merged commit 71bcadd into master Aug 13, 2026
25 of 26 checks passed
@stevenjoezhang
stevenjoezhang deleted the agent/drop-node20-support branch August 13, 2026 01:24
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.

2 participants