Electron 10.0.0
· 阅读时间:约 5 分钟
Electron 10.0.0 已发布! 它包括升级到 Chromium 85
, V8 8.5
, 和 Node.js 12.16
。 我们添加了几个新的 API 集成和改进。 请阅读下文了解更多详情!
Electron 团队很高兴发布了 Electron 10.0.0.0! 您可以通过 npm 安装electron@later
或者从我们的 发布网站 下载它。 这次发布包含升级、修复和新功能。
在 Electron 10 发布版中,我们还修改了我们的版本说明。 To make it easier to tell what's brand new in Electron 10 and what may have changed between Electron 10 and past releases, we now also include changes that were introduced to Electron 10, but backported to previous releases. We hope this makes it easier to apps to find new features and bug fixes when upgrading Electron.
We can't wait to see what you build with them! Continue reading for details about this release, and please share any feedback you have!
重要变化
架构(Stack)更新
- Chromium
85.0.4183.84
- Node.js
12.16.3
- V8
8.5
Highlight Features
- Added
contents.getBackgroundThrottling()
method andcontents.backgroundThrottling
property. [#21036] - Exposed the
desktopCapturer
module in the main process. #23548 - Can now check if a given
session
is persistent by calling theses.isPersistent()
API. #22622 - Resolve network issues that prevented RTC calls from being connected due to network IP address changes and ICE. (Chromium issue 1113227). #24998
有关新功能和变更的完整列表,请参阅 10.0.0 发布通知 。
重大更改
- Changed the default value of
enableRemoteModule
tofalse
. #22091- This is part of our plans for deprecating the
remote
module and moving it to userland. You can read and follow this issue that details our reasons for this and includes a proposed timeline for deprecation.
- This is part of our plans for deprecating the
- Changed the default value of
app.allowRendererProcessReuse
totrue
. #22336 (Also in Electron 9)- This will prevent loading of non-context-aware native modules in renderer processes.
- You can read and follow this issue that details our reasons for this and includes a proposed timeline for deprecation.
- Fixed the positioning of window buttons on macOS when the OS locale is set to an RTL language (like Arabic or Hebrew). Frameless window apps may have to account for this change while styling their windows. #22016
有关这些和未来变化的更多信息可在 计划的破坏性变化 页面找到。