我们非常高兴地宣布 Node.js 22 正式发布!其亮点包括 require()ing ESM 图形、WebSocket 客户端、V8 JavaScript 引擎更新等!需要提醒的是,Node.js 22 将于 10 月份进入长期支持 (LTS),但在此之前,它将是未来六个月的 “当前 “版本。我们鼓励您探索这一最新版本提供的新功能和优势,并评估它们对您的应用程序的潜在影响。
其他值得注意的变更
[25c79f3331] – esm:放弃对导入断言的支持(Nicolò Ribaudo) #52104
[818c10e86d] – lib:提高创建 AbortSignal 的性能 (Raz Luvaton) #52408
[4f68c7c1c9] – watch:标记为稳定 (Moshe Atlow) #52074
[02b0bc01fe] – (SEMVER-MAJOR) deps:更新 V8 至 12.4.254.14 (Michaël Zasso) #52465
[c975384264] – (SEMVER-MAJOR) lib:默认启用 WebSocket (Aras Abbasi) #51594
[1abff07392] – (SEMVER-MAJOR) stream:提升默认高水位(Robert Nagy) #52037
[1a5acd0638] – (SEMVER-MAJOR) v8:在支持的架构上启用磁悬浮 (Keyhan Vakil) #51360
[128c60d906] – (SEMVER-MINOR) cli:实现 node –run <script-in-package-json> (Yagiz Nizipli) #52190
[151d365ad1] – (SEMVER-MINOR) fs:公开 glob 和 globSync (Moshe Atlow) #51912
[5f7fad2605] – (SEMVER-MINOR) 模块:支持 require()ing 同步 ESM 图 (Joyee Cheung) #51977
更多 Node.js — Node v22.0.0 (Current) (nodejs.org)
Windows 32-bit Installer: https://nodejs.org/dist/v22.0.0/node-v22.0.0-x86.msi
Windows 64-bit Installer: https://nodejs.org/dist/v22.0.0/node-v22.0.0-x64.msi
Windows ARM 64-bit Installer: https://nodejs.org/dist/v22.0.0/node-v22.0.0-arm64.msi
Windows 32-bit Binary: https://nodejs.org/dist/v22.0.0/win-x86/node.exe
Windows 64-bit Binary: https://nodejs.org/dist/v22.0.0/win-x64/node.exe
Windows ARM 64-bit Binary: https://nodejs.org/dist/v22.0.0/win-arm64/node.exe
macOS 64-bit Installer: https://nodejs.org/dist/v22.0.0/node-v22.0.0.pkg
macOS Apple Silicon 64-bit Binary: https://nodejs.org/dist/v22.0.0/node-v22.0.0-darwin-arm64.tar.gz
macOS Intel 64-bit Binary: https://nodejs.org/dist/v22.0.0/node-v22.0.0-darwin-x64.tar.gz
Linux 64-bit Binary: https://nodejs.org/dist/v22.0.0/node-v22.0.0-linux-x64.tar.xz
Linux PPC LE 64-bit Binary: https://nodejs.org/dist/v22.0.0/node-v22.0.0-linux-ppc64le.tar.xz
Linux s390x 64-bit Binary: https://nodejs.org/dist/v22.0.0/node-v22.0.0-linux-s390x.tar.xz
AIX 64-bit Binary: https://nodejs.org/dist/v22.0.0/node-v22.0.0-aix-ppc64.tar.gz
ARMv7 32-bit Binary: https://nodejs.org/dist/v22.0.0/node-v22.0.0-linux-armv7l.tar.xz
ARMv8 64-bit Binary: https://nodejs.org/dist/v22.0.0/node-v22.0.0-linux-arm64.tar.xz
Source Code: https://nodejs.org/dist/v22.0.0/node-v22.0.0.tar.gz
Other release files: https://nodejs.org/dist/v22.0.0/
Documentation: https://nodejs.org/docs/v22.0.0/api/