DEV Community

Cover image for What’s New In Node.js 15?
Solace Infotech Pvt. Ltd.
Solace Infotech Pvt. Ltd.

Posted on

What’s New In Node.js 15?

Modern web applications are developed with many popular frameworks like Angular JS, bootstrap and so on. These frameworks are based on popular Javascript frameworks. But when it comes to developing server-based applications, Node.js comes into the focus. It is also based on the JavaScript framework but used for developing server-based applications. In 2020, Node.js turned 11 years old, and the number of packages available on npm crossed one million. Downloads for Node.js itself continue to rise, growing 40% year over year. A lot has happened in a relatively short amount of time! Each year the Node.js community has gained momentum, and 2020 shows no signs of slowing down. There are lots of interesting features being explored for the next major releases of Node.js 15. Here we will see some major features in node.js 15.

New Features In Node.js 15-

1. N-API Version 7-
Node.js 15 eases the creation, build and support native modules. It comes with N-API version 7 which includes some extra methods to work with array buffers-

napi_status napi_detach_arraybuffer(napi_env env, napi_value arraybuffer)
napi_status napi_is_detached_arraybuffer(napi_env env, napi_value arraybuffer, bool* result)

2. npm 7-
It is a major release that comes with new features including workspaces and a new package-lock.json format. Npm 7 also includes yarn.lock file support. There is a new change in the latest version with npm 7 – peer dependencies are installed by default. Npm team has worked to minimize potential disruption to existing projects because of the switch to automatically installing peer dependencies, if you face any problem, you can sue the –legacy-peer-deps flag at install time as a workaround to revert to the previous behavior. You can set it in the environment or npm config files.

3. AbortController-
Know more at- [https://solaceinfotech.com/blog/whats-new-in-node-js-15/]

Top comments (0)