Skip to content

ci(deps-dev): bump electron from 40.10.0 to 42.1.0#21

Merged
reaatech merged 4 commits into
mainfrom
dependabot/npm_and_yarn/electron-41.5.0
May 20, 2026
Merged

ci(deps-dev): bump electron from 40.10.0 to 42.1.0#21
reaatech merged 4 commits into
mainfrom
dependabot/npm_and_yarn/electron-41.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 4, 2026

Copy link
Copy Markdown
Contributor

Bumps electron from 40.10.0 to 42.1.0.

Release notes

Sourced from electron's releases.

electron v42.1.0

Release Notes for v42.1.0

Fixes

  • Fixed a crash in the macOS Touch ID WebAuthn prompt caused by a missing string resource, and added touchID.promptReason to app.configureWebAuthn() to customize the prompt text. #51594 (Also in 41, 43)
  • Fixed a crash on MacOS when a user clicked into a title bar or top view. #51605 (Also in 43)

Other Changes

  • Improved performance of webRequest header conversions and several other gin converter hot paths. #51607 (Also in 43)
  • Improved performance of native event emission, IPC dispatch, and option-dictionary parsing. #51614 (Also in 41)

electron v42.0.1

Release Notes for v42.0.1

Fixes

  • Fixed DesktopCapturer crash on macOS. #51506
  • Fixed ELECTRON_INSTALL_PLATFORM being ignored when resolving the Electron executable path during postinstall, which caused path.txt to be written for the host platform instead of the requested target and made isInstalled() always re-download on subsequent installs. #51370
  • Fixed app.getLoginItemSettings() returning undefined for executableWillLaunchAtLogin on macOS; the property is now always a boolean. #51507 (Also in 40, 41)
  • Fixed a potential race condition crash when closing DevTools. #51473 (Also in 41)

Other Changes

  • Updated Chromium to 148.0.7778.97. #51517

electron v42.0.0

Release Notes for v42.0.0

Stack Upgrades

Breaking Changes

Behavior Changed: macOS notifications now use UNNotification API

Electron has migrated from the deprecated NSUserNotification API to the UNNotification API 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 a failed event on the Notification object. #47817

Behavior Changed: electron no longer downloads itself via postinstall script

Previously, the electron npm package would download the Electron binary from the repository's GitHub Releases in the package's postinstall script. With recent supply chain security attacks against the npm ecosystem with postinstall scripts as a common attack vector, Electron will now download itself dynamically the first time that its main bin script is run (e.g. via npx electron). See [RFC #22](electron/rfcs#22) for more context. #49328

Behavior 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.0 for more consistent output sizes. Use webPreferences.offscreen.deviceScaleFactor to specify a custom value. #49683

... (truncated)

Commits
  • 9604c46 refactor: simplify content_view_ hit-test transparency on macOS (#51626)
  • e229b1d perf: reduce per-call overhead in gin converters (#51607)
  • e639fa0 fix: don't return a nullptr from TargetForRect (#51605)
  • bce23fc perf: reduce per-call overhead in gin_helper hot paths (#51614)
  • eac794f fix: ship IDS_WEBAUTHN_TOUCH_ID_PROMPT_REASON and allow overriding it (#51594)
  • b133532 ci: pin Homebrew version in CI runs (#51545)
  • a8a9854 chore: update breaking changes for Electron 42 (#51550)
  • e7021e3 fix: test idempotency issues (#51526)
  • e49c3c6 test: make sure there are no orphaned electron processes running (#51485)
  • 90ef05b chore: bump chromium to 148.0.7778.97 (42-x-y) (#51517)
  • Additional commits viewable in compare view

@dependabot @github

dependabot Bot commented on behalf of github May 4, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot changed the title ci(deps-dev): bump electron from 40.9.2 to 41.5.0 ci(deps-dev): bump electron from 40.10.0 to 42.1.0 May 17, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/electron-41.5.0 branch from 1cecbd4 to 68957b1 Compare May 17, 2026 11:32
@reaatech

Copy link
Copy Markdown
Owner

⚠️ Dependabot fix attempts exhausted

Tried 2 opencode fix attempt(s); CI is still failing on: Electron Package.

Leaving this PR open for human review — repobot will not close dependency-bump PRs on CI failure.

@dependabot @github

dependabot Bot commented on behalf of github May 18, 2026

Copy link
Copy Markdown
Contributor Author

A newer version of electron exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

dependabot Bot and others added 3 commits May 20, 2026 20:01
Bumps [electron](https://github.com/electron/electron) from 40.10.0 to 42.1.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Commits](electron/electron@v40.10.0...v42.1.0)

---
updated-dependencies:
- dependency-name: electron
  dependency-version: 41.5.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
The electron-rebuild step fails because better-sqlite3 (v12.10.0, the
latest) cannot compile against Electron 42's V8 headers. Three breaking
V8 API changes cause the build to fail:

1. v8::External::New(isolate, addon) now requires a 3rd argument
   (v8::ExternalPointerTypeTag)
2. v8::External::Value() now requires 1 argument (ExternalPointerTypeTag)
3. SetNativeDataProperty overloads are ambiguous with new signatures

These are known upstream issues (WiseLibs/better-sqlite3#1474,
WiseLibs/better-sqlite3#1470). The better-sqlite3 maintainers explicitly
removed Electron v42 prebuild support in v12.10.0 and are working on
fixing the V8 API compatibility.

No caller code in this repo needs changes — the breakage is entirely in
a transitive native dependency's compilation step.
Patch three V8 API breaks in better-sqlite3 C++ source that prevent
compilation against Electron 42 headers (V8 14.x):

1. v8::External::New() now requires ExternalPointerTypeTag (3rd arg)
2. v8::External::Value() now requires ExternalPointerTypeTag
3. SetNativeDataProperty(0) ambiguous between new nullptr_t/setter overloads

Adds a postinstall script (scripts/patch-better-sqlite3.js) to apply
these patches idempotently after every npm install.

Also bumps better-sqlite3 from ^12.6.2 to ^12.10.0.
@reaatech reaatech force-pushed the dependabot/npm_and_yarn/electron-41.5.0 branch from 2257409 to 2b81651 Compare May 20, 2026 20:01
The patch-better-sqlite3 postinstall script introduced in the prior
commit was not Prettier-formatted, causing the CI format check to fail.
@reaatech reaatech merged commit 18d75ac into main May 20, 2026
7 checks passed
@reaatech reaatech deleted the dependabot/npm_and_yarn/electron-41.5.0 branch May 20, 2026 20:08
@reaatech

Copy link
Copy Markdown
Owner

✅ Dependabot PR Merged

  • Bump: electron from 40.10.0 → 42.1.0
  • Attempts to fix CI: 1
  • Merge: 18d75ac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant