Compare commits

...
Author SHA1 Message Date
Hanzo AI f1d2deaa1a hanzo-edit: mount the contribute widget (repo=hanzoai/chat) 2026-07-24 01:28:58 -07:00
Hanzo AI 43c693bfa8 chore(deps): React 18 -> 19 (client + workspace packages)
Bump react/react-dom ^18.2.0 -> ^19.2.0 (resolves 19.2.4) and
@types/react{,-dom} -> ^19.2.0 across client, packages/client,
packages/api, packages/data-provider. packages/client peer already
allowed ^19.1.0.

Feasibility: no dependency hard-pegs React 18; one React 19.2.4 in the
tree (no dual-React). Production frontend build is GREEN (vite build has
no tsc gate; workspace rollup builds use check:false). Client tsc was
already red on main (997 errors, not a build/CI gate); React 19 adds ~95
mechanical type errors (RefObject<T|null>, useRef() arg) that do not gate
the build.

Runtime NOT yet verified: recoil@0.7.7 (deprecated, still present next to
jotai), @react-spring/web@9.7.5, react-avatar-editor@13.0.2 and Radix
1.0.x peer-warn on 19 but are 19-compatible in practice. Needs a human
chat + guest + billing smoke test before ship.
2026-07-24 00:07:57 -07:00
6 changed files with 1045 additions and 1066 deletions
+3
View File
@@ -47,6 +47,9 @@
<script defer type="module" src="/src/main.jsx"></script>
<!-- Hanzo Analytics -->
<script async src="https://analytics.hanzo.ai/hz.js" data-site="hanzo.chat"></script>
<!-- Hanzo Edit — ever-present "improve this page" widget (fork→edit→PR; anyone can suggest) -->
<meta name="hanzo:repo" content="hanzoai/chat" />
<script async src="https://hanzo.app/edit.js"></script>
<!-- Hanzo Insights (Insights) - only loaded when VITE_INSIGHTS_KEY is set -->
<script>
(function() {
+4 -4
View File
@@ -92,11 +92,11 @@
"micromark-extension-llm-math": "^3.1.0",
"qrcode.react": "^4.2.0",
"rc-input-number": "^7.4.2",
"react": "^18.2.0",
"react": "^19.2.0",
"react-avatar-editor": "^13.0.2",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"react-dom": "^19.2.0",
"react-flip-toolkit": "^7.1.0",
"react-gtm-module": "^2.0.11",
"react-hook-form": "^7.43.9",
@@ -139,8 +139,8 @@
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.17.15",
"@types/node": "^20.3.0",
"@types/react": "^18.2.11",
"@types/react-dom": "^18.2.4",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
+1 -1
View File
@@ -63,7 +63,7 @@
"@types/multer": "^1.4.13",
"@types/node": "^20.3.0",
"@types/node-fetch": "^2.6.13",
"@types/react": "^18.2.18",
"@types/react": "^19.2.0",
"@types/winston": "^2.4.4",
"jest": "^30.2.0",
"jest-junit": "^16.0.0",
+4 -4
View File
@@ -90,8 +90,8 @@
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.14",
"@types/react": "^18.2.11",
"@types/react-dom": "^18.2.4",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"babel-jest": "^30.2.0",
"caniuse-lite": "^1.0.30001741",
"concat-with-sourcemaps": "^1.1.0",
@@ -101,8 +101,8 @@
"jest-environment-jsdom": "^30.2.0",
"jotai": "^2.12.5",
"lucide-react": "^0.525.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-i18next": "^15.4.0",
"rimraf": "^6.1.2",
"rollup": "^4.0.0",
+1 -1
View File
@@ -57,7 +57,7 @@
"@types/jest": "^29.5.2",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.3.0",
"@types/react": "^18.2.18",
"@types/react": "^19.2.0",
"@types/winston": "^2.4.4",
"jest": "^30.2.0",
"jest-junit": "^16.0.0",
+1032 -1056
View File
File diff suppressed because it is too large Load Diff