The release is the first to ship with prebuilt binaries for Apple Silicon. While Node.js will provide separate tarballs for the Intel and Arm architectures, the MacOS installer will be shipped as a “fat” (multi-architecture) binary. Node.js 16 follows the October 2020 release of Node.js 15.
Other new features and improvements in Node.js 16:
- The Timers Promises API is stable, providing an alternative set of timer functions that return Promise objects, removing the need to use
- Features produced as part of recent Node.js 15 releases that are now in Node.js 16 include Node-API version 8, Stable Source Maps v3, and web platform atob (
buffer.atob(data)) and btoa (
buffer.btoa(data)) implementations for compatibility with legacy web platform APIs.
- Notable deprecations include the runtime deprecation of access to
process.binding()for a number of core modules, such as
Node.js 16 is downloadable from nodejs.org or by using Node Version Manager on Unix to install with
nvm install 16. Node.js 16 replaces Node.js 15 as the current release line, with Node 16 staying as the current release for the next six months and then promoted to long-term support in October. Once promoted to long-term support, the release will be designated with the codename, “Gallium.” End-of-life for Node.js 16.x is slated for April 30, 2024.
Node.js 12, meanwhile, will be supported until April 2022 and Node.js 14 will remain in long-term support until April 2023.
On Linux-based platforms, the minimum GCC (Gnu C Compiler) level for building Node.js 16 will be GCC 8.3. Details about supported toolchains and compilers can be found in the BUILDING.md file.
Copyright © 2021 IDG Communications, Inc.
#Nodejs #introduces #Apple #Silicon #support