Electron 13.0.0
Electron 13.0.0 has been released! It includes upgrades to Chromium 91
and V8 9.1
. We've added several API updates, bug fixes, and general improvements. Read below for more details!
The Electron team is excited to announce the release of Electron 13.0.0! You can install it with npm via npm install electron@latest
or download it from our releases website. Continue reading for details about this release, and please share any feedback you have!
Notable Changes
Stack Changes
- Chromium
91
- Node.js
14.16.0
- V8
9.1
Highlight Features
- Added
process.contextIsolated
property that indicates whether the current renderer context hascontextIsolation
enabled. #28252 - Added new
session.storagePath
API to get the path on disk for session-specific data. #28866 - Deprecated the
new-window
event ofWebContents
. It is replaced bywebContents.setWindowOpenHandler()
- Added
process.contextId
used by@electron/remote
. #28251
See the 13.0.0 release notes for a full list of new features and changes.
Breaking Changes
window.open()
parameter frameName is no longer set as window title. #27481- Changed
session.setPermissionCheckHandler(handler)
to allow forhandler
's first parameter,webContents
to benull
. #19903
More information about these and future changes can be found on the Planned Breaking Changes page.
Alterações de API
- Added
roundedCorners
option forBrowserWindow
. #27572 - Added new
session.storagePath
API to get the path on disk for session-specific data.28866 - Added support for passing DOM elements over the context bridge. #26776
- Added
process.uptime()
to sandboxed renderers. #26684 - Added missing fields to the parameters emitted as part of the
context-menu
event.#26788 - Added support for registering Manifest V3 extension service workers.
- Added ‘registration-completed’ event to ServiceWorkers. #27562
Removed/Deprecated Changes
The following APIs have been removed or are now deprecated:
-
Deprecated the
new-window
event ofWebContents
. It is replaced bywebContents.setWindowOpenHandler()
-
Removed deprecated
shell.moveItemToTrash()
. #26723 -
Removed the following deprecated
BrowserWindow
extension APIs:BrowserWindow.addExtension(path)
BrowserWindow.addDevToolsExtension(path)
BrowserWindow.removeExtension(name)
BrowserWindow.removeDevToolsExtension(name)
BrowserWindow.getExtensions()
BrowserWindow.getDevToolsExtensions()
Use the
session
APIs instead:ses.loadExtension(path)
ses.removeExtension(extension_id)
ses.getAllExtensions()
-
The following
systemPreferences
methods have been deprecated:systemPreferences.isDarkMode()
systemPreferences.isInvertedColorScheme()
systemPreferences.isHighContrastColorScheme()
Use the following
nativeTheme
properties instead:nativeTheme.shouldUseDarkColors
nativeTheme.shouldUseInvertedColorScheme
nativeTheme.shouldUseHighContrastColors
End of Support for 10.x.y
Electron 10.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.
What's Next
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 14.0.0 schedule maps out key dates in the Electron 14.0 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.