Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(peerDependencies): update React (#2626)
Browse files Browse the repository at this point in the history
* fix(peerDependencies): update React

We are now relying on React 16.3 features like `static getDerivedStateFromProps` in the library, which thus won't work with lower versions.

The lowest version of React Native which requires React 16.3 (albeit an alpha) is 0.54.0.

* !fixup
  • Loading branch information
Haroenv authored Jul 8, 2019
1 parent fbc89aa commit 6ccad49
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/react-instantsearch-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"prop-types": "^15.5.10"
},
"peerDependencies": {
"react": ">= 15.3.0 < 17"
"react": ">= 16.3.0 < 17"
}
}
4 changes: 2 additions & 2 deletions packages/react-instantsearch-dom-maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"scriptjs": "^2.5.8"
},
"peerDependencies": {
"react": ">= 15.3.0 < 17",
"react-dom": ">= 15.3.0 < 17",
"react": ">= 16.3.0 < 17",
"react-dom": ">= 16.3.0 < 17",
"react-instantsearch-dom": ">= 5.2.0"
}
}
4 changes: 2 additions & 2 deletions packages/react-instantsearch-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"react-instantsearch-core": "^5.7.0"
},
"peerDependencies": {
"react": ">= 15.3.0 < 17",
"react-dom": ">= 15.3.0 < 17"
"react": ">= 16.3.0 < 17",
"react-dom": ">= 16.3.0 < 17"
}
}
4 changes: 2 additions & 2 deletions packages/react-instantsearch-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"react-instantsearch-core": "^5.7.0"
},
"peerDependencies": {
"react": ">= 15.3.0 < 17",
"react-native": ">= 0.32.0"
"react": ">= 16.3.0 < 17",
"react-native": ">= 0.54.0"
}
}

0 comments on commit 6ccad49

Please sign in to comment.