Skip to content

Commit 1fa78a5

Browse files
Support React 18+ in peerDeps (#3339)
* Support React 17+ in peerDeps * Update package.json
1 parent 6fc3c21 commit 1fa78a5

2 files changed

Lines changed: 31 additions & 42 deletions

File tree

packages/react/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@
3939
"@vitejs/plugin-react": "^4.7.0",
4040
"@vitest/ui": "^4.0.16",
4141
"happy-dom": "^20.0.11",
42+
"react": "^19.2.4",
43+
"react-dom": "^19.2.4",
4244
"typescript": "^5.9.3",
4345
"vite": "^7.3.0",
4446
"vite-plugin-dts": "^4.5.4",
4547
"vitest": "^4.0.16"
4648
},
4749
"peerDependencies": {
48-
"react": "^18.2.0",
49-
"react-dom": "^18.2.0",
50+
"react": "^18.0.0 || ^19.0.0",
51+
"react-dom": "^18.0.0 || ^19.0.0",
5052
"typescript": "^5.0.0"
5153
},
5254
"publishConfig": {

pnpm-lock.yaml

Lines changed: 27 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)