#Fastify deprecation warning

4 messages · Page 1 of 1 (latest)

iron ferry
#

I updated to "@nestjs/platform-fastify": "10.2.1" version and and "fastify": "4.21.0" and in all http request fastify show this message:

(node:59514) [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.

pure pawn
final igloo
#

@pure pawn this isn't something that an update will fix, this is the fact that us using Request.context is being deprecated and we need to update our code. This was a rather recent addition to our codebase, so we might be able to ask the original implementer to update it

pure pawn
# final igloo <@718538147449012245> this isn't something that an update will fix, this is the ...

but maybe it should fix it if it's very "internal" in fastify, checking anyway and just a warning that the fastify team have added https://github.com/fastify/fastify/pull/5032/files, nothing blocking at the moment, in the I'll take a deeper look this weekend, I don't have much time now.

GitHub

fix #5031

Checklist

run npm run test and npm run benchmark
tests and/or benchmarks are included
documentation is changed or added
commit message and code follows the Developer's Certifica...