Node.js 22.0.0 Released

In a recent event, the release of Node.js 22.0 took place, a platform for executing network applications in JavaScript. Node.js 22.0 has transitioned from classes to branches with a long-term support, which will be officially designated in October. The support for Node.js 22.x will extend until April 30, 2027. The previous LTS versions, Node.js 20.x and 18.x, will be supported until April 2026 and April 2025 respectively. The intermediate branch, Node.js 21.x, will no longer receive support after June 1, 2024.

Some basic improvements introduced in Node.js 22.0 include:

  • The update of the V8 engine to version 12.4, utilized in Chromium 124. Notable changes from the previous Node.js 21 branch, which employed the V8 11.8 engine, include:

    • Support for the expansion wasmgc, facilitating the porting of webassembly programs written in languages with garbage collectors like Kotlin, PHP, and Java. Wasmgc introduces new types of structures and arrays that can utilize non-linear memory isolation.
    • Introduction of the method array.fromasync() for the Array object in asynchronous mode, generating a new copy from objects that resemble arrays or asynchronous iterators.
    • Support for various methods to work with iterators, such as .Map, .Filter, .Find, .Take, .Drop, .Foreach, and .Reduce.
    • Introduction of the Set object, defining a collection of values and providing methods for common set operations like intersections, unions
/Reports, release notes, official announcements.