chore(deps): update dependency electron to v40 #1208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^8.0.1→^40.0.0Release Notes
electron/electron (electron)
v40.0.0: electron v40.0.0Compare Source
Release Notes for v40.0.0
Stack Upgrades
144.0.7559.60v24.11.114.4Breaking Changes
Features
Additions
RGBAF16output format with scRGB HDR color space support to Offscreen Rendering. #48265 (Also in 39)app.isHardwareAccelerationEnabled(). #47614 (Also in 37, 38, 39)loginevent onwebContents. #49064 (Also in 39)systemPreferences.getAccentColor. #48027 (Also in 39)Improvements
window.setAccentColor(null). #48274 (Also in 38, 39)nativeImage.createFromNamedImageto support SF Symbol names. #48772 (Also in 39)Fixes
--no-stdio-initto be used when nul device is disabled on windows. #47870Also in earlier versions...
GetPackageJSON. #48293 (Also in 37, 38, 39)XDG_SESSION_TYPEenvironment variable. #48301 (Also in 38, 39)dialog.showMessageBoxdefault button handling. #48216 (Also in 36, 37, 38, 39)dialog.showOpenDialogon Windows with an empty extension filter array. #48640 (Also in 37, 38, 39)menu-did-closewas not emitted properly for some application menus. #49092 (Also in 38, 39)shell.openExternalcaused an unexpected dialog to open when there was no app suitable to open the url. #48502 (Also in 38, 39)systemPreferences.getAccentColorinverted the color. #48511 (Also in 37, 38, 39)trafficLightPositionwould not be correctly applied when usingtitleBarStyle: 'customButtonsOnHover'on macOS 26. #48538 (Also in 37, 38, 39)titleBarOverlaywasn't always calculated to provide appropriate minimum contrast. #48568 (Also in 37, 38, 39)webContents.openDevTools({ mode: 'detach' })would cause a crash on Wayland. #48600 (Also in 38, 39)menu.popupwould fire when any arbitrary submenu of the given menu closed, and not the menu itself. #49046 (Also in 38, 39)webContents.sessionorwebContents.debugger. #48318 (Also in 39)--enable-features=Feature:ParamA/Value. #48411 (Also in 39)<input>tag on macOS 26. #48379 (Also in 36, 37, 38, 39)netare now capable of having their headers modified to use reserved headers viawebRequest. #49241 (Also in 39)Other Changes
4453807. #48335 (Also in 36, 37, 38, 39)4667866. #49286Documentation
Notices
End of Support for 37.x.y
Electron 37.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.
v39.2.7: electron v39.2.7Compare Source
Release Notes for v39.2.7
Other Changes
v39.2.6: electron v39.2.6Compare Source
Release Notes for v39.2.6
Fixes
Other Changes
v39.2.5: electron v39.2.5Compare Source
Release Notes for v39.2.5
Fixes
menu-did-closewas not emitted properly for some application menus. #49093 (Also in 38, 40)Other Changes
v39.2.4: electron v39.2.4Compare Source
Release Notes for v39.2.4
Fixes
menu.popupwould fire when any arbitrary submenu of the given menu closed, and not the menu itself. #49045 (Also in 38, 40)Other Changes
v39.2.3: electron v39.2.3Compare Source
Release Notes for v39.2.3
v39.2.2: electron v39.2.2Compare Source
Release Notes for v39.2.2
Fixes
v39.2.1: electron v39.2.1Compare Source
Release Notes for v39.2.1
Fixes
v39.2.0: electron v39.2.0Compare Source
Release Notes for v39.2.0
Features
app.isHardwareAccelerationEnabled(). #48680 (Also in 37, 38)window.setAccentColor(null). #48852 (Also in 38)nativeImage.createFromNamedImageto support SF Symbol names. #48773 (Also in 40)Fixes
Other Changes
v39.1.2: electron v39.1.2Compare Source
Release Notes for v39.1.2
Fixes
Other Changes
Documentation
Unknown
v39.1.1: electron v39.1.1Compare Source
Release Notes for v39.1.1
Fixes
v39.1.0: electron v39.1.0Compare Source
Release Notes for v39.1.0
Fixes
Other Changes
v39.0.0: electron v39.0.0Compare Source
Release Notes for v39.0.0
Stack Upgrades
142.0.7444.5222.20.014.2Breaking Changes
colorSpaceto offscreen shared texture info ofwebContents.on('paint')event.OffscreenSharedTextureto provide a unifiedhandlethat holds the native handle. #47315window.openwhere it should always create a resizable popup window but did not. #47540For breaking changes inherited via Chromium, see blog post
Features
Additions
RGBAF16output format with scRGB HDR color space support to Offscreen Rendering. #48504fileBackedandpurgeablefields toprocess.getSystemMemoryInfo()for macOS. #47628 (Also in 37, 38)guidTrayconstructor option on macOS to allow tray icons to maintain position across launches. #47838 (Also in 36, 37, 38)webFrameMain.fromFrameToken(processId, frameToken)to get aWebFrameMaininstance from its frame token. #47850 (Also in 38)app.getRecentDocuments()on Windows and macOS. #45839 (Also in 36, 37, 38)USBDevice.configurations. #47459systemPreferences.getAccentColor. #48628{get|set}AccentColor. #47741 (Also in 36, 37, 38)DIR_ASSETSinstead ofDIR_MODULE/DIR_EXEto locate assets and resources, and added "assets" as a key that can be queried viaapp.getPath. #47439 (Also in 37, 38)Fixes
systemPreferences.getAccentColorinverted the color. #48624webContents.openDevTools({ mode: 'detach' })would cause a crash on Wayland. #48623webContents.session. #48344--enable-features=Feature:ParamA/Value. #48442Also in earlier versions...
GetPackageJSON. #48425 (Also in 37, 38)XDG_SESSION_TYPEenvironment variable. #48310 (Also in 38)dialog.showMessageBoxdefault button handling. #48521 (Also in 36, 37, 38)appextensions filters didn't allow for selecting app bundles in macOS file dialogs. #47825 (Also in 36, 37, 38)Refererheader was not being set correctly when usingwebContents.downloadURL(). #47625 (Also in 36, 37, 38)webContents.loadURL()from a failedwebContents.loadURL()call's catch handler. #48004 (Also in 36, 37, 38)-electron-corner-smoothingCSS rule to a stylesheet with no associated document. #47759 (Also in 37, 38)desktopCapturer.getSourceswith an empty thumbnail size. #47641 (Also in 36, 37, 38)webContentsfunctions afterwindow.close(). #47933 (Also in 36, 37, 38)dialog.showOpenDialogon Windows with an empty extension filter array. #48658 (Also in 37, 38)setContentProtectiondidn't work as expected. #47856 (Also in 36, 37, 38)app.accessibilitySupportEnableddidn't work as expected. #48041 (Also in 37, 38)dialog.showMessageDialogshowed a window incorrectly centered to monitor instead of parent window when passed. #48181 (Also in 38)net.isOnline()always returnedtruein utilityProcesses. #48111 (Also in 36, 37, 38)require('node:sqlite')didn't work. #47706 (Also in 36, 37, 38)shell.openExternalcaused an unexpected dialog to open when there was no app suitable to open the url. #48518 (Also in 38)shell.openPathwas not non-blocking as expected. #48079 (Also in 36, 37, 38)trafficLightPositionwould not be correctly applied when usingtitleBarStyle: 'customButtonsOnHover'on macOS 26. #48621 (Also in 38)accentColorwould result in a white accent color. #47660 (Also in 37, 38)titleBarOverlaywasn't always calculated to provide appropriate minimum contrast. #48597 (Also in 37, 38)roundedCornersset tofalse. #47664 (Also in 36, 37, 38)contextmenuevent was emitted. #48199 (Also in 36, 37, 38)electron/utilityin an ESM file threw an error at runtime. #47998 (Also in 36, 37, 38)electron/utilitythrew aERR_MODULE_NOT_FOUNDerror at runtime. #47968 (Also in 36, 37, 38)window.openwould never be offscreen. #47868 (Also in 37, 38)<input>tag on macOS 26. #48393 (Also in 36, 37, 38)app.getLoginItemSettingson macOS. #48090 (Also in 36, 37, 38)Other Changes
abi_versionfile to the npm package. [#4