Node.js 14 Adds New Diagnostic Tools
Written by Kay Ewbank   
Wednesday, 22 April 2020

Node.js has been updated with Diagnostic Reports added as a stable feature, a new experimental async local storage API that can trace a transaction through different steps in a process and support for internationalization and easier native module use.

Node.js is an open-source, cross-platform asynchronous event driven JavaScript runtime built on Chrome's V8 JavaScript engine. It uses an event-driven, non-blocking I/O mode and executes JavaScript code outside web browsers.

 

nodejslogo

 

The diagnostic report that was added as an experimental feature in Node.js 12 has been included in this release in a stable version. It can be used to generate a report on demand or when certain events occur, and has information for diagnosing problems including crashes, slow performance, memory leaks, high CPU usage and  unexpected errors.

The experimental Async Local Storage API is included in this release, and is another step in the development team's work to add APIs to help manage context across Asynchronous Calls over a number of releases. The experimental Async Hooks API was introduced in earlier versions as part of this work. Working with Async Local Storage until now relied on npm modules, but the Node.js team decided it would make more sense to have an internal API. The team wants Node.js developers to try out the API and give feedback on abstraction model, API interface, use case coverage, functional stability, naming, documentation etc. so that they can work on getting it out of experimental in later releases.

Another change in this version is to the Node.js Streams implementation, to improve consistency across the Streams APIs to remove ambiguity and streamline behaviors across the various parts of Node.js core. The developers say that a notable change is that the 'autoDestroy' option is now defaulted to true, making the stream always call '_destroy' after ending. The team says that while they don’t believe these SemVer major changes will affect most applications, if you rely heavily on Streams it would be good to test while Node.js 14 is the current release so that it is ready for when Node.js 14 becomes LTS in October 2020.

 

nodejslogo

More Information

Node.js Foundation Homepage

Related Articles

Node.js Released With Diagnostic Reporting

Node Version Manager For Node.js Released

JS Foundation and Node.js Foundation Progress Towards Merger

A New Rift for Node.js

Node.js Foundation Heals Rift

Getting Started with Node.js

Node.js Gets A Foundation - Is It Rock Solid?

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


What Is the Shift-Left Approach in DevOps?
03/06/2022

The short answer is that it is a methodology that brings software testing into earlier stages of the software development lifecycle. We look at the importance of this new approach and how to impl [ ... ]



IKEA First With Matter Hub And It Matters
01/06/2022

Matter is the new one-system-to-rule-them-all IoT protocol and surprisingly IKEA is the first to create a working device that you can buy - well in October. What is Matter all about and why does it ma [ ... ]


More News

pythondata

 



 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Wednesday, 22 April 2020 )