Skip to content

Commit 7fe63ab

Browse files
Fix missing peerDependency on react-dom (#5002)
* Fix missing peerDependency on react-dom Fixes #4934 * add a package lint for peer deps --------- Co-authored-by: Robert Snow <[email protected]>
1 parent 67c19ff commit 7fe63ab

File tree

12 files changed

+77
-10
lines changed

12 files changed

+77
-10
lines changed

packages/@react-aria/autocomplete/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"@swc/helpers": "^0.5.0"
4343
},
4444
"peerDependencies": {
45-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
45+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
46+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
4647
},
4748
"publishConfig": {
4849
"access": "public"

packages/@react-aria/dialog/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"url": "https://github.com/adobe/react-spectrum"
2323
},
2424
"peerDependencies": {
25-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
25+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
26+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
2627
},
2728
"dependencies": {
2829
"@react-aria/focus": "^3.14.0",

packages/@react-aria/gridlist/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"@swc/helpers": "^0.5.0"
3535
},
3636
"peerDependencies": {
37-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
37+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
38+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
3839
},
3940
"publishConfig": {
4041
"access": "public"

packages/@react-aria/tag/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"@swc/helpers": "^0.5.0"
3535
},
3636
"peerDependencies": {
37-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
37+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
38+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
3839
},
3940
"publishConfig": {
4041
"access": "public"

packages/@react-spectrum/autocomplete/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
},
6969
"peerDependencies": {
7070
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
71+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
7172
"@react-spectrum/provider": "^3.0.0"
7273
},
7374
"publishConfig": {

packages/@react-spectrum/card/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
},
6363
"peerDependencies": {
6464
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
65+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
6566
"@react-spectrum/provider": "^3.0.0"
6667
},
6768
"publishConfig": {

packages/@react-spectrum/contextualhelp/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
},
5454
"peerDependencies": {
5555
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
56+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
5657
"@react-spectrum/provider": "^3.0.0"
5758
},
5859
"publishConfig": {

packages/@react-spectrum/dnd/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
},
4747
"peerDependencies": {
4848
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
49+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
4950
"@react-spectrum/provider": "^3.0.0"
5051
},
5152
"publishConfig": {

packages/@react-spectrum/tag/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
},
5858
"peerDependencies": {
5959
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
60+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
6061
"@react-spectrum/provider": "^3.0.0"
6162
},
6263
"publishConfig": {

packages/@react-types/list/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"@react-spectrum/list": "^3.6.1"
1414
},
1515
"peerDependencies": {
16-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
16+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
17+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
18+
"@react-spectrum/provider": "^3.0.0"
1719
},
1820
"publishConfig": {
1921
"access": "public"

0 commit comments

Comments
 (0)