Skip to content

Commit a09f0d8

Browse files
authored
Update dependency electron to v39 (#1438)
1 parent c613d4a commit a09f0d8

File tree

22 files changed

+278
-511
lines changed

22 files changed

+278
-511
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.16.0
1+
22.21.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ download the right package for your system.
4141

4242
### macOS
4343

44-
macOS 11 or later is required.
44+
macOS 12 or later is required.
4545

4646
Download either the PKG (installer) or DMG (image) package from the
4747
[releases](https://github.com/freelensapp/freelens/releases) page. Both arm64

freelens/electron-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/electron-userland/electron-builder/refs/heads/master/packages/app-builder-lib/scheme.json
22

3-
electronVersion: 35.7.5 # datasource=npm depName=electron
3+
electronVersion: 39.2.4 # datasource=npm depName=electron
44

55
## Run `pnpm electron-rebuild` instead
66
npmRebuild: false

freelens/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,21 +168,22 @@
168168
"@types/fs-extra": "^11.0.4",
169169
"@types/jest": "^29.5.14",
170170
"@types/lodash": "^4.17.21",
171-
"@types/node": "~22.16.5",
171+
"@types/node": "~22.19.1",
172172
"@types/webpack-env": "^1.18.8",
173173
"circular-dependency-plugin": "^5.2.2",
174174
"copy-webpack-plugin": "^13.0.0",
175175
"css-loader": "^6.11.0",
176-
"electron": "^35.7.5",
177-
"electron-builder": "^26.0.12",
178-
"electron-builder-squirrel-windows": "26.0.12",
176+
"electron": "^39.2.4",
177+
"electron-builder": "^26.3.2",
178+
"electron-builder-squirrel-windows": "26.3.2",
179179
"fork-ts-checker-webpack-plugin": "^9.1.0",
180180
"html-webpack-plugin": "^5.6.3",
181181
"identity-obj-proxy": "^3.0.0",
182182
"jest": "^29.7.0",
183183
"jest-environment-jsdom": "^29.7.0",
184184
"mini-css-extract-plugin": "^2.9.4",
185185
"monaco-editor-webpack-plugin": "^7.1.1",
186+
"node-abi": "^4.24.0",
186187
"node-gyp": "12.1.0",
187188
"node-loader": "^2.1.0",
188189
"playwright": "^1.57.0",

knip.jsonc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"electron",
3131
// explicit dependency to prevent to install different versions of app-build-lib
3232
"electron-builder-squirrel-windows",
33+
// it has to be explicitly updated together with electron
34+
"node-abi",
3335
// explicit dependency to prevent using version from pnpm
3436
"node-gyp",
3537
// used as script to run in fork() to install extensions

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
"@types/js-yaml": "^4.0.9",
209209
"@types/lodash": "^4.17.21",
210210
"@types/memorystream": "^0.3.4",
211-
"@types/node": "~22.16.5",
211+
"@types/node": "~22.19.1",
212212
"@types/proper-lockfile": "^4.1.4",
213213
"@types/randomcolor": "^0.5.9",
214214
"@types/react": "^17.0.90",
@@ -229,7 +229,7 @@
229229
"@types/ws": "^8.18.1",
230230
"circular-dependency-plugin": "^5.2.2",
231231
"css-loader": "^6.11.0",
232-
"electron": "^35.7.5",
232+
"electron": "^39.2.4",
233233
"fork-ts-checker-webpack-plugin": "^9.1.0",
234234
"glob": "^13.0.0",
235235
"identity-obj-proxy": "^3.0.0",

packages/core/src/common/app-paths/app-paths.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ describe("app-paths", () => {
2323
builder = getApplicationBuilder();
2424

2525
const defaultAppPathsStub: AppPaths = {
26+
assets: "/some-assets",
2627
currentApp: "/some-current-app",
2728
appData: "/some-app-data",
2829
crashDumps: "/some-crash-dumps",

packages/core/src/common/fs/exec-file.injectable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const execFileInjectable = getInjectable({
4747
} else {
4848
resolve({
4949
callWasSuccessful: true,
50-
response: stdout,
50+
response: stdout.toString(),
5151
});
5252
}
5353
});

packages/core/src/main/electron-app/electron-app.global-override-for-injectable.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,19 @@ export default getGlobalOverride(electronAppInjectable, () => {
219219
void userInfo;
220220
throw new Error("Method not implemented.");
221221
}
222+
getAccessibilitySupportFeatures(): string[] {
223+
throw new Error("Method not implemented.");
224+
}
225+
getRecentDocuments(): string[] {
226+
throw new Error("Method not implemented.");
227+
}
228+
isHardwareAccelerationEnabled(): boolean {
229+
throw new Error("Method not implemented.");
230+
}
231+
setAccessibilitySupportFeatures(features: string[]): void {
232+
void features;
233+
throw new Error("Method not implemented.");
234+
}
222235

223236
resolveProxy(url: string): Promise<string> {
224237
void url;
@@ -232,7 +245,7 @@ export default getGlobalOverride(electronAppInjectable, () => {
232245
throw new Error("Method not implemented.");
233246
}
234247

235-
setProxy(config: ProxyConfig): void {
248+
setProxy(config: ProxyConfig): Promise<void> {
236249
void config;
237250
throw new Error("Method not implemented.");
238251
}

packages/core/src/main/start-main-application/runnables/setup-hostnames.injectable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const setupHostnamesInjectable = getInjectable({
1616
const app = di.inject(electronAppInjectable);
1717

1818
app.commandLine.appendSwitch(
19-
"host-rules",
19+
"host-resolver-rules",
2020
[
2121
"MAP localhost 127.0.0.1",
2222
"MAP renderer.freelens.app 127.0.0.1",

0 commit comments

Comments
 (0)