内容简介: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. #21264fs:
fs.lchownhas been undeprecated now that libuv supports it. #21498lib:
Atomics.wakeis being renamed toAtomics.notifyin the ECMAScript specification (reference). Since Node.js now has experimental support for worker threads, we are being proactive and added anotifyalias, while emitting a warning ifwakeis used. #21413 #21518n-api:
Add API for asynchronous functions. #17887
util:
util.inspectis now able to return a result instead of throwing when the maximum call stack size is exceeded during inspection. #20725vm:
Add
script.createCachedData(). This API replaces theproduceCachedDataoption of theScriptconstructor that is now deprecated. #20300worker:
Support for relative paths has been added to the
Workerconstructor. 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]
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。