Electron 16.0.0 已发布！ 它包括升级到 Chromium
9.6, 和 Node.js
Electron 团队很高兴发布了 Electron 188.8.131.52！ 您可以通过
npm install electron@later 进行安装，或者从我们的 发布网站 下载它。 继续阅读有关此版本的详细信息，并请分享您的任何反馈！
As of Electron 15, Electron will release a new major stable version every 8 weeks. 您可以在此处阅读 完整详细信息。
Additionally, Electron has changed supported versions from latest three versions to latest four versions until May 2022. See our versioning document for more detailed information about versioning in Electron. After May 2022, we will return to supporting latest three versions.
- Now supports the WebHID API. #30213
- Add data parameter to
app.requestSingleInstanceLockto share data between instances. #30891
- Pass securityOrigin to media permissions request handler. #31357
See the 16.0.0 release notes for a full list of new features and changes.
Below are breaking changes introduced in Electron 16. 有关这些和未来变化的更多信息可在 计划的突破性变化 页面找到。
Building Native Modules
If your project uses node-gyp to build native modules, you may need to call it with
--force-process-config depending on your project's setup and your Electron version. More information about this change can be found at #2497.
crashReporter implementation switched to Crashpad on Linux
The underlying implementation of the
crashReporter API on Linux has changed from Breakpad to Crashpad, bringing it in line with Windows and Mac. As a result of this, child processes are now automatically monitored, and calling
process.crashReporter.start in Node child processes is no longer needed (and is not advisable, as it will start a second instance of the Crashpad reporter).
There are also some subtle changes to how annotations will be reported on Linux, including that long values will no longer be split between annotations appended with
__2 and so on, and instead will be truncated at the (new, longer) annotation value limit.
There were no API changes in Electron 16.
- Usage of the
desktopCapturer.getSourcesAPI in the renderer has been deprecated and will be removed. This change improves the default security of Electron apps. See here for details on how to replace this API in your app.
End of Support for 12.x.y
Electron 12.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.
As of Electron 15, we have changed supported versions from latest three versions to latest four versions until May 2022 with Electron 19. 在 Electron 19 之后，我们将回归到支持最新的三个版本。 此版本支持变化是我们新的节奏变化的一部分。 请参阅 我们的博客文章 ，了解的完整详细信息。
|E15 (Sep'21)||E16 (Nov'21)||E17 (Feb'22)||E18 (Mar'22)||E19 (May'22)|
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 every 2 months.
有关这些和未来变化的更多信息可在 计划的突破性变化 页面找到。