Node 22 is now in LTS

October 29, 2024 By Mark Otto 0

Node.js Weekly

Node v22.11.0 ‘Jod’ Released; Becomes Active LTS Release — With this release, Node 22 flips from being the ‘Current’ cutting edge release to being a dependable release with the all-important LTS (Long Term Support) designation. It is, however, broadly the same as Node v22.10.

Richard Lau

Master Performance and Speed Up Your Site — This detailed video course shares the fundamentals of web performance, covering key Core Web Vitals metrics such as Cumulative Layout Shift (CLS), and Interaction to Next Paint (INP). You’ll learn how to best use Lighthouse, WebPageTest and other tools in order to make your site lightning.

Frontend Masters

Node v23.1.0 (Current) Released — Node 22 takes a breather, but Node 23 picks up the ‘Current’ baton and will get all the juiciest new features until Node 24 arrives in April/May 2025. In v23.1, JSON modules and import attributes are now stable, the MockTimers test runner API is stable, and Buffer objects created from resizable ArrayBuffers will now update their size properly.

Antoine du Hamel

📄 Node.js, Pipes, and Disappearing Bytes – If piping a Node app’s output to another command, mysterious problems can arise.. Sam Lijin

📄 Building a Mental Model of Node.js Streams Pavel Romanov

📄 Setting the Default Time Zone in Node.js Stefan Judis

🛠 Code & Tools

Tinybench 3.0: A Tiny, Simple Benchmarking Library — Uses whatever precise timing capabilities are available (e.g. process.hrtime or peformance.now). You can then benchmark whatever functions you want, specify how long or how many times to benchmark for, and get a variety of stats in return. GitHub repo.

Tinylibs

  • serverless-express 4.16 – Run Express on AWS Lambda, API Gateway, Lambda@Edge, etc. Now supporting Express 5 too.

  • Execa 9.5 – Powerful process execution library. With v9.5, when redirecting stdout or stderr to a file, you can optionally append rather than replace.

  • Medusa 2.0 – A popular Node.js based ecommerce platform.

  • 📺 YouTube.js 11.0 – Unofficial JS client for YouTube’s private API.

  • Mineflayer 4.23 – Create Minecraft bots in JavaScript.

  • Faker 9.1 – Generate large amounts of fake data.

  • AVA 6.2 – Popular test runner for Node.

  • Opossum 8.2 – Circuit breaker library.