Skip to content
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

Dedupe acorn-related deps #3

Merged

Conversation

Andarist
Copy link

Related to the comment here: facebook#20312 (comment)

Why this happens?

According to my observation Yarn is very cautious when it comes to upgrading transitive dependencies. It tries to actively avoid it. As we know semver bumping is a manual human-driven process and thus it's flawed (but the best that we have) - so I would expect this being at least a partial reason behind this design choice.

If you install package A which depends on B you are already using B, without even knowing about it and everything that you care about is if A works for you. Later on, you might start using B directly and when you install it you get its latest version but Yarn refuses to upgrade the existing B in your dep tree because it poses a risk - A might stop working for you because of some subtle bug/behavioral change.

This is also why projects like yarn-deduplicate exist and most likely you have a lot of other duplicates that could be "merged" in your yarn.lock but I've only deduplicated acorn-related deps here to keep this small and focused.

@sebmarkbage sebmarkbage merged commit f11fc66 into sebmarkbage:clientnamedexports Nov 30, 2020
@Andarist Andarist deleted the clientnamedexports branch November 30, 2020 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants