Node v10.6.0 发布,提供处于实验阶段的 DNS 模块功能

2018-07-05    来源:oschina

容器云强势上线!快速搭建集群,上万Linux镜像随意使用
Node.js

Node v10.4.0 已发布,该版本值得关注的更新是已提供处于实验阶段的 DNS 模块功能,此外还包括一些改进,如对 worker 的支持。

  • dns:

    • An experimental promisified version of the dns module is now available. Give it a try with require('dns').promises. #21264

  • fs:

    • fs.lchown has been undeprecated now that libuv supports it. #21498

  • lib:

    • Atomics.wake is being renamed to Atomics.notify in the ECMAScript specification (reference). Since Node.js now has experimental support for worker threads, we are being proactive and added a notify alias, while emitting a warning if wake is used. #21413 #21518

  • n-api:

    • Add API for asynchronous functions. #17887

  • util:

    • util.inspect is now able to return a result instead of throwing when the maximum call stack size is exceeded during inspection. #20725

  • vm:

    • Add script.createCachedData(). This API replaces the produceCachedData option of the Script constructor that is now deprecated. #20300

  • worker:

    • Support for relative paths has been added to the Worker constructor. Paths are interpreted relative to the current working directory. #21407

下载地址:https://nodejs.org/en/download/current/, https://github.com/nodejs/node/releases/tag/v10.6.0

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

标签: dns

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点!
本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。

上一篇:7 月编程语言指数榜:Python 与 Java 逐渐拉开差距

下一篇:key-value 存储系统 RocksDB v5.14.2 发布,bug 修复