Version 14 brings several new features, including some that are particularly suited to enterprise developers, such as the Diagnostic Report and the Async Local Storage API, the foundation said.
“The Diagnostic Report is a significant improvement for enterprises that need to diagnose problems in production, a very common occurrence,” said Michael Dawson, IBM community lead for Node.js and co-author of a blog post on the Node.js 14 release.
“Async Local Storage API is experimental, but it provides support for context tracing,” Dawson said in an interview. “This is important for enterprise deployments, as it’s a key requirement for being able to trace transactions and transaction times across requests. The other features are also ‘good’ for enterprise developers in that they all improve aspects of the Node.js runtime, which is important to all developers.”
Node.js interest mounts among enterprise dev teams
Moreover, the openness of Node.js serves to attract developers who want avoid possible lock-in to certain platforms.
Cameron PurdyCEO, Xqiz.it
Experiment now, but hold off on production
Node.js 14 will be tagged as “current” release for the next six months, and then promoted to Long-term Support (LTS) in October 2020. The OpenJS foundation advises corporate users to wait to upgrade their production deployments until October when Node.js is promoted to LTS. However, now is the best time to start testing applications with Node.js 14 and try out new features, Dawson said.
The diagnostic report feature allows you to generate a report on demand or when certain events occur. This report contains information that can help diagnose problems in production, including crashes, slow performance, memory leaks, high CPU usage, unexpected errors and more, said Bethany Griggs, Node Core Collaborator and Node.js Technical Steering Committee member, in a blog post.