Skip to content

Commit

Permalink
Update for Fastify v5 (#199)
Browse files Browse the repository at this point in the history
* ci

* update
  • Loading branch information
gurgunday authored and jsumners committed Jun 18, 2024
1 parent 5fb0eb9 commit 3634efb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
test:
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0
with:
license-check: true
lint: true
3 changes: 1 addition & 2 deletions .taprc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
coverage: false

disable-coverage: true
files:
- test/**/*.test.js
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@
},
"homepage": "https://github.com/fastify/middie#readme",
"devDependencies": {
"@fastify/pre-commit": "^2.0.2",
"@types/connect": "^3.4.33",
"@types/node": "^20.1.0",
"@fastify/pre-commit": "^2.1.0",
"@types/connect": "^3.4.38",
"@types/node": "^20.12.7",
"cors": "^2.8.5",
"fastify": "^4.0.0-rc.2",
"helmet": "^7.0.0",
"serve-static": "^1.14.1",
"simple-get": "^4.0.0",
"standard": "^17.0.0",
"tap": "^16.0.0",
"fastify": "^4.26.2",
"helmet": "^7.1.0",
"serve-static": "^1.15.0",
"simple-get": "^4.0.1",
"standard": "^17.1.0",
"tap": "^18.7.2",
"tsd": "^0.31.0"
},
"dependencies": {
"@fastify/error": "^3.2.0",
"fastify-plugin": "^4.0.0",
"path-to-regexp": "^6.1.0",
"@fastify/error": "^3.4.1",
"fastify-plugin": "^4.5.1",
"path-to-regexp": "^6.2.2",
"reusify": "^1.0.4"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion test/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ test('throw error when registering middie at onRequestAborted hook', async t =>
const fastify = Fastify()
t.teardown(fastify.close)

t.rejects(() => fastify.register(middiePlugin, {
t.rejects(async () => fastify.register(middiePlugin, {
hook: 'onRequestAborted'
}), new FST_ERR_MIDDIE_INVALID_HOOK('onRequestAborted')
)
Expand Down

0 comments on commit 3634efb

Please sign in to comment.