Electron 40.0.0
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 或者从我们的发布网站下载它。 继续阅读此版本的详细信息。
如果您有任何反馈,请在 Bluesky 或 Mastodon 上与我们分享,或加入我们的 Discord 社区! Bug 和功能请求可以在 Electron 的问题跟踪器中报告。
架构(Stack)更新
-
Chromium
144.0.7559.60 -
Node
v24.11.1 -
V8
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
- Added "memory-eviction" as a possible reason for a child process to exit. #48362
- Added
RGBAF16output format with scRGB HDR color space support to Offscreen Rendering. #48265 (Also in 39) - 添加
app.isHardwareAccelerationEnabled()。 #47614 (Also in 37, 38, 39) - Added bypassCustomProtocolHandlers option to net.request. #48883 (Also in 38, 39)
- Added methods to enable more granular accessibility support management. #48042 (Also in 37, 38, 39)
- Added support to import external shared texture as VideoFrame. #48831
- Added the ability to retrieve the system accent color on Linux using
systemPreferences.getAccentColor. #48027 (Also in 39) - Allowed for persisting File System API grant status within a given session. #48170 (Also in 37, 38, 39)
- Automatically focus DevTools when element is inspected or breakpoint is triggered. #46386 (Also in 37, 38, 39)
- Enables resetting accent color to follow system accent settings if a previous color has been set via
window.setAccentColor(null). #48274 (Also in 38, 39) - Support dynamic ESM imports in non-context isolated preloads. #48375 (Also in 37, 38, 39)
- Updated
nativeImage.createFromNamedImageto 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.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 |
接下来
在短期内,您可以期待团队继续专注于跟上构成 Electron 的主要组件的开发,包括 Chromium、Node 和 V8。
您可以在此处找到 Electron 的公开时间表。
有关这些和未来变化的更多信息可在计划的突破性变化页面找到。
