-
Notifications
You must be signed in to change notification settings - Fork 118
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
Updating core-js from 2.x to 3.x should bump major dependency #198
Comments
Hi @tomchentw, Could you add some more details as to which inconsistencies you've encountered. I would prefer understanding the issues your are having before I release a new major release where theoretically it wouldn't be required. The upgrade to Your code should respect the version of There have been some issues after the upgrade, but these were due to tools breaking how semver modules were being resolved. [1], [2] |
@JorgenEvens honestly I could NOT say this is exactly the problem. But I do suspect having issues of two versions of Before
Then, After
The two versions of I cannot really confirm this is the issue that happens to my application. You know how the front-end works. It's always changing and the complexity is increasing and sometimes it's harder for us to trace out the exact problem. Yes, the
Take a look at the top-level imports by |
Right now the inconsistency which actually exist is #187 where gatsbyjs/gatsby breaks with the react-avatar depending on core-js@3. Granted, it's only happening because they do some obscure voodoo on Webpack configs, as explained in gatsbyjs/gatsby#15601. But it's a valid example of things breaking because of this dependency change. Internal dependencies of projects are not that isolated in npm world, sadly. |
I've been thinking about the arguments that have been raised in this issue and I still feel that the way the update to What I'd like to suggest is the following. A tag will be created that points to the last release of This means that people looking to use For those looking to understand my reasoning I'll quickly highlight my thoughts on some of the arguments against doing the update in a Firstly, Secondly the issue was raised that your bundle will now contain two versions of
Lastly, I regret that the |
There is now a reference of the issues surrounding usage in Gatsby and a workaround in the readme of |
I accidentally upgraded
react-avatar >= 3.8.0
and found it usescore-js
3 instead of 2. This might cause lots of inconsistency problems, so please follow the semver and bumpreact-avatar
's major dependency. ThanksThe text was updated successfully, but these errors were encountered: