diff --git a/index.js b/index.js index 32e3862..023a495 100644 --- a/index.js +++ b/index.js @@ -99,7 +99,7 @@ function fastifyMiddie (fastify, options, next) { } module.exports = fp(fastifyMiddie, { - fastify: '4.x', + fastify: '5.x', name: '@fastify/middie' }) module.exports.default = fastifyMiddie diff --git a/package.json b/package.json index 9b1365f..5ecf197 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@types/connect": "^3.4.38", "@types/node": "^22.0.0", "cors": "^2.8.5", - "fastify": "^4.26.2", + "fastify": "^5.0.0-alpha.3", "helmet": "^7.1.0", "serve-static": "^1.15.0", "simple-get": "^4.0.1", @@ -50,7 +50,7 @@ }, "dependencies": { "@fastify/error": "^4.0.0", - "fastify-plugin": "^4.5.1", + "fastify-plugin": "^5.0.0-pre.fv5.1", "path-to-regexp": "^6.2.2", "reusify": "^1.0.4" },