VOOZH about

URL: https://thenewstack.io/node-js-14-arrives-with-diagnostic-reporting-local-storage/

⇱ Node.js 14 Arrives with Diagnostic Reporting, Local Storage - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2020-04-22 13:03:56
Node.js 14 Arrives with Diagnostic Reporting, Local Storage
news,
Software Development

Node.js 14 Arrives with Diagnostic Reporting, Local Storage

Every year, a new version of Node.js server-side JavaScript runtime engine is released, and this time around there are a number of features and enhancements that should excite developers.
Apr 22nd, 2020 1:03pm by Jack Wallen
👁 Featued image for: Node.js 14 Arrives with Diagnostic Reporting, Local Storage

Every year, a new version of Node.js server-side JavaScript runtime engine is released, and this release of version 14 brings a number of features and enhancements that should excite developers, including built-in diagnostic reporting and the ability to store data through the life of a web request.

Although Node.js 14 won’t be prompted to Long Term Support status until Oct. 2020, this release should be considered a must-have for many, especially given version 13 reaches end of life in June 2020.

Let’s take a look at some of the more exciting features for this new release.

Diagnostic Report

The Diagnostic Report has officially been added as a stable feature for Node.js 14. For those that don’t know, Diagnostic Report provides user-consumable reports that contain information for debugging and triaging issues within a production environment. Diagnostic Report is capable of identifying almost all Node.js application anomalies in production, such as:

  • Abnormal termination.
  • Slow performance.
  • Memory leaks.
  • High CPU usage.
  • Unexpected errors.
  • Incorrect output.

Diagnostic Report was originally available as an npm module. In order to use the tool, users would have to install the module with the help of npm like so:

npm install node-report

Once installed, you could trigger a report, via an API call such as:

var nodereport = require('node-report');
nodereport.triggerReport();

With the release of Node.js, it is no longer necessary to install node-report, as the functionality is built into Node.js.

Now, a report can be generated from within you application in the form of:

process.report.writeReport('./filename.json');

You can also generate a report from the command line like so:

node --report-uncaught-exception --report-on-signal --report-on-fatalerror app.js

You can generate reports with other options, such as:

  • –report-on-fatalerror triggers a report to be generated on fatal errors (such as out of memory).
  • –report-compact generates reports in a single-line JSON format.
  • –report-directory defines the location that will house the generated report.
  • –report-filename name of the report to be generated.
  • –report-signal sets the signal for report generation (such as SIGUSR2). This feature is not supported on Windows.

Experimental Async Local Storage API

Another feature that should have many a developer nodding in appreciation is the addition of the experimental AsyncLocalStorage API. This high-level API will make it easier for applications to reach stability as it exposes fewer internals.

AsyncLocalStorage is used to create asynchronous state within callbacks and promise chains, and allows storing data throughout the lifetime of a web request. AsyncLocalStorage is similar to thread-local storage in other languages.

Although you might find other npm modules provide a similar functionality, using those various packages in a comprehensive way was challenging. Because of this, it was decided an API should be provided.

Other New Changes

With the release of v14.0.0, there were some other changes developers should know about. For example:

  • Internationalization support: Node.js 14 will be the first LTS release to include full ICU data by default.
  • Easier module creation/building/support: Node.js 14 ships N-API version 6, which includes support for BigInt.
  • V8 upgraded to V8 8.1: the new V8 JavaScript engine brings with it serious performance tweaks and improvements including Optional Chaining, Nullish Coalescing, enabling of calendar and numberingSystem.
  • Streams: Changes have been made to improve consistency across the Streams APIs. These changes will help remove ambiguity and streamline behaviors across the Node.js core.
  • Experimental Web Assembly System Interface: Changes to WASI have been made to help support certain use cases and simplify the native modules experience.

Also note, the following have been deprecated:

  • crypto: move pbkdf2 without digest to EOL.
  • fs: deprecate closing FileHandle on garbage collection.
  • http: move OutboundMessage.prototype.flush to EOL.
  • lib: move GLOBAL and root aliases to EOL.
  • os: move tmpDir() to EOL.
  • src: remove deprecated wasm type check.
  • stream: move _writableState.buffer to EOL.
  • doc: deprecate process.mainModule.
  • doc: deprecate process.umask() with no arguments.
  • module: remove experimental modules warning.

New System Requirements

With the upgrade to Node.js 14, there are new compiler and platform minimums to make note of. For example, the minimum macOS target version is now 10.13 (High Sierra). For Linux, the minimum GCC level remains at 6, but the developers of Node.js are planning to build and release binaries for platforms using GCC 8. Finally Node.js 14 will not run on Windows releases that have reached end-of-life.

Feature image by Herney Gómez from Pixabay.

TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.