22.21.1

Latest release in branch 22.x
Released 7 days ago (October 28, 2025)

Software Node.js
Branch 22.x
Status LTS
Supported
End of bug fixes October 21, 2025
End of security fixes April 30, 2027
First official release version 22.0.0
First official release date 1 year ago (April 24, 2024)
Release notes https://github.com/nodejs/node/releases/tag/v22.21.1
Documentation https://nodejs.org/dist/latest-v22.x/
Download https://nodejs.org/download/release/latest-v22.x/

Node.js 22 Release Notes

The Node.js team is excited to present Node.js 22, the newest major release packed with performance improvements, new experimental features, and better developer experience. This release is currently marked as Current and will remain so for six months until it transitions into Long-Term Support (LTS) in October.

Node.js 22 introduces key updates such as require() support for ES modules, a built-in WebSocket client, a major update to the V8 JavaScript engine, and enhancements to core features like streams and file system utilities. These changes are designed to boost both performance and developer productivity.

V8 JavaScript Engine Update

Node.js 22 integrates V8 version 12.4, bringing new JavaScript capabilities:

  • Support for WebAssembly Garbage Collection for more efficient memory management.
  • The new Array.fromAsync method for asynchronous array creation.
  • New Set methods for improved handling of collections.
  • Iterator helpers for cleaner and more efficient iteration patterns.

Maglev Compiler

The Maglev Compiler in V8 is now enabled by default on supported systems. Maglev is a new tier of JIT compiler optimized for short-lived command-line applications, providing faster startup performance compared to existing compilers.

Support for require() with ESM

A notable addition in Node.js 22 is the ability to require() synchronous ES modules using the --experimental-require-module flag. If enabled, modules explicitly marked as ES modules (via "type": "module" in package.json or using the .mjs extension) and without top-level await can be loaded with require().

This feature functions similarly to dynamic import(), but executes synchronously and directly returns the namespace object. The plan is to make this behavior the default in the future.

Running package.json Scripts

A new experimental feature allows developers to run scripts directly from package.json using the CLI command:

node --run <script-name>

For example, node --run test executes the test script defined in package.json. This provides a simpler and more consistent way to execute project scripts without relying on external tooling.

Stream High Water Mark

The default High Water Mark for streams has been increased from 16 KiB to 64 KiB. This change enhances performance across many streaming operations by reducing overhead, though it slightly increases memory usage. Developers working in memory-constrained environments can still customize this value using setDefaultHighWaterMark.

Watch Mode

Watch Mode (node --watch) is now stable in Node.js 22. With watch mode enabled, any changes made to watched files automatically restart the process, making it easier to iterate quickly during development.

WebSocket Client

Node.js now includes a WebSocket client out-of-the-box, which was previously only available under the --experimental-websocket flag. This built-in client is compatible with browser WebSocket APIs and eliminates the need for external dependencies, making real-time communication simpler and faster to implement.

glob and globSync

The node:fs module now provides glob and globSync functions for file pattern matching. Developers can use these functions to easily locate and work with groups of files that follow specified patterns, simplifying workflows for file system operations.

AbortSignal Performance

Node.js 22 significantly improves the performance of creating AbortSignal instances. This leads to faster execution in APIs such as fetch and the built-in test runner, reducing overhead in applications that rely heavily on asynchronous control flows.

Conclusion

The release of Node.js 22 marks an important step forward for developers working with modern JavaScript and server-side applications. By integrating powerful updates like the V8 12.4 engine, Maglev compiler, a built-in WebSocket client, and new require() support for ES modules, this version offers both improved performance and a smoother developer experience.

Features such as node --run for package.json scripts, stable --watch mode, larger stream buffer defaults, and new file matching utilities (glob and globSync) make Node.js 22 more productive and user-friendly. These updates not only simplify workflows but also help developers build scalable and efficient applications faster.

As Node.js 22 transitions into Long-Term Support (LTS) later this year, it becomes a reliable foundation for production systems. Whether you are building real-time applications with WebSockets, command-line tools, or enterprise-grade services, Node.js 22 provides the stability, performance, and modern JavaScript features you need to succeed.

Releases In Branch 22.x

Version Release date npm version
22.21.1 7 days ago
(October 28, 2025)
10.9.4
22.21.0 15 days ago
(October 20, 2025)
10.9.4
22.20.0 1 month ago
(September 24, 2025)
10.9.3
22.19.0 2 months ago
(August 28, 2025)
10.9.3
22.18.0 3 months ago
(July 31, 2025)
10.9.3
22.17.1 3 months ago
(July 15, 2025)
10.9.2
22.17.0 4 months ago
(June 24, 2025)
10.9.2
22.16.0 5 months ago
(May 20, 2025)
10.9.2
22.15.1 5 months ago
(May 14, 2025)
10.9.2
22.15.0 6 months ago
(April 22, 2025)
10.9.2
22.14.0 8 months ago
(February 11, 2025)
10.9.2
22.13.1 9 months ago
(January 21, 2025)
10.9.2
22.13.0 9 months ago
(January 06, 2025)
10.9.2
22.12.0 11 months ago
(December 02, 2024)
10.9.0
22.11.0 1 year ago
(October 29, 2024)
10.9.0
22.10.0 1 year ago
(October 16, 2024)
10.9.0
22.9.0 1 year ago
(September 17, 2024)
10.8.3
22.8.0 1 year ago
(September 03, 2024)
10.8.2
22.7.0 1 year ago
(August 21, 2024)
10.8.2
22.6.0 1 year ago
(August 06, 2024)
10.8.2
22.5.1 1 year ago
(July 19, 2024)
10.8.2
22.5.0 1 year ago
(July 17, 2024)
10.8.2
22.4.1 1 year ago
(July 08, 2024)
10.8.1
22.4.0 1 year ago
(July 02, 2024)
10.8.1
22.3.0 1 year ago
(June 11, 2024)
10.8.1
22.2.0 1 year ago
(May 15, 2024)
10.7.0
22.1.0 1 year ago
(May 02, 2024)
10.7.0
22.0.0 1 year ago
(April 24, 2024)
10.5.1