Node.js 10.2.0 已发布,这是针对 10.x 系列的第二个维护版本,包含一些改进和修复。
主要亮点:
addons:
Fixed a memory leak for users of
AsyncResource
and N-API. (Michael Dawson) #20668assert:
The
error
parameter ofassert.throws()
can be an object containing regular expressions now. (Ruben Bridgewater) #20485crypto:
esm:
Builtin modules (e.g.
fs
) now provide named exports in ES6 modules. (Gus Caplan) #20403http:
module:
add --preserve-symlinks-main (David Goldstein) #19911
timers:
timeout.refresh()
has been added to the public API. (Jeremiah Senkpiel) #20298Embedder support:
Functions for creating V8
Isolate
andContext
objects with Node.js-specific behaviour have been added to the API. (Allen Yonghuang Wang) #20639Node.js
Environment
s clean up resources before exiting now. (Anna Henningsen) #19377Support for multi-threaded embedding has been improved. (Anna Henningsen) #20542, #20539, #20541
下载地址:
最重要的就是这个了
表示内部组件可以使用 import 语法了.又进一步了