Closed mikemaccana closed 4 years ago
I think it can with some less feature (I'm not sure I can tweak the order of execution that this PR https://github.com/fastify/fastify/pull/2286 added).
Adjusting the preParsing
hook interface I get # failed 4 of 14 tests
.
I will try to arrange a version for it.
I have released fastify-raw-body@fastify-2
aka fastify-raw-body@2.0.0
(the @latest
tag will continue to support fastify v3, I'm going to release a v3 to fix this versioning)
Let me know if you have any trouble 👍
Thanks! I'm playing with it today.
This seems fine (we have a major release coming up, but should be able to pout this into production soon afterward) - it would be great to have TypeScript types but it seems to be working. 🙂
Thanks for the feedback!
🚀 Feature Proposal
Currently V2 of Fastify is considered the stable release. Using
fastify-raw-body
in V2 will however result in the error:It looks like this plugin is only for V3.
Is it possible to make
fastify-raw-body
work on Fastify V2?Motivation
There's a lot of Fastify V2 out there, and it will be a while before V3 is everywhere.
Thanks!