[聚合文章] Node.js 9.3.0 发布,服务器端 JavaScript 运行环境

JavaScript 2017-12-17 23 阅读

Node.js 9.3.0 已发布,Node.js 是一个基于 Chrome V8 引擎 的 JavaScript 运行时。 Node.js 使用高效、轻量级的事件驱动、非阻塞 I/O 模型。

主要更新内容如下:

  • async_hooks:

    • add trace events to async_hooks (Andreas Madsen) #15538

    • add provider types for net server (Andreas Madsen) #17157

  • console:

    • console.debug can now be used outside of the inspector (Benjamin Zaslavsky) #17033

  • deps:

    • upgrade libuv to 1.18.0 (cjihrig) #17282

    • patch V8 to 6.2.414.46 (Myles Borins) #17206

  • module:

    • module.builtinModules will return a list of built in modules (Jon Moss) #16386

  • n-api:

    • add helper for addons to get the event loop (Anna Henningsen) #17109

  • process:

    • process.setUncaughtExceptionCaptureCallback can now be used to customize behavior for --abort-on-uncaught-exception (Anna Henningsen)  #17159

    • A signal handler is now able to receive the signal code that triggered the handler. (Robert Rossmann) #15606

  • src:

    • embedders can now use Node::CreatePlatform to create an instance of NodePlatform (Cheng Zhao) #16981

  • stream:

    • writable.writableHighWaterMark and readable.readableHighWaterMark will return the values the stream object was instantiated with (Calvin Metcalf) #12860

  • Added new collaborators

完整更新内容及下载地址: https://nodejs.org/en/blog/release/v9.3.0/

注:本文内容来自互联网,旨在为开发者提供分享、交流的平台。如有涉及文章版权等事宜,请你联系站长进行处理。