From c08cdcf3f071417708aaaddd33f48eb3b3fd26b4 Mon Sep 17 00:00:00 2001 From: J3vb <192430104+J3vb@users.noreply.github.com> Date: Tue, 28 Jul 2026 14:58:26 +0200 Subject: [PATCH] fix(client): repair dependency resolution after dependabot merges @stryker-mutator/{api,core,vitest-runner} were bumped to 9.6.1 while typescript-checker stayed at 9.6.0, which hard-pins core@9.6.0 as a peer. npm install failed with ERESOLVE. Bump typescript-checker to match. Also reformat two files for prettier 3.9.6, which changed how union types are broken across lines. Co-Authored-By: Claude Opus 5 (1M context) --- Client/tauri-client/package-lock.json | 74 +++---------------- Client/tauri-client/package.json | 2 +- .../src/lib/livekitDiagnostics.ts | 6 +- Client/tauri-client/src/lib/ws.ts | 10 +-- 4 files changed, 16 insertions(+), 76 deletions(-) diff --git a/Client/tauri-client/package-lock.json b/Client/tauri-client/package-lock.json index 9f855f3b..df750a5a 100644 --- a/Client/tauri-client/package-lock.json +++ b/Client/tauri-client/package-lock.json @@ -25,7 +25,7 @@ "@playwright/test": "^1", "@stryker-mutator/api": "^9.6.1", "@stryker-mutator/core": "^9.6.1", - "@stryker-mutator/typescript-checker": "^9.6.0", + "@stryker-mutator/typescript-checker": "^9.6.1", "@stryker-mutator/vitest-runner": "^9.6.1", "@tauri-apps/cli": "^2", "@vitest/browser": "^3.2.4", @@ -3525,13 +3525,6 @@ "node": ">=20.0.0" } }, - "node_modules/@stryker-mutator/core/node_modules/@stryker-mutator/util": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@stryker-mutator/util/-/util-9.6.1.tgz", - "integrity": "sha512-Lk/ALVctJjFv1vvwR+CFoKzDCWvsBlq7flDUnmnpuwTrGbm156EdZD1Jjq4o8KdOap0ezUZqQNE9OAI1m2+pUQ==", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/@stryker-mutator/core/node_modules/ajv": { "version": "8.18.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", @@ -3600,69 +3593,29 @@ "node": ">=20.0.0" } }, - "node_modules/@stryker-mutator/instrumenter/node_modules/@stryker-mutator/util": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@stryker-mutator/util/-/util-9.6.1.tgz", - "integrity": "sha512-Lk/ALVctJjFv1vvwR+CFoKzDCWvsBlq7flDUnmnpuwTrGbm156EdZD1Jjq4o8KdOap0ezUZqQNE9OAI1m2+pUQ==", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/@stryker-mutator/typescript-checker": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/@stryker-mutator/typescript-checker/-/typescript-checker-9.6.0.tgz", - "integrity": "sha512-mPoB2Eogda4bpIoNgdN+VHnZvbwD0R/oNCCbmq7UQVLZtzF09nH1M1kbilYdmrCyxYYkFyTCKy3WhU3YGWdDjA==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@stryker-mutator/typescript-checker/-/typescript-checker-9.6.1.tgz", + "integrity": "sha512-dCFJDoFixFe7cbilsukb7a5jpn9JRSPef7/vgx+xfaf4gPf/neDVbci8E/YSvxmcFveuPHdeUxioocA1CKZqrg==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@stryker-mutator/api": "9.6.0", - "@stryker-mutator/util": "9.6.0", + "@stryker-mutator/api": "9.6.1", + "@stryker-mutator/util": "9.6.1", "semver": "~7.7.0" }, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@stryker-mutator/core": "9.6.0", + "@stryker-mutator/core": "9.6.1", "typescript": ">=3.6" } }, - "node_modules/@stryker-mutator/typescript-checker/node_modules/@stryker-mutator/api": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/@stryker-mutator/api/-/api-9.6.0.tgz", - "integrity": "sha512-kJEEwOVoWDXGEIXuM+9efT6LSJ7nyxnQQvjEoKg8GSZXbDUjfD0tqA0aBD06U1SzQLKCM7ffjgPffr154MHZKw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "mutation-testing-metrics": "3.7.2", - "mutation-testing-report-schema": "3.7.2", - "tslib": "~2.8.0", - "typed-inject": "~5.0.0" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@stryker-mutator/typescript-checker/node_modules/mutation-testing-metrics": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/mutation-testing-metrics/-/mutation-testing-metrics-3.7.2.tgz", - "integrity": "sha512-ichXZSC4FeJbcVHYOWzWUhNuTJGogc0WiQol8lqEBrBSp+ADl3fmcZMqrx0ogInEUiImn+A8JyTk6uh9vd25TQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "mutation-testing-report-schema": "3.7.2" - } - }, - "node_modules/@stryker-mutator/typescript-checker/node_modules/mutation-testing-report-schema": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/mutation-testing-report-schema/-/mutation-testing-report-schema-3.7.2.tgz", - "integrity": "sha512-fN5M61SDzIOeJyatMOhGPLDOFz5BQIjTNPjo4PcHIEUWrejO4i4B5PFuQ/2l43709hEsTxeiXX00H73WERKcDw==", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/@stryker-mutator/util": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/@stryker-mutator/util/-/util-9.6.0.tgz", - "integrity": "sha512-gw7fJOFNHEj9inAEOodD9RrrMEMhZmWJ46Ww/kDJAXlSsBBmdwCzeomNLngmLTvgp14z7Tfq85DHYwvmNMdOxA==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@stryker-mutator/util/-/util-9.6.1.tgz", + "integrity": "sha512-Lk/ALVctJjFv1vvwR+CFoKzDCWvsBlq7flDUnmnpuwTrGbm156EdZD1Jjq4o8KdOap0ezUZqQNE9OAI1m2+pUQ==", "dev": true, "license": "Apache-2.0" }, @@ -3686,13 +3639,6 @@ "vitest": ">=2.0.0" } }, - "node_modules/@stryker-mutator/vitest-runner/node_modules/@stryker-mutator/util": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@stryker-mutator/util/-/util-9.6.1.tgz", - "integrity": "sha512-Lk/ALVctJjFv1vvwR+CFoKzDCWvsBlq7flDUnmnpuwTrGbm156EdZD1Jjq4o8KdOap0ezUZqQNE9OAI1m2+pUQ==", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/@tauri-apps/api": { "version": "2.11.1", "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.1.tgz", diff --git a/Client/tauri-client/package.json b/Client/tauri-client/package.json index ef351889..48dabf84 100644 --- a/Client/tauri-client/package.json +++ b/Client/tauri-client/package.json @@ -34,7 +34,7 @@ "@playwright/test": "^1", "@stryker-mutator/api": "^9.6.1", "@stryker-mutator/core": "^9.6.1", - "@stryker-mutator/typescript-checker": "^9.6.0", + "@stryker-mutator/typescript-checker": "^9.6.1", "@stryker-mutator/vitest-runner": "^9.6.1", "@tauri-apps/cli": "^2", "@vitest/browser": "^3.2.4", diff --git a/Client/tauri-client/src/lib/livekitDiagnostics.ts b/Client/tauri-client/src/lib/livekitDiagnostics.ts index 9e9a37a0..7dd69dfc 100644 --- a/Client/tauri-client/src/lib/livekitDiagnostics.ts +++ b/Client/tauri-client/src/lib/livekitDiagnostics.ts @@ -38,8 +38,7 @@ export function logIceConnectionInfo(room: Room | null): void { // LiveKit exposes the PeerConnection via room.engine.subscriber/publisher. try { const engine = (room as unknown as Record).engine as - | Record - | undefined; + Record | undefined; if (!engine) return; const subscriber = engine.subscriber as Record | undefined; @@ -99,8 +98,7 @@ export function getIceConnectionState(room: Room | null): Record).engine as - | Record - | undefined; + Record | undefined; if (!engine) return null; const subscriber = engine.subscriber as Record | undefined; const publisher = engine.publisher as Record | undefined; diff --git a/Client/tauri-client/src/lib/ws.ts b/Client/tauri-client/src/lib/ws.ts index 7085b7cb..a3bc31e2 100644 --- a/Client/tauri-client/src/lib/ws.ts +++ b/Client/tauri-client/src/lib/ws.ts @@ -14,8 +14,8 @@ let wsGeneration = 0; // Tauri IPC imports — resolved at runtime in Tauri context let tauriInvoke: ((cmd: string, args?: Record) => Promise) | null = null; let tauriListen: - | ((event: string, handler: (e: { payload: unknown }) => void) => Promise<() => void>) - | null = null; + ((event: string, handler: (e: { payload: unknown }) => void) => Promise<() => void>) | null = + null; // Dynamically load Tauri APIs (avoids import errors in test/browser env) async function ensureTauriApis(): Promise { @@ -31,11 +31,7 @@ async function ensureTauriApis(): Promise { } export type ConnectionState = - | "disconnected" - | "connecting" - | "authenticating" - | "connected" - | "reconnecting"; + "disconnected" | "connecting" | "authenticating" | "connected" | "reconnecting"; /** The UX-facing 3-state status stored in ui.store.connectionStatus. */ export type ConnectionStatus = "connected" | "reconnecting" | "disconnected";