-
Notifications
You must be signed in to change notification settings - Fork 239
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
[FEATURE] Create RFC for Yarn Resolutions #56
Comments
Putting this back on the agenda since I think we might want to close it given that #72 was ratified and implemented. |
Oh nice, an Does this cover common cases of Yarn Resolutions? For example: 1. I want to upgrade all versions of
|
This is the direction we're likely going: #129 Expect an update to this RFC to make some changes this week and explore a lot of the edge cases. The result of last week's deep dive was that we really cannot reasonably go the route of implementing Yarn's |
I'm not sure what you mean, we didn't abandon it. It's implemented in v2 the same as in v1, except that the syntax was made less ambiguous 🤔 |
Ah, ok, my mistake. I thought it was replaced by a new thing. |
@arcanis I think maybe that was phrased incorrectly, I assume @isaacs was referring to the new methodology for applying rules using prolog? The new docs I think are here right? https://yarnpkg.com/configuration/manifest#resolutions Which is different from the prolog stuff? I don't see that documented, maybe you can link to that? EDIT: Sorry @isaacs your messaged popped in as I submitted this comment. |
The prolog constraints are an entirely different feature that has nothing to do with resolutions. Glob patterns were discontinued as a syntax because they had no sensible additional effects - users could just omit them and it worked just fine. |
Good to know.
Do you have docs or discussions which we could go read? I am very interested in the learnings from the process here. Thanks in advance for any help you can provide! |
Ah, that's great to hear! I was under the (incorrect?) assumption that If so, wow, extremely good call removing the globs, because it's clearly somewhat confusing. It would also mean that we probably can translate yarn resolutions into npm overrides, and support either syntax. There are a few things you can do with overrides that I don't think quite map in the other direction, but we'll see once this RFC fully solidifies. |
@isaacs oh nice, really awesome! Looks like npm Overrides cover all of the use cases Yarn Resolutions cover and more! Really like the version specifiers and calling out the "exceptions". Simple
{
"overrides": {
"minimist@0.x": "0.2.1",
"webpack@1.x || 2.x": "2.7.0",
"x@1.2.3": "1.2.4"
}
} Matching Transitive Dependencies (sub-dependencies)
{
"overrides": {
"y@2.x": {
"x@1.x": "1.2.3"
}
}
} Exceptions
{
"overrides": {
"react": "15.6.2",
"tap": {
"react": "16"
}
}
} |
I'm going to close out this issue as we've moved the conversation of overrides/resolutions to the RFC (#129 ) specifically. |
Ok, thanks everyone! Really excited about npm again! 💯 |
Thanks @karlhorky ❤️ 😄 We're excited to keep building something awesome with your help/input. |
What / Why
Not sure if this is the right way to do this, but I wanted to create a placeholder issue for the eventual creation an RFC for Yarn Resolutions.
As @isaacs mentioned in #39 (comment) (emphasis mine):
References
The text was updated successfully, but these errors were encountered: