Electron 11.0.0 已发布! 它包括升级到 Chromium 87
, V8 8.7
, 和 Node.js 12.18.3
。 我们已经添加了对Apple silicon和一般改进的支持。 请阅读下文了解更多详情!
Electron 团队很高兴发布了 Electron 11.0.0.0! 您可以通过 npm 安装electron@later
或者从我们的 发布网站 下载它。 新版本包括内容更新及问题修复,提供对Apple M1的硬件支持。
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!
Notable Changes
Stack Changes
- Chromium
87.0.4280.47
- Node.js
12.18.3
- V8
8.7
Highlight Features
- Support for Apple M1: On November 10, Apple announced their new M1 chips, which will be included in their upcoming hardware. Beginning in Electron 11, Electron will be shipping separate versions of Electron for Intel Macs (x64) and Apple's upcoming M1 hardware (arm64). You can learn more about how to get your Electron app running on Apple's M1 hardware here. #24545
- Added V8 crash message and location information to crashReport parameters. #24771
- Improved the performance of sending wide objects over the context bridge. #24671
See the 11.0.0 release notes for a full list of new features and changes.
重大更改
- 移除实验性API:
BrowserView.{fromId, fromWebContents, getAllViews}
和BrowserView
的id
属性. #23578
More information about these and future changes can be found on the Planned Breaking Changes page.
API 更改
- Added
app.getApplicationInfoForProtocol()
API that returns detailed information about the app that handles a certain protocol. #24112 - Added
app.createThumbnailFromPath()
API that returns a preview image of a file given its file path and a maximum thumbnail size. #24802 - Added
webContents.forcefullyCrashRenderer()
to forcefully terminate a renderer process to assist with recovering a hung renderer. #25756
End of Support for 8.x.y
Electron 8.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.
What's Next
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. Although we are careful not to make promises about release dates, our plan is to release new major versions of Electron with new versions of those components approximately quarterly. 暂定 12.0.0 时间表 展示了 Electron 12.0 开发生命周期中的关键日期。 Also, see our versioning document for more detailed information about versioning in Electron.
For information on planned breaking changes in upcoming versions of Electron, see our Planned Breaking Changes doc.
未来将弃用 remote
模块
我们已经着手移除Electron 9中的 remote
模块, 计划在Electron 14中完成。
要想知道有关移除计划的全部细节,请阅读并关注 这里。
Final Step for Requiring Native Node Modules to be Context Aware or N-API (in Electron 12)
From Electron 6 onwards, we've been laying the groundwork to require native Node modules loaded in the renderer process to be either N-API or Context Aware. Enforcing this change allows for stronger security, faster performance, and reduced maintenance workload. The final step of this plan is to remove the ability to disable render process reuse in Electron 12.
要想知道其他细节或时间相关的问题,请阅读并关注 这里。