Node.js 9.6.0 已发布,有以下值得关注的变化:
[list][*]async_hooks:
[list][*]deprecate unsafe emit{Before,After} (Ali Ijaz Sheikh) #18513
[*]rename PromiseWrap.parentId to PromiseWrap.isChainedPromise (Ali Ijaz Sheikh) #18633
[/list][*]deps:
[list][*]update node-inspect to 1.11.3 (Jan Krems) #18354
[*]ICU 60.2 bump (Steven R. Loomis) #17687
[*]Introduce ScriptOrModule and HostDefinedOptions to V8 (Jan Krems) #16889
[/list][*]http:
[list][*]add options to http.createServer() for IncomingMessage and ServerReponse (Peter Marton) #15752
[/list][*]http2:
[list][*]add http fallback options to .createServer (Peter Marton) #15752
[/list][*]https:
[list][*]Adds the remaining options from tls.createSecureContext() to the string generated by Agent#getName(). This allows https.request() to accept the options and generate unique sockets appropriately. (Jeff Principe) #16402
[/list][*]inspector:
[list][*]--inspect-brk for es modules (Guy Bedford) #18194
[/list][*]lib:
[list][*]allow process kill by signal number (Sam Roberts) #16944
[/list][*]module:
[list][*]enable dynamic import (Myles Borins) #18387
[*]dynamic import is now supported (Jan Krems) #15713
[/list][*]n-api:
[list][*]add methods to open/close callback scope (Michael Dawson) #18089
[/list][*]src:
[list][*]allow --perf-(basic-)?prof in NODE_OPTIONS (Leko) #17600
[/list][*]vm:
[list][*]add support for es modules (Gus Caplan) #17560
[/list][/list]下载地址:https://nodejs.org/en/download/current/
Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行时。Node.js 使用高效、轻量级的事件驱动、非阻塞 I/O 模型。Node.js 的生态系统是目前最大的开源包管理系统。
来自:开源中国社区