You are here: Home » NewsFeeds » Node.js v7.0.0

Node.js v7.0.0

Notable changes

Buffer

Passing invalid input to Buffer.byteLength will now throw an error #8946.
Calling Buffer without new is now deprecated and will emit a process warning #8169.
Passing a negative number to allocUnsafe will now throw an error #7079.

Child Process

The fork and execFile methods now have stronger argument validation #7399.

Cluster

The worker.suicide method is deprecated and will emit a process warning #3747.

Deps

V8 has been updated to 5.4.500.36 #8317, #8852,
#9253.
NODE_MODULE_VERSION has been updated to 51 #8808.

File System

A process warning is emitted if a callback is not passed to async file system methods #7897.

Intl

Intl.v8BreakIterator constructor has been deprecated and will emit a process warning #8908.

Promises

Unhandled Promise rejections have been deprecated and will emit a process warning #8217.

Punycode

The punycode module has been deprecated #7941.

URL

An Experimental WHATWG URL Parser has been introduced #7448.

Commits

[1043f5d08e] – assert: name anonymous functions (Miguel Angel Asencio Hurtado) #9051
[06f37471aa] – benchmark: use node v4 syntax in common.js (Andreas Madsen) #9064
[8b152fcf47] – benchmark: change the


 

Original article