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

fix(deps): bump electron to 32.2.1 COMPASS-8399 #6387

Merged
merged 27 commits into from
Oct 28, 2024
Merged

fix(deps): bump electron to 32.2.1 COMPASS-8399 #6387

merged 27 commits into from
Oct 28, 2024

Conversation

addaleax
Copy link
Collaborator

@addaleax addaleax commented Oct 22, 2024

Also does the compass-specific bits of COMPASS-8253.

Fixes: #6122
Fixes: #6334

Description

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

Also does the compass-specific bits of COMPASS-8253.

Fixes: #6122
Fixes: #6334
@addaleax addaleax changed the title chore(deps): bump electron to 32.2.1 COMPASS-8399 fix(deps): bump electron to 32.2.1 COMPASS-8399 Oct 22, 2024
@github-actions github-actions bot added the fix label Oct 22, 2024
Comment on lines 290 to 301
let _electron: typeof import('electron') | undefined | null;
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
function getElectronWebUtils(): typeof import('electron').webUtils | undefined {
if (_electron === undefined) {
try {
_electron = require('electron');
} catch {
_electron = null;
}
}
return _electron?.webUtils;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to follow the pattern of hiding direct electron usage behind the FileInputBackend interface, what do you think about adding getPathForFile as an extra method to the interface instead of importing electron here directly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, yeah, that's definitely a better way of going about this! Did this in 9c27dd7

@addaleax addaleax removed the wip label Oct 24, 2024
@addaleax addaleax merged commit fb5e608 into main Oct 28, 2024
29 checks passed
@addaleax addaleax deleted the electron-32 branch October 28, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants