fast-vite-electron
fast-vite-electron copied to clipboard
chore(deps): update dependency electron to v20
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| electron | 19.0.10 -> 20.0.0 |
Release Notes
electron/electron
v20.0.0
Release Notes for v20.0.0
Stack Upgrades
- Chromium 104.0.5112.65.
- New in 104
- New in 103
- Node v16.15.0
- V8 v10.4
Breaking Changes
- Removed the skip-taskbar feature on Linux. #35156
- Renderers are now sandboxed by default unless
nodeIntegration: trueorsandbox: falseis specified. #35125 - Added safeguards when building native modules with nan. Use node-gyp >=8.4.0 and electron-rebuild >=3.2.9 for when rebuilding native modules. #35160
Features
Additions
- Added a warning for building native modules with node-gyp and electron-rebuild, asking users to upgrade to >=8.4.0 for node-gyp and >=3.2.8 for electron-rebuild if using Electron 20 or higher. #35160
- Added
app.isHidden()to check if the app is hidden (e.g. with Command-H) on macOS. #32155 - Added
browserDatatoapp.setPath/getPath. #33554 - Added immersive dark mode on Windows. #34549
- Added support for HIDDevice.forget(). #34210
- Added support for panel-like behavior. Window can float over full-screened apps. #34665
- Enabled
systemPreferences.subscribe{Local|Workspace}Notificationto take anullvalue for theeventparameter. #33641 (Also in 18, 19) - Fixed an issue where the PDF Viewer would fail if a user attempted to reload. #33560 (Also in 18, 19)
Fixes
- Fixed 20.0.0-beta.8 X11 crash regression. #35092
- Fixed
_dyld_missing_symbol_abortcrash on macOS when using c++ native modules. #34944 - Fixed
serial-port-addedandserial-port-removedevents not firing. #35047 - Fixed a potential printing hang. #34968
- Fixed an issue where invalid print job settings would correctly call back
Invalid print settingsas the failure reason, but would then not terminate the print job, leading to an eventual crash on exit. #35141 - Fixed an issue with fullscreen transitions when HTML fullscreen is requested. #34468
- Fixed child
about:blankwindows from inheriting their parents' preload scripts whensandbox: falseandnodeIntegrationInSubFrames: true. #34585 - Fixed initialization race when registering partition allocator on macOS. #33832
- Fixed native module compilation issues on arm. #35137
- Fixed spontaneous crashing in native modules that depended on
nan. #34851 - Updated Windows Control Overlay buttons to look and feel more native on Windows 11. #34888
Also in earlier versions....
- Added support for
--ozone-platform-hintflag on Linux. #35014 (Also in 19) - Apply senderFrame details to ipcMain port event. #33756 (Also in 16, 17, 18, 19)
- Ensures that
requestMediaKeySystemAccesseventually resolves / rejects. #34891 (Also in 19) - Fixed
webContents.getUserAgent()incorrectly returning an empty string unless previously set. #35131 (Also in 18, 19) - Fixed a Windows Control Overlay issue where a window taken directly from minimized to maximized state could have incorrect hover state. #35074 (Also in 19)
- Fixed a crash in
safeStorageon Linux. #33913 (Also in 15, 16, 17, 18, 19) - Fixed a crash on Windows when opening apps in multiple, separate user sessions. #34139 (Also in 18, 19)
- Fixed a crash when calling
BrowserWindow.setEnabled(). #34972 (Also in 18, 19) - Fixed a crash when calling
loadExtensionon an extension directory that's missing a manifest file. #34168 (Also in 16, 17, 19) - Fixed a crash when loading a same-origin URL after a render process crash. #34432 (Also in 18, 19)
- Fixed a performance problem in
crashReporter.start()on macOS. #34639 (Also in 17, 18, 19) - Fixed a potential crash when calling
webContents.print(). #34271 (Also in 19) - Fixed a potential crash when changing window settings after initializing WCO with an invalid
titleBarStyle. #34875 (Also in 17, 18, 19) - Fixed alwaysOnTop BrowserWindow option for X11 Linux. #34913 (Also in 18, 19)
- Fixed an OSR crash happening when input select items were rendered. #34069 (Also in 17, 18, 19)
- Fixed an error where
setWindowOpenHandler()would crash if the callback threw an error. #34547 (Also in 17, 18, 19) - Fixed an issue in which calling setBounds() after e.preventDefault in a 'will-move' or 'will-resize' event wouldn't change the window's shape until the mouse button was released. #35084 (Also in 19)
- Fixed an issue where BrowserWindows on macOS were incorrectly marked as resizable. #34433 (Also in 18, 19)
- Fixed an issue where DataList bounds had part of the item text cut off vertically. #34786 (Also in 19)
- Fixed an issue where Windows Control Overlay buttons did not respect maximizable/minimizable/closable states of a BrowserWindow. #34721 (Also in 17, 18, 19)
- Fixed an issue where
#ARGB->#RGBAand#AARRGGBB->#RRGGBBAAwere converted improperly when setting background color. #33707 (Also in 19) - Fixed an issue where
BrowserWindow#isFocused()was returningfalsewhenblur()was called on macOS. #33734 (Also in 17, 18, 19) - Fixed an issue where
Escapekeyboard events would not be properly propagated to the parent window after entering fullscreen and then exiting it again on Windows. #33757 (Also in 18, 19) - Fixed an issue where bounds changes were incorrectly delayed in the case where a window was moved or resized and
event.preventDefaultwas called in eitherwill-resizeorwill-moveon Windows. #34204 (Also in 16, 17, 19) - Fixed an issue where calling
BrowserWindow.setRepresentedFilenameon macOS withtitlebarStyle: 'hiddenInset'ortitlebarStyle: 'hidden'inadvertently moves the traffic light location. #34849 (Also in 18, 19) - Fixed an issue where calling
SetLoginItemSettings()could potentially cause network volumes to be incorrectly mounted. #34068 (Also in 17, 18, 19) - Fixed an issue where calling
setTitlebarOverlaywith an initially invalidtitleBarStyleon Windows would result in a crash. #34140 (Also in 19) - Fixed an issue where calling
w.setWindowButtonVisibility(true)immediately after exiting fullscreen fails to show window buttons. #34675 (Also in 18, 19) - Fixed an issue where draggable regions were not recalculated when BrowserView bounds changed on Windows. #34612 (Also in 18, 19)
- Fixed an issue where media keys would be sent to Electron on Windows no matter which window was in focus. #34647 (Also in 19)
- Fixed an issue where mixed-case extension filters in file dialogs were ignored on Linux. #33918 (Also in 18, 19)
- Fixed an issue where normal bounds would not be appropriately updated if the user minimized with the minimize button. #34486 (Also in 18, 19)
- Fixed an issue where passing
{ name: 'All Files', extensions: ['*'] }in thefiltersparam of open or save dialogs on Linux would disallow choosing files without an extension. #34516 (Also in 18, 19) - Fixed an issue where pressing escape would not un-fullscreen on Windows or Linux in some circumstances. #34317 (Also in 18, 19)
- Fixed an issue where printing with an invalid
deviceNameon Linux caused silent failures. #34901 (Also in 19) - Fixed an issue where running second instances of the same application would cause a deadlock on Windows. #34297 (Also in 18, 19)
- Fixed an issue where some
BrowserWindows opened from new links wouldn't properly load URLs. #34159 (Also in 19) - Fixed an issue where the minimize button with WCO enabled would incorrectly be highlighted in some cases. #34840 (Also in 17, 18, 19)
- Fixed an issue where the window bounds would incorrectly change if
BrowserWindow.unmaximizewas called on a window whose user bounds were maximized. #33480 (Also in 16, 17, 18, 19) - Fixed an issue where tray items wouldn't highlight in some scenarios on macOS. #34173 (Also in 16, 17, 18, 19)
- Fixed an issue where zombie windows can be created if
window.close()is called during a fullscreen transition. #34393 (Also in 17, 18, 19) - Fixed an issue with the
app.requestSingleInstanceLock()API where it would sometimes hang. #33777 (Also in 18, 19) - Fixed behavior of BrowserWindow.maximize on macOS for not shown windows. #32949 (Also in 15, 16, 17, 18, 19)
- Fixed building node modules with Visual Studio 2017. #34109 (Also in 18, 19)
- Fixed building node modules with Visual Studio 2017. #34217 (Also in 19)
- Fixed crash on startup due to missing gtk symbol on older distros. #34141 (Also in 18, 19)
- Fixed crash when calling navigator.serial.getPorts(). #34280 (Also in 17, 18, 19)
- Fixed crash when img without
altis shown with accessibility features enabled. #33840 (Also in 19) - Fixed crash when opening gtk file dialogs due to mismatched versions. #33650 (Also in 18, 19)
- Fixed empty app_id when running under wayland. #34879 (Also in 18, 19)
- Fixed incorrect return value of
app.requestSingleInstanceLock()when setting non-existent user data folder. #33559 (Also in 16, 17, 18, 19) - Fixed issues with frameless window animations and styling. #33599 (Also in 15, 16, 17, 18, 19)
- Fixed linux arm64 builds to not require glibc 2.29+. #34503 (Also in 19)
- Fixed missing Sec-CH-UA headers and empty navigator.userAgentData. #34524 (Also in 17, 18, 19)
- Fixed potential crash in WebFrameMain when performing a cross-origin navigation. #34417 (Also in 18, 19)
- Fixed potential crash while generating accessibility trees for certain images. #33614 (Also in 18, 19)
- Fixed potential crash with WebFrameMain when navigating between cross-origin websites. #33919 (Also in 18, 19)
- Fixed service worker registration with custom protocols. #34290 (Also in 18, 19)
- Fixed symbol generation on 32-bit Windows release builds. #35091 (Also in 18, 19)
- Fixed the initialization of First Party Sets. #33971 (Also in 19)
- Fixed the initialization of first party sets in the browser process. #33998 (Also in 19)
- [Mac] Fixed Partition Alloc related crash in pre-BigSur (macos <= 10.15). #33704 (Also in 18, 19)
shell.openExternal()now reports more detailed errors on Windows. #33620 (Also in 15, 16, 17, 18, 19)
Other Changes
- Added a TRACE call named
crash_reporter::Startunder theelectroncategory forcrash_reporter::Start(). #34268 (Also in 17, 18, 19) - Added deprecation warning for the
new-windowevent. #34593 - Added minimum GITHUB_TOKEN permissions. #34298
- Fixed an issue where BrowserViews didn't always visually update after call to
setBounds. #34643 (Also in 18, 19) - Fixed child_process.spawn ENOENT error with cwd option. #33815 (Also in 16, 17, 18, 19)
- Minimum required node version to install the
electronnpm package is now >10. #34166 - On Linux, changed the libgdk-pixbuf dependency to be dynamically linked rather than statically linked. #34635 (Also in 18, 19)
- Re-enabled symbol generation on 32-bit Windows. #34162 (Also in 19)
- Temporarily disabled symbol generation on 32-bit Windows due to issues with symbol generation on that platform. #33653 (Also in 19)
- WebContents for
<webview>are now only created after the'will-attach-webview'event is emitted andpreventDefaultis not called. #35016
Documentation
- Documentation changes:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled due to failing status checks.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: pnpm-lock.yaml
installing v2 tool pnpm v7.8.0
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
added 1 package in 3s
linking tool pnpm v7.8.0
7.8.0
Installed v2 /usr/local/buildpack/tools/v2/pnpm.sh in 4 seconds
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 17, reused 0, downloaded 9, added 0
Progress: resolved 18, reused 0, downloaded 12, added 0
Progress: resolved 18, reused 0, downloaded 14, added 0
Progress: resolved 18, reused 0, downloaded 17, added 0
Progress: resolved 20, reused 0, downloaded 20, added 0
Progress: resolved 21, reused 0, downloaded 20, added 0
Progress: resolved 21, reused 0, downloaded 21, added 0
Progress: resolved 22, reused 0, downloaded 21, added 0
Progress: resolved 45, reused 0, downloaded 30, added 0
Progress: resolved 66, reused 0, downloaded 49, added 0
Progress: resolved 83, reused 0, downloaded 68, added 0
Progress: resolved 107, reused 0, downloaded 85, added 0
Progress: resolved 126, reused 0, downloaded 110, added 0
Progress: resolved 140, reused 0, downloaded 120, added 0
Progress: resolved 160, reused 0, downloaded 137, added 0
Progress: resolved 188, reused 0, downloaded 157, added 0
Progress: resolved 215, reused 0, downloaded 173, added 0
Progress: resolved 237, reused 0, downloaded 198, added 0
Progress: resolved 268, reused 0, downloaded 226, added 0
Progress: resolved 291, reused 0, downloaded 255, added 0
Progress: resolved 318, reused 0, downloaded 281, added 0
Progress: resolved 353, reused 0, downloaded 309, added 0
Progress: resolved 386, reused 0, downloaded 315, added 0
Progress: resolved 407, reused 0, downloaded 341, added 0
Progress: resolved 436, reused 0, downloaded 367, added 0
Progress: resolved 449, reused 0, downloaded 385, added 0
Progress: resolved 464, reused 0, downloaded 399, added 0
Progress: resolved 476, reused 0, downloaded 406, added 0
Progress: resolved 496, reused 0, downloaded 430, added 0
Progress: resolved 535, reused 0, downloaded 465, added 0
Progress: resolved 555, reused 0, downloaded 481, added 0
Progress: resolved 584, reused 0, downloaded 507, added 0
Progress: resolved 621, reused 0, downloaded 533, added 0
Progress: resolved 656, reused 0, downloaded 560, added 0
Progress: resolved 702, reused 0, downloaded 588, added 0
Progress: resolved 746, reused 0, downloaded 595, added 0
Progress: resolved 845, reused 0, downloaded 617, added 0
Progress: resolved 902, reused 0, downloaded 653, added 0
Progress: resolved 902, reused 0, downloaded 654, added 0
Progress: resolved 936, reused 0, downloaded 671, added 0
Progress: resolved 942, reused 0, downloaded 690, added 0
Progress: resolved 942, reused 0, downloaded 691, added 0
Progress: resolved 942, reused 0, downloaded 692, added 0
Progress: resolved 943, reused 0, downloaded 692, added 0
Progress: resolved 947, reused 0, downloaded 696, added 0
undefined
ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies
.
├─┬ @anatine/esbuild-decorators
│ └── ✕ missing peer esbuild@~0.14.29
└─┬ vite-plugin-doubleshot
└─┬ @doubleshot/builder
└── ✕ unmet peer electron@"^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0": found 20.0.0
Peer dependencies that should be installed:
esbuild@~0.14.29
hint: If you want peer dependencies to be automatically installed, add "auto-install-peers=true" to an .npmrc file at the root of your project.
hint: If you don't want pnpm to fail on peer dependency issues, add "strict-peer-dependencies=false" to an .npmrc file at the root of your project.