Electron 40.0.0
Electron 40.0.0 已发布!它包括对 Chromium 144.0.7559.60、V8 14.4 和 Node 24.11.1 的升级。
🌐 Electron 40.0.0 has been released! It includes upgrades to Chromium 144.0.7559.60, V8 14.4, and Node 24.11.1.
Electron 团队很高兴地宣布发布 Electron 40.0.0!你可以通过 npm 使用 npm install electron@latest 安装,或从我们的发布网站下载。请继续阅读以了解此次发布的详细信息。
🌐 The Electron team is excited to announce the release of Electron 40.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. Continue reading for details about this release.
如果你有任何反馈,请通过 Bluesky 或 Mastodon 与我们分享,或者加入我们的社区 Discord!可以在 Electron 的 问题追踪器 报告漏洞和功能请求。
🌐 If you have any feedback, please share it with us on Bluesky or Mastodon, or join our community Discord! Bugs and feature requests can be reported in Electron's issue tracker.
技术栈变更
🌐 Stack Changes
- Chromium
144.0.7559.60 - 节点
v24.11.1 - V8
14.4
Electron 40 将 Chromium 从 142.0.7444.52 升级到 144.0.7559.60,Node.js 从 v22.20.0 升级到 v24.11.1,V8 从 14.2 升级到 14.4。
🌐 Electron 40 upgrades Chromium from 142.0.7444.52 to 144.0.7559.60, Node.js from v22.20.0 to v24.11.1, and V8 from 14.2 to 14.4.
新功能和改进
🌐 New Features and Improvements
- 添加了
"memory-eviction"作为子进程退出的可能原因。 #48362 - 已向
net.request添加bypassCustomProtocolHandlers选项。#48883 (也在 38, 39) - 已添加支持将外部共享纹理导入为
VideoFrame。#48831 - 当检查元素或触发断点时自动聚焦开发者工具。#46386 (也在 37, 38, 39 中)
- 启用将强调色重置为跟随系统强调色设置,如果之前已经通过
window.setAccentColor(null)设置了颜色。 #48274 (同样在 38, 39) - 已更新
nativeImage.createFromNamedImage,以支持 SF 符号名称。#48772 (也在 39 中)
重大变化
🌐 Breaking Changes
已弃用:渲染进程访问剪贴板 API
🌐 Deprecated: clipboard API access from renderer processes
在渲染进程中直接使用 clipboard API 已被废弃。如果你想从渲染进程调用此 API,请将 API 调用放在你的预加载脚本中,并使用 contextBridge API 暴露它。
🌐 Using the clipboard API directly in the renderer process is deprecated. If you want to call this API from a renderer process, place the API call in your preload script and expose it using the contextBridge API.
行为已更改:macOS dSYM 文件现在使用 tar.xz 压缩
🌐 Behavior Changed: macOS dSYM files now compressed with tar.xz
macOS 的调试符号 (dSYM) 现在使用 xz 压缩,以处理更大的文件大小。dsym.zip 文件现在是 dsym.tar.xz 文件。使用调试符号的终端用户可能需要更新他们的压缩工具。
🌐 Debug symbols for macOS (dSYM) now use xz compression in order to handle larger file sizes. dsym.zip files are now dsym.tar.xz files. End users using debug symbols may need to update their zip utilities.
37.x.y 版本停止支持
🌐 End of Support for 37.x.y
根据项目的支持政策,Electron 37.x.y 已达到支持结束。建议开发者和应用升级到更新版本的 Electron。
🌐 Electron 37.x.y has reached end-of-support as per the project's support policy. Developers and applications are encouraged to upgrade to a newer version of Electron.
| E40(2026年1月) | E41(2026年3月) | E42(2026年5月) |
|---|---|---|
| 40.x.y | 41.x.y | 42.x.y |
| 39.x.y | 40.x.y | 41.x.y |
| 38.x.y | 39.x.y | 40.x.y |
下一步计划
🌐 What's Next
短期内,你可以预期团队将继续专注于跟上构成 Electron 的主要组件(包括 Chromium、Node 和 V8)的开发。
🌐 In the short term, you can expect the team to continue to focus on keeping up with the development of the major components that make up Electron, including Chromium, Node, and V8.
你可以在这里找到 Electron 的公开时间线。
🌐 You can find Electron's public timeline here.
有关未来更改的更多信息可以在计划中的重大变更页面上找到。
🌐 More information about future changes can be found on the Planned Breaking Changes page.