Adventures in Nodeland - Issue #16
Hey Folks! Last week I have been on a nearby beach with Zoe relaxing, so not much Open Source time… but I still have a few goodies to show! Check them out.
EcmaScript 2021 has been approved and it contains a few features I love. WeakRefs and FinalizationRegistry are a fundamental stepping stone to implement old & new APIs in a safe and not memory-leaking way. I can’t wait to use them more… and you can now because they are already in Node.js v14+. We use them in Undici v4 to make sure we do not leak memory on an edge case: https://github.com/nodejs/undici/blob/0f5637d6194c8662f707158b3973c4cdd92404de/lib/compat/dispatcher-weakref.js.
News from the Interwebs
Fastify
A couple of weeks ago I was wondering if we could automatically generate a GraphQL schema based on Fastify route definition… and it’s possible. Check out mercurius-auto-schema.
fastify-http-proxy and fastify-reply-from have been bumped to v6.0.0 that drops support for Node.js v10 and move them to Undici v4.
Thanks
This edition has been shorter than usual, and I have much less to share. I hope you like it nevertheless!