Automattic / dops-components

Shared Calypso-style components for non-Calypso projects.
GNU General Public License v2.0
9 stars 6 forks source link

Accept new versions of React as peer dependencies #59

Closed Tug closed 8 years ago

Tug commented 8 years ago

Currently, dops-components is quite strict in the versions of React defined in its dependencies. This can cause some issues for projects using React 15.x.x and dops-components as they might be bundling 2 versions of react (with webpack for instance).

This PR makes react and react-dom peer and dev dependencies with broader version support for peer dependencies.

It also explicitly upgrades react-formsy to 0.18.1 (even though this version matched ^0.17.0) because it officially supports both versions of react: https://github.com/christianalfoni/formsy-react/blob/v0.18.1/package.json#L45

gravityrail commented 8 years ago

LGTM! 👍

Tug commented 8 years ago

@gravityrail Thanks a lot for your review!