Skip to content

Commit 2c864e4

Browse files
Shujaat Alitoddbaert
Shujaat Ali
andauthored
chore: react-sdk | downgrading react peer dependency | react 18.0.0 -> 16.8.0 (#742)
## This PR fix the npm warning when installing @openfeature/react-sdk in application using react version < 18 | Package | Change | Passing | Confidence | |-----------|----------|-----------|--------------| | [react](https://github.com/facebook/react) | [18.0.0](https://github.com/facebook/react/releases/tag/v18.0.0) -> [16.8.0](https://github.com/facebook/react/releases/tag/v16.8.0) | True | High | Fixes #741 ### How to test 1. create a react project using react 16.8.0, node 14, npm 6.X.X 2. install @openfeature/react-sdk 3. Observe no install warning 4. use `useFeatureFlag` in application as per documentation with no issue. Signed-off-by: Shujaat Ali <[email protected]> Co-authored-by: Todd Baert <[email protected]>
1 parent 58cac6c commit 2c864e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"homepage": "https://github.com/open-feature/js-sdk#readme",
4848
"peerDependencies": {
4949
"@openfeature/web-sdk": ">=0.4.0",
50-
"react": ">=18.0.0"
50+
"react": ">=16.8.0"
5151
},
5252
"devDependencies": {
5353
"@openfeature/core": "*",

0 commit comments

Comments
 (0)