Update dependency electron to v42#1210
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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→^42.0.0Release Notes
electron/electron (electron)
v42.0.1: electron v42.0.1Compare Source
Release Notes for v42.0.1
Fixes
app.getLoginItemSettings()returningundefinedforexecutableWillLaunchAtLoginon macOS; the property is now always a boolean. #51507 (Also in 40, 41)Other Changes
v42.0.0: electron v42.0.0Compare Source
Release Notes for v42.0.0
Stack Upgrades
148.0.7778.96v24.15.014.8Breaking Changes
Behavior Changed: macOS notifications now use
UNNotificationAPIElectron has migrated from the deprecated
NSUserNotificationAPI to theUNNotificationAPI on macOS. The new API requires that an application be code-signed in order for notifications to be displayed. If an application is not code-signed, notifications will emit afailedevent on theNotificationobject. #47817Behavior Changed:
electronno longer downloads itself viapostinstallscriptPreviously, the
electronnpm package would download the Electron binary from the repository's GitHub Releases in the package'spostinstallscript. With recent supply chain security attacks against the npm ecosystem withpostinstallscripts as a common attack vector, Electron will now download itself dynamically the first time that its mainbinscript is run (e.g. vianpx electron). See RFC #22 for more context. #49328Behavior Changed: Offscreen rendering default device scale factor
Previously, OSR used the primary display's device scale factor for rendering. Starting from Electron 42, the default changes to a constant value of
1.0for more consistent output sizes. UsewebPreferences.offscreen.deviceScaleFactorto specify a custom value. #49683Removed:
quotasobject fromSession.clearStorageData(options)When calling
Session.clearStorageData(options), theoptions.quotasobject is no longer supported because it has been removed from upstream Chromium.Removed:
ELECTRON_SKIP_BINARY_DOWNLOADenvironment variableThis environment variable is no longer supported due to the new lazy download behavior. #50459
Features
Additions
app.configureWebAuthn({ touchID: { keychainAccessGroup } })to enable the WebAuthn Touch ID platform authenticator on macOS. Also introduces aselect-webauthn-accountsession event for discoverable-credential selection. #51411 (Also in 41)Notification.getHistory()for macOS. #51123Notification.handleActivation(callback)API on Windows to handle notification clicks, replies, and action buttons - including when the app is launched from a notification (cold start). #49919ELECTRON_INSTALL_PLATFORMandELECTRON_INSTALL_ARCHvariables to install binaries from other platforms and architectures. #49981allowExtensionsprivilege toprotocol.registerSchemesAsPrivileged()to enable Chrome extensions on custom protocols. #50530 (Also in 40, 41)app.isActive()to check if the app is the active/foreground application (macOS only). #49622globalShortcut.setSuspended()andglobalShortcut.isSuspended()methods to temporarily suspend and resume global shortcut handling. #50777idandgroupIdoptions to the Notification constructor on macOS.idallows custom identifiers for notifications, andgroupIdvisually groups notifications together in Notification Center. #50304webContents.getOrCreateDevToolsTargetId(). #49733 (Also in 41)disclaimoption to the UtilityProcess API to allow for TCC disclaiming on macOS. #49128 (Also in 39, 40, 41)reasonproperty to the Notification 'closed' event on Windows to allow developers to know the reason the Notification was dismissed. #49913 (Also in 40, 41)usePrinterDefaultPageSizeoption towebContents.print()to allow using the printer's default page size. #49523 (Also in 41)view.setBoundsand addedview.setBackgroundBlur. #48812nativeTheme.shouldDifferentiateWithoutColoron macOS. #50409 (Also in 41)--experimental-transform-types. #49711 (Also in 39, 40, 41)long-animation-framescript attribution (via--enable-features=AlwaysLogLOAFURL). #49706 (Also in 39, 40, 41)contentTracing. #51162 (Also in 41)safeStoragebackends via new asynchronous functionality in safeStorage. #49054urgencyoption in Notifications on Windows. #50383 (Also in 41)webPreferences.focusOnNavigation. #49425 (Also in 40, 41)node_modulesdynamically on first launch instead of running apostinstallscript. Added theinstall-electronscript to manually trigger the download as well. #49328WasmTrapHandlersfuse. #48983 (Also in 41)hasShadow: falsein the window constructor. #49295 (Also in 41)Fixes
fscopy methods. #50285 (Also in 39, 40, 41)metadatafields tocontentTracingtraces. #51007 (Also in 41)CoreAudio Tap APIfor audio capture used in electron'sdesktopCapturer(macOS). #49717 (Also in 39, 40, 41)kResizeThresholdto trigger the resize on corners. #51001 (Also in 41)AllowUniversalAccessFromFileURLsnot being properly constrained tofile:origins in agent cluster key assignment. #51404corsEnabled: falseprotocol handlers incorrectly working across protocols. #51269 (Also in 39, 40, 41)printToPDFqueue not resetting after a rejection. #51222 (Also in 40, 41)webContents.print()not honoringdpihorizontal/vertical options. #51354 (Also in 41)ps aux. #50533fs.staton files inside asar archives returningundefinedforblksizeandblocksinstead of numeric values. #50877 (Also in 40, 41)globalShortcutnot working on Wayland withGlobalShortcutsPortalfeature enabled. #49842 (Also in 40, 41)webPreference.offscreen.deviceScaleFactorto allow user specify a value. #48730 (Also in 40, 41)AutofillPopupteardown. #51317 (Also in 40, 41)clipboard.readImage()when the clipboard contains malformed image data. #50494 (Also in 39, 40, 41)contentTracingAPIs before app is ready. #51353 (Also in 41)contentTracing.getTraceBufferUsage()while a trace session is active. #50592 (Also in 39, 40, 41)webRequest.onBeforeSendHeaderswith invalid header names or values. #51366 (Also in 40, 41)release()after the texture object was garbage collected. #50502 (Also in 39, 40, 41)MicrotasksScopefor worker exit emit inContextWillDestroy. #51350 (Also in 40, 41)<permission>element was used, by including permission element string resources in locale paks. #51374 (Also in 41)webContents.print(). #50853Invoke in DisallowJavascriptExecutionScopecrash on application quit when aWebContents(or other JS-emitting native object) is garbage-collected during shutdown. #50695 (Also in 40, 41)chrome://accessibility. #49547 (Also in 39, 40, 41)app.on('continue-activity')on cold launch whenNSUserActivity.userInfowas nil. #49986 (Also in 39, 40, 41)show/hideevents andWebContentsvisibility state could be reported incorrectly when multipleWebContentsViews were attached to a window. #50712 (Also in 40, 41)autoUpdater.quitAndInstall()could fail ifcheckForUpdates()was called again after an update was already downloaded. #50210 (Also in 39, 40, 41)VideoFrameobjects returned throughcontextBridgehad an incorrect prototype. #49997 (Also in 39, 40, 41)additionalDatapassed toapp.requestSingleInstanceLockon Windows could be truncated or fail to deserialize in the primary instance'ssecond-instanceevent. #50119 (Also in 38, 39, 40, 41)net.fetch()requests in the main process and utility processes would permanently fail withnet::ERR_FAILEDafter the Network Service process crashed and restarted. #49887nodeIntegrationInWorkerdidn't always work in AudioWorklet. #51005 (Also in 40, 41)nodeIntegrationInWorkeroverrides insetWindowOpenHandlerwere not honored for child windows sharing a renderer process with their opener. #50122 (Also in 38, 39, 40, 41)screen.getCursorScreenPoint()crashed on Wayland when it was called before aBrowserWindowhad been created. #50092 (Also in 39, 40, 41)setSimpleFullScreenon macOS would exit when web content calledrequestFullscreen(). #50987 (Also in 40, 41)shell.writeShortcutLinkwas throwingTypeError: Insufficient number of argumentswhen called with just[(path, options)]. #49476 (Also in 39, 40, 41)setBoundson aWebContentsViewcould trigger redundantpage-favicon-updatedevents even when the favicon had not changed. #49464 (Also in 39, 40, 41)getFileHandlerequests on the same path could stall indefinitely. #50671 (Also in 40, 41)webContents.print()did not prefill the print dialog on macOS. #50643toastXmlcould cause a Notification crash. #49947 (Also in 40, 41)nullfor their accelerator property. #49558 (Also in 39, 40, 41)zoomFactorinsetWindowOpenHandler'soverrideBrowserWindowOptionshad no effect on windows opened viawindow.open(). #49886 (Also in 39, 40, 41)shellfunctionality may not work on Linux if the target window is already open. #49499 (Also in 41)webContents.print()callback may not fire correctly in some cases. #50603 (Also in 41)trafficLightPositionfrom minimization on macOS. #50183 (Also in 39, 40, 41)always-on-top-changedevent to fire with incorrect values. #51133 (Also in 40, 41)app.setPath('sessionData')was called with a non-existent directory. #50908 (Also in 41)WebContentsView. #51245 (Also in 40, 41)UnhookWindowsHookExfails inSetForwardMouseMessages. #51418 (Also in 41)contenteditableelements. #51344 (Also in 40, 41)win.setFullScreen(false)when not in fullscreen on Linux. #45930 (Also in 39, 40, 41)menu-will-closeevent when closed after any submenu has been open. #49783 (Also in 40, 41)frame: false, matching the behavior for windows with frames. #50864 (Also in 41)setResizablefor frameless windows. #51296 (Also in 41)setResizabletoggles on Windows. #51218 (Also in 41)resizableisfalse. Windows no longer shrink below the requested max size or grow taller when resizability is disabled. #49903 (Also in 41)globalShortcutAPI. #49988 (Also in 41)Other Changes
4835695. #49788gn genfailing to resolveelectron_versionwhen building from agit worktreecheckout. #51166 (Also in 39, 40, 41)gin_helper::Promiseto be managed by cppgc. #51405Documentation
Notices
End of Support for 39.x.y
Electron 39.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.
v41.5.1: electron v41.5.1Compare Source
Release Notes for v41.5.1
Fixes
app.getLoginItemSettings()returningundefinedforexecutableWillLaunchAtLoginon macOS; the property is now always a boolean. #51508 (Also in 40, 42)desktopNameis not provided inpackage.json. #51480 (Also in 42)v41.5.0: electron v41.5.0Compare Source
Release Notes for v41.5.0
Features
app.configureWebAuthn()to enable the Touch ID platform authenticator for WebAuthn on macOS, and aselect-webauthn-accountsession event for choosing between multiple discoverable credentials. #51412 (Also in 42)Fixes
setResizable. #51427 (Also in 42)UnhookWindowsHookExfailure insetIgnoreMouseEvents(true, { forward: true })teardown could cause duplicate low-level mouse hooks to be installed on the next activation. #51419 (Also in 42)--remote-debugging-portnot working when inspecting from Chrome'schrome://inspectpage. The DevTools page would appear empty due to the frontend URL pointing to a CDN that returned 404 for Electron's Chromium builds. #51413v41.4.0: electron v41.4.0Compare Source
Release Notes for v41.4.0
Features
contentTracing.enableHeapProfiling(). #51178 (Also in 42)Fixes
fetch()and XHR are blocked for custom protocols registered withsupportFetchAPI: trueunlesscorsEnabled: trueis also set; cross-originmode: 'no-cors'requests now receive an opaque response. [#51270](https://redirect.github.com/electro