跳转到主内容

Electron 40.0.0

· 阅读时间:约 3 分钟

Electron 40.0.0 已发布! 它包括对 Chromium 144.0.7559.60、V8 14.4 和 Node 24.11.1 的升级。


Electron 团队很高兴发布了 Electron 40.0.0 ! 你可以通过 npm install electron@latest 或者从我们的发布网站下载它。 继续阅读此版本的详细信息。

如果您有任何反馈,请在 BlueskyMastodon 上与我们分享,或加入我们的 Discord 社区! Bug 和功能请求可以在 Electron 的问题跟踪器中报告。

架构(Stack)更新

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

  • Added "memory-eviction" as a possible reason for a child process to exit. #48362
  • Added bypassCustomProtocolHandlers option to net.request. #48883 (Also in 38, 39)
  • Added support to import external shared texture as VideoFrame. #48831
  • Automatically focus DevTools when element is inspected or breakpoint is triggered. #46386 (Also in 37, 38, 39)
  • Enabled resetting accent color to follow system accent settings if a previous color has been set via window.setAccentColor(null). #48274 (Also in 38, 39)
  • Updated nativeImage.createFromNamedImage to support SF Symbol names. #48772 (Also in 39)

重大更改

Deprecated: clipboard API access from renderer processes

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.

Behavior Changed: macOS dSYM files now compressed with 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 的支持

根据项目的支持政策,Electron 37.x.y 已经达到了支持的终点。 我们鼓励开发者将应用程序升级到更新的 Electron 版本。

E40 (Jan'26)E41 (Mar'26)E42 (May'26)
40.x.y41.x.y42.x.y
39.x.y40.x.y41.x.y
38.x.y39.x.y40.x.y

接下来

在短期内,您可以期待团队继续专注于跟上构成 Electron 的主要组件的开发,包括 Chromium、Node 和 V8。

您可以在此处找到 Electron 的公开时间表

有关这些和未来变化的更多信息可在计划的突破性变化页面找到。