Electron 7.0.0
Electron 7.0.0 已发布! 它包括升级Chromium 78, V8 7.8和Node.js 12.8.1。 我们已经添加了一个窗口到Arm 64版本,更快的 IPC 方法,一个新的 本地主题
API,还有更多!
Electron 团队很高兴发布了 Electron 7.0.0.0! 您可以通过 npm 安装electron@later
或者从我们的 发布网站 下载它。 这次发布包含升级、修复和新功能。 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 Upgrades:
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 -
Added
ipcRenderer.invoke()
andipcMain.handle()
for asynchronous request/response-style IPC. These are strongly recommended over theremote
module. See this "Electron’s ‘remote’ module considered harmful" blog post for more information. #18449 -
Added
nativeTheme
API to read and respond to changes in the OS's theme and color scheme. #19758, #20486 -
Switched to a new TypeScript Definitions generator. The resulting definitions are more precise; so if your TypeScript build fails, this is the likely cause. #18103
See the 7.0.0 release notes for a longer list of changes.
重大更改
有关这些和未来变化的更多信息可在 计划的破坏性变化 页面找到。
- Removed deprecated APIs:
- Callback-based versions of functions that now use Promises. #17907
Tray.setHighlightMode()
(macOS). #18981app.enableMixedSandbox()
#17894app.getApplicationMenu()
,app.setApplicationMenu()
,powerMonitor.querySystemIdleState()
,powerMonitor.querySystemIdleTime()
,webFrame.setIsolatedWorldContentSecurityPolicy()
,webFrame.setIsolatedWorldHumanReadableName()
,webFrame.setIsolatedWorldSecurityOrigin()
#18159
Session.clearAuthCache()
no longer allows filtering the cleared cache entries. #17970- Native interfaces on macOS (menus, dialogs, etc.) now automatically match the dark mode setting on the user's machine. #19226
- Updated the
electron
module to use@electron/get
. The minimum supported node version is now Node 8. #18413 - The file
electron.asar
no longer exists. Any packaging scripts that depend on its existence should be updated. #18577
终止对 4.x.y 的支持
Electron 4.x.y has reached end-of-support as per the project's support policy. 我们鼓励开发者将应用程序升级到更新的 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.
接下来
在短期内,您可以期待团队继续专注于跟上构成 Electron 的主要组件的开发,包括 Chromium、Node 和 V8。 尽管我们谨慎地避免对发布日期做出承诺,但我们的计划是大约每季度发布一次 Electron 的新主要版本以及这些组件的新版本。 暂定 8.0.0 时间表 展示了 Electron 8 开发生命周期中的关键日期。 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.