From 1e56e53970a8fd8a585586cf44c6ac06616401ee Mon Sep 17 00:00:00 2001 From: eddybean <38001995+eddybean@users.noreply.github.com> Date: Sat, 28 Nov 2026 17:24:45 +0900 Subject: [PATCH 1/2] Update React and React DOM to 19 together Co-Authored-By: Claude Opus 5.5 --- package-lock.json | 77 ++++++++++++++++------------------------------- package.json | 8 ++--- 2 files changed, 30 insertions(+), 55 deletions(-) diff --git a/package-lock.json b/package-lock.json index 465b222..7d58e7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,15 +17,15 @@ "@tauri-apps/api": "^2.12.5", "@tauri-apps/plugin-dialog": "^2.8.4", "immer": "^11.2.10", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.3.1", + "react-dom": "^19.3.1", "zustand": "^5.1.0" }, "devDependencies": { "@tauri-apps/cli": "^2.12.6", "@testing-library/react": "^16.3.3", - "@types/react": "^18.3.31", - "@types/react-dom": "^18.3.7", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", "husky": "^9.1.7", "jsdom": "^31.0.1", @@ -1603,32 +1603,24 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/prop-types": { - "version": "15.7.15", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", - "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", - "devOptional": true, - "license": "MIT" - }, "node_modules/@types/react": { - "version": "18.3.31", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz", - "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==", + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz", + "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", "devOptional": true, "license": "MIT", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.2.2" } }, "node_modules/@types/react-dom": { - "version": "18.3.7", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", - "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", "dev": true, "license": "MIT", "peerDependencies": { - "@types/react": "^18.0.0" + "@types/react": "^19.3.0" } }, "node_modules/@typescript/typescript-aix-ppc64": { @@ -2345,7 +2337,9 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "license": "MIT" + "dev": true, + "license": "MIT", + "peer": true }, "node_modules/jsdom": { "version": "31.0.1", @@ -2692,18 +2686,6 @@ "yaml": "^2.9.1" } }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, "node_modules/lz-string": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", @@ -2965,28 +2947,24 @@ } }, "node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", + "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", + "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", "license": "MIT", "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" + "scheduler": "^0.28.0" }, "peerDependencies": { - "react": "^18.3.1" + "react": "^19.3.1" } }, "node_modules/react-is": { @@ -3046,13 +3024,10 @@ } }, "node_modules/scheduler": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", - "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" }, "node_modules/source-map-js": { "version": "1.2.4", diff --git a/package.json b/package.json index 8b4cf64..5db3c0c 100644 --- a/package.json +++ b/package.json @@ -46,15 +46,15 @@ "@tauri-apps/api": "^2.12.5", "@tauri-apps/plugin-dialog": "^2.8.4", "immer": "^11.2.10", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.3.1", + "react-dom": "^19.3.1", "zustand": "^5.1.0" }, "devDependencies": { "@tauri-apps/cli": "^2.12.6", "@testing-library/react": "^16.3.3", - "@types/react": "^18.3.31", - "@types/react-dom": "^18.3.7", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", "@vitejs/plugin-react": "^6.3.0", "husky": "^9.1.7", "jsdom": "^31.0.1", From 8a4b980440c6d43a214bed6e00d51e095a531903 Mon Sep 17 00:00:00 2001 From: eddybean <38001995+eddybean@users.noreply.github.com> Date: Sat, 28 Nov 2026 17:58:21 +0900 Subject: [PATCH 2/2] Record React 19 and ureq 3 and group the React packages for Dependabot (D-56) Co-Authored-By: Claude Opus 5.5 --- .github/dependabot.yml | 4 ++++ CLAUDE.md | 2 +- docs/deviations.md | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9473cd0..9e32482 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,10 @@ updates: default-days: 7 open-pull-requests-limit: 5 groups: + # React and React DOM (and their types) must move together, majors included: a lone react or + # react-dom bump fails `npm ci` on the peer range (D-56). + react: + patterns: [react, react-dom, "@types/react", "@types/react-dom"] npm-minor-patch: update-types: [minor, patch] # Oxfmt is 0.x: a minor update can change the output, so it comes on its own (D-45). diff --git a/CLAUDE.md b/CLAUDE.md index 4ec7c3a..11f16fe 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## What this is -Speechorus (repo folder `voice-studio`; renamed in D-36) is a Windows desktop Japanese TTS studio: Tauri 2 + React 18 + TypeScript on the front, Rust core behind it, and the external [speech.cpp](https://github.com/nyosegawa/speech.cpp) `speech.exe` (v0.11.2+, Vulkan build) as the engine. Main model: Drama-3-Japanese (Q4_K/Q5_K, Vulkan only, needs `GGML_VK_DISABLE_F16/COOPMAT/COOPMAT2=1`, and its `.gguf.json` sidecar next to the GGUF). Second model: Irodori-TTS. The app ships no GGUF files. The UI text is Japanese. +Speechorus (repo folder `voice-studio`; renamed in D-36) is a Windows desktop Japanese TTS studio: Tauri 2 + React 19 + TypeScript on the front, Rust core behind it, and the external [speech.cpp](https://github.com/nyosegawa/speech.cpp) `speech.exe` (v0.11.2+, Vulkan build) as the engine. Main model: Drama-3-Japanese (Q4_K/Q5_K, Vulkan only, needs `GGML_VK_DISABLE_F16/COOPMAT/COOPMAT2=1`, and its `.gguf.json` sidecar next to the GGUF). Second model: Irodori-TTS. The app ships no GGUF files. The UI text is Japanese. ## Commands diff --git a/docs/deviations.md b/docs/deviations.md index fdc180a..e134e59 100644 --- a/docs/deviations.md +++ b/docs/deviations.md @@ -409,3 +409,14 @@ Requests: (1) a way to stop playback, (2) choosing a Drama-3 voice by text promp - **Why**: The user asked for the cause of the stuck release and a fix before releasing v0.1.6 again. - **Not done**: Why the runner stopped responding is not known (no log, no GitHub incident at that time); a heavier cold build may have played a part. The first CI run on `main` after this change saves the cache under the new key; a release started before that finishes builds without a cache (but without debug info). - **User impact**: None to the app. + +### D-56 React 19, and ureq 3 from Dependabot 【修正】 +- **What**: Supersedes the "Not done" items of D-45 on React and `ureq`. + - **React 18.3 → 19.3** (`react`, `react-dom` ^19.3.1, `@types/react` ^19.3.0, `@types/react-dom` ^19.3.0). Dependabot opened the react and react-dom majors as two PRs; each fails `npm ci` alone on the peer range, so they were taken in one change. No source change was needed: typecheck, Oxlint, the 88 Vitest tests and `vite build` pass. The bundle grows from 515.0 kB to 594.1 kB (167.3 → 190.1 kB gzip), as D-45 found. `dependabot.yml` now groups these four packages, all update types included, so a later major comes as one PR. + - **`ureq` 2.12 → 3.5** (Dependabot PR #31). `downloads.rs` and `installer.rs` use the new API (`Agent::config_builder()`, `.header()`, `into_body()`). ureq 2's `timeout_read` becomes `timeout_per_read`, which also restarts on each read, so a stalled download still fails after 60 s and a slow one is not cut. One difference: ureq 3 fails to gunzip a 206 the server sent gzip-encoded (ureq 2 passed the bytes through), so resumable downloads now ask for `Accept-Encoding: identity`; the size and SHA-256 checks are on the file's own bytes anyway. Checked against the real hosts with a throwaway example: a range request to a Hugging Face binary and to GitHub raw text (206), the GitHub releases API JSON, and a 404 turning into an error. +- **Checked (React 19)**: the app under `npm run tauri dev`, driven over the WebView2 DevTools protocol with real mouse and key input. Typing a line (one Undo step), Ctrl+Z / Ctrl+Y, the line context menu and Esc, the 設定 and 書き出し dialogs, the ボイス and モデル screens, the volume slider and mute. With the Tauri runtime: starting Irodori-TTS and then switching to Drama-3-Japanese Q4_K from the モデル screen, generating a line with each (one take each: the StrictMode double mount registers the event listener once), playing a take, 採用, 連続再生, playing a voice reference, and a voice-design candidate. No console error or warning. +- **Not done**: + - Two bugs found on the way are also in React 18.3 (tried on `main` the same way), so they are not from this update: the env and extra-args fields of the モデル screen keep the first profile's values when another profile is picked, when the first one had any (uncontrolled `defaultValue` without a `key`; leaving the field then saves them into the other profile), and Esc does not close 書き出し (Esc first clears the line selection, the dialog re-renders, and `Dialog` re-adds its keydown listener during that dispatch, so the new one is not called). + - Dependabot updates only the SHA, not the `# vX.Y.Z` comment, when another comment follows it on the line (`# zizmor: ignore[...]`); fix the comment by hand in such PRs (done in #30). +- **User impact**: None expected. The app starts slightly slower to parse (+79 kB of JavaScript). +