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

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

内容简介: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]


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

查看所有标签

猜你喜欢:

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

网络心理学

网络心理学

玛丽•艾肯 (Mary Aiken) / 中信出版社 / 2018-8-1 / CNY 58.00

《五十度灰》如何利用恋物心理,成为全球仅次于《圣经》的畅销读物? 为什么相对于亲朋好友,你更愿意向网络陌生人敞开心扉? 上网时总感觉时间飞逝,原来是网络的时间扭曲效应? 网络游戏中埋伏了哪些“上瘾”机关,暗中操控着你的行为? 为什么科技越发达,我们就越怕死? ...... 网络空间是一个巨大的兔子洞,里面集合了新奇、刺激、喜悦、痛苦、不安等各种元素。在日复一日的......一起来看看 《网络心理学》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具