Introduced April 18, Node.js 20 can be accessed from nodejs.org as the “Current” release, carrying the latest features of the platform. It is slated to enter LTS (long-term support) status October 24, which typically guarantees bug fixes for at least 30 months.
With the experimental Node.js permission model, developers can restrict access to specific resources including the file system, child processes, and worker threads. Developers can use permissions to prevent applications from accessing or modifying sensitive data or running potentially harmful code. The API for this capability exists behind the flag
Also in Node.js 20, custom ECMAScript module loader hooks now run on a dedicated thread, isolated from the main thread. This separation creates a separate scope for loaders and ensures no cross-contamination between loaders and application code.
Other new features and changes in Node.js 20:
- Node.js 20 binaries for Arm64 Windows are available, providing native execution on the platform.
import.meta.resolve()function now returns synchronously, though user loader
resolvehooks still can be defined as async functions.
- The test_runner module has been marked as stable and is ready for production use.
- Web Crypto API function argents now are coerced and validated as per their Web IDL definitions. This improves interoperability with other implementations of the API.
- The WASI (WebAssembly System Interface) now must be specified.
ArrayBufferand a growable
- The latest version of the URL parser, Ada 2.0, brings significant performance improvements to URL parsing. Ada 2.0 has been integrated into the Node.js codebase, ensuring that all parts of an application can benefit from the better performance.
The Node.js 19 release, which boosted HTTP throughput, arrived last October.
Copyright © 2023 IDG Communications, Inc.
Leave a Reply