Open Source Node.js Hits v10, with Better Security, Performance, More
Security is also a major focus of the Node.js 10.x release line, which is the first to upgrade to OpenSSL version 1.1.0.
"Node.js is now able to take full advantage of the significant work in code quality, clean-up and modernization undertaken by the OpenSSL team -- supported by the Core Infrastructure Initiative, a Linux Foundation project," The Node.js Foundation said in a Medium post. "Node.js can now extend its cryptographic support to the much requested ChaCha20 cipher and Poly1305 authenticator. Together these contribute to the modern cryptographic landscape and expand the options available for using 'AEAD' cipher suites, the current gold-standard for encrypted communication on the Web."
Other new features in the 10.x release line include:
- Node.js API (N-API), which now graduates out of experimental mode. N-API is described as "a stable module API that is independent from changes in V8 allowing modules to run against newer versions of Node.js without recompilation."
- Error handling improvements with the progressive adoption of error codes in order to ease consistent error checking. "The use of error codes allows message text to be updated without breaking applications (as applications should be using the error code)," the Foundation said.
- Performance improvements coming with the latest version of V8, which includes promise, async generator and array performance enhancements. "Improvements for promises and async functions closes the gap between async functions and desugarded promise chains for better performance results," the Foundation said. More information is available in this V8 blog post.
"In the next six months, enterprises should pay close attention and work on upgrading paths to migrate to this release line," the Foundation said, noting that in October it will become the new active Long Term Support release line.
More information on new features and downloading the new version will be available here (expected to be updated today, but still featuring 9.11.1 at the time of this writing).
David Ramel is the editor of Visual Studio Magazine.