The newest Node.js runtime features
#534 — June 4, 2024
🫣 Node Weekly took a break last week, but we forgot to notify you in advance – sorry! You didn’t miss anything, and we’re catching up with the past two weeks today 🙂
__
Your editor, Peter Cooper
10 Modern Node.js Runtime Features to Start Using in 2024 — If it ever feels like the new feature spotlight shines too much on Bun or Deno, never fear – Node has been taking huge strides forward too. Liran helps us catch up with a lot of the newest Node features.
Liran Tal
Mastering Node.js Performance Hooks — Node’s performance measurement APIs provide a lot of power, but it can be tricky to get your head around the mental model of what they measure and where they make sense. Pavel tries to clear it all up for us.
Pavel Romanov
WorkOS: Enterprise-Grade Auth You Can Implement in Minutes — Like an enterprise plan in a box: WorkOS provides flexible, easy-to-use APIs to integrate SSO, SCIM, Audit Logs, User Management, and RBAC. It’s used by some of the hottest startups including Perplexity, Vercel, & Webflow. Future-proof your auth stack with WorkOS.
WorkOS sponsor
Digging Into the Promise.withResolvers() Proposal — Dr. Axel digs into the stage 4 Promise.withResolvers proposal and how it could make creating promises far more elegant.
Dr. Axel Rauschmayer
QUICK BITS:
Node v20.14.0 (LTS) and v18.20.3 (LTS) were both released with minor fixes.
🎂 The Node.js Twitter/X account has celebrated Node.js turning 15 years old.
ESLint has approved an RFC to add support for TypeScript configuration files.
Node.js Test Runner: A Beginner’s Guide — Modern versions of Node have their own test runner built in.
Stanley Ulili
📄 ECMAScript Proposal: Duplicate Named Capturing Groups for Regular Expressions Dr. Axel Rauschmayer
📄 Summarizing Substack Articles Using OpenAI from Node Marco Moauro
📄 Integrating a (Somewhat) Custom CMS with Eleventy Cory Dransfeldt
📄 Summarizing Audio with LLMs in Node.js – Using the AssemblyAI platform. Niels Swimberghe (AssemblyAI)
📄 Your API Shouldn’t Redirect HTTP to HTTPS Joachim Viide
📰 Classifieds
Your fastest path to production. With Render, you can build, deploy, and scale your apps with unparalleled ease – from your first user to your billionth.
Learn to handle uploads in the backend efficiently and know the things to consider while designing a file upload system.
🪝 Hookdeck: a serverless queue for your event-driven applications. Get started.
🛠 Code & Tools
Zigar: Write and Use Zig Code in Node and Electron Projects — Zig is a newish systems language that’s essentially a superset of C/C++. Zigar makes it possible to write and use C/C++/Zig code more easily within JavaScript projects.
Chung Leong
Tinypool 1.0: An Even Smaller Node.js Worker Pool Library — A fork of the powerful Piscina that aims for fewer depdencies and a smaller footprint overall. Key updates listed here.
Tinylibs
Transformational Auth & Identity | Userfront — “Compared to our previous experiences in the security/auth space, Userfront is an order of magnitude simpler to use.”
Userfront sponsor
TypeScriptToLua: Write Lua with TypeScript — Lua is embedded in all sorts of places (games, Redis, NGINX..) so being able to write JavaScript and have it converted could open up some extra opportunities for you.
TypeScriptToLua Contributors
🤖 Experts.js: Create and Deploy OpenAI Assistants and Link Them Together — Use OpenAI’s Assistants API to create specific LLM-based agents that you can link together to create a ‘Panel of Experts’ system.
Ken Collins
node-jq 4.4: A Node Wrapper for jq — jq is a popular and powerful command-line JSON processing tool that’s well worth having in your toolbox. It’s written in C, though, but this library simplifies calling out to it from Node.
sanack
node-usb 2.13.0: An Improved USB Library for Node — Can you work with USB at a low level from Node code? You sure can.
Node USB
⚙︎ Regexper – Visualize regular expressions as a diagram. Jeff Avallone
⚙︎ LightAPI – A lightweight express API boilerplate. Logan B
⚙︎ PyMiniRacer – Python / V8/JS interoperability. Ben Creech
express-openapi-validator 5.2 – Auto-validate API requests and responses in Express against an OpenAPI 3.x spec.
MongoDB Node.js Driver 6.7 – The latest official MongoDB driver. Now supporting MONGODB-OIDC authentication.
Fast Node Manager (fnm) 1.37 – Rust-powered Node.js version manager.
Hono 4.4 – The Web framework based around web standards.
PM2 5.4 – The popular process manager for production apps.
Middy 5.4 – Node middleware engine for AWS Lambda.
better-sqlite 11.0 – A neat way to use SQLite from Node.
express-rate-limit 7.3 – Basic rate-limiting middleware.
node-hid 3.1 – Access USB & Bluetooth HID devices.
Vine 2.1 – Form data validation library for Node.
pg-promise 11.8 – Postgres interface for Node.