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
Upgrades to Electron 29. This will allow re-opening #9784 and moves us to one of the stable versions of Electron.
Notes
chokidar
v2 to v3. This is done by adding a resolution forchokidar@^2.0.0
to resolve to v3.5.3 to fix build on MacOS.chokidar
v2 (an old version offsevents
) was breaking the build.chokidar
v2 because we depend ongulp
. Gulp depends on glob-watcher v5, which depends on chokidar v2. There exists aglob-watcher
v6 that depends on chokidar v3, but force-upgrading it seems to be more likely to introduce breaking changes.chokidar
's v3 version bump was breaking because it removed support for NodeJS < v8. We use node 18 on deskop, so it should be safe to upgrade.Notes: Issues present before this upgrade
Issues present before this upgrade (v3.0.0):
I plan to open issues for the above in the near future. I'm mentioning them here to record that they are not caused by this upgrade.
Testing
Important
Before testing, merge #10104 and rebuild. Otherwise, resource links will fail to open.
The below tests focus on system theme detection and printing, both of which are mentioned in the list of breaking changes.
yarn dist --publish=never
.:exportPdf
works in the command palette.https://example.com
and verify that clicking on it in the viewer opens a browser.This has been tested successfully on: