@lvce-editor/shared-process 0.79.4 → 0.80.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.79.4",
3
+ "version": "0.80.2",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "1.5.1",
21
- "@lvce-editor/extension-host-helper-process": "0.79.4",
21
+ "@lvce-editor/extension-host-helper-process": "0.80.2",
22
22
  "@lvce-editor/ipc": "15.0.0",
23
23
  "@lvce-editor/json-rpc": "8.0.0",
24
24
  "@lvce-editor/jsonc-parser": "1.5.0",
25
25
  "@lvce-editor/pretty-error": "2.0.0",
26
- "@lvce-editor/rpc-registry": "9.17.0",
26
+ "@lvce-editor/rpc-registry": "9.20.0",
27
27
  "@lvce-editor/verror": "1.7.0",
28
28
  "is-object": "^1.0.2",
29
29
  "xdg-basedir": "^5.1.0"
@@ -2,6 +2,6 @@ import { join } from 'path';
2
2
  import { fileURLToPath } from 'url';
3
3
  export const getBuiltinExtensionsPath = () => {
4
4
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'));
5
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '43d8c9f', 'extensions');
5
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'be2da82', 'extensions');
6
6
  return builtinExtensionsPath;
7
7
  };
@@ -5,7 +5,7 @@ import * as PreloadUrl from '../PreloadUrl/PreloadUrl.js';
5
5
  export const handleElectronReady = async (parsedArgs, workingDirectory) => {
6
6
  Assert.object(parsedArgs);
7
7
  Assert.string(workingDirectory);
8
- const preferences = await Preferences.getAll();
8
+ const preferences = await Preferences.getAllSafe();
9
9
  const preloadUrl = PreloadUrl.getPreloadUrl();
10
10
  await AppWindow.createAppWindow({ preferences, parsedArgs, workingDirectory, preloadUrl });
11
11
  };
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
41
41
  export const getSetupName = () => {
42
42
  return 'Lvce-Setup';
43
43
  };
44
- export const version = '0.79.4';
45
- export const commit = '43d8c9f';
46
- export const date = '2026-04-16T16:28:34.000Z';
44
+ export const version = '0.80.2';
45
+ export const commit = 'be2da82';
46
+ export const date = '2026-04-19T06:46:31.000Z';
47
47
  export const getVersion = () => {
48
48
  return version;
49
49
  };
@@ -1,5 +1,6 @@
1
1
  import * as IsEnoentError from '../IsEnoentError/IsEnoentError.js';
2
2
  import * as JsoncFile from '../JsoncFile/JsoncFile.js';
3
+ import * as Logger from '../Logger/Logger.js';
3
4
  import * as PlatformPaths from '../PlatformPaths/PlatformPaths.js';
4
5
  import * as Process from '../Process/Process.js';
5
6
  import { VError } from '../VError/VError.js';
@@ -80,4 +81,13 @@ export const getAll = async () => {
80
81
  throw new VError(error, 'Failed to get all preferences');
81
82
  }
82
83
  };
84
+ export const getAllSafe = async () => {
85
+ try {
86
+ return await getAll();
87
+ }
88
+ catch (error) {
89
+ Logger.error(`[shared-process] Failed to load preferences on startup, continuing with defaults: ${error}`);
90
+ return {};
91
+ }
92
+ };
83
93
  // TODO when preferences cannot be loaded, ui should show useful error message
@@ -1,5 +1,5 @@
1
1
  import { join } from 'node:path';
2
2
  import * as Root from '../Root/Root.js';
3
3
  export const getPreloadUrl = () => {
4
- return join(Root.root, 'static', '43d8c9f', 'packages', 'preload', 'dist', 'index.js');
4
+ return join(Root.root, 'static', 'be2da82', 'packages', 'preload', 'dist', 'index.js');
5
5
  };