Electron 12.0.0 has been released! It includes upgrades to Chromium 89
, V8 8.9
and Node.js 14.16
. We've added changes to the remote module, new defaults for contextIsolation, a new webFrameMain API, and general improvements. Read below for more details!
The Electron team is excited to announce the release of Electron 12.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!
89
14.16
8.9
exposeInMainWorld
method can now expose non-object APIs. #26834webFrameMain
API for accessing sub-frames of a WebContents
instance from the main process. #25464contextIsolation
and worldSafeExecuteJavaScript
are now true
. #27949 #27502See the 12.0.0 release notes for a full list of new features and changes.
remote
module. It is replaced by @electron/remote
. #25293
remote
module, we've written a guide to migrating to @electron/remote
here.contextIsolation
to true
. #27949worldSafeExecuteJavaScript
to true
. #27502crashReporter.start({ compress })
from false
to true
. #25288More information about these and future changes can be found on the Planned Breaking Changes page.
webFrameMain
API: The webFrameMain
module can be used to look up frames across existing WebContents
instances. This is the main process equivalent of the existing webFrame API. More information about this new API can be found here, and in our documentation.app
API changes:
BrowserWindow
API changes:
BrowserWindow.isTabletMode()
API. #25209resized
(Windows/macOS) and moved
(Windows) events to BrowserWindow
. #26216system-context-menu
event to allow preventing and overriding the system context menu. #25795win.setTopBrowserView()
so that BrowserView
s can be raised. #27713webPreferences.preferredSizeMode
to allow sizing views according to their document's minimum size. #25874contextBridge
API changes:
exposeInMainWorld
method to expose non-object APIs. #26834display
API changes:
displayFrequency
property to the Display
object to allow getting information about the refresh rate on Windows. #26472extensions
API changes:
chrome.management
APIs. #25098MenuItem
API changes:
net
API changes:
powerMonitor
API changes:
session
API changes:
allowFileAccess
option to ses.loadExtension()
API. #27702display-capture
API for session.setPermissionRequestHandler
. #27696disabledCipherSuites
option to session.setSSLConfig
. #25818extension-loaded
, extension-unloaded
, and extension-ready
events to session
. #25385session.setSSLConfig()
to allow configuring SSL. #25461direct
, auto_detect
or system
modes in session.setProxy()
. #24937shell
API changes:
shell.trashItem()
API, replacing the synchronous shell.moveItemToTrash()
. #25114webContents
API changes:
frame
and webContents
properties to the details object in webRequest handlers. #27334webContents.forcefullyCrashRenderer()
to forcefully terminate a renderer process to assist with recovering a hung renderer. #25580setWindowOpenHandler
API for renderer-created child windows, and deprecate new-window
event. #24517webFrame
API changes:
The following APIs have been removed or are now deprecated:
remote
module. It is replaced by @electron/remote
. #25293crashReporter
APIs. #26709Electron 9.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.
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 13.0.0 schedule maps out key dates in the Electron 13.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.
Have feedback on this post? Let @electronjs know on Twitter.
Need help or found a bug? Contact us.
Key | Action | |
---|---|---|
/ | 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 |