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
Upgrade React 16.3.2 to React 16.4.1 #7393
Conversation
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 don't think we should be specifying version ranges with the caret.
package.json
Outdated
@@ -44,12 +44,12 @@ | |||
"prop-types": "15.5.10", | |||
"querystringify": "1.0.0", | |||
"re-resizable": "4.4.8", | |||
"react": "16.3.2", | |||
"react": "^16.4.1", |
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.
Why the change to using caret? Locking down package versions as tightly as possible is a good idea, so I think this should be changed to 16.4.1
over ^16.4.1
.
package.json
Outdated
"react-autosize-textarea": "3.0.2", | ||
"react-click-outside": "2.3.1", | ||
"react-color": "2.13.4", | ||
"react-datepicker": "1.4.1", | ||
"react-dom": "16.3.2", | ||
"react-dom": "^16.4.1", |
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 here re: caret ranges.
@tofumatt Ah yes, excuse me. I fixed it. |
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.
There are a few more occurrences of old version of React in php files. We need to update them before we proceed.
packages/element/package-lock.json
Outdated
@@ -0,0 +1,146 @@ | |||
{ |
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.
This file should be removed. We don't want to maintain package lock files for individual packages. It's a bug with Lerna that it doesn't respect .npmrc
file ... I observe that it happens where you run npm install
when there are 2 different versions of the package in two package.json
files.
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.
Code looks good, let me give it a spin locally.
Sidenote: we probably should start using |
Description
This PR updates react from version 16.3.2 to version 16.4.1.
Reason for this PR is because I would like to use
react-test-renderer
for testing components that use React's newforwardRef
feature, which is not supported by enzyme. As you can read in the changelog for React 16.4, support for usingreact-test-renderer
withforwardRef
was added in this version.Not being able to test components with
forwardRef
is currently blocking #6261.Since this is a minor version bump no breaking changes are to be expected, and while testing this I did not encounter any unexpected behaviour.
How has this been tested?
The unit tests still work.
Screenshots
Types of changes
New feature.
Checklist: