内容简介: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.lchown
has been undeprecated now that libuv supports it. #21498lib:
Atomics.wake
is being renamed toAtomics.notify
in the ECMAScript specification (reference). Since Node.js now has experimental support for worker threads, we are being proactive and added anotify
alias, while emitting a warning ifwake
is used. #21413 #21518n-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. #20725vm:
Add
script.createCachedData()
. This API replaces theproduceCachedData
option of theScript
constructor that is now deprecated. #20300worker:
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]
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- Python 3.7 上架微软商店,尚处于评估阶段
- WannaCry 病毒爆发两周年:百万台电脑依然处于危险之中
- Netflix开源的Hystrix不再开发新功能,目前处于维护模式
- 支付宝小程序向个人开发者开放公测:处于限量状态
- JDK 11 已处于特性冻结状态,看看 Java 11 API 变更提案
- 安全研究发现39万网站因公开的 .git repo 处于危险中
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。