From c5ae024638b72bc14e6376a98eb39db0b2e9dea4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Aug 2026 17:18:44 +0000 Subject: [PATCH] chore(deps-dev): bump @eslint/js from 9.39.4 to 10.0.1 in /ui (#10976) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Douwe Osinga Co-authored-by: Douwe Osinga --- ui/desktop/package.json | 2 +- .../components/settings/mode/ModeSection.tsx | 2 +- ui/desktop/src/gooseServe.ts | 2 +- ui/desktop/src/main.ts | 4 ++-- ui/desktop/src/recipe/index.ts | 2 +- ui/desktop/src/recipe/recipe_management.ts | 2 +- ui/desktop/src/utils/conversionUtils.ts | 2 +- ui/desktop/tsconfig.json | 2 +- ui/pnpm-lock.yaml | 17 +++++++++++++++-- 9 files changed, 24 insertions(+), 11 deletions(-) diff --git a/ui/desktop/package.json b/ui/desktop/package.json index f4fd660a7..ebae6685b 100644 --- a/ui/desktop/package.json +++ b/ui/desktop/package.json @@ -115,7 +115,7 @@ "@electron-forge/plugin-fuses": "^7.11.1", "@electron-forge/plugin-vite": "^7.11.1", "@electron/fuses": "^2.1.3", - "@eslint/js": "^9.39.2", + "@eslint/js": "^10.0.1", "@formatjs/cli": "^6.14.0", "@formatjs/icu-messageformat-parser": "3.5.3", "@modelcontextprotocol/sdk": "^1.27.0", diff --git a/ui/desktop/src/components/settings/mode/ModeSection.tsx b/ui/desktop/src/components/settings/mode/ModeSection.tsx index d5f7778c5..9415d9dde 100644 --- a/ui/desktop/src/components/settings/mode/ModeSection.tsx +++ b/ui/desktop/src/components/settings/mode/ModeSection.tsx @@ -14,7 +14,7 @@ export const ModeSection = () => { setCurrentMode(newMode); } catch (error) { console.error('Error updating goose mode:', error); - throw new Error(`Failed to store new goose mode: ${newMode}`); + throw new Error(`Failed to store new goose mode: ${newMode}`, { cause: error }); } }; diff --git a/ui/desktop/src/gooseServe.ts b/ui/desktop/src/gooseServe.ts index cf9eac255..c37b46fa0 100644 --- a/ui/desktop/src/gooseServe.ts +++ b/ui/desktop/src/gooseServe.ts @@ -350,7 +350,7 @@ export const startGooseServe = async ({ } catch (error) { const message = errorMessage(error); startupTrace?.record('binary_resolve_error', { message }); - throw new Error(withStartupDiagnosticsPath(message, startupDiagnosticsPath)); + throw new Error(withStartupDiagnosticsPath(message, startupDiagnosticsPath), { cause: error }); } const port = await findAvailablePort(); diff --git a/ui/desktop/src/main.ts b/ui/desktop/src/main.ts index 7739dfe28..93843d2b4 100644 --- a/ui/desktop/src/main.ts +++ b/ui/desktop/src/main.ts @@ -449,7 +449,7 @@ if (MAIN_WINDOW_VITE_DEV_SERVER_URL) { // Apply single instance lock on Windows and Linux where it's needed for deep links // macOS uses the 'open-url' event instead -let gotTheLock = true; +let gotTheLock: boolean; let openUrlHandledLaunch = false; if (process.platform !== 'darwin') { gotTheLock = app.requestSingleInstanceLock(); @@ -2684,7 +2684,7 @@ async function appMain() { ); } - fileMenu.submenu.insert(menuIndex++, new MenuItem({ type: 'separator' })); + fileMenu.submenu.insert(menuIndex, new MenuItem({ type: 'separator' })); if (shortcuts.focusWindow) { fileMenu.submenu.append( diff --git a/ui/desktop/src/recipe/index.ts b/ui/desktop/src/recipe/index.ts index b00a047ef..ee81f838f 100644 --- a/ui/desktop/src/recipe/index.ts +++ b/ui/desktop/src/recipe/index.ts @@ -86,7 +86,7 @@ export async function parseRecipeFromFile(fileContent: string): Promise if (typeof error === 'object' && error !== null && 'message' in error) { errorMessage = error.message as string; } - throw new Error(errorMessage); + throw new Error(errorMessage, { cause: error }); } } diff --git a/ui/desktop/src/recipe/recipe_management.ts b/ui/desktop/src/recipe/recipe_management.ts index 63097a472..a6251b461 100644 --- a/ui/desktop/src/recipe/recipe_management.ts +++ b/ui/desktop/src/recipe/recipe_management.ts @@ -25,7 +25,7 @@ export const saveRecipe = async ( if (typeof error === 'object' && error !== null && 'message' in error) { error_message = error.message as string; } - throw new Error(error_message); + throw new Error(error_message, { cause: error }); } }; diff --git a/ui/desktop/src/utils/conversionUtils.ts b/ui/desktop/src/utils/conversionUtils.ts index e8d921e6a..98a3a089f 100644 --- a/ui/desktop/src/utils/conversionUtils.ts +++ b/ui/desktop/src/utils/conversionUtils.ts @@ -6,7 +6,7 @@ export async function safeJsonParse( return (await response.json()) as T; } catch (error) { if (error instanceof SyntaxError) { - throw new Error(errorMessage); + throw new Error(errorMessage, { cause: error }); } throw error; } diff --git a/ui/desktop/tsconfig.json b/ui/desktop/tsconfig.json index a20f47532..38856fba1 100644 --- a/ui/desktop/tsconfig.json +++ b/ui/desktop/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": ["ES2022", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true, diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml index ddcfc8030..33460e7df 100644 --- a/ui/pnpm-lock.yaml +++ b/ui/pnpm-lock.yaml @@ -212,8 +212,8 @@ importers: specifier: ^2.1.3 version: 2.1.3 '@eslint/js': - specifier: ^9.39.2 - version: 9.39.4 + specifier: ^10.0.1 + version: 10.0.1(eslint@9.39.4(jiti@2.6.1)) '@formatjs/cli': specifier: ^6.14.0 version: 6.14.0 @@ -990,6 +990,15 @@ packages: resolution: {integrity: sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/js@10.0.1': + resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + peerDependencies: + eslint: ^10.0.0 + peerDependenciesMeta: + eslint: + optional: true + '@eslint/js@9.39.4': resolution: {integrity: sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -7796,6 +7805,10 @@ snapshots: transitivePeerDependencies: - supports-color + '@eslint/js@10.0.1(eslint@9.39.4(jiti@2.6.1))': + optionalDependencies: + eslint: 9.39.4(jiti@2.6.1) + '@eslint/js@9.39.4': {} '@eslint/object-schema@2.1.7': {}