最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Why is "Yarn 2" Yarn 3.0.1? - Stack Overflow

programmeradmin2浏览0评论

Why did Yarn not just call Yarn 2 Yarn 3 instead of calling it Yarn 2?

yarn --version

Output:

3.0.1

Or even call it berry? I don't understand the naming conventions.

Why did Yarn not just call Yarn 2 Yarn 3 instead of calling it Yarn 2?

yarn --version

Output:

3.0.1

Or even call it berry? I don't understand the naming conventions.

Share Improve this question edited Nov 24, 2023 at 16:44 Peter Mortensen 31.6k22 gold badges110 silver badges133 bronze badges asked Sep 1, 2021 at 19:52 Ilias KarimIlias Karim 5,3715 gold badges40 silver badges65 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 22

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).

~ arcanis

发布评论

评论列表(0)

  1. 暂无评论