Node.js 10.2.0 发布,功能改进和 Bug 修复

  

Node.js 10.2.0 已发布,这是针对 10.x 系列的第二个维护版本,包含一些改进和修复。

主要亮点:

  • addons:

    • Fixed a memory leak for users of AsyncResource and N-API. (Michael Dawson) #20668

  • assert:

    • The error parameter of assert.throws() can be an object containing regular expressions now. (Ruben Bridgewater) #20485

  • crypto:

    • The authTagLength option has been made more flexible. (Tobias Nießen) #20235#20039

  • esm:

    • Builtin modules (e.g. fs) now provide named exports in ES6 modules. (Gus Caplan) #20403

  • http:

    • Handling of close and aborted events has been made more consistent. (Robert Nagy) #20075#20611

  • module:

    • add --preserve-symlinks-main (David Goldstein) #19911

  • timers:

    • timeout.refresh() has been added to the public API. (Jeremiah Senkpiel) #20298

  • Embedder support:

    • Functions for creating V8 Isolate and Context objects with Node.js-specific behaviour have been added to the API. (Allen Yonghuang Wang) #20639

    • Node.js Environments clean up resources before exiting now. (Anna Henningsen) #19377

    • Support for multi-threaded embedding has been improved. (Anna Henningsen) #20542#20539#20541

更多内容可查阅更新日志。

下载地址:

猜你喜欢

转载自www.oschina.net/news/96382/nodejs-10-2-0-released