.A new `nodejs:22` module stream available as a Technology Preview
A new module stream, `nodejs:22`, is now available as a Technology Preview. A future update will provide a Long Term Support (LTS) version of `Node.js 22`, which will be fully supported.
`Node.js 22` included in RHEL 9.5 provides numerous new features, bug fixes, security fixes, and performance improvements over `Node.js 20` available since RHEL 9.3.
Notable changes include:
* The `V8` JavaScript engine has been upgraded to version 12.4.
* The `V8 Maglev` compiler is now enabled by default on architectures where it is available (AMD and Intel 64-bit architectures and the 64-bit ARM architecture).
* `Maglev` improves performance for short-lived CLI programs.
* The `npm` package manager has been upgraded to version 10.8.1.
* The `node --watch` mode is now considered stable. In `watch` mode, changes in watched files cause the `Node.js` process to restart.
* The browser-compatible implementation of `WebSocket` is now considered stable and enabled by default. As a result, a WebSocket client to Node.js is available without external dependencies.
* `Node.js` now includes an experimental feature for execution of scripts from `package.json`. To use this feature, execute the `node --run <script-in-package.json>` command.
To install the `nodejs:22` module stream, enter:
[literal]
----
# dnf module install nodejs:22
----
If you want to upgrade from the `nodejs20` stream, see link:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/managing_software_with_the_dnf_tool/assembly_managing-versions-of-application-stream-content_managing-software-with-the-dnf-tool#proc_switching-to-a-later-stream_assembly_managing-versions-of-application-stream-content[Switching to a later stream].
For information about the length of support for the `nodejs` Application Streams, see
https://access.redhat.com/support/policy/updates/rhel-app-streams-life-cycle[Red Hat Enterprise Linux Application Streams Life Cycle].