Skip to content

fix: add react as a peer dependency#33

Merged
amcgee merged 2 commits intomasterfrom
fix/react-peer-dep
Aug 25, 2019
Merged

fix: add react as a peer dependency#33
amcgee merged 2 commits intomasterfrom
fix/react-peer-dep

Conversation

@amcgee
Copy link
Copy Markdown
Contributor

@amcgee amcgee commented Aug 17, 2019

When yarn is used in PnP mode it requires that all used dependencies be explicitly specified in package.json. That revealed that prop-types uses react but doesn't specify any kind of dependency on react. Since we just use React.Children I think it's probably fine to use * as a peerDep here, but we could also specify a minimum version (16?) if we wanted to.

@amcgee amcgee requested a review from Mohammer5 August 17, 2019 14:57
Copy link
Copy Markdown
Contributor

@Mohammer5 Mohammer5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amcgee Oh you're right, I didn't see the React.Children line!
I think "*" is fine as we're not using any react@16 features, so it should work fine with react@15 as well.
Thanks for spotting this one!

@amcgee
Copy link
Copy Markdown
Contributor Author

amcgee commented Aug 25, 2019

Changed to react@>=15 for completeness

@amcgee amcgee merged commit 88cb383 into master Aug 25, 2019
dhis2-bot pushed a commit that referenced this pull request Aug 25, 2019
## [1.0.4](v1.0.3...v1.0.4) (2019-08-25)

### Bug Fixes

* add react as a peer dependency ([#33](#33)) ([88cb383](88cb383))
@dhis2-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@varl varl deleted the fix/react-peer-dep branch October 28, 2020 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants