From 835259cf3659fcfca3e58161bde5ecfa832954f9 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 3 Dec 2026 11:25:35 +0100 Subject: [PATCH] feat!: drop support for Node.js 20 and 22 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 Claude-Session: https://claude.ai/code/session_01Sfj4nEK6BT2fQMtaQ22BnF --- .github/workflows/ci.yml | 2 +- .npmrc | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31bfa26..0732492 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: permissions: contents: write pull-requests: write - uses: fastify/workflows/.github/workflows/plugins-ci.yml@ef591e2186785d5ab36b9fe6a79c7ce2f1d94e57 # v7.0.0 + uses: fastify/workflows/.github/workflows/plugins-ci.yml@731d0cca9a6a5b9586dad6b0326d49001ab9216f # v7.2.0 with: license-check: true lint: true diff --git a/.npmrc b/.npmrc index 288bb54..723ab5c 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,21 @@ ignore-scripts=true min-release-age=7 package-lock=false + +# fastify v6 rollout: org packages skip the cooldown so fresh prereleases +# install right away. Remove this block in Phase 5. Needs npm >= 11.17. +min-release-age-exclude[]=@fastify/* +min-release-age-exclude[]=fastify +min-release-age-exclude[]=fastify-plugin +min-release-age-exclude[]=avvio +min-release-age-exclude[]=create-fastify +min-release-age-exclude[]=env-schema +min-release-age-exclude[]=fast-content-type-parse +min-release-age-exclude[]=fast-json-stringify +min-release-age-exclude[]=fastify-cli +min-release-age-exclude[]=fluent-json-schema +min-release-age-exclude[]=json-schema-ref-resolver +min-release-age-exclude[]=light-my-request +min-release-age-exclude[]=openapi-schema-diff +min-release-age-exclude[]=process-warning +min-release-age-exclude[]=safe-regex2