-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dependency(deps): update dependency electron to v24 🌟 #26416
Conversation
c33c698
to
8089056
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
We will be updating to electron 25 w/ node 18 as there were issues with mksnapshot that were not backpatched, meaning we need to update to 25. This update also required a webpack 5 upgrade from 4, which is now done in develop. The code where this is functioning is https://github.com/cypress-io/cypress/compare/electron_upgrade_wip?expand=1 |
It would be helpful to have the Electron update in the Roadmap overview as this is an important migration, including the Node.js bump to
|
@MikeMcC399 good idea to share on the App Priorities board. I have added a ticket there - #27595 |
This PR contains the following updates:
21.0.0
->24.0.0
Release Notes
electron/electron
v24.0.0
: electron v24.0.0Compare Source
Release Notes for v24.0.0
Stack Upgrades
Breaking Changes
nativeImage.createThumbnailFromPath()
now takessize
instead ofmaxSize
. #37796Features
httpOnly
to the cookie filter. #37365logUsage
toshell.openExternal()
options, which allows passing theSEE_MASK_FLAG_LOG_USAGE
flag toShellExecuteEx
on Windows. #37291types
towebRequest
filter. #37427webContents.print()
. #37265 (Also in 22, 23)enableLocalEcho
flag to the session handlerses.setDisplayMediaRequestHandler()
callback for allowing remote audio input to be echoed in the local output stream whenaudio
is aWebFrameMain
. #37528 (Also in 23)Fixes
BrowserWindow
fullscreening is disabled. #37368 (Also in 23)destroyed
event not emitted onclose
forBrowserView.webContents
. #37450 (Also in 23)BrowserView
s are present and a user attempts to preventbeforeunload
in the renderer process. #37268 (Also in 22, 23)BroadcastChannel
did not work correctly whencontextIsolation: false
. #37443 (Also in 23)minWidth
/minHeight
andmaxWidth
/maxHeight
would not be enforced if the user set anaspectRatio
on macOS. #37456 (Also in 22, 23)port.postMessage
inMessagePortMain
with some invalid parameters could cause a crash. #37726 (Also in 22, 23)hasReply
andactions
to a main process Notification on macOS resulted in the first action being obscured and unavailable. #37449 (Also in 22, 23)session.cookies.set
failure. #37597 (Also in 22, 23)app.showAboutPanel()
no longer blocks the main thread on Windows or Linux, thus matching macOS. #37508Other Changes
contents.takeHeapSnapshot
. #37461 (Also in 22, 23)Documentation
v23.2.2
: electron v23.2.2Compare Source
Release Notes for v23.2.2
Fixes
v23.2.1
: electron v23.2.1Compare Source
Release Notes for v23.2.1
Fixes
port.postMessage
inMessagePortMain
with some invalid parameters could cause a crash. #37724 (Also in 22, 24)Other Changes
v23.2.0
: electron v23.2.0Compare Source
Release Notes for v23.2.0
Features
enableLocalEcho
flag to the session handlerses.setDisplayMediaRequestHandler()
callback for allowing remote audio input to be echoed in the local output stream whenaudio
is aWebFrameMain
. #37529 (Also in 24)Fixes
BroadcastChannel
did not work correctly whencontextIsolation: false
. #37444 (Also in 24)session.cookies.set
failure. #37596 (Also in 22, 24)v23.1.4
: electron v23.1.4Compare Source
Release Notes for v23.1.4
Fixes
Other Changes
v23.1.3
: electron v23.1.3Compare Source
Release Notes for v23.1.3
Fixes
Other Changes
v23.1.2
: electron v23.1.2Compare Source
Release Notes for v23.1.2
Fixes
destroyed
event not emitted onclose
forBrowserView.webContents
. #37451 (Also in 24)minWidth
/minHeight
andmaxWidth
/maxHeight
would not be enforced if the user set anaspectRatio
on macOS. #37457 (Also in 22, 24)hasReply
andactions
to a main process Notification on macOS resulted in the first action being obscured and unavailable. #37448 (Also in 22, 24)Other Changes
contents.takeHeapSnapshot
. #37460 (Also in 22, 24)v23.1.1
: electron v23.1.1Compare Source
Release Notes for v23.1.1
Fixes
BrowserWindow
fullscreening is disabled. #37367 (Also in 24)Other Changes
Documentation
v23.1.0
: electron v23.1.0Compare Source
Release Notes for v23.1.0
Features
webContents.print()
. #37264 (Also in 22, 24)Fixes
requireInteraction
option to not timeout on Linux and Windows. #36502 (Also in 21, 22)BrowserView
s are present and a user attempts to preventbeforeunload
in the renderer process. #37267 (Also in 22, 24)Other Changes
Documentation
v23.0.0
: electron v23.0.0Compare Source
Release Notes for v23.0.0
Stack Upgrades
Breaking Changes
Features
label
property toDisplay
objects. #36933 (Also in 21, 22)app.getPreferredSystemLanguages()
API to return the user's system languages. #36035 (Also in 21, 22)serialPort.forget()
as well as a new eventserial-port-revoked
emitted when a given origin is revoked. #35310 (Also in 22)setHiddenInMissionControl
API to allow developers to opt out of mission control on macOS. #36092 (Also in 22)Fixes
require('electron/*')
where*
is not one ofmain
,common
orrenderer
no longer resolves with the built-inelectron
module. #35915click
event and tooltip ofTray
not working on Linux. #36333 (Also in 22)webContents.printToPDF()
. #36046 (Also in 21, 22)BrowserWindow.setTrafficLightPosition()
on macOS. #36850 (Also in 21, 22)Cmd+Tab
after exiting Kiosk Mode. #36917 (Also in 21, 22)<datalist>
elements were improperly positioned within the page. #36959webView
s could have an incorrect initial background color following reloads. #36938 (Also in 21, 22)app.dock.setIcon(/path/t/icon)
would crash when called before theready
event onapp
. #36279 (Also in 20, 21, 22)webContents.printToPDF()
. #35975 (Also in 21, 22)setPermissionRequestHandler
callback would be invoked twice when usingnavigator.getUserMedia(...)
. #36874 (Also in 22)dialog.showMessageBox()
. #36803 (Also in 21, 22)webContents.loadURL
when navigating to a hash. #36129 (Also in 20, 21, 22)WebSwapCGLLayer
symbols when Electron starts on macOS. #36799 (Also in 21, 22)nodeIntegrationInWorker
in Service Workers and Shared Workers owing to sandboxing policies. #35919 (Also in 21, 22)--turbo-profiling-input
argument from mksnapshot_args. #36378 (Also in 22)import('electron')
andimport 'electron'
now work natively. #35930 (Also in 20, 21, 22)Other Changes
incrementCapturerCount()
/decrementCapturerCount()
methods have been removed. #37148webContents.printToPDF().
. #36051 (Also in 22)Documentation
Notices
Sunsetting Windows 7/8/8.1
Electron has ended support for Windows 7/8/8.1 in version 23.x.y following Chromium's plan to end support. Older versions of Electron will continue to work, but no further updates will be made for these operating systems.
End of Support for 20.x.y
Electron 20.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.
v22.3.5
: electron v22.3.5Compare Source
Release Notes for v22.3.5
Fixes
port.postMessage
inMessagePortMain
with some invalid parameters could cause a crash. #37725 (Also in 23, 24)Other Changes
1412991
. #376591418734
. #37661v22.3.4
: electron v22.3.4Compare Source
Release Notes for v22.3.4
Fixes
session.cookies.set
failure. #37595 (Also in 23, 24)Other Changes
1415249
. #376711416916
. #376571417585
. #37663v22.3.3
: electron v22.3.3Compare Source
Release Notes for v22.3.3
Fixes
Other Changes
1414224
. #37483v22.3.2
: electron v22.3.2Compare Source
Release Notes for v22.3.2
Fixes
minWidth
/minHeight
andmaxWidth
/maxHeight
would not be enforced if the user set anaspectRatio
on macOS. #37458 (Also in 23, 24)hasReply
andactions
to a main process Notification on macOS resulted in the first action being obscured and unavailable. #37447 (Also in 23, 24)Other Changes
contents.takeHeapSnapshot
. #37459 (Also in 23, 24)v22.3.1
: electron v22.3.1Compare Source
Release Notes for v22.3.1
Other Changes
Documentation
v22.3.0
: electron v22.3.0Compare Source
Release Notes for v22.3.0
Features
webContents.print()
. #37263 (Also in 23, 24)Fixes
BrowserView
s are present and a user attempts to preventbeforeunload
in the renderer process. #37266 (Also in 23, 24)Other Changes
v22.2.1
: electron v22.2.1Compare Source
Release Notes for v22.2.1
Features
Fixes
nodeIntegrationInWorker: true
. #37102 (Also in 23)Documentation
v22.2.0
: electron v22.2.0Compare Source
Release Notes for v22.0.0
Stack Upgrades
Breaking Changes
input-event
event.scroll-touch-*
events. #35531new-window
event has been removed. #34526Features
LoadBrowserProcessSpecificV8Snapshot
as a new fuse that will let the main/browser process load its v8 snapshot from a file atbrowser_v8_context_snapshot.bin
. Any other process will use the same path as is used today. #35266 (Also in 20, 21)WebContents.opener
to access window opener.webContents.fromFrame(frame)
to get the WebContents corresponding to a WebFrameMain instance. #35140 (Also in 21)app.getSystemLocale()
method. #35697 (Also in 21)contextBridge.exposeInIsolatedWorld(worldId, key, api)
to expose an API to anisolatedWorld
within a renderer from a preload script. #34974webContents.close()
method. #35509webFrameMain.origin
. #35438 (Also in 19, 20, 21)app.getPreferredSystemLanguages()
API to return the user's system languages. #36291 (Also in 21)content-bounds-updated
. #35533WebContents.ipc
andWebFrameMain.ipc
APIs. #34959 (Also in 21)navigator.mediaDevices.getDisplayMedia
via a new session handler,ses.setDisplayMediaRequestHandler
. #30702serialPort.forget()
as well as a new eventserial-port-revoked
emitted when a given origin is revoked. #36062Fixes
click
event and tooltip ofTray
not working on Linux. #36472Also in earlier versions...
uv_os_gethostname
failing on Windows 7. #35702 (Also in 19, 20, 21)atob
in the renderer process could fail under some circumstances. #35415 (Also in 19, 20, 21)webContents.printToPDF()
. #36065 (Also in 21)app.isInApplicationsFolder()
which would return false incorrectly in some cases. #35636 (Also in 19, 20, 21)screen.getCursorScreenPoint()
crashed on Wayland when it was called before aBrowserWindow
had been created. #35503 (Also in 21)serialPort.open()
failed withNetworkError: Failed to open serial port.
. #35306 (Also in 21)app.dock.setIcon(/path/t/icon)
would crash when called before theready
event onapp
. #36293 (Also in 20, 21)roundedCorners: false
couldn't enter fullscreen without crashing. #35421 (Also in 19, 20, 21)setBounds
on some windows. #34713 (Also in 19, 20, 21)webContents.printToPDF()
. #35993 (Also in 21)webContents.loadURL
when navigating to a hash. #36151 (Also in 20, 21)