Node 8 will use V8 5.8 with ABI compatible with V8 6.0. This will provide better performance, a stronger support contract with V8 and a smaller delta between Node 8 and 9 as indicated by Node.js Collection.
1. Async Hooks API-
Async Hooks is a new experimental feature shipped with Node.js that goes deep into what a Node.js process is doing. It allows you to pull out a large amount of analytical information about that process. The Async Hooks (Formerly known as AsyncWrap) API got a notable upgrade to the latest version. This API enables you to get structural tracing information of the life of handle objects. The API emanates events that illuminate the customer about the life of all handle objects in Node.js. It attempts to settle comparable difficulties as the continuation-local-storage npm package, just in the core. Previously, a package called ‘co’ was used to utilize generators to write asynchronous code to create a more readable control flow. Now, this control flow can be implemented without the need of a third-party library.
2. Buffer security improvements in Node 8-
There are 2 buffers, the first is zero filling Buffer and the second is a new Buffer. These both buffers are added by default. However, previously, the memory space was not initialized with zero. And hence one has to face security issues because the Buffer instance had sensitive information. The upgrading with new version allows people to secure their privacy. However, it is advisable for the Node.js 8 users to first be aware of the risks involved in function and only then use to avoid the leakage of secure information. Though there is also a problem that you have to take performance hits. But it is good to process further with buffer.allocUnsafe ().
3. TurboFan and Ignition-
- util.promisify()– This allows developers to wrap callback APIs to return Promises. The function works with little overhead and follows a standard API.
It is a big update to Node.js which is carried out by Node.js 8 LTS. It came to function recently after exhaustive and long-term work driven by James Snell to discuss and make the difficult decisions about specific implementation details of HTTP/2 across the current HTTP implementation in Node.js core. The working path of HTTP/2 is different than the way Node.js developers have come to expect HTTP in Node to work. Hence there are some new and interesting workflows to learn.
Formerly, Node.js 6 LTS came up with npm@3. This has brought some nice improvements to the previous versions. With the new Node.js 8 LTS, npm@5 brought some attractive features and performance. Some new features include lockfiles, local caching with offline fallbacks, SHA512 checksums and also a bunch of smaller features. In the context of performance, one can expect up to 5x performance increase in the best cases. In average you can expect 20-100% faster npm installs.
Node.js version 8 also came up with a lot of interesting improvements such as Async Hooks API which is little bit difficult to adapt with current state of its documentation. All the new features with Node.js 8 not only improves the performance but also efficiency.
Are you looking for a web development to boost your business? Solace expert’s are well trained to use Node 8 for effective development. Our expert’s team will surely give you the best solution using new features of Node. Kindly Contact us for any software development using Node.