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
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.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
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.