From ad204682b0f3f682668869517f351c6b0ad04736 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 1 Oct 2024 18:15:16 +0100 Subject: [PATCH] feat!: support fastify v5.x BREAKING CHANGE: dropped support for fastify v4.x --- README.md | 2 +- package.json | 4 ++-- src/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cfe9cfc..ac44ed1 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Install using `npm`: npm i fastify-disablecache ``` -For Fastify v3.x support, use `fastify-disablecache@2.0.8`. +For Fastify v4.x support, use `fastify-disablecache@3.1.9`. ## Example usage diff --git a/package.json b/package.json index b4498fe..56ca736 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "eslint-plugin-promise": "^6.1.1", "eslint-plugin-regexp": "^2.2.0", "eslint-plugin-security": "^2.1.1", - "fastify": "^4.26.1", + "fastify": "^5.0.0", "husky": "^9.0.11", "jest": "^29.7.0", "license-checker": "^25.0.1", @@ -89,6 +89,6 @@ "upath": "^2.0.1" }, "dependencies": { - "fastify-plugin": "^4.5.1" + "fastify-plugin": "^5.0.1" } } diff --git a/src/index.js b/src/index.js index 17bc470..a868278 100644 --- a/src/index.js +++ b/src/index.js @@ -20,7 +20,7 @@ async function fastifyDisablecache(server) { } module.exports = fp(fastifyDisablecache, { - fastify: "4.x", + fastify: "5.x", name: "fastify-disablecache", }); // CommonJS export module.exports.default = fastifyDisablecache; // ESM default export