diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b00276..5395d92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.taprc b/.taprc index 80c446d..343ddd5 100644 --- a/.taprc +++ b/.taprc @@ -1,4 +1,3 @@ -coverage: false - +disable-coverage: true files: - test/**/*.test.js diff --git a/package.json b/package.json index 58c66c2..72f049c 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/test/basic.test.js b/test/basic.test.js index cc8bd62..c55016d 100644 --- a/test/basic.test.js +++ b/test/basic.test.js @@ -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') )