Skip to content

Commit

Permalink
Use proper peer dependencies range condition
Browse files Browse the repository at this point in the history
* It targets React v16, v17 and v18, and only those

fixes pmndrs#1938
  • Loading branch information
eugenet8k committed Sep 1, 2022
1 parent ffc1c1b commit 757671a
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion packages/animated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"@react-spring/types": "~9.5.2"
},
"peerDependencies": {
"react": "^16.8.0 || >=17.0.0 || >=18.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"@react-spring/types": "~9.5.2"
},
"peerDependencies": {
"react": "^16.8.0 || >=17.0.0 || >=18.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/parallax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@react-spring/web": "~9.5.2"
},
"peerDependencies": {
"react": "^16.8.0 || >=17.0.0 || >=18.0.0",
"react-dom": "^16.8.0 || >=17.0.0 || >=18.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/react-spring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@react-spring/zdog": "~9.5.2"
},
"peerDependencies": {
"react": "^16.8.0 || >=17.0.0 || >=18.0.0",
"react-dom": "^16.8.0 || >=17.0.0 || >=18.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"@react-spring/types": "~9.5.2"
},
"peerDependencies": {
"react": "^16.8.0 || >=17.0.0 || >=18.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
}
4 changes: 2 additions & 2 deletions targets/konva/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"peerDependencies": {
"konva": ">=2.6",
"react": "^16.8.0 || >=17.0.0 || >=18.0.0",
"react-konva": "^16.8.0 || ^17.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-konva": "^16.8.0 || ^17.0.0"
}
}
2 changes: 1 addition & 1 deletion targets/three/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"peerDependencies": {
"@react-three/fiber": ">=6.0",
"react": "^16.11.0 || >=17.0.0 || >=18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"three": ">=0.126"
}
}
4 changes: 2 additions & 2 deletions targets/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@react-spring/types": "~9.5.2"
},
"peerDependencies": {
"react": "^16.8.0 || >=17.0.0 || >=18.0.0",
"react-dom": "^16.8.0 || >=17.0.0 || >=18.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
}
4 changes: 2 additions & 2 deletions targets/zdog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"@react-spring/types": "~9.5.2"
},
"peerDependencies": {
"react": "^16.8.0 || >=17.0.0 || >=18.0.0",
"react-dom": "^16.8.0 || >=17.0.0 || >=18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-zdog": ">=1.0",
"zdog": ">=1.0"
}
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3703,7 +3703,7 @@ __metadata:
"@react-spring/shared": ~9.5.2
"@react-spring/types": ~9.5.2
peerDependencies:
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
languageName: unknown
linkType: soft

Expand All @@ -3716,7 +3716,7 @@ __metadata:
"@react-spring/shared": ~9.5.2
"@react-spring/types": ~9.5.2
peerDependencies:
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3788,7 +3788,7 @@ __metadata:
"@react-spring/types": ~9.5.2
peerDependencies:
konva: ">=2.6"
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-konva: ^16.8.0 || ^17.0.0
languageName: unknown
linkType: soft
Expand All @@ -3802,7 +3802,7 @@ __metadata:
"@react-spring/shared": ~9.5.2
"@react-spring/types": ~9.5.2
peerDependencies:
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-native: ">=0.58"
languageName: unknown
linkType: soft
Expand All @@ -3814,8 +3814,8 @@ __metadata:
"@react-spring/shared": ~9.5.2
"@react-spring/web": ~9.5.2
peerDependencies:
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react-dom: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
languageName: unknown
linkType: soft

Expand All @@ -3832,7 +3832,7 @@ __metadata:
"@react-spring/rafz": ~9.5.2
"@react-spring/types": ~9.5.2
peerDependencies:
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3866,8 +3866,8 @@ __metadata:
"@react-spring/shared": ~9.5.2
"@react-spring/types": ~9.5.2
peerDependencies:
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react-dom: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
languageName: unknown
linkType: soft

Expand All @@ -3880,8 +3880,8 @@ __metadata:
"@react-spring/shared": ~9.5.2
"@react-spring/types": ~9.5.2
peerDependencies:
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react-dom: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
react-zdog: ">=1.0"
zdog: ">=1.0"
languageName: unknown
Expand Down Expand Up @@ -12893,8 +12893,8 @@ __metadata:
"@react-spring/web": ~9.5.2
"@react-spring/zdog": ~9.5.2
peerDependencies:
react: ^16.8.0 || >=17.0.0 || >=18.0.0
react-dom: ^16.8.0 || >=17.0.0 || >=18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 757671a

Please sign in to comment.