diff --git a/README.md b/README.md index 4d39f6d..7f2ae8b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Install using `npm`: npm i fastify-floc-off ``` -For Fastify v3.x support, use `fastify-floc-off@1.0.7`. +For Fastify v4.x support, use `fastify-floc-off@2.1.11`. ## Example usage diff --git a/package.json b/package.json index 46d447f..86c4eb6 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 60d4f46..8d9efc9 100644 --- a/src/index.js +++ b/src/index.js @@ -32,7 +32,7 @@ async function fastifyFlocOff(server) { } module.exports = fp(fastifyFlocOff, { - fastify: "4.x", + fastify: "5.x", name: "fastify-floc-off", }); // CommonJS export module.exports.default = fastifyFlocOff; // ESM default export