Node 8 |
30 2017 23:00 Node.js 8.0.0. 8 2017 Long Term Support . , .
. , 2017, Carbon, 31 2019 . Node.js 6 2018 2019 .
Node npm. , npm : Yarn Facebook'.
npm , , .
:
JavaScript V8 API. , ABI (application binary interface) V8 5.9 6.0.
5.8 5.9 TurboFan Ignition, . , try/catch , async . Chrome 59.
, Node.js (Core Technical Committee) 8.0.0, , .
N-API API , JavaScript . ABI (application binary interface) Node. , , Node .
( async_wrap) Node.js. API , , C++ . , , TCP-, ..
URL , WHATWG, 7 Node.js, 8- . Node , , URL, .
8 Node.js Buffer(Number) . , . , , . , , API Buffer.allocUnsafe(), .
, , . , , , , bluebird. Node.js : util.promisify(). :
const fs = require('fs');
const util = require('util');
const readfile = util.promisify(fs.readFile);
readfile('/some/file')
.then((data) => { /** ... **/ })
.catch((err) => { /** ... **/ });
, Node.js. . , . :
, : --harmony rest :
let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 }
console.log(x) // 1
console.log(y) // 2
console.log(z) // { a: 3, b: 4 }
( --harmony) string.padStart() string.padEnd(), ...
P.S. , Node.js v: v0.10, v0.12, v4, v6. V8, : Node.js 8.
: