Skip to content

Commit

Permalink
Bump to Fastify v5
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Sep 6, 2024
1 parent 91edbd0 commit d433ee5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"close-with-grace": "^2.1.0",
"commist": "^3.0.0",
"dotenv": "^16.0.0",
"fastify": "^4.26.1",
"fastify-plugin": "^4.0.0",
"fastify": "^5.0.0-alpha.4",
"fastify-plugin": "^5.0.0",
"generify": "^4.0.0",
"help-me": "^4.0.1",
"is-docker": "^2.0.0",
Expand All @@ -71,9 +71,9 @@
"yargs-parser": "^21.1.1"
},
"devDependencies": {
"@fastify/autoload": "^5.0.0",
"@fastify/autoload": "^6.0.0",
"@fastify/pre-commit": "^2.0.2",
"@fastify/sensible": "^5.0.0",
"@fastify/sensible": "^6.0.0",
"@types/node": "^22.1.0",
"@types/tap": "^15.0.5",
"c8": "^10.1.2",
Expand Down
4 changes: 2 additions & 2 deletions templates/app-ts-esm/src/plugins/sensible.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import fp from 'fastify-plugin'
import sensible, { SensibleOptions } from '@fastify/sensible'
import sensible, { FastifySensibleOptions } from '@fastify/sensible'

/**
* This plugins adds some utilities to handle http errors
*
* @see https://github.com/fastify/fastify-sensible
*/
export default fp<SensibleOptions>(async (fastify) => {
export default fp<FastifySensibleOptions>(async (fastify) => {
fastify.register(sensible)
})
4 changes: 2 additions & 2 deletions templates/app-ts/src/plugins/sensible.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import fp from 'fastify-plugin'
import sensible, { SensibleOptions } from '@fastify/sensible'
import sensible, { FastifySensibleOptions } from '@fastify/sensible'

/**
* This plugins adds some utilities to handle http errors
*
* @see https://github.com/fastify/fastify-sensible
*/
export default fp<SensibleOptions>(async (fastify) => {
export default fp<FastifySensibleOptions>(async (fastify) => {
fastify.register(sensible)
})

0 comments on commit d433ee5

Please sign in to comment.