Skip to content

Commit a27cf42

Browse files
XhmikosRaddyosmani
andauthored
fix!: allow react v17, v18 and v19 in peerDependencies and mark them as optional (#421)
* fix: allow react v17 and v18 in peerDependencies and mark them as optional * Allow react 19 too --------- Co-authored-by: Addy Osmani <addyosmani@gmail.com>
1 parent 83d8d72 commit a27cf42

File tree

2 files changed

+36
-32
lines changed

2 files changed

+36
-32
lines changed

package-lock.json

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

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,16 @@
4848
"throttles": "^1.0.1"
4949
},
5050
"peerDependencies": {
51-
"react": "^16.8.0",
52-
"react-dom": "^16.8.0"
51+
"react": "^16.8.0 || ^17 || ^18 || ^19",
52+
"react-dom": "^16.8.0 || ^17 || ^18 || ^19"
53+
},
54+
"peerDependenciesMeta": {
55+
"react": {
56+
"optional": true
57+
},
58+
"react-dom": {
59+
"optional": true
60+
}
5361
},
5462
"devDependencies": {
5563
"@babel/cli": "^7.26.4",
@@ -65,8 +73,8 @@
6573
"microbundle": "^0.15.1",
6674
"npm-run-all2": "^7.0.2",
6775
"puppeteer": "^24.4.0",
68-
"react": "^16.14.0",
69-
"react-dom": "^16.14.0",
76+
"react": "^19.0.0",
77+
"react-dom": "^19.0.0",
7078
"sirv-cli": "^3.0.1",
7179
"size-limit": "^11.2.0",
7280
"uvu": "^0.5.6"

0 commit comments

Comments
 (0)