Closed jameshfisher closed 2 years ago
Is the recommendation to use @types/micro
instead? It says it's for v7, so two major versions old.
(n.b.: I'm only reluctantly using this package because NextJS has no convenient way to get the request body as a buffer)
@jameshfisher you can use 9.3.5-canary.3
.
@leerob is there a plan to release 9.4.0
?
Thanks @leerob, that's much nicer! 😍
@jameshfisher FYI vercel/next.js#27702 (comment)
If I understand this correctly, then the one caution about this is that you can consume the body only once. Micro uses a WeakMap for caching for this reason.
Closing as this is addressed 🙏
It's not address given that the types aren't released just yet. What's blocking the 9.4.0 release?
Still not released, see Versions: https://www.npmjs.com/package/micro .
The latest npm package is 9.3.4. It seems to have no TypeScript declarations. However, there are TypeScript declarations on the master branch, committed almost 3 years ago.