Electron 21.0.0
Electron 21.0.0 已经发布!它包括对 Chromium 106、V8 10.6 和 Node.js 16.16.0 的升级。请往下阅读获取更多详细信息!
🌐 Electron 21.0.0 has been released! It includes upgrades to Chromium 106, V8 10.6, and Node.js 16.16.0. Read below for more details!
Electron 团队很高兴地宣布发布 Electron 21.0.0!你可以通过 npm 使用 npm install electron@latest 安装,或从我们的发布网站下载。请继续阅读以了解此次发布的详细信息。
🌐 The Electron team is excited to announce the release of Electron 21.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. Continue reading for details about this release.
如果你有任何反馈,请通过 Twitter 与我们分享,或加入我们的社区 Discord!你可以在 Electron 的 问题追踪器 中报告错误和功能请求。
🌐 If you have any feedback, please share it with us on Twitter, or join our community Discord! Bugs and feature requests can be reported in Electron's issue tracker.
技术栈变更
🌐 Stack Changes
- Chromium
106 - Node.js
16.16.0 - V8
10.6
新功能
🌐 New Features
- 已添加
webFrameMain.origin。 #35534 - 新增了
WebContents.ipc和WebFrameMain.ipcAPIs。#35231 - 新增对面板式行为的支持。窗口可以浮于全屏应用之上。 #34388
- 为 macOS 应用添加了来自 APNs 的推送通知支持。 #33574
重大变更和 API 变更
🌐 Breaking & API Changes
以下是 Electron 21 中引入的重大变更。
🌐 Below are breaking changes introduced in Electron 21.
V8 内存笼已启用
🌐 V8 Memory Cage Enabled
Electron 21 启用了 V8 沙箱指针,遵循了 Chrome 在 Chrome 103 中做出相同决定。这对本地模块有一些影响。此功能具有性能和安全方面的好处,但也对本地模块施加了一些新的限制,例如使用指向外部(“堆外”)内存的 ArrayBuffers。更多信息请参见 这篇博客文章。#34724
🌐 Electron 21 enables V8 sandboxed pointers, following Chrome's decision to do the same in Chrome 103. This has some implications for native modules. This feature has performance and security benefits, but also places some new restrictions on native modules, e.g. use of ArrayBuffers that point to external ("off-heap") memory. Please see this blog post for more information. #34724
重构 webContents.printToPDF
🌐 Refactored webContents.printToPDF
重构了 webContents.printToPDF 以与 Chromium 的无头实现保持一致。更多信息见 #33654。
🌐 Refactored webContents.printToPDF to align with Chromium's headless implementation. See #33654 for more information.
有关这些和未来更改的更多信息,请参阅计划中的重大更改页面。
🌐 More information about these and future changes can be found on the Planned Breaking Changes page.
18.x.y 支持终止
🌐 End of Support for 18.x.y
根据项目的支持政策,Electron 18.x.y 已结束支持。我们鼓励开发者和应用升级到更新版本的 Electron。
🌐 Electron 18.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.
| E18 (2022年3月) | E19 (2022年5月) | E20 (2022年8月) | E21 (2022年9月) | E22 (2022年12月) |
|---|---|---|---|---|
| 18.x.y | 19.x.y | 20.x.y | 21.x.y | 22.x.y |
| 17.x.y | 18.x.y | 19.x.y | 20.x.y | 21.x.y |
| 16.x.y | 17.x.y | 18.x.y | 19.x.y | 20.x.y |
下一步计划
🌐 What's Next
短期内,你可以预期团队将继续专注于跟上构成 Electron 的主要组件(包括 Chromium、Node 和 V8)的开发。
🌐 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.
你可以在这里找到 Electron 的公开时间线。
🌐 You can find Electron's public timeline here.
有关未来更改的更多信息可以在计划中的重大变更页面上找到。
🌐 More information about future changes can be found on the Planned Breaking Changes page.