The Electron team is excited to announce the release of Electron 5.0.0! You can install it with npm via
npm install electron@latest or download the tarballs from our releases page. 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!
Electron 5 also includes improvements to Electron-specific APIs. A summary of the major changes is below; for the full list of changes, check out the Electron v5.0.0 release notes.
Electron 5 continues Promisification initiative initiative to convert Electron's callback-based API to use Promises. These APIs were converted for Electron 5:
These functions were changed or added to
systemPreferences to access macOS systems' colors:
process.getProcessMemoryInfo has been added to get memory usage statistics about the current process.
To improve security in the
remote API, new remote events have been added so that
<webview>.getWebContents can be filtered.
BrowserWindow now supports managing multiple BrowserViews within the same BrowserWindow.
Packaged apps will now behave the same as the default app: a default application menu will be created unless the app has one and the
window-all-closed event will be automatically handled unless the app handles the event.
Mixed sandbox mode is now enabled by default. Renderers launched with
sandbox: true will now be actually sandboxed, where previously they would only be sandboxed if mixed-sandbox mode was also enabled.
The default values of
webviewTag are now
false to improve security.
The SpellCheck API has been changed to provide asynchronous results.
The following APIs are newly deprecated in Electron 5.0.0 and planned for removal in 6.0.0:
Native binaries of mksnapshot for arm and arm64 are deprecated and will be removed in 6.0.0. Snapshots can be created for arm and arm64 using the x64 binaries.
Deprecated ServiceWorker APIs on WebContents in preparation for their removal.
In order to improve security, the following modules are being deprecated for use directly via
require and will instead need to be included via
remote.require in a sandboxed webcontents:
webFrame.setIsolatedWorldSecurityOrigin have been deprecated in favor of
enableMixedSandbox and the
--enable-mixed-sandbox command-line switch still exist for compatibility, but are deprecated and have no effect.
Per our supported versions policy, 2.0.x has reached end of life.
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.
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 6.0.0 schedule maps out key dates in the Electron 6 development life cycle. 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.
|/||Focus the search bar|
|Esc||Focus the search bar and cleans it|
|↓||Select the next search result|
|↑||Select the previous search result|
|Enter||Open the selected search result|
|cmdEnter||Ctrl+Enter||Open the selected search result in a new tab|