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


.NET 9 Released
18/11/2024

.NET 9 has been released with a number of performance improvements and new features designed to help developers use AI.



Microsoft Introduces Vector Abstractions Library For .NET
21/11/2024

Microsoft has announced a preview release of the Microsoft Extensions VectorData Abstractions library, which can be used to help integrate vector stores into .NET applications and libraries.


More News

espbook

 

Comments




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

Last Updated ( Wednesday, 22 April 2020 )