diff --git a/index.js b/index.js index 576af31..87b2c2b 100644 --- a/index.js +++ b/index.js @@ -75,6 +75,6 @@ function getAuthenticateHeader (authenticate) { } module.exports = fp(basicPlugin, { - fastify: '3.x', - name: 'fastify-basic-auth' + fastify: '4.x', + name: '@fastify/basic-auth' }) diff --git a/package.json b/package.json index 4994678..eccbb3c 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ }, "homepage": "https://github.com/fastify/fastify-basic-auth#readme", "devDependencies": { - "@fastify/auth": "^2.0.0", + "@fastify/auth": "^3.0.0", "@types/node": "^17.0.0", - "fastify": "^3.0.0", + "fastify": "^4.0.0-rc.2", "standard": "^17.0.0", "tap": "^16.0.0", "tsd": "^0.20.0" @@ -37,9 +37,6 @@ "fastify-plugin": "^3.0.0", "http-errors": "^2.0.0" }, - "engines": { - "node": ">=10.0.0" - }, "publishConfig": { "access": "public" }