-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[react] Upgrade to [email protected] #6543
Conversation
@@ -1,4 +1,5 @@ | |||
import React from 'react'; | |||
import PropTypes from 'prop-types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These files don't need prop-types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I'm on it :).
package.json
Outdated
@@ -46,6 +46,7 @@ | |||
"publish": "npm run build && cd build && npm publish --tag next" | |||
}, | |||
"peerDependencies": { | |||
"prop-types": "^15.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prop-types
won't conflict. Adding it to peer dependencies will further complicate installs. Many won't use prop-types. Like some typescript users (me included 😁). Just add it to normal dependencies. fewer missing peer dependency warns and fewer breakage to take care of.
src/test-utils/createMount.js
Outdated
@@ -3,7 +3,8 @@ | |||
import { create } from 'jss'; | |||
import jssPreset from 'jss-preset-default'; | |||
import { createStyleManager } from 'jss-theme-reactor'; | |||
import { PropTypes } from 'react'; | |||
import 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😱 😱 codemod failure 😆
src/utils/customPropTypes.js
Outdated
@@ -2,7 +2,8 @@ | |||
/* eslint-disable import/no-mutable-exports*/ | |||
/* eslint-disable flowtype/require-valid-file-annotation */ | |||
|
|||
import { PropTypes } from 'react'; | |||
import 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
I'm merging early. We have to start somewhere and other PR will most likely have to rebase. |
Limitations:
Related to #6542