Skip to content

Commit

Permalink
feat!: support fastify v5.x
Browse files Browse the repository at this point in the history
BREAKING CHANGE: dropped support for fastify v4.x
  • Loading branch information
Fdawgs committed Oct 2, 2024
1 parent 17451c3 commit 2c51678
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -89,6 +89,6 @@
"upath": "^2.0.1"
},
"dependencies": {
"fastify-plugin": "^4.5.1"
"fastify-plugin": "^5.0.1"
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c51678

Please sign in to comment.