Node JS

Node 8.5.0 Released ! Latest Updates with Node 8.5.0

In the post, We will look into some of the updates made in modules of the node 8.5.0 version.

build

Snapshots are now re-enabled in V8.

console

Implement minimal console.group().

deps

upgrade libuv to 1.14.1
update nghttp2 to v1.25.0

dns

Add verbatim option to dns.lookup(). When true, results from the DNS resolver are passed on as-is, without the reshuffling that Node.js otherwise does that puts IPv4 addresses before IPv6 addresses.

fs

add fs.copyFile and fs.copyFileSync which allows for more efficient copying of files.

inspector

Enable async stack traces.

module

Add support for ESM. This is currently behind the –experimental-modules flag and requires the .mjs extension. node –experimental-modules index.mjs.

napi

implement promise.

os

Add support for CIDR notation to the output of the networkInterfaces() method.

perf_hooks

An initial implementation of the Performance Timing API for Node.js. This is the same Performance Timing API implemented by modern browsers with a number of Node.js specific properties. The User Timing mark() and measure() APIs are implemented.

tls

multiple PFX in createSecureContext.