Node.js 18: Enhancements in Cryptography and Default Fetch API
The Node.js team has unveiled Node.js 18, the latest iteration of the popular JavaScript runtime. This release introduces significant updates, including improved cryptographic capabilities with OpenSSL 3.0 and the activation of the experimental fetch API by default. These changes aim to enhance both the security and functionality of Node.js for developers. However, 32-bit Windows prebuilt binaries are temporarily unavailable in this release.
OpenSSL 3.0 Integration for Enhanced Security
A key highlight of Node.js 18 is the adoption of OpenSSL 3.0, a modern cryptography library that supports SSL and TLS protocols for secure network communication. OpenSSL 3.0 introduces a FIPS (Federal Information Processing Standards) module, which is currently undergoing validation. This enhancement caters to the public sector and other industries requiring stringent cryptographic compliance, making Node.js a more robust choice for secure applications.
Fetch API Enabled by Default
The fetch API, a browser-compatible, network-fetching interface, is now enabled by default in Node.js 18. Previously available in an experimental state in Node.js 17, this API provides developers with a powerful alternative to XMLHttpRequest, offering greater flexibility and feature richness. While still experimental, its activation by default signals the project’s commitment to aligning Node.js with web standards. Node.js contributors are actively working to expand test coverage and ensure compliance with the API’s specifications.
Compatibility and Platform Updates
One caveat in this release is the absence of prebuilt binaries for 32-bit Windows systems due to issues with the V8 JavaScript engine. Node.js developers are working to address this limitation in future updates. Meanwhile, Node.js 18 includes V8 version 10.1, which powers its JavaScript and WebAssembly capabilities. Prebuilt binaries are available for Linux and MacOS, ensuring developers on these platforms can immediately benefit from the new features.