From dabd8c4c1947af37dbfb55697bee3be135d3cc82 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 12 May 2022 13:12:19 +0200 Subject: [PATCH] Updated to Fastify v4 Signed-off-by: Matteo Collina --- index.js | 4 ++-- package.json | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) 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" }