From dbd115470accd094b370ce4e455a8739096aa9f0 Mon Sep 17 00:00:00 2001 From: Timo Stamm Date: Mon, 4 Nov 2024 12:07:26 +0100 Subject: [PATCH] Support Fastify 5 in @connectrpc/connect-fastify Signed-off-by: Timo Stamm --- .github/workflows/conformance-fastify.yaml | 3 ++- package-lock.json | 4 ++-- packages/connect-fastify/package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conformance-fastify.yaml b/.github/workflows/conformance-fastify.yaml index 150cdfa46..92f8fcf43 100644 --- a/.github/workflows/conformance-fastify.yaml +++ b/.github/workflows/conformance-fastify.yaml @@ -21,7 +21,8 @@ jobs: strategy: fail-fast: false matrix: - node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1] + # Fastify v5 only supports Node.js v20+ + node-version: [22.7.0, 20.17.0] name: "Node.js ${{ matrix.node-version }}" timeout-minutes: 10 steps: diff --git a/package-lock.json b/package-lock.json index 7e2e04ce7..424ffaea7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16426,7 +16426,7 @@ "@bufbuild/protobuf": "^2.2.0", "@connectrpc/connect": "2.0.0-rc.2", "@connectrpc/connect-node": "2.0.0-rc.2", - "fastify": "^4.22.1" + "fastify": "^4.22.1 || ^5.1.0" } }, "packages/connect-migrate": { @@ -16465,7 +16465,7 @@ "@bufbuild/protobuf": "^2.2.0", "@connectrpc/connect": "2.0.0-rc.2", "@connectrpc/connect-node": "2.0.0-rc.2", - "next": "^13.2.4 || ^14.2.5" + "next": "^13.2.4 || ^14.2.5 || ^15.0.2" } }, "packages/connect-node": { diff --git a/packages/connect-fastify/package.json b/packages/connect-fastify/package.json index 6604ffa3e..b90dc7ff0 100644 --- a/packages/connect-fastify/package.json +++ b/packages/connect-fastify/package.json @@ -37,7 +37,7 @@ }, "peerDependencies": { "@bufbuild/protobuf": "^2.2.0", - "fastify": "^4.22.1", + "fastify": "^4.22.1 || ^5.1.0", "@connectrpc/connect": "2.0.0-rc.2", "@connectrpc/connect-node": "2.0.0-rc.2" }