Originally created by: dependabot[bot]
Bumps electron from 37.4.0 to 38.0.0.
Sourced from electron's releases.
electron v38.0.0
Release Notes for v38.0.0
Stack Upgrades
- Chromium
140.0.7339.41- Node
22.18.0- V8
14.0Breaking Changes
- For breaking changes inherited via Chromium, see blog post
Features
Additions
- Added
before-mouse-eventto allow intercepting and preventing mouse events in WebContents. #47280](https://github.com/href="https://redirect.github.com/electron/electron/pull/47280">/issues/47280) (Also in 36, 37)- Added
fileBackedandpurgeablefields toprocess.getSystemMemoryInfo()for macOS. #48146](https://github.com/href="https://redirect.github.com/electron/electron/pull/48146">/issues/48146) (Also in 37)- Added
innerWidthandinnerHeightoptions for window.open. #46749](https://github.com/href="https://redirect.github.com/electron/electron/pull/46749">/issues/46749) (Also in 35, 36, 37)- Added
tray.{get|set}AutosaveNameto enable macOS tray icons to maintain position across launches. #48077](https://github.com/href="https://redirect.github.com/electron/electron/pull/48077">/issues/48077) (Also in 36, 37)- Added
webFrameMain.fromFrameToken(processId, frameToken)to get aWebFrameMaininstance from its frame token. #47942](https://github.com/href="https://redirect.github.com/electron/electron/pull/47942">/issues/47942)- Added sublabel functionality for menus on macOS >= 14.4. #46887](https://github.com/href="https://redirect.github.com/electron/electron/pull/46887">/issues/46887) (Also in 35, 36, 37)
- Added support for
app.getRecentDocuments()on Windows and macOS. #47924](https://github.com/href="https://redirect.github.com/electron/electron/pull/47924">/issues/47924) (Also in 36, 37)- Added support for
--no-experimental-global-navigatorflag. #47370](https://github.com/href="https://redirect.github.com/electron/electron/pull/47370">/issues/47370) (Also in 35, 36, 37)- Added support for
HIDDevice.collections. #47391](https://github.com/href="https://redirect.github.com/electron/electron/pull/47391">/issues/47391) (Also in 36, 37)- Added support for
screen.dipToScreenPoint(point)andscreen.screenToDipPoint(point)on Linux X11. #46211](https://github.com/href="https://redirect.github.com/electron/electron/pull/46211">/issues/46211) (Also in 35, 36, 37)- Added support for customizing system accent color and highlighting of active window border. #47285](https://github.com/href="https://redirect.github.com/electron/electron/pull/47285">/issues/47285) (Also in 35, 36, 37)
- Added support for menu item role
paletteandheaderon macOS. #45538](https://github.com/href="https://redirect.github.com/electron/electron/pull/45538">/issues/45538) (Also in 37)- Added support for node option
--experimental-network-inspection. #46690](https://github.com/href="https://redirect.github.com/electron/electron/pull/46690">/issues/46690) (Also in 35, 36, 37)- Added the priority and priorityIncremental options to net.request(). #42628](https://github.com/href="https://redirect.github.com/electron/electron/pull/42628">/issues/42628) (Also in 36, 37)
- Adds the ability to change window accent color on Windows after initial window initialization via
{get|set}AccentColor. #47939](https://github.com/href="https://redirect.github.com/electron/electron/pull/47939">/issues/47939) (Also in 36, 37)Improvements
- Exposed
win.isContentProtected()to allow developers to check window protection status. #47242](https://github.com/href="https://redirect.github.com/electron/electron/pull/47242">/issues/47242) (Also in 36, 37)- Internally switched to using
DIR_ASSETSinstead ofDIR_MODULE/DIR_EXEto locate assets and resources, and added "assets" as a key that can be queried viaapp.getPath. #47950](https://github.com/href="https://redirect.github.com/electron/electron/pull/47950">/issues/47950) (Also in 37)Fixes
- Fixed an issue where
dialog.showMessageDialogshowed a window incorrectly centered to monitor instead of parent window when passed. #48215](https://github.com/href="https://redirect.github.com/electron/electron/pull/48215">/issues/48215)- Fixed an issue where users on MacOS were unable to interact with a webpage loaded via loadURL. #47575](https://github.com/href="https://redirect.github.com/electron/electron/pull/47575">/issues/47575)
- Fixed broken
chrome://accessibilitypage. #47497](https://github.com/href="https://redirect.github.com/electron/electron/pull/47497">/issues/47497)Also in earlier versions...
- Fixed
addChildView()crashes when adding a closed WebContentsView. #47099](https://github.com/href="https://redirect.github.com/electron/electron/pull/47099">/issues/47099) (Also in 35, 36, 37)- Fixed a bug where
appextensions filters didn't allow for selecting app bundles in macOS file dialogs. #47841](https://github.com/href="https://redirect.github.com/electron/electron/pull/47841">/issues/47841) (Also in 36, 37)- Fixed a bug where the
Refererheader was not being set correctly when usingwebContents.downloadURL(). #47867](https://github.com/href="https://redirect.github.com/electron/electron/pull/47867">/issues/47867) (Also in 36, 37)- Fixed a child process crash on macOS when the running application is replaced with one that has a newer implementation triggering the sandbox. #47783](https://github.com/href="https://redirect.github.com/electron/electron/pull/47783">/issues/47783) (Also in 37)
... (truncated)
Sourced from electron's changelog.
Breaking Changes
Breaking changes will be documented here, and deprecation warnings added to JS code where possible, at least one major version before the change is made.
Types of Breaking Changes
This document uses the following convention to categorize breaking changes:
- API Changed: An API was changed in such a way that code that has not been updated is guaranteed to throw an exception.
- Behavior Changed: The behavior of Electron has changed, but not in such a way that an exception will necessarily be thrown.
- Default Changed: Code depending on the old default may break, not necessarily throwing an exception. The old behavior can be restored by explicitly specifying the value.
- Deprecated: An API was marked as deprecated. The API will continue to function, but will emit a deprecation warning, and will be removed in a future release.
- Removed: An API or feature was removed, and is no longer supported by Electron.
Planned Breaking API Changes (39.0)
Deprecated:
--host-rulescommand line switchChromium is deprecating the
--host-rulesswitch.You should use
--host-resolver-rulesinstead.Behavior Changed: window.open popups are always resizable
Per current WHATWG spec, the
window.openAPI will now always create a resizable popup window.To restore previous behavior:
webContents.setWindowOpenHandler((details) => { return { action: 'allow', overrideBrowserWindowOptions: { resizable: details.features.includes('resizable=yes') } } })Behavior Changed: shared texture OSR
paintevent data structureWhen using shared texture offscreen rendering feature, the
paintevent now emits a more structured object. It moves thesharedTextureHandle,planes,modifierinto a unifiedhandleproperty. See here for more details.Planned Breaking API Changes (38.0)
Removed:
ELECTRON_OZONE_PLATFORM_HINTenvironment variableThe default value of the
--ozone-plaftformflag changed toauto.
... (truncated)
7943386 fix: BrowserWindow add the same BrowserView (#48201](https://github.com/href="https://redirect.github.com/electron/electron/issues/48201">/issues/48201))a733514 fix: file-only picker incorrectly allowing some directories (#48231](https://github.com/href="https://redirect.github.com/electron/electron/issues/48231">/issues/48231))d590787 fix: showMessageDialog should center dialog to parent (#48215](https://github.com/href="https://redirect.github.com/electron/electron/issues/48215">/issues/48215))0098160 fix: ensure dragging works again after emitting contextmenu event (#48224](https://github.com/href="https://redirect.github.com/electron/electron/issues/48224">/issues/48224))207f64f chore: bump chromium to 140.0.7339.41 (38-x-y) (#48190](https://github.com/href="https://redirect.github.com/electron/electron/issues/48190">/issues/48190))441cff7 feat: add fileBacked and purgeable fields to `process.getSystemMemoryInfo...9eede35 build: refactor Linux binary stripping to align with upstream (#48197](https://github.com/href="https://redirect.github.com/electron/electron/issues/48197">/issues/48197))6812b13 docs: fix some module headings (#48195](https://github.com/href="https://redirect.github.com/electron/electron/issues/48195">/issues/48195))a64175f ci: use free GH arm runners (#48187](https://github.com/href="https://redirect.github.com/electron/electron/issues/48187">/issues/48187))b34e618 docs: add release timeline for Electron 39 (#48176](https://github.com/href="https://redirect.github.com/electron/electron/issues/48176">/issues/48176))Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Originally posted by: dependabot[bot]
Labels
The following labels could not be found:
deps,javascript. Please create them before Dependabot can add them to a pull request.Please fix the above issues or remove invalid values from
dependabot.yml.