Node.js 22.12 LTS brings native ES module loading, Buffer fixes, updated root certificates
Node.js has released version 22.12.0 LTS, bringing several notable updates and enhancements to the JavaScript runtime environment. A key change in this version is the ability to load native ES modules using require() without the need for the --experimental-require-module command line flag, which was previously required in versions 20.x and 22.x. This feature remains experimental, and in version 23.x, Node.js will issue a warning when a native ES module is encountered in require() for the first time. With this update, Node.js will no longer throw the ERR_REQUIRE_ESM error when using require() to load an ES module.
Version 22.12.0 also introduces a correction in handling Buffer objects created with resizable ArrayBuffers. The Buffer length will now adjust correctly as the underlying ArrayBuffer size changes. Additionally, the release includes updated root certificates to NSS 3.104, aligning with the version used in Firefox 131.0. This update also encompasses various other improvements and bug fixes.