Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: react-sdk | downgrading react peer dependency | react 18.0.0 -> 16.8.0 #742

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

shujieali
Copy link
Contributor

@shujieali shujieali commented Jan 3, 2024

This PR fix the npm warning when installing @openfeature/react-sdk in application using react version < 18

Package Change Passing Confidence
react 18.0.0 -> 16.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.

This is the version when react hooks were introduced.

Signed-off-by: Shujaat Ali <dr.shujaat_ali@hotmail.com>
@shujieali shujieali requested a review from a team as a code owner January 3, 2024 20:40
@shujieali shujieali marked this pull request as draft January 3, 2024 20:41
@shujieali shujieali changed the title Downgrading react peer dependency to 16.8.0 chore: Downgrading react peer dependency to 16.8.0 Jan 3, 2024
@shujieali shujieali marked this pull request as ready for review January 3, 2024 20:42
@shujieali shujieali changed the title chore: Downgrading react peer dependency to 16.8.0 chore(deps): Downgrading react peer dependency to 16.8.0 Jan 3, 2024
@shujieali shujieali changed the title chore(deps): Downgrading react peer dependency to 16.8.0 chore: Downgrading react peer dependency to 16.8.0 Jan 3, 2024
@shujieali shujieali changed the title chore: Downgrading react peer dependency to 16.8.0 chore: react-sdk | downgrading react peer dependency | react 18.0.0 -> 16.8.0 Jan 3, 2024
@toddbaert
Copy link
Member

Soon we will be adding suspense support with this PR. Before 18, suspense worked differently, so I'm not 100% sure it will work as we want. I will test it and if things seem ok, we can make this change. I'll get to this early next week.

@toddbaert
Copy link
Member

toddbaert commented Jan 11, 2024

Hey @shujieali ! I tested this in my upcoming React PR which ads suspense support, as well as 2-3 other nice features, and it works fine.

Thanks for the suggestion, merging.

@toddbaert toddbaert merged commit 2c864e4 into open-feature:main Jan 11, 2024
7 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Jan 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.0.6-experimental](react-sdk-v0.0.5-experimental...react-sdk-v0.0.6-experimental)
(2024-01-11)


### ✨ New Features

* suspense support, client scoping, context-sensitive re-rendering
([#759](#759))
([8f01ead](8f01ead))


### 🧹 Chore

* fix React SDK README.md to use the resolved value instead of the
resolution details
([#691](#691))
([2d1b8eb](2d1b8eb))
* react-sdk | downgrading react peer dependency | react 18.0.0 -&gt;
16.8.0 ([#742](#742))
([2c864e4](2c864e4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request to Address Compatibility Issues with React
2 participants