immobiliare / fastify-sentry

🚧 Sentry errors handler for fastify that just works! Install, add your DSN and you're good to go!
MIT License
88 stars 12 forks source link

Fastify 5 support #726

Open ivstiv opened 2 weeks ago

ivstiv commented 2 weeks ago

Fastify 5 has been released, I've tried this library with it, but I get the following error:

Installed version: "@immobiliarelabs/fastify-sentry": "^8.0.1"

FastifyError [Error]: fastify-plugin: @immobiliarelabs/fastify-sentry - expected '4.x' fastify version, '5.0.0' is installed
    at Object.checkVersion (/app/node_modules/.pnpm/fastify@5.0.0/node_modules/fastify/lib/pluginUtils.js:125:11)
    at Object.registerPlugin (/app/node_modules/.pnpm/fastify@5.0.0/node_modules/fastify/lib/pluginUtils.js:148:16)
    at Boot.override (/app/node_modules/.pnpm/fastify@5.0.0/node_modules/fastify/lib/pluginOverride.js:28:57)
    at Boot._loadPlugin (/app/node_modules/.pnpm/avvio@9.0.0/node_modules/avvio/boot.js:425:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'FST_ERR_PLUGIN_VERSION_MISMATCH',
  statusCode: 500
}

Can you add support for Fastify v5?

dnlup commented 1 week ago

Hey @ivstiv , yes support for fastify 5 is on our roadmap. We'll try to add it as soon as possible