Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumps Fastify from 3.x to 4.x #191

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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: '3.x',
fastify: '4.x',
...pluginOpts
})
plugin.Client = Client
Expand Down
3 changes: 1 addition & 2 deletions 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": "^3.0.0",
"fastify-plugin": "^3.0.1",
"p-map": "^4.0.0",
"p-props": "^4.0.0"
},
Expand All @@ -43,7 +43,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-standard": "^5.0.0",
simoneb marked this conversation as resolved.
Show resolved Hide resolved
"husky": "^8.0.0",
"lint-staged": "^13.0.0",
"prettier": "^2.1.2",
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, '3.x', 'adds option for fastify support')
t.equal(opts.fastify, '4.x', 'adds option for fastify support')
t.equal(opts.option, 'option1', 'forward provided options')

t.equal(plugin.Client, Client, 'also exports client')
Expand Down