Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
Published By From Node.js News · 1 min read
CodeNode.js 22 is now available!
We're excited to announce the release of Node.js 22! Highlights include require()ing ES modules, a WebSocket client, updates of the V8 JavaScript engine, and more!
Node.js 22 will enter long-term support (LTS) in October, but until then, it will be the "Current" release for the next six months. We encourage you to explore the new features and benefits offered by this latest release and evaluate their potential impact on your applications.
The project continues to make progress across a number of areas, with many new features and fixes flowing into existing LTS releases. For that reason, the changes outlined in the changelog for Node.js 22 only represent a small subset of the features and work since the last major release.…
This is an excerpt. The full article is published by Node.js News.
Answers to common questions regarding this article's topic, architecture, and practical applications.
The V8 release 12.4 includes new features like WebAssembly Garbage Collection, Array.fromAsync, Set methods and iterator helpers. Contributed by Michaël Zasso in #52465
General
V8's Maglev Compiler is now enabled by default on supported architectures (https://v8.dev/blog/maglev).
Maglev improves performance for short-lived CLI programs. Contributed by Keyhan Vakil in #51360
General
Node.js 22 includes a new experimental feature for the execution of scripts from the package.json with the cli flag node --run <script-in-package-json>.
It also supports node --run test which executes the test command inside package.json scripts. Contributed by Yagiz Nizipli #52190
General
Increased the default High Water Mark for streams from 16KiB to 64KiB.
This provides a performance boost across the board at the cost of slightly higher memory usage.
Users in memory sensitive environments are encouraged to explicitly set setDefaultHighWaterMark. Contributed by Robert Nagy in #52037
General
We're excited to announce the release of Node.js 22! Highlights include require()ing ES modules, a WebSocket client, updates of the V8 JavaScript engine, and more!