October 24, 2023  | | Node.js 21 is now available!nodejs.org @nodejs@social.lfx.dev Highlights:
-
Command line flag --experimental-default-type=module : It changes the default module type from CommonJS to ESM if a file or an input has no explicit type.
End goal: โWe are also exploring using detection of ES module syntax as a way of Node.js knowing when to interpret files as ES modules. Our goal is to eventually find a way to support ES module syntax by default with minimal breaking changes.โ
-
Stable WebStreams and fetch() .
-
Client-side WebSocket API
-
Support for globs in the Node.js test runner
-
โIn Node.js 21, we've introduced the global navigator object, enhancing web interoperability. Now, developers can access hardware concurrency information through navigator.hardwareConcurrency .โ
-
V8 11.8 with Array grouping, ArrayBuffer.prototype.transfer and more
-
Various performance improvements
|
| | | | | โ | This email was sent to {{ email | default }}. You can unsubscribe from this list here or update your preferences. | โ |
|