Skip to content

Commit

Permalink
chore: bumps fastify from 4.x to 5.x (#272)
Browse files Browse the repository at this point in the history
Co-authored-by: Cedric Lionnet <c.lionnet@myunisoft.fr>
  • Loading branch information
cedlio and Cedric Lionnet authored Oct 16, 2024
1 parent 77ef5be commit 6b90bdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/build-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function buildPlugin(Client, pluginOpts) {
}

const plugin = fp(FastifySecretsPlugin, {
fastify: '4.x',
fastify: '5.x',
...pluginOpts
})
plugin.Client = Client
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion test/build-plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6b90bdc

Please sign in to comment.