Releases: electron/electron
electron v7.1.0
Release Notes for v7.1.0
This release is a minor bump as it contains exactly one new feature. contextBridge
module, this feature is outlined below along with the other fixes and changes that went into this release. The 7.1.x
series is now only release line in the 7.x.y
major release line that will receive bug fixes and security fixes. It is recommended you upgrade to 7.1.x
.
Features
- Added new
contextBridge
module to make it easier to communicate between an isolated context and the main world. #20789
Fixes
- Fixed
nativeTheme
not accessible via theremote
module. #20961 - Fixed a memory leak issue when setting Tray images. #20935
- Fixed issue where proxied remote promises might not resolve if
Bluebird
was installed in the renderer. #20947
Other Changes
electron v6.1.4
electron v7.0.1
Release Notes for v7.0.1
Fixes
- Fixed
shell.openExternal()
optionworkingDirectory
not working with Unicode characters. #20905 - Fixed a crash in Menus related to
menu.popup()
. #20808 - Fixed a label mismatch on open and save dialogs on GTK. #20882
- Fixed a regression in the
recentDocuments
role on macOS. #20670 - Fixed an issue where objects referenced by
remote
could sometimes not be correctly freed. #20693 - Fixed crashes when calling
webContents.printToPDF()
multiple times. #20810 - Fixed devtools extensions not loading due to "Connect to unknown extension [object Object]" errors. #20844
- Fixed flicker when switching between
BrowserView
s. #20846 - Fixed fs.mkdir/mkdirSync hang with {recursive: true} for invalid names with node 12 on windows. #20629
- Fixed hang when closing a scriptable popup window using the
remote
module. #20715 - Fixed memory leaks caused by callbacks not being released when the
remote
module is used in sub-frames (<iframe>
or scriptable popup). #20814 - Fixed native module size increase on windows, follow up fix to #20614. #20708
- Fixed several deprecation warnings in Electron code. #20804
Other Changes
- Updated Chromium to 78.0.3904.92. #20913
Documentation
- Documentation changes: #20757
electron v6.1.3
Release Notes for v6.1.3
Fixes
- Fixed a crash in Menus related to
menu.popup()
. #20786 - Fixed crashes when calling
webContents.printToPDF()
multiple times. #20811 - Fixed flicker when switching between
BrowserView
s. #20834 - Fixed hang when closing a scriptable popup window using the
remote
module. #20716 - Fixed memory leaks caused by callbacks not being released when the
remote
module is used in sub-frames (<iframe>
or scriptable popup). #20815
electron v5.0.12
Release Notes for v5.0.12
Fixes
- Fixed a crash in Menus related to
menu.popup()
. #20800 - Fixed crashes when calling
webContents.printToPDF()
multiple times. #20812 - Fixed fs.mkdir/mkdirSync hang with {recursive: true} for invalid names with node 12 on windows. #20664
- Fixed memory leaks caused by callbacks not being released when the
remote
module is used in sub-frames (<iframe>
or scriptable popup). #20816 - Fixed native module size increase on windows, follow up fix to #20614. #20707
- Fixed native modules size increase with VC++ and node 12 on windows. #20628
- Fixed parsing of paths with
.asar
in directory name extensions. #20403 - [deps/uv] fsevents: fix file event reporting (backport: v12.x). #20433
electron v8.0.0-beta.2
Note: This is a beta release. Please file new issues for any bugs you find in it.
This release is published to npm under the beta tag and can be installed via npm install electron@beta, or npm i electron@8.0.0-beta.2.
Release Notes for v8.0.0-beta.2
Features
- Added support for the built-in spellchecker. We will use the OS spellchecker on macOS and hunspell on all other platforms. #20897
Fixes
- Fixed a crash in Menus related to
menu.popup()
. #20785 - Fixed a label mismatch on open and save dialogs on GTK. #20883
- Fixed an issue with Node.js context initialization in renderer processes. #20836
- Fixed crashes when calling
webContents.printToPDF()
multiple times. #20802 - Fixed devtools extensions not loading due to "Connect to unknown extension [object Object]" errors. #20842
- Fixed flicker when switching between
BrowserView
s. #20847 - Fixed memory leaks caused by callbacks not being released when the
remote
module is used in sub-frames (<iframe>
or scriptable popup). #20813 - Fixed several deprecation warnings in Electron code. #20805
electron v8.0.0-beta.1
Note: This is a beta release. Please file new issues for any bugs you find in it.
This release is published to npm under the beta tag and can be installed via npm install electron@beta, or npm i electron@8.0.0-beta.1.
Release Notes for v8.0.0-beta.1
Breaking Changes
- IPC between main and renderer processes now uses the Structured Clone Algorithm. #20214
Features
- Added BrowserWindow.moveAbove(mediaSourceId). #18926
- Added
--enable-api-filtering-logging
command-line switch, which enables caller stack logging fordesktopCapturer
andremote
APIs that can be blocked or filtered. #20335 - Added
nativeTheme.themeSource
to allow apps to override Chromium and the OS's theme choice. #19960 - Added
session.downloadURL()
allowing to trigger downloads without aBrowserWindow
. #19889 - Added
timeoutType
property to allows users to set timeout type for Linux and Windows notifications. #20153 - Added
tray.focus()
, which returns focus to the taskbar notification area. #19548 - Added
tray.removeBalloon()
, which removes an already displayed balloon notification. #19547 - Added
win.accessibleTitle property
to be able to augment the window title for the screen readers. #19698 - Added ability to inspect specific shared workers:
contents.getAllSharedWorkers()
/contents.inspectSharedWorkerById(workerId)
. #20389 - Added about panel customization on Windows. #19420
- Added an
urgency
property to allow customization of Linux-based notifications. #20152 - Added options to enable customization of print page headers and footers. #19688
- Added property customization to save dialogs. #19672
- Added support for HTTP preconnect resource hints. #18671
- Added the ability to prevent documents from being added to recent documents on Windows in open dialogs. #19669
- Added the support of fitToPageEnabled and scaleFactor in
WebContents.printToPDF()
. #20436 - Enable macOS users to fallback to item removal when when
shell.moveItemToTrash
fails. #19700 - Implemented 'will-move' event on BrowserWindow on macOS. #19641
- Improved TouchBarButton and TouchBarLabel a11y with
accessibilityLabel
property. #20454 - New options added to
tray.displayBalloon()
:iconType
,largeIcon
,noSound
andrespectQuietTime
. #19544
Fixes
- Don't destroy active menus created as local objects in javascript. #19427
- Fixed
BrowserWindow.fromWebContents()
to returnnull
when no window is found for consistency with other APIs. #19983 - Fixed
backgroundThrottling: false
not having an effect. #20239 - Fixed
cookies.get
not working whenurl
is not specified in filter. #20471 - Fixed a crash in Node.js initialization in renderer processes. #20684
- Fixed a crash that could occur when calling
crashReporter.getUploadedReports
. #20428 - Fixed an issue in the remote module which could cause the name of the Object constructor to be overwritten globally. #20637
- Fixed an issue that prevented setuid binaries from being launched from the renderer process on Linux. #19953
- Fixed an issue where
menu.closePopup()
would have no effect if called too soon aftermenu.popup()
. #20114 - Fixed an issue where
net
requests with redirection mode 'error' could incorrectly follow a redirect. #20686 - Fixed an issue where microtasks could sometimes be scheduled too eagerly, causing crashes when invoking Electron APIs during promises in certain situations. #20303
- Fixed an issue with open and save dialogs selecting properties. #19781
- Fixed debug symbol files on linux not containing private symbols. #20530
- Fixed some
systemPreferences.getColor()
inconsistencies on macOS. #20611 - Fixed the position of popups being created over embedded content. #20232
- Fixed white flash after restoring an app from the background. #19873
- Localized dialog button text on Linux. #19725
- Prevented 'Reopen windows?' dialog from appearing on macOS after a crash. #19584
- Removed unnecessary chromium patch for browser compositor on mac. #20390
- [deps/uv] fsevents: fix file event reporting (backport: v12.x). #20408
Other Changes
- Fixed a crash that could occur if a WebContents was destroyed during a navigation event. #20099
- Fixed first beta version choosing logic. bf66fe5
- No-notes. #18760, #20003
- Removed .only. f566e56
- Removed undocumented
ipcRenderer.sendToAll()
. #19556 - The
remote
module now properly serializesBoolean
,Number
,String
andRegExp
instances. #20427 - Updated Node.js to v12.10.0. #20129
- Updated Node.js to v12.12.0. #20584
- Updated Node.js to v12.13.0. #20657
- Updated Node.js to v12.9.0. #19863
- Updated Node.js to v12.9.1. #19980
Documentation
electron v6.1.2
electron v6.1.1
electron v7.0.0
Release Notes for v7.0.0
Notable Changes
- Stack upgrades:
Stack | Version in Electron 6 | Version in Electron 7 | What's New |
---|---|---|---|
Chromium | 76.0.3809.146 | 78.0.3905.1 | 77, 78 |
V8 | 7.6 | 7.8 | 7.7, 7.8 |
Node.js | 12.4.0 | 12.8.1 | 12.5, 12.6, 12.7, 12.8, 12.8.1 |
- Added Windows on Arm (64 bit) release. #18591, #20112
- Added
ipcRenderer.invoke()
andipcMain.handle()
for asynchronous request/response-style IPC. These are strongly recommended over theremote
module. See this "Electron’s ‘remote’ module considered harmful" blog post for more information. #18449 - Added
nativeTheme
API to read and respond to changes in the OS's theme and color scheme. #19758, #20486 - Switched to a new TypeScript Definitions generator, which generates more precise definitions. If your TypeScript build fails, this is the likely cause. #18103
Breaking Changes
More information about these and future changes can be found on project's Planned Breaking Changes page.
- Removed deprecated APIs:
- Callback-based versions of functions that now use Promises. #17907
Tray.setHighlightMode()
(macOS). #18981app.enableMixedSandbox()
#17894app.getApplicationMenu()
,app.setApplicationMenu()
,powerMonitor.querySystemIdleState()
,powerMonitor.querySystemIdleTime()
,webFrame.setIsolatedWorldContentSecurityPolicy()
,webFrame.setIsolatedWorldHumanReadableName()
,webFrame.setIsolatedWorldSecurityOrigin()
#18159
Session.clearAuthCache()
no longer allows filtering the cleared cache entries. #17970- Native interfaces on macOS (menus, dialogs, etc.) now automatically match the dark mode setting on the user's machine. #19226
- Updated the
electron
module to use@electron/get
. The minimum supported node version is now Node 8. #18413 - The
electron.asar
file no longer exists. Any packaging scripts that depend on its existence should be updated. #18577
New Features
netLog.startLogging()
now returns a promise which resolves when the net log has started recording.- All async
webContents
/<webview>
methods now return aPromise
. #18792 - Added
always-on-top-changed
event emission for macOS. #19462 - Added
app.resignCurrentActivity()
to allows marking inactive the current Handoff user activity without invalidating it. #18659 - Added
captureMode
andmaxFileSize
options to the netLog API. #19215 - Added
creationTime
/sandboxed
/integrityLevel
toapp.getAppMetrics()
output. #18718 - Added
failureReason
parameter to thewebContents.print()
callback function to distinguish between success, failure, and cancellation. #19000 - Added
getBounds()
method for BrowserView. #19370 - Added
gpu-info-update
event toapp
, which is emitted whenever there is a GPU info update. #18250 - Added
memory
toapp.getAppMetrics()
. #18831 - Added
process.getBlinkMemoryInfo()
. #17762 - Added
removeInsertedCSS()
towebFrame
/webContents
/<webview>
. #16579 - Added
zoom-changed
event towebContents
, which is emitted when the user zooms using the mouse wheel on Windows, even if the focus is inside an (x-origin) iframe. #17747 - Migrated
Tray
from custom to native view to be compatible with Catalina (macOS). #18981 - Added a
MenuItem.toolTip
property macOS. #19099 - Added printing customization options. #18984
- Added an optional conflict handling callback to
app.moveToApplicationsFolder
. #18916 - Added missing support for
ELECTRON_DEFAULT_ERROR_MODE
in the GPU process. #17728 - Added security warning for remote modules with remote content. #18822
- Support CSS
origin
inwebFrame.insertCSS()
. #19268 - Support HTTP preconnect resource hints. #19952
- Support NSVisualEffectMaterials vibrancy types added in macOS Mojave. #19073
- Support
mouse-move
event of Tray API on Windows. #19265 - Support
systemPreferences.isDarkMode()
API on Windows. #19217 - Support
systemPreferences.isHighContrastColorScheme()
API on macOS. #19331 - Support picture-in-picture mode for video elements. #19914
- Support rotation multi-touch gestures on
BrowserWindow
for macOS. #19294 - Added the ability to set authors in the Linux implementation of the About panel. #18964
- Calling contentTracing.stopTracing() with no arguments is now permitted and has the same behaviour as calling it with an empty string (tracing data will be written to a temporary file). #18411
- Can set a window always on top but behind the taskbar on Windows. #18982
- Enabled the W3C Reporting API. #18255
- Exposed the value of NSNotification.object to subscribers of notifications in systemPreferences. #19110
- Implemented BrowserWindow.setFocusable on macOS. #19033
- Renderer processes hosting cross-origin frames are now sandboxed unless the parent
BrowserWindow
enablesnodeIntegrationInSubFrames
. #18650 - Set the
ELECTRON_SKIP_BINARY_DOWNLOAD=1
environment variable to skip electron binary download. #17627 - Deprecated
netLog.currentlyLoggingPath
. #18289 - Added Windows on Arm node header files to checksum file. #20261
Properties
- Converted
webContents
primitive getters and setters to actual properties. #18998 - Converted
badgeCount
to an actual property on theapp
module. #17363 app.name
is now a property. #17701nativeImage.templateImage
is now a property on thenativeImage
prototype. #18124- Converted
appLevelAppearance
to be a property onsystemPreferences
. #18477 - Converted
autoHideMenuBar
to a property onBrowserWindow
instances. #18555 - Converted
savePath
accessor to a property on DownloadItem instances. #18677 - Converted
closable
,fullscreenable
,maximizable
,minimizable
,movable
, andresizable
to be properties on theBrowserWindow
prototype. #18618
Fixes
- "Node integration with remote content" and "loading insecure content" warning messages are suppressed for localhost connections. #18814
ELECTRON_RUN_AS_NODE
now correctly parses both node options and v8 flags. E.g.--expose_gc
[#19403](https://github.com/electron/elec...