Node.js 15 has been released, with exciting changes and improvements!
In a nutshell
- npm 7 supports workspaces (like we used to do it with yarn, lerna and other “monorepo tools”)
unhandledRejection
s now throw instead of just warn you- you can change alter this behavior with a flag, namely
--unhandled-rejections
set tothrow
orwarn
- you can change alter this behavior with a flag, namely
- experimental QUIC support (with flag
--experimental-quic
) - new ✨
- logical assignment operators, like
&&=
,||=
and??=
String.prototype.replaceAll
- replaces all occurrences of a string with its replacementPromise.any
- returns the first fulfilled PromiseAggregateError
- “The AggregateError object represents an error when several errors need to be wrapped in a single error”AbortController
- used to cancel a promise
- logical assignment operators, like
Read more about it in more detail in the official release notes!