Update electron from 41.7.2 -> 43.4.1 due to electron 41 EOL - #2818
Conversation
- Updates node-abi to allow node-gyp to recognise the electron version. - Updates better-sqlite3 to match the newer javascript engine in electron 43.
|
@indent can you look at the changelogs for Electron 41 to Electron 43 (the version change in this PR) and go line by line and see if we are impacted by any deprecations, removals or other call-outs in the release notes? Is there anything that we need to update or consider hand-verifying alongside this version change? |
|
|
On it. I'll pull the Electron 42 and 43 breaking-change/deprecation notes and cross-check each one against how Mailspring actually uses Electron, then report what (if anything) needs updating or hand-verifying. |
|
I went through the Electron v42 and v43 breaking-change notes line by line and cross-checked each against how Mailspring uses Electron. The v41 changes (PDF WebContents, cookie change cause) are already in Things to hand-verify
Something to plan for (not broken by this PR)
Checked and not applicable (no usage found): Net: the bump looks safe to ship. The only code change I'd recommend scheduling (though not blocking this PR) is migrating the composer's renderer clipboard reads before Electron 44. |
|
Ok great thanks @indent, can you prepare a separate PR migrating the composer's renderer clipboard reads (and any other impacted callsites - check and make sure it's just that one, I suspect there could be others). I'd like to merge that and test it along with these other things so we can get read for Electron 44 all at once. |
|
I think this list of changes looks good, going to go ahead and merge this one and I'll test these things during the release flow. |
Resolves #2660
Electron 41 becomes end of life on 25 Aug 2026.
https://endoflife.date/electron
This PR updates electron from
41.7.2to43.4.1.I had to update
node-abito allownode-gypto recognise the newer electron version, and updatebetter-sqlite3which has support for the newer javascript engine in newer versions of electron.To reproduce the lock file, change
electronto43.4.1, and run the following: