Electron 11.0.0
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!
重要变化
架构(Stack)更新
- 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
有关新功能和变更的完整列表,请参阅 11.0.0 发布通知 。
重大更改
- 移除实验性API:
BrowserView.{fromId, fromWebContents, getAllViews}
和BrowserView
的id
属性. #23578
有关这些和未来变化的更多信息可在 计划的破坏性变化 页面找到。
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
终止对 8.x.y 的支持
根据项目的支持政策,Electron 8.x.y 已经达到了支持的终点。 我们鼓励开发者将应用程序升级到更新的 Electron 版本。
接下来
在短期内,您可以期待团队继续专注于跟上构成 Electron 的主要组件的开发,包括 Chromium、Node 和 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.
要想知道其他细节或时间相关的问题,请阅读并关注 这里。