Why is "yarn 2" yarn 3.0.1? #3385
-
Why did yarn not just call yarn 2 yarn 3 instead of calling it yarn 2? % yarn --version In case my tone is not understand due to the limited medium of internet communication, this is a serious question that I would like to understand for my benefit as well as the benefit of my colleagues who are unfamiliar with the yarn ecosystem. Thanks in advance for your positive responses! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I don't understand this question 😅 That being said, Yarn 1 was the old codebase. We rewrote it entirely in Yarn 2.0 to make it harder better faster stronger, and released it in January 2020. Since then time passed, and we recently released a new major (without having to rewrite the codebase again, which is a relief), making it Yarn 3.0. Next major will be Yarn 4.0, etc. Given that we historically didn't release many majors, some people have started to colloquially call "Yarn 2" everything using this new codebase, so Yarn 2.x and beyond (including 3.x). This is incorrect though ("Yarn 2" is really just 2.x), and a better term to refer to the new codebase would be Yarn 2+, or Yarn Berry (which is the codename I picked for the new codebase when I started working on it). |
Beta Was this translation helpful? Give feedback.
-
I think they're referring to the website still showing it as Yarn 2. I've been confused by that myself. |
Beta Was this translation helpful? Give feedback.
I don't understand this question 😅
That being said, Yarn 1 was the old codebase. We rewrote it entirely in Yarn 2.0 to make it harder better faster stronger, and released it in January 2020. Since then time passed, and we recently released a new major (without having to rewrite the codebase again, which is a relief), making it Yarn 3.0. Next major will be Yarn 4.0, etc.
Given that we historically didn't release many majors, some people have started to colloquially call "Yarn 2" everything using this new codebase, so Yarn 2.x and beyond (including 3.x). This is incorrect though ("Yarn 2" is really just 2.x), and a bet…