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
- An experimental promisified version of the dns module is now available. Give it a try with
- fs:
fs.lchownhas been undeprecated now that libuv supports it. #21498
- lib:
- n-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. #20725
- vm:
- Add
.createCachedData(). This API replaces theproduceCachedDataoption of theconstructor that is now deprecated. #20300
- Add
- worker:
- Support for relative paths has been added to the
Workerconstructor. Paths are interpreted relative to the current working directory. #21407
- Support for relative paths has been added to the
下载地址:https://nodejs.org/en/download/current/, https://github.com/nodejs/node/releases/tag/v10.6.0
Node.js 是一个基于 Chrome V8 引擎的 运行时。Node.js 使用高效、轻量级的事件驱动、非阻塞 I/O 模型。
继续阅读与本文标签相同的文章
-
8年前诞生于淘宝,细数阿里云RPA 的前世今生!
2026-05-18栏目: 教程
-
Flink Checkpoint 问题排查实用指南
2026-05-18栏目: 教程
-
[集合]AbstractCollection源码解析(2)
2026-05-18栏目: 教程
-
月活用户达7.55亿,阿里淘系如何在后流量时代引爆用户增长?
2026-05-18栏目: 教程
-
再议 C 语言中的指针与数组(4)
2026-05-18栏目: 教程
