Electron 11.0.0
Electron 11.0.0 已发布!它包含对 Chromium 87
、V8 8.7
和 Node.js 12.18.3
的升级。我们增加了对 Apple 芯片的支持,并进行了常规改进。请阅读下文了解更多详情!
¥Electron 11.0.0 has been released! It includes upgrades to Chromium 87
, V8 8.7
, and Node.js 12.18.3
. We've added support for Apple silicon, and general improvements. Read below for more details!
Electron 团队非常高兴地宣布 Electron 11.0.0 正式发布!你可以通过 npm install electron@latest
使用 npm 安装它,也可以从我们的 发布网站。此版本包含升级、修复和对 Apple M1 硬件的全新支持。
¥The Electron team is excited to announce the release of Electron 11.0.0! You can install it with npm via npm install electron@latest
or download it from our releases website. The release is packed with upgrades, fixes, and new support for Apple's M1 hardware.
我们迫不及待地想看看你使用它们构建的内容!继续阅读以了解有关此版本的详细信息,并请分享你的任何反馈!
¥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
-
对 Apple M1 的支持:11 月 10 日,Apple 发布了他们的 新的 M1 芯片,将包含在即将推出的硬件中。从 Electron 11 开始,Electron 将为 Intel Mac(x64)和 Apple 即将推出的 M1 硬件(arm64)分别发布不同版本的 Electron。你可以了解更多关于如何获取 Electron 应用 在 Apple M1 硬件上运行。 #24545 的信息。
¥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
-
在 crashReport 参数中添加了 V8 崩溃消息和位置信息。#24771
¥Added V8 crash message and location information to crashReport parameters. #24771
-
改进了通过上下文发送宽对象的性能桥接。#24671
¥Improved the performance of sending wide objects over the context bridge. #24671
请参阅 11.0.0 发行说明 获取新功能和变更的完整列表。
¥See the 11.0.0 release notes for a full list of new features and changes.
重大变化
¥Breaking Changes
-
移除了实验性 API:
BrowserView.{fromId, fromWebContents, getAllViews}
和BrowserView
的id
属性。#23578¥Removed experimental APIs:
BrowserView.{fromId, fromWebContents, getAllViews}
and theid
property ofBrowserView
. #23578
有关这些变更和未来变更的更多信息,请参阅 计划中的突发事件变更 页面。
¥More information about these and future changes can be found on the Planned Breaking Changes page.
API 变更
¥API Changes
-
添加了可返回处理特定协议的应用详细信息的
app.getApplicationInfoForProtocol()
API。#24112¥Added
app.getApplicationInfoForProtocol()
API that returns detailed information about the app that handles a certain protocol. #24112 -
添加了可根据文件路径和最大缩略图大小返回文件预览图的
app.createThumbnailFromPath()
API。#24802¥Added
app.createThumbnailFromPath()
API that returns a preview image of a file given its file path and a maximum thumbnail size. #24802 -
添加
webContents.forcefullyCrashRenderer()
以强制终止渲染器进程,以帮助恢复挂起的渲染器。#25756¥Added
webContents.forcefullyCrashRenderer()
to forcefully terminate a renderer process to assist with recovering a hung renderer. #25756
8.x.y 停止支持
¥End of Support for 8.x.y
根据项目的 支持政策,Electron 8.x.y 已达到支持终止状态。建议开发者和应用升级到较新版本的 Electron。
¥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
短期内,你可以预期团队将继续专注于跟上构成 Electron 的主要组件(包括 Chromium、Node 和 V8)的开发。虽然我们谨慎地不对发布日期做出承诺,但我们计划大约每季度发布一次 Electron 的新主要版本及其组件的新版本。暂定 12.0.0 计划 列出了 Electron 12.0 开发生命周期中的关键日期。此外,查看我们的版本控制文档 提供了有关 Electron 版本控制的更多详细信息。
¥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. The tentative 12.0.0 schedule maps out key dates in the Electron 12.0 development life cycle. Also, see our versioning document for more detailed information about versioning in Electron.
有关即将推出的 Electron 版本 查看我们的“计划重大变更”文档 中计划的重大变更的信息。
¥For information on planned breaking changes in upcoming versions of Electron, see our Planned Breaking Changes doc.
继续弃用 remote
模块
¥Continued Work for Deprecation of remote
Module
我们开始着手在 Electron 9 中移除 remote
模块。我们计划在 Electron 14 中移除 remote
模块本身。
¥We started work to remove the remote
module in Electron 9. We plan to remove the remote
module itself in Electron 14.
请阅读并遵循 这个问题 了解弃用的完整计划和详情。
¥Read and follow this issue for full plans and details for deprecation.
要求原生 Node 模块具备上下文感知或 N-API 的最后一步(在 Electron 12 中)
¥Final Step for Requiring Native Node Modules to be Context Aware or N-API (in Electron 12)
从 Electron 6 开始,我们一直在努力确保在渲染器进程中加载的 原生 Node 模块 必须是 N-API 或 上下文感知。强制执行此更改可以提高安全性、加快性能并减少维护工作量。该计划的最后一步是移除 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.
请阅读并遵循 这个问题 了解完整详情,包括建议的时间表。
¥Read and follow this issue for full details, including the proposed timeline.