View profile

React v18 and other Adventures in Nodeland - Issue #54

Matteo Collina
Matteo Collina
Hi Everyone! This new edition include fewer releases but a lot of linked articles. My favorite? How we implemented API Caching at scale using AWS CloudFront. Have an amazing week!

Next week NearForm will host hits first GraphQL event! Check it out, it’s free:
Untangling GraphQL
As you probably now, I’ll be delivering a keynote at OpenJS World in Austin in June. If you plan to join, it’s time for you to buy a ticket! The early bird ends on April 8th, so it’s a great time to save. Register at https://events.linuxfoundation.org/openjs-world/.
Early bird tickets for OpenJS World will be available up to April 8th
Early bird tickets for OpenJS World will be available up to April 8th
Fastify
Release v4.0.0-alpha.3 · fastify/fastify · GitHub
fastify-session v8.0.0 sports two fundamental additions:
  1. destroy, save and reload to the Session interface https://github.com/fastify/session/pull/77.
  2. Promise-based API https://github.com/fastify/session/pull/78.
Both changed were authored by Simen Bekkhus of Jest fame:
Release v8.0.0 · fastify/session · GitHub
find-my-way v5.3.0 (Fastify router) now ships with a new feature to support double colons within parametric routes: https://github.com/delvedor/find-my-way/pull/242.
Release v5.3.0 · delvedor/find-my-way · GitHub
Other libraries
The new release of Undici includes a breaking change in the form of an error code change, as well as a few improvements in fetch and mocks! Check it out:
Release v5.0.0 · nodejs/undici · GitHub
Postgrator is my go-to library for running database migrations in Node.js. Turns out it did not support SQLite, so I added it! Check out the PR!
I very often complain about Jest being too intrusive - your tests are not running on Node.js APIs but Jest’s - that’s why I’m thrilled by the work of Nicolo that build an alternative runner for Jest that does not virtualize the host environment. This comes with its own caveats but it’s great:
GitHub - nicolo-ribaudo/jest-light-runner: A Jest runner that runs tests directly in bare Node.js, without virtualizing the environment.
News
React turns v18! I’m thrilled to see the work done by the React team to implement Suspense for streaming SSR applications, enabling new architectures and better user experiences, check it out:
React v18.0 – React Blog
Supabase started shipping its new GraphQL Layer. Check it out:
GraphQL is now available in Supabase
How would you cache API responses on AWS CloudFront? Read up this fascinating tutorial for the kind of problems our teams face at NearForm:
Caching with Fastify and AWS Cloudfront - NearForm
Every few years somebody comes up with the idea of bundling the most popular JavaScript frameworks inside the browsers. TL;DR It’s really a bad idea. For a longer explanation read the following article:
I’m a fan of Fly.io, a new cloud infrastructure company that is set to make building amazing software incredibly easy (compared to AWS). They were having an hard time in scaling their Consul deployment and… read up the rest if you are a fan of distributed systems like me.
A Foolish Consistency: Consul at Fly.io
How can you become a more effective leader? By keeping a journal. I have not tried this yet, but it’s very intriguing:
Leadership journal: become an inspiring leader in 10 minutes a day
Did you enjoy this issue? Yes No
Matteo Collina
Matteo Collina @matteocollina

I write about my journey as a core contributor of Node.js, as an author and a maintainer of many modules - including Fastify and Pino. In addition, I speak at conferences, and I will add links to all my talks in case you missed one.

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.