Closed hellower closed 1 year ago
Hi, that's good find. Do you want to make a PR that will handle this issue?
I can send a PR tomorrow
This can be fixed after fastify releases next version, but it will break TS builds for older 4.x fastify versions. Would you consider that a semver major?
Yes, it will be major version bump just to be sure that potential breaking changes wouldn't affect current setups.
Fixed in v10. Thanks @kibertoad.
(node:3218427) [FSTDEP012] FastifyDeprecation: Request#context property access is deprecated. Please use "Request#routeConfig" or "Request#routeSchema" instead for accessing Route settings. The "Request#context" will be removed in
fastify@5
.my fastify version 4.7.0