Skip to content

[AI] Scope Electron update to v41 - #8044

Merged
MikesGlitch merged 12 commits into
masterfrom
copilot/update-electron-version
Jun 3, 2026
Merged

MikesGlitch merged 12 commits into
masterfrom
copilot/update-electron-version

Conversation

Copilot AI commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

This change narrows the dependency update to the requested scope: move desktop Electron to the 41 line and avoid introducing a new better-sqlite3 version pin. It also removes the custom better-sqlite3 patch protocol while preserving the existing version range behavior.

  • Electron target

    • Updated /packages/desktop-electron/package.json from electron: 42.3.0 to electron: 41.7.1.
  • better-sqlite3 versioning policy

    • Replaced patched dependency spec with the normal semver range ^12.8.0 in:
      • /packages/api/package.json
      • /packages/sync-server/package.json
      • /packages/desktop-electron/package.json
      • /packages/loot-core/package.json
    • Removed the custom Yarn patch artifact for better-sqlite3.
    • Refreshed yarn.lock so manifests use npm:^12.8.0 (currently resolving to 12.9.0).
  • Release note alignment

    • Updated /upcoming-release-notes/8044.md to reflect the final Electron target (41.7.1).
{
  "better-sqlite3": "^12.8.0",
  "electron": "41.7.1"
}

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 37 14.04 MB 0%
loot-core 1 5.27 MB 0%
api 2 3.85 MB 0%
cli 1 7.97 MB 0%
crdt 1 11.12 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
37 14.04 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/index.js 1.54 MB 0%
static/js/BackgroundImage.js 121.09 kB 0%
static/js/FormulaEditor.js 962.55 kB 0%
static/js/ManageRules.js 46.64 kB 0%
static/js/PayeeRuleCountLabel.js 7.33 kB 0%
static/js/ReportRouter.js 1.26 MB 0%
static/js/ScheduleEditForm.js 146.44 kB 0%
static/js/SchedulesTable.js 202.7 kB 0%
static/js/TransactionEdit.js 90.63 kB 0%
static/js/TransactionList.js 85.81 kB 0%
static/js/Value.js 5.08 MB 0%
static/js/_baseIsEqual.js 98.38 kB 0%
static/js/ca.js 186.63 kB 0%
static/js/client.js 451.37 kB 0%
static/js/da.js 101.02 kB 0%
static/js/de.js 170.87 kB 0%
static/js/en-GB.js 9.25 kB 0%
static/js/en.js 199.23 kB 0%
static/js/es.js 178.57 kB 0%
static/js/extends.js 501.42 kB 0%
static/js/fr.js 178.44 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 164.87 kB 0%
static/js/narrow.js 364.25 kB 0%
static/js/nb-NO.js 147.94 kB 0%
static/js/nl.js 107 kB 0%
static/js/pt-BR.js 188.32 kB 0%
static/js/resize-observer.js 18.06 kB 0%
static/js/th.js 174.31 kB 0%
static/js/theme.js 31.88 kB 0%
static/js/toString.js 705.14 kB 0%
static/js/uk.js 207.3 kB 0%
static/js/useFormatList.js 2.52 kB 0%
static/js/useTransactionBatchActions.js 9.71 kB 0%
static/js/wide.js 297.5 kB 0%
static/js/workbox-window.prod.es5.js 7.33 kB 0%
static/js/zh-Hans.js 117.01 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.27 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.WcTGUWK6.js 5.27 MB 0%

api

Total

Files count Total bundle size % Changed
2 3.85 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
index.js 3.85 MB 0%
models.js 0 B 0%

cli

Total

Files count Total bundle size % Changed
1 7.97 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
cli.js 7.97 MB 0%

crdt

Total

Files count Total bundle size % Changed
1 11.12 kB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
index.js 11.12 kB 0%

@netlify

netlify Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit a84ddeb
🔍 Latest deploy log https://app.netlify.com/projects/actualbudget/deploys/6a20238d7249bc000788f8ea
😎 Deploy Preview https://deploy-preview-8044.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI linked an issue Jun 2, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Update electron version to avoid EOL issues desktop-electron: upgrade Electron runtime from 39.x (EOL) to 42.3.0 Jun 2, 2026
Copilot AI requested a review from MikesGlitch June 2, 2026 18:30
Copilot AI changed the title desktop-electron: upgrade Electron runtime from 39.x (EOL) to 42.3.0 desktop-electron: upgrade Electron to v42.3.0 and add PR release notes entry Jun 2, 2026
Updated author information in release notes.
Copilot AI changed the title desktop-electron: upgrade Electron to v42.3.0 and add PR release notes entry Resolve Electron 42 ABI resolution failure in desktop rebuild flow Jun 2, 2026
Copilot AI temporarily deployed to pr-automation June 2, 2026 19:17 Inactive
@netlify

netlify Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget-website ready!

Name Link
🔨 Latest commit a84ddeb
🔍 Latest deploy log https://app.netlify.com/projects/actualbudget-website/deploys/6a20238dce6c3b0008c5b671
😎 Deploy Preview https://deploy-preview-8044.www.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI changed the title Resolve Electron 42 ABI resolution failure in desktop rebuild flow Patch better-sqlite3 for Electron 42 rebuild compatibility Jun 2, 2026

@matt-fidd matt-fidd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on Mac

@matt-fidd

Copy link
Copy Markdown
Member

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot added the API Issues with the @actual-app/api package label Jun 3, 2026
@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f05e53cb-8322-466e-992e-a0ae8084188c

📥 Commits

Reviewing files that changed from the base of the PR and between 8dd3496 and a84ddeb.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (2)
  • packages/desktop-electron/package.json
  • upcoming-release-notes/8044.md

📝 Walkthrough

Walkthrough

This PR upgrades the Electron runtime in the desktop application from version 39.8.5 (end-of-life) to 41.7.1. The dependency version is updated in the package configuration, and the change is documented in the release notes as a maintenance update.

Changes

Electron Runtime Upgrade

Layer / File(s) Summary
Electron dependency and release notes
packages/desktop-electron/package.json, upcoming-release-notes/8044.md
Electron devDependency updated from 39.8.5 to 41.7.1 in package metadata, with release notes entry documenting the upgrade from EOL version.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

API

Suggested reviewers

  • MikesGlitch

Poem

🐰 Electron springs forth, version bright,
From thirty-nine to forty-one's light,
Old EOL leaves, new wings take flight,
The desktop now runs clean and right,
Release notes inscribed—the upgrade's done right! 🚀

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main change: scoping the Electron update to version 41.x line, which is the primary objective of this PR.
Description check ✅ Passed The description clearly relates to the changeset, detailing the Electron version update and better-sqlite3 dependency changes reflected in the modified files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch copilot/update-electron-version

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@MikesGlitch
MikesGlitch added this pull request to the merge queue Jun 3, 2026
Merged via the queue into master with commit 3f7439f Jun 3, 2026
38 checks passed
@MikesGlitch
MikesGlitch deleted the copilot/update-electron-version branch June 3, 2026 14:16
mbreslow pushed a commit to mbreslow/actual that referenced this pull request Jun 8, 2026
* Initial plan

* Bump desktop Electron runtime to v42.3.0

* Add release notes entry for PR actualbudget#8044

* Change author from Copilot to MikesGlitch

Updated author information in release notes.

* Update node-abi mappings to support Electron 42 ABI detection

* Address validation feedback for Electron update PR

* Add better-sqlite3 Electron 42 patch

* Update lockfile for better-sqlite3 patch

* Remove better-sqlite patch protocol and target Electron 41

* Align release note with Electron 41.7.1 change

* Update better-sqlite3 ranges to ^12.8.0

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Michael Clark <[email protected]>
Co-authored-by: Matt Fiddaman <[email protected]>
lelemm pushed a commit to lelemm/actual that referenced this pull request Jun 9, 2026
* Initial plan

* Bump desktop Electron runtime to v42.3.0

* Add release notes entry for PR actualbudget#8044

* Change author from Copilot to MikesGlitch

Updated author information in release notes.

* Update node-abi mappings to support Electron 42 ABI detection

* Address validation feedback for Electron update PR

* Add better-sqlite3 Electron 42 patch

* Update lockfile for better-sqlite3 patch

* Remove better-sqlite patch protocol and target Electron 41

* Align release note with Electron 41.7.1 change

* Update better-sqlite3 ranges to ^12.8.0

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Michael Clark <[email protected]>
Co-authored-by: Matt Fiddaman <[email protected]>
@coderabbitai coderabbitai Bot mentioned this pull request Jun 16, 2026
3 tasks done