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

chore: update min fastify version #190

Merged
merged 2 commits into from
Aug 8, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

const globals = require('globals')
const js = require('@eslint/js')
const prettier = require('eslint-plugin-prettier/recommended')

module.exports = [
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
},
},
js.configs.recommended,
prettier,
]
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function fastifyRequestContext(fastify, opts, next) {
}

module.exports = fp(fastifyRequestContext, {
fastify: '4.x',
fastify: '5.x',
name: '@fastify/request-context',
})
module.exports.default = fastifyRequestContext
Expand Down
2 changes: 1 addition & 1 deletion test/internal/watcherService.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class AsyncHookContainer {
const check = (t) => {
try {
return checkedTypes.includes(t)
} catch (err) {
} catch {
return false
}
}
Expand Down