Update Electron to version 42.0.1#22104
Merged
Merged
Conversation
Update CI and local tooling to Node 24.15.0 (/.github/workflows, .node-version, .nvmrc, .tool-versions). Upgrade Electron target and dependency to 42.0.1 (app/.npmrc, package.json) and adjust beta validation in script/validate-electron-version.ts. Update yarn.lock with matching Electron/@electron/get/env-paths/undici and strip-ansi entries. Ensures consistency across toolchain and release channel validation for the new Electron version.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR bumps the app’s Electron dependency from 40.1.0 to 42.0.1 (skipping 41) and updates the repository’s Node.js version pins to match the Node version bundled with Electron 42, ensuring local development and CI use the same runtime baseline.
Changes:
- Update Electron to
42.0.1across dependency/config pins. - Update Node.js from
24.11.1to24.15.0in toolchain/version files and CI. - Refresh
yarn.lockto reflect the Electron update and its transitive dependency changes (e.g.,@electron/get@5).
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Locks Electron 42.0.1 and updates transitive deps (e.g., @electron/get@5, undici). |
| script/validate-electron-version.ts | Updates the validated Electron version for release channels (but currently only for beta). |
| package.json | Bumps the Electron devDependency to 42.0.1. |
| app/.npmrc | Updates the Electron headers target used for native module builds to 42.0.1. |
| .tool-versions | Updates the pinned Node.js version to 24.15.0. |
| .nvmrc | Updates the pinned Node.js version to v24.15.0. |
| .node-version | Updates the pinned Node.js version to 24.15.0. |
| .github/workflows/ci.yml | Updates CI’s Node.js version to 24.15.0. |
Copilot's findings
- Files reviewed: 7/8 changed files
- Comments generated: 1
niik
approved these changes
May 11, 2026
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.
Summary
This PR updates Electron from v40.1.0 to v42.0.1 (skipping v41).
Node.js is also updated from v24.11.1 to v24.15.0 to match the version bundled with Electron 42.
Electron 42 ships with Chromium 148 and V8 14.8.
Breaking Changes
Electron 41
WebContents.changedevent.showHiddenFilesin dialogs on Linux (still honored on macOS and Windows).Electron 42
UNNotificationAPI. The new API requires the application to be code-signed in order for notifications to be displayed; an unsigned app will emit afailedevent on theNotificationobject instead. GitHub Desktop is not affected as we use our own librarydesktop-notifications.1.0as the default device scale factor (previously the primary display's scale factor). Not used by GitHub Desktop.electronno longer downloads itself via thepostinstallscript — the download now happens lazily on first require. Worth keeping an eye on CI / first-run behavior.quotasobject fromSession.clearStorageData(options). Not used by GitHub Desktop.hslShifttonativeImage.createFromNamedImage().No changes — Electron 41 and 42 do not raise the minimum supported OS versions:
References