Skip to content

Commit

Permalink
chore: react-sdk | downgrading react peer dependency | react 18.0.0 -…
Browse files Browse the repository at this point in the history
…> 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]>
  • Loading branch information
Shujaat Ali and toddbaert authored Jan 11, 2024
1 parent 58cac6c commit 2c864e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"homepage": "https://github.com/open-feature/js-sdk#readme",
"peerDependencies": {
"@openfeature/web-sdk": ">=0.4.0",
"react": ">=18.0.0"
"react": ">=16.8.0"
},
"devDependencies": {
"@openfeature/core": "*",
Expand Down

0 comments on commit 2c864e4

Please sign in to comment.