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 使用 npm install electron@latest 安装,或者从我们的发布网站下载。本次发布包括大量升级、修复,以及对 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
- 对 Apple M1 的支持:在 11 月 10 日,苹果宣布了他们的新款 M1 芯片,这将应用于即将发布的硬件。从 Electron 11 开始,Electron 将提供分别针对 Intel Mac(x64)和苹果即将推出的 M1 硬件(arm64)的版本。你可以在这里了解更多关于如何让你的 Electron 应用在苹果 M1 硬件上运行的信息 #24545
- 已将 V8 崩溃消息和位置信息添加到 crashReport 参数中。#24771
- 提升了通过上下文桥发送大对象的性能。 #24671
请查看 11.0.0 版本说明 以获取完整的新功能和更改列表。
🌐 See the 11.0.0 release notes for a full list of new features and changes.
技术栈变更
🌐 Stack Changes
- Chromium
87.0.4280.47 - Node.js
12.18.3 - V8
8.7
重大变化
🌐 Breaking 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 变更
🌐 API Changes
- 添加了
app.getApplicationInfoForProtocol()API,可返回处理某个协议的应用的详细信息。 #24112 - 添加了
app.createThumbnailFromPath()API,可以根据文件路径和最大缩略图尺寸返回文件的预览图片。#24802 - 添加了
webContents.forcefullyCrashRenderer()用于强制终止渲染器进程,以帮助恢复卡住的渲染器。#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.