Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Electron to version 26.2.4 #5620

Merged

Conversation

rak-phillip
Copy link
Contributor

@rak-phillip rak-phillip commented Sep 29, 2023

This bumps electron to 26.2.4 and node to version 18.16.x (the supported version of node for the 26.x release of electron 1)

In order to keep this change primarily focused on making sure that we can get Rancher Desktop running with a supported & stable version of Electron, we will need to follow up with additional PRs to complete the transition:

closes #5619
closes #5623

Footnotes

  1. https://www.electronjs.org/docs/latest/tutorial/electron-timelines#timeline

@rak-phillip rak-phillip force-pushed the feature/5619-update-electron branch 5 times, most recently from 35ed59b to 4ad5599 Compare October 3, 2023 20:45
@rak-phillip rak-phillip force-pushed the feature/5619-update-electron branch 2 times, most recently from 3d96f44 to ecb04ce Compare October 5, 2023 16:04
@rak-phillip rak-phillip added this to the 1.12 milestone Oct 5, 2023
@rak-phillip rak-phillip force-pushed the feature/5619-update-electron branch from ecb04ce to 3606450 Compare October 5, 2023 17:30
@rak-phillip rak-phillip changed the title Feature/5619 update electron Bump Electron to version 26.2.4 Oct 5, 2023
@rak-phillip rak-phillip marked this pull request as ready for review October 5, 2023 19:23
@rak-phillip
Copy link
Contributor Author

We won't merge this until after the 1.11 release, but I think that this PR is in a state that is ready to review. Please note that the required node version has been updated to 18.16.x and we might need to reinstall yarn depending on how you manage your node versions.

Copy link
Contributor

@mook-as mook-as left a comment

Choose a reason for hiding this comment

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

Looks mostly fine, just some details and changes to commit messages.

@rak-phillip rak-phillip force-pushed the feature/5619-update-electron branch from 3606450 to 8dab896 Compare October 9, 2023 21:10
@rak-phillip rak-phillip requested a review from mook-as October 9, 2023 21:10
Copy link
Contributor

@mook-as mook-as left a comment

Choose a reason for hiding this comment

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

Seems to run (on Windows) and can still build the MSI installer.

Specify a new minimum node version of >=18.16
Update node-version in github workflows
Update node-version in cirrus workflows

Signed-off-by: Phillip Rak <[email protected]>
After updating to Electron 26, it was found that dialogs would no longer auto resize properly. The additional flex container at the root of the dialog layout appeared to be causing issues allowing content to reflow in such a way that electron's `preferred-size-changed` event would not emit.

Signed-off-by: Phillip Rak <[email protected]>
Older versions of electron had issues with zooming a `browserView` properly on macOS. Modifications that we previous made to allow for zooming are no longer required.

Signed-off-by: Phillip Rak <[email protected]>
This resolves an error we were experiencing in the test

```
FetchError: request to http://localhost:6109/list failed, reason: connect ECONNREFUSED ::1:6109
```

Node.js used to favor IPv4 but that changed in v17

> It's #39987 -- Node.js now returns IP addresses in the order they are returned from the name resolver/DNS. There's a --dns-result-order command line option you can set to control the behaviour -- the difference in Node.js 17 is the default changed.

nodejs/node#40537 (comment)

Signed-off-by: Phillip Rak <[email protected]>
@rak-phillip rak-phillip force-pushed the feature/5619-update-electron branch from 8dab896 to a2b7b34 Compare November 1, 2023 15:49
@rak-phillip
Copy link
Contributor Author

@mook-as rebased on top of main. Let me know if your approval still stands. If so, I intend to merge as soon as is conveniently possible 🙂

@mook-as mook-as self-requested a review November 1, 2023 17:34
@mook-as mook-as merged commit aee95cc into rancher-sandbox:main Nov 1, 2023
@rak-phillip rak-phillip deleted the feature/5619-update-electron branch November 1, 2023 19:53
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.

Upgrade nodejs to v18.16 Update Electron
2 participants