Node.js Rejection Handling and N-API Enhancements
Node.js 15 release: Updated handling of rejections, npm 7, N-API Version 7, and more

Node.js 15 release: Updated handling of rejections, npm 7, N-API Version 7, and more

10/19/2020 · Michael Dawson, Bethany Griggs

What this post added

Node.js 15 updates the default behavior for unhandled promise rejections to terminate the process, aligning with community expectations and improving debuggability. It introduces `--unhandled-rejections` flag for configuration. N-API Version 7 adds `napi_detach_arraybuffer` and `napi_is_detached_arraybuffer` for array buffer management. The Async Local Storage API is refined and remains experimental. npm 7 is included with default peer dependency installation, with a `--legacy-peer-deps` workaround.

Read the original post ↗