IT资讯 Node.js 21.3.0 发布

robert · 2023-12-01 14:30:10 · 热度: 4

Node.js 是能够在服务器端运行 JavaScript 的开放源代码、跨平台 JavaScript 运行环境,采用 Google 开发的 V8 运行代码,使用事件驱动、非阻塞和异步输入输出模型等技术来提高性能。

Node.js 21.3.0 现已发布,具体更新内容如下:

Notable Changes

新的--disable-warningflag

此版本添加了一个新--disable-warning选项,允许用户通过 code(即 DEP0025)或 type(即 DeprecationWarning、ExperimentalWarning)禁用特定警告。

此选项与现有的--warnings--no-warnings一起使用。

例如,使用node --disable-warning=DEP0025执行以下脚本时,将不会发出 DEP0025require('node:sys')

import sys from 'node:sys';

#50661

Root Certificates 更新到 NSS 3.95

于 2023-11-16 发布的 NSS 3.95 中的 certdata.txt。

以及将于 2023 年 12 月 19 日在 Firefox 121 中发布的 NSS 版本。

已添加证书:

  • TrustAsia Global Root CA G3
  • TrustAsia Global Root CA G4
  • CommScope Public Trust ECC Root-01
  • CommScope Public Trust ECC Root-02
  • CommScope Public Trust RSA Root-01
  • CommScope Public Trust RSA Root-02

已删除的证书:

  • Autoridad de Certificacion Firmaprofesional CIF A62634068

Fast fs.writeFileSync with UTF-8 Strings

通过主要用 C++ 实现 UTF8 编码字符串数据的高效快速路径,增强了 writeFileSync 功能。

此外,还利用改进后的writeFileSync功能优化了appendFileSync方法。出于简单性和性能考虑,当前实现仅支持字符串数据,因为基准测试结果引起了人们对使用 Buffer 实现此目的的功效的担忧。未来可能会探索优化和扩展,但目前的重点是最大限度地提高字符串数据操作的效率。

#49884

详情可查看发布公告

为您推荐与 nodejs 相关的帖子:

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册