Skip to content

Conversation

@robinsoncol
Copy link
Contributor

@robinsoncol robinsoncol commented Apr 20, 2017

This should prevent the warningAccessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead., when using react-chartist with React v15.3 and above.

"babel-preset-stage-0": "^6.16.0"
},
"dependencies": {
"prop-types": "^15.5.8"
Copy link
Owner

Choose a reason for hiding this comment

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

What about user using React version < 15.5? Will they have both standalone prop-types and the build in React.PropTypes?

Copy link
Contributor Author

@robinsoncol robinsoncol Apr 21, 2017

Choose a reason for hiding this comment

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

Yes, they will have both.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would also bump the version of react under peerDependencies to ^0.14.9 || ^0.15.3, since those are the compatible version of the new standalone 'prop-types'. If you don't, and a user has an older version of react, they are going to get this warning: Warning: Failed propType: Calling PropTypes validators directly is not supported by the 'prop-types' package. Use 'PropTypes.checkPropTypes()' to call them..

@fraserxu
Copy link
Owner

Thanks @robinsoncol just merged and published to v0.13.0

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.

2 participants