-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Update react 15.6.1 #13672
Update react 15.6.1 #13672
Conversation
a17deae
to
db5a608
Compare
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.
Awesome, almost there. There are just a few uses of React.PropTypes
remaining in ui_framework/src/components
, which produces deprecation warnings.
@weltenwort Good catch. I only ran the codemod on the src folder, so missed the ui-framework files. |
@sqren Can you add |
Scratch that, I see it now. I must have typo'd my grep. |
I'm still seeing 3 warnings about PropTypes usage in the jest tests:
Edit: |
@epixa Yes, I'm not sure where those are coming from - I'm fairly certain it's not from the Kibana. Could be a dependency that we have to bump. |
I couldn't find the source either, so I think a third-party dependency is the probable cause too. |
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.
I would be fine with tackling those warnings in a separate PR.
I think these warning are coming from the |
Oh wait, we upgraded |
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.
LGTM! I think I've narrowed down the source of these warnings to be our react-color
dependency, which we use in the KuiColorPicker component here: https://github.com/elastic/kibana/blob/master/ui_framework/src/components/color_picker/color_picker.js#L4.
Removing this line and updating this component to not depend upon it makes all of the warnings go away. Which is weird because I don't see the relationship between this component and the modals.
Bumping react-color
to 2.11.7
should fix this: casesandberg/react-color#346.
wow, thanks for taking the time to dig into this, @cjcenizal |
01fd862
to
2864a6d
Compare
@cjcenizal Great finding, thanks! I've bumped |
jenkins test this |
awesome, thanks again! |
React was recently upgraded to 15.6.1 for x-pack and this PR ensures the version in Kibana matches.
Closes #13610
Breaking changes between 15.4.2 and 15.6.1:
Changes made:
2.9.1
(to fix deprecation warnings when running Jest)react-test-renderer
(needed for Enzyme)react
andreact-dom
to 15.6.1react-color
to 2.11.7Plugins affected:
Further reading: