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

栏目: 软件资讯 · 发布时间: 5年前

内容简介:Node v10.4.0 已发布,该版本值得关注的更新是已提供处于实验阶段的 DNS 模块功能,此外还包括一些改进,如对 worker 的支持。 dns: An experimental promisified version of the dns module is now available....

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 模型。


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

认知盈余

认知盈余

[美] 克莱·舍基 / 胡泳、哈丽丝 / 中国人民大学出版社 / 2011-12 / 49.80元

“互联网革命最伟大的思考者”克莱•舍基 继《未来是湿的》之后最新力作 看自由时间如何变革世界的未来 如果说《未来是湿的》揭示的是“无组织的组织力量”, 那么《认知盈余》揭示的就是 “无组织的时间力量”。 腾讯董事会主席兼首席执行官马化腾首度亲笔作序倾情推荐 克莱•舍基说,美国人一年花在看电视上的时间大约2 000亿个小时,而这几乎是2 000个维基百科项目一年所需要的......一起来看看 《认知盈余》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具