Member-only story
Hello Yarn 2, Goodbye Node_modules.
What’s new (and the least painful farewell in the history of JS)
Over three years ago, in 2017, Yarn 1.0 was officially announced in the Facebook Engineering Blog. Already by that time, only 11 months after its first release, more than 175,000 repositories had started using the new package manager.
Even though Yarn’s success story has continued steadily ever since, the tool has also fallen victim to many of the classic package handling weaknesses such as slowness, increased complexity, and data footprint.
Yarn 2 comes with a few fundamental changes which not only address these points but also improve your overall workflow.
What’s new in Yarn 2?
The new version had already been released last January (2020 that is), however, it took most bigger projects and libraries a good while to adjust to the new Plug’n’Play way.
And while some large names are still struggling to reach compatibility (as of the time of writing: Angular, React Native, and Flow), now is a good opportunity to try it out in your codebase.