Skip to content

Commit

Permalink
feat: support fastify v5
Browse files Browse the repository at this point in the history
Fixes Fastify 5 support #726
  • Loading branch information
dnlup committed Nov 28, 2024
1 parent a130419 commit 552aac5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -29,6 +29,9 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Test on current fastify version
run: npm it
- name: Test on fastify version 4
run: npm i && npm i fastify@4 && npm t

lint:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const fastifySentry = function (fastify, opts, next) {

module.exports = fp(fastifySentry, {
name: '@immobiliarelabs/fastify-sentry',
fastify: '5.x',
fastify: '>=4.x',
});
module.exports.default = fastifySentry;
module.exports.fastifySentry = fastifySentry;

0 comments on commit 552aac5

Please sign in to comment.