Skip to content

chore: bump electron to the latest version 33.2.0 (WPB-11996)#8352

Merged
V-Gira merged 4 commits intodevfrom
v/electron-upgrade
Nov 15, 2024
Merged

chore: bump electron to the latest version 33.2.0 (WPB-11996)#8352
V-Gira merged 4 commits intodevfrom
v/electron-upgrade

Conversation

@V-Gira
Copy link
Contributor

@V-Gira V-Gira commented Nov 15, 2024

Description

Upgrade to the latest stable version of electron. https://github.com/electron/electron/releases/tag/v33.2.0

List of mjor version changes

Notable breaking change

This change electron/electron#43404 introduced in Electron 33 and backported to 32 and 31 require us to change our system menu click handler as the type of the target window changed from BrowserWindow to BaseWindow

@echoes-hq echoes-hq bot added the echoes: technical-roadmap/technical-debt More specific category, to highlight Technical Debt being tackled. label Nov 15, 2024
Comment on lines +83 to +85
if (baseWindow instanceof BrowserWindow) {
baseWindow.webContents.send(channel, ...args);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe will be nice ot add some log if not exist ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

try catch in there in case the window is undefined or the wrong type?

Copy link
Contributor

Choose a reason for hiding this comment

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

No no.. I mean if there will be not !(baseWindow instanceof BrowserWindow) { console.error('baseWindow not exist in BrowserWindow')} or smth like that, because if will not exist will be hard to find issue :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what about this? 8ee5b56

@sonarqubecloud
Copy link

@V-Gira V-Gira merged commit 239e5ea into dev Nov 15, 2024
Copy link
Contributor

@e-maad e-maad left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@V-Gira V-Gira deleted the v/electron-upgrade branch November 15, 2024 13:15
V-Gira added a commit that referenced this pull request Nov 15, 2024
* chore: bump electron to 33.2.0

* chore: create helper function to send menu events to web content

* runfix: use helper function to address electron api type change

* chore: log helper function errors
V-Gira added a commit that referenced this pull request Nov 15, 2024
chore: bump electron to the latest version 33.2.0 (WPB-11996) (#8352)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

echoes: technical-roadmap/technical-debt More specific category, to highlight Technical Debt being tackled. type: chore 🧹

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants