Skip to content

feat!: drop support for Node.js 20 and 22 - #116

Open
mcollina wants to merge 1 commit into
mainfrom
feat/fastify-v6
Open

mcollina wants to merge 1 commit into
mainfrom
feat/fastify-v6

Conversation

@mcollina

@mcollina mcollina commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Starts the next major of @fastify/forwarded (3.1.2 → 4.0.0) for the fastify v6 rollout (fastify/fastify#6834).

  • Breaking: CI moves to fastify/workflows v7.2.0, which tests on Node.js 24 and 26 only, so Node.js 20 and 22 are no longer supported. fastify v6 requires Node.js 24.
  • .npmrc exempts the org's packages from min-release-age until the v6 stable releases are out, so fresh v6 prereleases install right away. Third-party packages keep the 7-day cooldown.

There are no runtime code changes. npm test passes locally on Node.js 24.

Release

  • v3.x was cut from main for 3.x maintenance releases. If main moves before this merges, fast-forward it first: git push origin origin/main:v3.x.
  • After merging, run the release workflow with major to publish 4.0.0 straight to latest, with no release candidate. fastify 5 and the v5 plugins use caret ranges on the current major, so nobody picks up 4.0.0 by accident.
  • Releases from v3.x move to the fastify5 dist-tag in ci(release): publish v3.x releases under the fastify5 dist-tag #117, so they can't take latest back. Merge it before the next v3.x release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Sfj4nEK6BT2fQMtaQ22BnF

Test on Node.js 24 and 26 only, through fastify/workflows v7.2.0, as
part of the fastify v6 rollout. Exempt the org's packages from the npm
release-age cooldown until the v6 stable releases are out.

BREAKING CHANGE: Node.js 20 and 22 are no longer supported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sfj4nEK6BT2fQMtaQ22BnF
@mcollina

mcollina commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

@Tony133 could you review this one too? It's the main side of #117, which you merged yesterday. Once it lands I'll release 4.0.0 straight to latest with no rc (it's a leaf library with no fastify dependency), and v3.x keeps shipping patches under the fastify5 tag. fastify/proxy-addr#122 is waiting on it.

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants