Adventures in Nodeland logo

Adventures in Nodeland

Subscribe
Archives
October 17, 2022

Adventures in Nodeland

Hi Folks, I’m super excited that I will try starting a live coding channel on Twitch: I’ll be live next Thursday at 16:00 UTC! This edition packs a few releases and articles I found interesting!

matteocollina Schedule - Twitch
matteocollina Schedule - Twitch
Check out matteocollina stream schedule, and set reminders so you don’t miss out!
www.twitch.tv

The talk recordings of NodeConf.eu are now available on YouTube! Here is mine:

I would never use an ORM - Matteo Collina | NodeConf EU 2022
I would never use an ORM - Matteo Collina | NodeConf EU 2022

On November 10th I will speak at JetBrains JavaScript Day 2022 and present Platformatic DB!

JetBrains JavaScript Day 2022 | JetBrains: Developer Tools for Professionals and Teams
JetBrains JavaScript Day 2022 | JetBrains: Developer Tools for Professionals and Teams
JetBrains JavaScript Day is a free online event with talks about JavaScript and related technologies. Join us on November 10!
www.jetbrains.com

Releases

  1. watch mode
  2. add default value option to parsearg
  3. Early Hints support
  4. Improve the performance of AbortSignal by making it non-transferable
Node v18.11.0 (Current) | Node.js
Node v18.11.0 (Current) | Node.js
This Node.js release include a few new features:
  1. watch mode
  2. add default value option to parsearg
  3. Early Hints support
  4. Improve the performance of AbortSignal by making it non-transferable
nodejs.org
  • @fastify/http-proxy v7.2.0 backports the fix to handle variable in prefixed paths in the v7.x release line (for Fastify v3.x).
  • @fastify/session v10.0.1 sets the domain when clearing the cookie.
  • @fastify/autoload v5.4.1 fixes support for vitest and babel-node with TS files.
  • @fastify/schedule v3.0.2 makes pre-commit a devDependency to prevent it from being transitively installed. v4.0.0 updates to toad-scheduler v2.0.0.
  • pino-elasticsearch v6.3.0 adds connection resurrect on split destroy.
  • fastify-plugin v4.3.0 adds an option to control encapsulation.
  • point-of-view v7.1.1 catches async errors in the eta template language.
  • mercurius-integration-testing v6.0.0 updates to Mercurius 11.
  • mercurius-cache v3.0.1 updates async-cache-dedupe to fix a memory leak.
  • fastify-swagger-ui v1.1.1 llow to define route log level.
  • fastify-helmet v10.0.2 sets the minimum fastify version.
  • fastify v4.9.0 adds support different content-type responses in the schema definition, it also adds validation for hook functions.
  • pino-socket v7.3.0 allow to set max udp packet size.

Articles I found interesting

Did you know you can support ESM named imports without converting your module to ESM? It’s extremely simple and it improves the developer experience of ESM users without breaking your existing commonjs users. Read up the excellent explanation:

How to write CommonJS exports that can be name-imported from ESM
This blog post explores how to write CommonJS modules so that their exports can be name-imported from ESM modules on Node.js. How to import CommonJS modules from ESM modules   This is what the Node.js documentation says about this topic:
2ality.com

TypeScript is already 10 years old? It’s almost incredible! Read up this reflection from the TS team:

Ten Years of TypeScript
Ten Years of TypeScript
Today is TypeScript’s birthday! But this birthday is a special one – 10 years ago today, on October 1st, 2012, TypeScript was unveiled publicly for the first time. The Early Days
devblogs.microsoft.com

How many deadlines have you met? How many did you not meet?

Why deadlines are pointless and what to do instead
Deadlines are the bane of every software engineer’s existence. We’ve all been there: the project is “due” in two weeks, and we’re nowhere near done. So we pull all-nighters, do poor testing, and cut corners just to get it done.
lucasfcosta.com

In the span of a few months, the lerna project “died” (read https://blog.nrwl.io/lerna-is-dead-long-live-lerna-61259f97dbd9) and is now reborn!

Lerna reborn — What’s new in v6?
Lerna reborn — What’s new in v6?
Lerna v6 is out!!
blog.nrwl.io
How to Implement Logging in a Node.js Application With Pino-logger | CSS-Tricks
How to Implement Logging in a Node.js Application With Pino-logger | CSS-Tricks
Logging, on its own, is a key aspect of any application. Logging helps developers comprehend what it is that their code is doing. It also helps save developers hours of debugging work.
css-tricks.com
How to Implement Logging in a Node.js Application With Pino-logger | CSS-Tricks
How to Implement Logging in a Node.js Application With Pino-logger | CSS-Tricks
Logging, on its own, is a key aspect of any application. Logging helps developers comprehend what it is that their code is doing. It also helps save developers hours of debugging work.
css-tricks.com
Don't miss what's next. Subscribe to Adventures in Nodeland:
GitHub X YouTube LinkedIn