Node v20.19.0 (LTS) released
Node.js has announced a minor update, v20.19.0 Iron, which includes the backporting of require(esm) due to its significance and influence on the ecosystem. The feature now enables the loading of native ES modules via require(), a capability that was accessible in v20.x with the command line flag --experimental-require-module. This feature has undergone testing on versions 23.x and 22.x, and we are seeking user feedback from version 20.x to implement final adjustments before achieving full stability.Enabling this feature will prevent Node.js from throwing ERR_REQUIRE_ESM when require() is utilized to load an ES module. Nonetheless, it may still generate ERR_REQUIRE_ASYNC_MODULE if the ES module being loaded or its dependencies include top-level await. Upon the successful loading of the ES module via require(), the object returned will either be an ES module namespace object akin to that returned by import() or the content exported as "module.exports" from the ES module.
Node v20.19.0 (LTS) released
A new software update is available: Node v20.19.0 (LTS) released