Commit 9388ab5
authored
feat: add React 19 support with backward compatibility for React 18.3+ (#67)
- Update peerDependencies to support React 18.3.0 or React 19.0.0
- Upgrade devDependencies to React 19.2.4 and @types/react 19.2.14
- Add global JSX namespace declaration for React 19 compatibility
- Fix 30+ files with RefObject<T | null> types for React 19 stricter typing
- Add explicit initial values to useRef() calls (React 19 requirement)
- Fix 6 test errors related to ref callbacks and mock RefObjects
- Add pnpm overrides for eslint-plugin-react-hooks canary version (ESLint 10 compatibility)
- Add zod-validation-error override to resolve ESLint 10 package exports issue
Affected packages:
- @kubit-ui-web/react-components
- @kubit-ui-web/design-system (types only)
- @kubit-ui-web/storybook
TypeScript errors: 56 → 0 ✅
The library maintains full compatibility with React 18.3+ while supporting React 19.
No React 19 exclusive features are used to preserve backward compatibility.1 parent 5d96a78 commit 9388ab5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments