Node v10.4.0 已发布,该版本值得关注的更新是已提供处于实验阶段的 DNS 模块功能,此外还包括一些改进,如对 worker 的支持。
require('dns').promises
. #21264fs.lchown
has been undeprecated now that libuv supports it. #21498util.inspect
is now able to return a result instead of throwing when the maximum call stack size is exceeded during inspection. #20725script.createCachedData()
. This API replaces the produceCachedData
option of the Script
constructor that is now deprecated. #20300Worker
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 模型。
领取专属 10元无门槛券
私享最新 技术干货