-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fill Migration-Guide-V4.md #3988
Comments
Few questions related to the breaking changes:
|
I too am confused about Since routes like this still function?
|
Yes, and you can also do the following. fastify.get('/', async function(request, reply) {
return reply.view('index')
}) |
There are advanced cases for which it's still needed, but the majority of users should not use it.
only
You can just await the last one
All other options are still there |
function (request, reply) {
reply.send('foo')
}
// is different than
async function (request, reply) {
return reply.send('foo')
} |
One thing that's unclear to me from the Medium post is whether it's possible to migrate to Fastify v4 without converting your entire app to ESM? Based on the new way plugins are shown to be imported |
No. We are not ESM only and likely never will be. |
So i've almost completed a migration of one API from v3 to v4. I think what is already in the migration guide, as well as what is in the Medium post, covers the majority of changes. The documentation around the changes to the error handler need to be expanded though, as I ran into the same issue as #3959 with checking |
Prerequisites
馃殌 Feature Proposal
As titled, it's currently missing all the content of the release blog post https://medium.com/@fastifyjs/fastify-v4-ga-59f2103b5f0e
Motivation
No response
Example
No response
The text was updated successfully, but these errors were encountered: