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-is to 16.6 #6447
Update react-is to 16.6 #6447
Conversation
This only affects our local testing, which doesn't use any of the newer APIs from 16.6. Note that npm doesn't ship package-lock.json files. The version string provided in the package.json's dependency list is used to resolve the version obtained when installing the package. This should be enforced by react/react-dom being at version 16.6.0, but the npm module resolution algorithm can be weird with conflicting dep versions. Is this something you're running into with beta.6? |
The package lock is only used for installing the actual If you If you remove your |
Turns out that the project was using Because beta.6's version also matched that, it didn't install the newer So this PR would solve the issue in cases where projects already have a version of |
I'm still unsure that this should be closed -- if your project has |
We can't update our React dep to version 16 w/out bumping our major version. I will note that I am currently planning on making version 5 dependent on React 16.7+, but that is still in alpha. In the meantime, maybe it makes sense to ditch |
I believe we can upgrade ‘react-is’ independently of ‘react’, though I’m not 100% sure. The only reason I mentioned upgrading react was because I wanted to add a test but can’t until it is upgraded :( If react-is can’t be updated independently, then yeah I can make the change to something more relaxed. (Sorry for formatting, on mobile) |
Just checked |
I'm cool with it if @mjackson is cool with it. |
Thanks, @frehner! |
A followup to #6420 and #6417 , the version of React-is that was installed didn't allow
lazy
to actually pass validation -- it doesn't recognize it yet, since lazy was added in16.6
.I was going to add a test for it, but that also requires updating the package's
react
andreact-dom
to16.6
so I canimport React, {lazy, Suspense} from 'react'
. However, when I tried that update, other tests in other areas failed that I'm not that familiar with.If you want me to look into that, I can. I'm just not familiar with those areas. :)