graphql-hooks
graphql-hooks copied to clipboard
chore(deps): Bump fastify from 3.29.0 to 4.2.0
Bumps fastify from 3.29.0 to 4.2.0.
Release notes
Sourced from fastify's releases.
v4.2.0
What's Changed
- docs: add
@​h4ad/serverless-adapterto ecosystem by@​H4adin fastify/fastify#4056- feat: make sure all validation errors have a statusCode set by
@​mcollinain fastify/fastify#4061- docs(ecosystem): add fastify-ssr-vite to community plugins by
@​nineohninein fastify/fastify#4058- Add internal link check action by
@​luisorbaicetain fastify/fastify#4069- hotfix: fix ValidationResult interface (#4045) by
@​alex-lazin fastify/fastify#4070- fix: use ajv for schema ref resolving by
@​ivan-tymoshenkoin fastify/fastify#4049- docs(ecosystem): adding
@eropple/fastify-openapi3to community plugins by@​eropplein fastify/fastify#4067- Remove comments from links check action by
@​mcollinain fastify/fastify#4080- Add lightweight cache plugin to fastify ecosystem by
@​denbon05in fastify/fastify#4079- Add plugin lcache by alphabetic order by
@​denbon05in fastify/fastify#4082- fix: onRoute hook should not be called when it registered after route by
@​climba03003in fastify/fastify#4052- Adds integration CI step by
@​marcelfrancain fastify/fastify#4075- Use a union-aware keyof operator by
@​A5rocksin fastify/fastify#4076- docs: Update TypeScript docs regarding typebox #4073 by
@​dancastilloin fastify/fastify#4077- chore(guide): fulfil error handler and trailers by
@​Eommin fastify/fastify#4087- Make type provider-provided return types be enforced by
@​A5rocksin fastify/fastify#4089- build(deps): bump find-my-way from 6.4.0 to 7.0.0 by
@​dependabotin fastify/fastify#4090- docs: explain common usage for injection into request instances by
@​Mazuhin fastify/fastify#4084New Contributors
@​H4admade their first contribution in fastify/fastify#4056@​nineohninemade their first contribution in fastify/fastify#4058@​alex-lazmade their first contribution in fastify/fastify#4070@​eropplemade their first contribution in fastify/fastify#4067@​denbon05made their first contribution in fastify/fastify#4079@​marcelfrancamade their first contribution in fastify/fastify#4075@​A5rocksmade their first contribution in fastify/fastify#4076@​dancastillomade their first contribution in fastify/fastify#4077@​Mazuhmade their first contribution in fastify/fastify#4084Full Changelog: https://github.com/fastify/fastify/compare/v4.1.0...v4.2.0
v4.1.0
What's Changed
- test: fix request terminated should not crash fastify test by
@​ivan-tymoshenkoin fastify/fastify#4024- Fix port settings for deprecation warnings. by
@​phasetrin fastify/fastify#4042- fix: propagate generics from FastifyRegister to plugin type by
@​stefeein fastify/fastify#4034- chore(.eslintrc): limit eslint config to project by
@​Fdawgsin fastify/fastify#4038- feat: make reply.redirect() and reply.callNotFound() return reply by
@​mcollinain fastify/fastify#4037- fix: fix schema controller types by
@​richiemccollin fastify/fastify#4022- Docs(Reference): remove "Type" from imported name by
@​MomenNanoin fastify/fastify#4043- docs(guides): add two v4 breaking changes by
@​tlhunterin fastify/fastify#4040- docs(guides): breaking change exposeHeadRoutes by
@​Eommin fastify/fastify#4047- test: fix flaky test by
@​climba03003in fastify/fastify#4051- refactor: use object as internal route args by
@​climba03003in fastify/fastify#4054- build(deps-dev): bump
@​types/nodefrom 17.0.45 to 18.0.0 by@​dependabotin fastify/fastify#4055New Contributors
... (truncated)
Commits
977dec0Updated error serialier9ae9fc0docs: common usage for injecting data into request instances (#4084)61d686ebuild(deps): bump find-my-way from 6.4.0 to 7.0.0 (#4090)825a8a4Update error serializer5856a46Make type provider-provided return types be enforced (#4089)6a4b34cchore(guide): fulfil error handler and trailers (#4087)6405c2ddocs: Update TypeScript docs regarding typebox #4073 (#4077)4d1fb5fUse a union-aware keyof operator (#4076)7e6dca0Adds integration CI step (#4075)5bf0f4ffix: onRoute hook should not be called when it registered after route (#4052)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
current state of this...
I updated a lot of direct dependencies and fixed function signatures.
but running:
npm run start:mercurius --prefix ./examples/persisted-queries/server
is raising this error:
(node:93672) UnhandledPromiseRejectionWarning: FastifyError: fastify-plugin: fastify-cors - expected '3.x' fastify version, '4.2.0' is installed
none of these are direct dependencies (they're only listed on -locks as required indirect dependencies):

regarding fastify-cors, it was replaced by @fastify/cors and it's using v8 everywhere here, already supports fastify v4
but regarding fastify-plugin, its v3 don't support fastify v4 and is listed as a requirement for:
- @fastify/cors - merged update, but no release version
- @fastify/static - not even PR yet
- @fastify/websocket - merged update, but no release version
- mercurius - failing PR
considering that fastify-plugin v4 is already using fastify v4, then I'm just working to fix these last indirect dependencies above.
@mcollina, can you give me a suggestion of course of action here? What I'm doing is update these nested dependencies and wait for their release but it seems a lot unnecessary work. I'm not sure if skip-override can help here (not very sure how to use it, to be more specific).
A newer version of fastify exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
@Mazuh any news on this?