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 a5b1a57 commit ad20468
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 @@ -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

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 @@ -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
Expand Down

0 comments on commit ad20468

Please sign in to comment.