The popular Electron framework enters a new phase. Its latest stable release, Electron v5.0.0, arrived on April 23, 2019.
New to Electron 5
If you are upgrading from Electron 4, the core elements that power Electron upgrade from their previous version. Here’s what new versions of Chromium, Node.js, and the V8 JS engine include according to their respective release notes:
- Chromium upgrades to 73.0.3683.119
- Node.js upgrades to 12.0.0:
- V8 upgrades to 7.3.492.27:
With this release, the Promisification initiative continues. This initiative undertaken by the Electron team hopes to convert callback-based functions in Electron to return Promises.
The doc on GitHub states that, “during this transition period, both the callback and Promise-based versions of these functions will work correctly, and will both be documented”.
Out of the new features added, here’s just a sample of the latest additions to Electron. View the full list of features in the release notes.
- Support for multiple browser views per
- Immediate MacOS notifications
- Caps lock and numlock added as keyboard accelerator modifiers
- System colors access for macOS
- Use the function
process.getProcessMemoryInfoto receive memory usage statistics
- getMemoryFootprint API
- Register multiple globalShortcuts
- Mixed-sandbox mode works on Linux
- Support for running preload scripts and nodeIntegration in iframes
Breaking changes & deprecations
This update includes several breaking changes and deprecations in preparation for their removal in the next release. According to the release notes, here is what has changed.
- Since v5.0.0 upgrades Chromium
12.0.0, and the V8 engine
7.3.492.27expect changes according to these new versions.
- In order to improve security, default values of
- Packaged apps now behave the same as the default app.
- Mixed sandbox mode enabled by default
- SpellCheck API changed for asynchronous results
- Newly deprecated APIs in 5.0.0. will be removed in the future release 6.0.0. These APIs include:
- Mksnapshot binaries for arm and arm64
- ServiceWorker APIs on WebContents
- Automative modules with sandboxed webContents
- Further info on planned breaking API changes available on GitHub
Version 5.0.0 packages fixes to previously known issues. For further information on, please refer to the release notes for a full list of fixes.
This update also marks the end of support for v2.0.x.
Users are highly recommended to update to a new version. Upgrading improves security and additional safety provided by later releases and support.