There are several new feature enhancements in the latest Node version that are as follows:
- Upgraded platform support
- N-API version 8
- Stable timers promise API
- Async Local Storage APIs
- Toolchain and compiler upgrades
Users can quickly execute orders thanks to the super property of V8 v9 shipping improvements. This optimization is currently available to all Node.js users. Regular expressions acquire major and distinctive capabilities in V8 version 9. You can now request a set that includes the start and endpoints of all matching capture groups. The flag /d in regular expressions can be used to allow this. The indices array can then be used with the result object’s indices attribute.
Updated Platform support
There have been significant upgrades in using the Node platform.
Few examples are
- GCC version for Linux
- AIX platforms to 8.3
- Xcode version to 11
Another interesting development is the initiative to add support for Apple’s latest M1 architecture. It’s a collection of builds for all of Apple Silicon’s processors expected to increase the performance of the new Mac hardware in the long run.
N-API Version 8
Node.js 16 continues to take steps forward to make it easier to create, generate, and support native modules, popularly known as add-ons. NODE-API Version 8 support is also included in the new Node.js 16.
Some of its features are
- Sealing objects like- napi_object_seal
- Freezing objects like- napi_object_freeze
Stable timers promises API
In a synchronous language, waiting for a timer is the same as waiting for a traditional sleep call. In addition, Node.js has added experimental support and help for the Web Crypto API. This W3C protocol, on the other hand, attempts to give web apps access to a simple set of cryptographic functions. Apart from encryption and decryption services, the API supports signature verification and hash generation.
Async Local Storage APIs
Problem determination and observability are two key areas to concentrate on when supporting customers in detecting and controlling production difficulties. Furthermore, when compared to the basic Async Hooks, the AsyncLocalStorage API concept proves to be much easier, more dependable, and faster to turn stable.
While a solid AsyncLocalStorage API for the 16 release has yet to be established, it is impressive that the Node.js developers are still working on it. Offering an inbuilt set of APIs used by various packages such as OpenTelemetry to support the tracing component of Observability in Node.js apps is a significant step forward.
Toolchain and compiler upgrades
- Apple Silicon’s pre-built binaries.
- The macOS installer (.pkg) is distributed as a multi-architecture ‘fat’ binary.
- For the Intel (darwin-x64) and ARM (darwin-arm64) platforms, separate tarballs are given.