Fix: Accessing PropTypes via React package is deprecated#191
Fix: Accessing PropTypes via React package is deprecated#191muralikrishna8 wants to merge 14 commits intozenoamaro:masterfrom muralikrishna8:master
Conversation
|
Thanks a lot for the contribution. We're in feature freeze at the moment, but we are definitely considering this for next release. |
|
Thanks 👍 |
|
@btoueg I've changed that file. |
|
@zenoamaro any chance this can be merged in the near future? It's a fairly innocuous change and would help our team upgrade to react 15.5. Thanks! |
|
@zenoamaro Do you think we should migrate to For everyone else:
|
|
'We're in feature freeze at the moment' When do you think the next release will be? :) |
|
|
We can work on this after #212. Thanks for your patience! |
|
Nice work on the v1 release guys! Can we get this one in now? |
alexkrolick
left a comment
There was a problem hiding this comment.
Thanks for the contribution. Based on the usage docs for prop-types there are a few changes needed:
prop-typesbelongs independencies, notdevDependencies. https://docs.npmjs.com/files/package.json#devdependencies- It should also be marked as external in Webpack: https://github.com/facebook/prop-types#how-to-depend-on-this-package
- The compatible React
peerDependenciesmust change to^0.14.9 || ^15.3.0 - The custom validators that depend on PropTypes must be updated to use the new module: https://github.com/zenoamaro/react-quill/blob/master/src/component.js#L88
- Quill now has class-based Parchment formats - fixes #216
- in npm5 prepublish is deprecated in favor of prepack - http://blog.npmjs.org/post/161081169345/v500
- Update changelog - Update contributors list - Add FAQ to GH issue template - Add example code for accessing Quill instance - Add React 16 compatibility to roadmap Thanks to everyone who contributed to v1.0.0!
I think React.children.only will give the only child it has, otherwise it'll throw an error. In this case if we have children then only we are verifying it should have only one child and it should not be a textarea. So this doesn't change with the PropTypes I guess. |
|
Thanks for the contribution. Based on the usage docs for
|
|
@muralikrishna8, would you mind also fixing the warning with this PR too? I understand that the PR was originally specifically for PropTypes on React package, but it looks like you've put a lot of extra work in, so what's one more thing right ;)? |
When using the React-^15.3.2 version it is giving a warning message.
Added
prop-typespackage and accessing thePropTypesfrom this package.