Electron 7.0.0
Electron 7.0.0 已发布!它包括对 Chromium 78、V8 7.8 和 Node.js 12.8.1 的升级。我们新增了适用于 Arm 64 的窗口版本、更快的 IPC 方法、新的 nativeTheme API,以及更多功能!
🌐 Electron 7.0.0 has been released! It includes upgrades to Chromium 78, V8 7.8, and Node.js 12.8.1. We've added a Window on Arm 64 release, faster IPC methods, a new nativeTheme API, and much more!
Electron 团队很高兴地宣布 Electron 7.0.0 正式发布!你可以通过 npm 使用 npm install electron@latest 安装,或从我们的发布网站下载。本次发布包含了大量升级、修复和新功能。我们迫不及待想看看你会用它们构建什么作品!继续阅读以了解本次发布的详细信息,并请分享你的任何反馈!
🌐 The Electron team is excited to announce the release of Electron 7.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 features. 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 Version in Electron 6 Version in Electron 7 What's New Chromium 76.0.3809.146 78.0.3905.1 77, 78 V8 7.6 7.8 7.7, 7.8 Node.js 12.4.0 12.8.1 12.5, 12.6, 12.7, 12.8, 12.8.1 -
已添加
ipcRenderer.invoke()和ipcMain.handle()用于异步请求/响应式 IPC。强烈推荐使用它们,而不是remote模块。有关更多信息,请参阅这篇博客文章“Electron 的 ‘remote’ 模块被认为有害”。#18449 -
已切换到新的 TypeScript 定义 生成器。生成的定义更加精确;因此,如果你的 TypeScript 构建失败,这很可能是原因。 #18103
请参阅7.0.0 发布说明以获取更完整的更改列表。
🌐 See the 7.0.0 release notes for a longer list of changes.
重大变化
🌐 Breaking Changes
有关这些和未来更改的更多信息,请参阅计划中的重大更改页面。
🌐 More information about these and future changes can be found on the Planned Breaking Changes page.
- 移除已弃用的 API:
- 基于回调的函数版本,现在使用了 Promise。 #17907
Tray.setHighlightMode()(macOS)。#18981app.enableMixedSandbox()#17894app.getApplicationMenu(),app.setApplicationMenu(),powerMonitor.querySystemIdleState(),powerMonitor.querySystemIdleTime(),webFrame.setIsolatedWorldContentSecurityPolicy(),webFrame.setIsolatedWorldHumanReadableName(),webFrame.setIsolatedWorldSecurityOrigin()#18159
Session.clearAuthCache()不再允许筛选已清除的缓存条目。 #17970- macOS 上的原生界面(菜单、对话框等)现在会自动匹配用户机器的夜间模式设置。#19226
- 已更新
electron模块以使用@electron/get。现在支持的最低 Node 版本为 Node 8。#18413 - 文件
electron.asar不再存在。任何依赖其存在的打包脚本都应更新。 #18577
4.x.y 停止支持
🌐 End of Support for 4.x.y
根据该项目的支持政策,Electron 4.x.y 已停止支持。建议开发者和应用升级到更新版本的 Electron。
🌐 Electron 4.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.
应用反馈计划
🌐 App Feedback Program
我们继续使用我们的应用反馈计划进行测试。参与该计划的项目会在他们的应用上测试 Electron 测试版;作为回报,他们发现的新问题会被优先处理并纳入稳定版发布。如果你想参与或了解更多信息,请查看我们关于该计划的博客文章。
🌐 We continue to use our App Feedback Program for testing. Projects who participate in this program test Electron betas on their apps; and in return, the new bugs they find are prioritized for the stable release. If you'd like to participate or learn more, check out our blog post about the program.
下一步计划
🌐 What's Next
在短期内,你可以预期团队将继续专注于跟进构成 Electron 的主要组件的开发,包括 Chromium、Node 和 V8。虽然我们小心翼翼地避免对发布日期作出承诺,但我们的计划是大约每季度发布一次包含这些组件新版本的 Electron 主要版本。临时 8.0.0 时间表列出了 Electron 8 开发生命周期中的关键日期。此外,请参阅我们的版本控制文档以获取关于 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 release new major versions of Electron with new versions of those components approximately quarterly. The tentative 8.0.0 schedule maps out key dates in the Electron 8 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.