nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
67.29k stars 7.59k forks source link

Fastify 4.0 support #9745

Closed And2s closed 2 years ago

And2s commented 2 years ago

Is there an existing issue that is already proposing this?

Is your feature request related to a problem? Please describe it

It throws error FastifyError: fastify-plugin: @fastify/helmet - expected '4.x' fastify version, '3.29.0' is installed when fastify 4.0 installed along with e.g. @fastify/helmet 9.1.0

Without using helmet package, it works fine. I've tested with @nestjs/platform-fastify 9.0.0-next.1.

Describe the solution you'd like

Support Fastify 4.0. It was released today. https://medium.com/@fastifyjs/fastify-v4-ga-59f2103b5f0e

Teachability, documentation, adoption, migration strategy

...

What is the motivation / use case for changing the behavior?

...

micalevisk commented 2 years ago

it will be supported in v9: #9588

Tony133 commented 2 years ago

see also this PR https://github.com/nestjs/nest/pull/9746