Node 18.6 and custom ESM loaders

July 14, 2022 By Mark Otto 0

Node.js Weekly

Custom ESM Loaders: Who, What, When, Where, Why, How? — That’s a lot of questions! Custom loaders aren’t necessarily something you’ll use directly a lot, but are useful behind the scenes for controlling how modules are loaded – this post shows off some examples. Node 18.6 now also provides a mechanism for chaining together multiple such loaders.

Jacob Smith

NestJS v9 Released — Nest is a TypeScript-based server-side framework for when you need a more fleshed out and complete platform to work on (or get support from) than straight Express, say. v9 introduces a handy REPL, a configurable module builder, durable providers, and more.

Kamil Mysliwiec

Never Have to Code Another Notification Template Again — Too many engineering resources are wasted on notification template building and routing rules. Pass this on to Product, Support, and Security. Heck, even if the engineers want to quickly assemble templates: use our UI or JSON based syntax, Elemental.

Courier.com

Node v18.6.0 (Current) Released — The headline new feature for the latest minor version of Node is the ESM Loader Hooks API’s support for multiple, chained custom loaders (see above for more details). Lots of small tweaks too, as usual, including diagnostics channel support for http and extra hooks for startup snapshot serialization.

Michaël Zasso

Optimizing Node.js Dependencies in AWS Lambda — Node.js was the first runtime that AWS’s Lambda serverless platform supported and it’s still a fantastic fit. Nonetheless, there are some performance aspects to keep in mind to help with those ‘cold starts’ – this post focuses on the role of bundling to improve said performance.

Richard Davison

🛠 Code & Tools

Node-RED 3.0 ReleasedNode-RED is a popular Node.js-based low/no-code programming environment heavily used in the IoT space (though not exclusively) that essentially has a whole ecosystem of its own. v3.0 requires Node 14+ and includes numerous UI/DX enhancement.

Nick O’Leary

QUICK RELEASES:

ioredis 5.2 – Performance-focused full-featured Redis client.
oclif 3.1 – Powerful CLI framework for Node.
pkg 5.8 – Package a Node app into an executable.
Undici 5.7 – The from-scratch HTTP/1.1 client.
Tedious 15.0 – TDS module for connecting to Microsoft SQL Server.
Strapi 4.2.3 – Node.js Headless CMS.
Fastify 4.2.1 – Low overhead web framework.
npm 8.14

Find Tech Jobs with Hired — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It’s free for job-seekers.
Hired