New Features In Nodejs Version 10

Posted By : Sushmit Gaur | 31-May-2018

Node.js's version 10 has been announced which is being called Dubnium.

It is the 7th version of Node.js So far.

following are the new features in Node.js v10:

Improved HTTP & HTTP/2

HTTP/2 was announced in Node.js v8 as an experimental feature. In Node 10 HTTP/2 is now in the stable state.

HTTP/2 can easily handle multiple requests easily as compared to standard HTTP which automatically enhances the loading time of a webpage.

 

N-API

N-API allows developers to build native Add-ons. Add-ons are like Nodejs Modules but comes with better and faster performance.

Improved Performance via V8 Engine v6

In Node.js 10 V8 is updated to v6 now, which automatically reduces the parsing and compilation time by 20-42%.

Execution of Promises and Async/Await is improved.

 

Open SSL Upgrade

Open SSL has released 1.1.1(Beta 4) which supports TLS 1.3. With this upgrade, Node.js can utilize ChaCha20 cipher and Polu1305 authenticator.

 

NPM v6 Support

Node.js 10 now comes with NPM v6 which has major improvements in security, performance, and stability which also means better performance than NPM v5.

 

Error-Handling Improvements

Node.js v10 Ships with Error Codes. Now all the errors thrown by Node will go through error code which is much more human-friendly.

 

New JavaScript Features

i) Function.prototype.toString()

ii)  trimLeft() and trimRight()  are now String.prototype.trimStart() and String.prototype.trimEnd() 

iii) The catch clause of try statements no longer requires a parameter.

 

Deprecations in Node.js 10

i) Using require() will emit runtime deprecatation.

ii)  tls.convertNPNProtocols() will emit runtime deprecatation.

iii) Async_hooks APIs and getters/setters have been removed.

 

About Author

Author Image
Sushmit Gaur

Sushmit is a self taught programmer, having experience in UI Development for Web Applications. With Experience of 3 months as an intern in React.js technology looking forward to learn new skill set and challenges for further assessment in career.

Request for Proposal

Name is required

Comment is required

Sending message..