NodeJS v15 updated with a new major release of npm. npm 7 comes with many new features –
Feature Including npm workspaces and a new package-lock.json format. npm 7 also includes yarn.lock file support. One of the big changes in npm 7 is that peer dependencies are now installed by default.
Nodejs v15.0.0 changes
In these new updates with the NPM changes, there are some other changes which nodejs has been updated such as Throw On Unhandled Rejections, QUIC, and V8 JavaScript engine has also been updated.
Throw On Unhandled Rejections
In the new update, the default mode of unhandledRejection
is changed to throw
from warn
.
so if an unhandledRejection
hook is not been set then the unhandledRejection
is raised as an uncaught exception.
Users that have an unhandledRejection
hook should see no change in behavior, and it’s still possible to switch modes using the --unhandled-rejections=mode
process flag.
QUIC
Node.js 15 now has an experimental support QUIC, which can be enabled by compiling Node.js with the --experimental-quic
configuration flag. The Node.js QUIC implementation is exposed by the core net module.
JavaScript engine v8.8.6
The V8 JavaScript engine has been updated to V8 8.6 earlier it was version V8 8.4 is the latest available in Node.js 14. Along with performance changes and improvements the V8 update also brings the following language features:
Promise.any()
(from V8 8.5)- AggregateError (from V8 8.5) ( what is AggregateError )
String.prototype.replaceAll()
(from V8 8.5)- Logical assignment operators
&&=
,||=
, and??=
(from V8 8.5)
New Commits
Deprecations and Removals
Other Notable Changes
Semver-Major Commits
Semver-Minor Commits
Semver-Patch Commits
Links
Release Date: October 20, 2020
Commits And Changes: Node.js 15