Electron 32.0.0
· 阅读时间:约 5 分钟
Electron 32.0.0 已发布! 包括升级 Chromium 128.0.6613.36
,和 V8 12.8
以及 Node. js 20.16.2
。
Electron 团队很高兴发布了 Electron 32.0.0! 你可以通过 npm install electron@latest
或者从我们的发布网站下载它。 继续阅读此版本的详细信息。
如果您有任何反馈,请在 Twitter 或 Mastodon 上与我们分享,或加入我们的 Discord 社区! Bug 和功能请求可以在 Electron 的问题跟踪器中报告。
重要变化
重点内容
- 在我们的文档中添加新的 API 版本历史,一个由 @piotrpdev 创建的功能,作为Google Summer 代码的一部分。 You can learn more about it in this blog post. #42982
- 从 Web 文件 API 中移除非标准
File.path
扩展。 #42053 - 尝试打开受阻止路径中的文件或目录时,将 Web File System API 中的故障路径与上游对齐。 #42993
- 将以下现有的导航相关API添加到
webContents.navigationHistory
:canGoBack
,goBack
,canGoForward
,goForward
,canGoToOffset
,goToOffset
,clear
。 旧的导航API现已被废弃。 #41752
架构(Stack)更新
- Chromium
128.0.6613.36
- Node
20.16.0
- V8
12.8
Electron 32 将 Chromium 从 026.0.6478.36
升级到 128.0.6613.36
, Node 从 20.14.0
升级到 20.16.1
以及 V8 从 12.6
升级到 12.8
。
新特性
- 添加了对通过
app
模块的'login'
事件,响应来自实用程序进程发起的认证请求的支持。 #43317 - 在
CPUUsage
结构中添加了cumulativeCPUUsage
属性,该属性返回自进程启动以来使用的 CPU 时间的总秒数。 #41819 - 将以下现有的导航相关API添加到
webContents.navigationHistory
:canGoBack
,goBack
,canGoForward
,goForward
,canGoToOffset
,goToOffset
,clear
。 #41752 - 扩展
WebContentsView
以接受预先存在的webContents
对象。 #42086 - 在
nativeTheme
中添加了一个新属性prefersReducedTransparency
,该属性指示用户是否选择通过系统辅助功能设置来降低操作系统级别的透明度。 #43137 - 尝试打开阻塞路径中的文件或目录时,将文件系统访问 API 中的故障路径与上游对齐。 #42993
- 在 Linux 上启用 Windows 控制叠加层API。 #42681
- 在网络请求中启用
zstd
压缩。 #43300