From 6b90bdcb96edc85fb428219916fa0e297be61faf Mon Sep 17 00:00:00 2001 From: AKnightWhoSaysNi Date: Wed, 16 Oct 2024 10:09:29 +0200 Subject: [PATCH] chore: bumps fastify from 4.x to 5.x (#272) Co-authored-by: Cedric Lionnet --- lib/build-plugin.js | 2 +- package.json | 2 +- test/build-plugin.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/build-plugin.js b/lib/build-plugin.js index efe7769..b3378f9 100644 --- a/lib/build-plugin.js +++ b/lib/build-plugin.js @@ -90,7 +90,7 @@ function buildPlugin(Client, pluginOpts) { } const plugin = fp(FastifySecretsPlugin, { - fastify: '4.x', + fastify: '5.x', ...pluginOpts }) plugin.Client = Client diff --git a/package.json b/package.json index 25c0563..24f7a6b 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "node": ">= 12.13.0" }, "dependencies": { - "fastify-plugin": "^4.0.0", + "fastify-plugin": "^5.0.1", "p-map": "^4.0.0", "p-props": "^4.0.0" }, diff --git a/test/build-plugin.test.js b/test/build-plugin.test.js index 478b5c3..2c335fd 100644 --- a/test/build-plugin.test.js +++ b/test/build-plugin.test.js @@ -32,7 +32,7 @@ test('builds a fastify plugin', async (t) => { const opts = fp.firstCall.args[1] - t.equal(opts.fastify, '4.x', 'adds option for fastify support') + t.equal(opts.fastify, '5.x', 'adds option for fastify support') t.equal(opts.option, 'option1', 'forward provided options') t.equal(plugin.Client, Client, 'also exports client')