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
remove app.use and fix middleware tests #3506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this part of code
Lines 108 to 115 in a174829
/** | |
* Middlewares | |
*/ | |
FST_ERR_MISSING_MIDDLEWARE: createError( | |
'FST_ERR_MISSING_MIDDLEWARE', | |
'You must register a plugin for handling middlewares, visit fastify.io/docs/latest/Middleware/ for more info.', | |
500 | |
), |
For the TypeScript error, it must be fixed in pino
side.
Yeah that's why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I forgot to change |
Just remove it. Make sure of
|
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
Is there anything more I can add/change here? |
- add links to `middie` and `fastify-express`. - add documentation link to fastify hooks. Co-authored-by: KaKa <climba03003@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Can you rebase on top of next? CI is failing in this PR for unrelated things |
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
- add links to `middie` and `fastify-express`. - add documentation link to fastify hooks. Co-authored-by: KaKa <climba03003@gmail.com>
Pulled |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
fix #3502
Deprecation of
app.use()
in next release.app.use()
.Checklist
npm run test
andnpm run benchmark
and the Code of conduct