Adventures in Nodeland logo

Adventures in Nodeland

Subscribe
Archives
October 4, 2021

Log Pipelines, Vite and other Adventures in Nodeland - Issue #29

Hi Everyone! Last week have been incredibly busy between NodeConf preparations, the upcoming Pino@7 release and Node.js maintenance.

NodeConf Remote · Europe's largest Node.js conference
NodeConf Remote · Europe's largest Node.js conference
NodeConf Remote brings speakers and devs from across the globe together for 4 full days of talks and workshops centred around the Node.js framework.
www.nodeconfremote.com
NodeConf Remote · Europe's largest Node.js conference
NodeConf Remote · Europe's largest Node.js conference
NodeConf Remote brings speakers and devs from across the globe together for 4 full days of talks and workshops centred around the Node.js framework.
www.nodeconfremote.com

If you like this newsletter, you should watch NodeConf Remote! Register using the above link, it’s free.

Pino

The work on pino@7 keep progressing smoothly. This time we identified a missing feature: transports must be pipelineable. It’s a common pattern to wire them next to each other and combine them as needed. I worked hard to implement this feature - in fact I tumbled on this making some silly mistakes in the process and it took most of my coding time for the week to get right. Now it is out in pino@7.0.0-rc.8 and I’m so excited about it. I hope I will be able to launch pino@7 at NodeConf remote!

Transport pipeline by mcollina · Pull Request #1143 · pinojs/pino · GitHub
Transport pipeline by mcollina · Pull Request #1143 · pinojs/pino · GitHub
Fixes #1142
github.com
Transport pipeline by mcollina · Pull Request #1143 · pinojs/pino · GitHub
Transport pipeline by mcollina · Pull Request #1143 · pinojs/pino · GitHub
Fixes #1142
github.com

Fastify

I have been excited about Vite since the day it was first released to the public. I can’t be more excited to show you the new documentation site for fastify-vite. This new fastify plugin includes all you need to do server-side rendering with a breeze, using Fastify and Vite. Jonas is going to present a workshop about it at NodeConf Remote!

Check it out:

Fastify plugin for Vite integration | fastify-vite
Fastify plugin for Vite integration | fastify-vite
Fastify plugin for Vite integration
fastify-vite.dev
Fastify plugin for Vite integration | fastify-vite
Fastify plugin for Vite integration | fastify-vite
Fastify plugin for Vite integration
fastify-vite.dev

Mercurius GraphQL

I have been researching/studying the topic of validation for GraphQL for a few projects already and I came to the conclusion that no existing solutions worked well enough for the developer experience I wanted to achieve. The new mercurius-validation module built by Jonny does it all in the way I would use it!

GitHub - mercurius-js/validation
GitHub - mercurius-js/validation
Contribute to mercurius-js/validation development by creating an account on GitHub.
github.com
GitHub - mercurius-js/validation
GitHub - mercurius-js/validation
Contribute to mercurius-js/validation development by creating an account on GitHub.
github.com

News!

Announcing TypeScript 4.5 Beta
Announcing TypeScript 4.5 Beta
Daniel Today we are excited to announce the beta release of TypeScript 4.5! To get started using the beta, you can get it through NuGet, or use npm with the following command:
devblogs.microsoft.com
Announcing TypeScript 4.5 Beta
Announcing TypeScript 4.5 Beta
Daniel Today we are excited to announce the beta release of TypeScript 4.5! To get started using the beta, you can get it through NuGet, or use npm with the following command:
devblogs.microsoft.com

The most important news in Nodeland this week is TypeScript v4.5 beta: it finally provide a solution to the TypeScript and native ESM problem.. go read the announcement!

I read the above story on twitter and it resonated well with my own experiences: the problems at a tech company are almost never tech-related but people-related. Make sure to read it if a shiny new startup offers you a gig!

One of the most important product launches of last week was CloudFlare entering the block storage market with R2! Cheaper-than-S3 storage for all of you! Where is the catch? You have to script it with Workers instead of Lambda.

Announcing Cloudflare R2 Storage: Rapid and Reliable Object Storage, minus the egress fees
Announcing Cloudflare R2 Storage: Rapid and Reliable Object Storage, minus the egress fees
We’re excited to announce Cloudflare R2 Storage! By giving developers the ability to store large amounts of unstructured data, we’re expanding what’s possible with Cloudflare while slashing the egress bandwidth fees associated with typical cloud storage services to zero.
blog.cloudflare.com
Announcing Cloudflare R2 Storage: Rapid and Reliable Object Storage, minus the egress fees
Announcing Cloudflare R2 Storage: Rapid and Reliable Object Storage, minus the egress fees
We’re excited to announce Cloudflare R2 Storage! By giving developers the ability to store large amounts of unstructured data, we’re expanding what’s possible with Cloudflare while slashing the egress bandwidth fees associated with typical cloud storage services to zero.
blog.cloudflare.com

Have you ever implemented authorization logic for your product? I guess all of us have more than once. SpiceDB is a new Open Source product from Authzed that you can help reducing that work load. Check it out:

GitHub - authzed/spicedb: A Zanzibar-inspired database that stores, computes, and validates application permissions
GitHub - authzed/spicedb: A Zanzibar-inspired database that stores, computes, and validates application permissions
A Zanzibar-inspired database that stores, computes, and validates application permissions - GitHub - authzed/spicedb: A Zanzibar-inspired database that stores, computes, and validates application permissions
github.com
GitHub - authzed/spicedb: A Zanzibar-inspired database that stores, computes, and validates application permissions
GitHub - authzed/spicedb: A Zanzibar-inspired database that stores, computes, and validates application permissions
A Zanzibar-inspired database that stores, computes, and validates application permissions - GitHub - authzed/spicedb: A Zanzibar-inspired database that stores, computes, and validates application permissions
github.com

Undici is in the news! The new fetch-compliant implementation we shipped a few weeks back is being cited as one of the key example of the new Web Streams API for Node.js. Read the article to know more:

Web Streams Everywhere (and Fetch for Node.js) | CSS-Tricks
Web Streams Everywhere (and Fetch for Node.js) | CSS-Tricks
Chrome developer advocate Jake Archibald called 2016 “the year of web streams.” Clearly, his prediction was somewhat premature. The Streams Standard was
css-tricks.com
Web Streams Everywhere (and Fetch for Node.js) | CSS-Tricks
Web Streams Everywhere (and Fetch for Node.js) | CSS-Tricks
Chrome developer advocate Jake Archibald called 2016 “the year of web streams.” Clearly, his prediction was somewhat premature. The Streams Standard was
css-tricks.com

I’m a huge fan of the micro frontend pattern and I really enjoy when the companies share their internal knowledge. One thing I would love to see is some code to implement this pattern: why don’t they Open Source their internal frameworks? Anyway, read up the Netflix experience:

How We Build Micro Frontends With Lattice
Written by Michael Possumato, Nick Tomlin, Jordan Andree, Andrew Shim, and Rahul Pilani. As we continue to grow here at Netflix, the needs of Revenue and Growth Engineering are rapidly evolving; and our tools must also evolve just as rapidly.
netflixtechblog.com

Last but not least, PostgreSQL v14 was released! This new release packs quite a few updates - if you use PostgreSQL as your go-to database for most workloads, check it out:

PostgreSQL: PostgreSQL 14 Released!
PostgreSQL: PostgreSQL 14 Released!
The PostgreSQL Global Development Group today announced the release of PostgreSQL 14, the latest version of the world’s [most advanced …
www.postgresql.org

Thanks

I would like to thank you all for the continuous streams of thanks and encouragement I get from producing this newsletter. We have now reached 1111 subscribers! Thanks to all of you and let me know what you think of this news-packed issue.

Don't miss what's next. Subscribe to Adventures in Nodeland:
GitHub X YouTube LinkedIn