Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Experiment with yarn 2 on workshop repo #138

Closed
trivikr opened this issue Feb 25, 2020 · 8 comments · Fixed by #243
Closed

Experiment with yarn 2 on workshop repo #138

trivikr opened this issue Feb 25, 2020 · 8 comments · Fixed by #243

Comments

@trivikr
Copy link
Contributor

trivikr commented Feb 25, 2020

Is your feature request related to a problem? Please describe.
Not a problem, but yarn v2 was announced in January 2020:

Describe the solution you'd like
Once yarn 2 is stable, experiment with using it in workshop repo. So that we can use it on main repo aws/aws-sdk-js-v3 if it's helpful.

Describe alternatives you've considered
Stick with yarn 1

@trivikr
Copy link
Contributor Author

trivikr commented Apr 1, 2020

VSCode Prettier extension doesn't yet have support for yarn v2 as of 04/01 prettier/prettier-vscode#1222 (comment)

Support was added on 04/05 prettier/prettier-vscode#1293

@trivikr
Copy link
Contributor Author

trivikr commented Apr 4, 2020

yarn v2 migration is not straight-forward, and has many issues yarnpkg/berry#843

Community is still divided on whether to release yarn@v2 under a different name, or to release it without PnP enabled by default. Discussions: yarnpkg/berry#766
Maintainers confirmed that yarn@v2 won't be released under a different name.

@trivikr
Copy link
Contributor Author

trivikr commented Jul 14, 2020

yarn v2 is stable, and 2.1 was released on July 9th
Blog post https://dev.to/arcanis/yarn-2-1-git-workspaces-focused-installs-loose-mode-live-playground-4kfc

@trivikr
Copy link
Contributor Author

trivikr commented Aug 3, 2020

Comparison between yarn 1 vs yarn 2 vs npm from Feb 2020
https://shift.infinite.red/yarn-1-vs-yarn-2-vs-npm-a69ccf0229cd

Conclusion: it's better to stick with yarn 1 primarily because of broad support and build speed.

@trivikr
Copy link
Contributor Author

trivikr commented Aug 28, 2020

Update: yarn 2.2 is released on Aug 28th https://dev.to/arcanis/yarn-2-2-dedupe-faster-lighter-ha5

New features:

  • yarn dedupe: deduplicates dependencies with overlapping range
  • better performance
  • smaller size
  • telemetry (optional)

The yarn team is in discussion with Node TSC to bundle yarn with node in some capacity nodejs/TSC#904

@trivikr
Copy link
Contributor Author

trivikr commented Sep 1, 2020

The original creator of yarn is not supportive of yarn 2 (berry)
https://twitter.com/sebmck/status/1300655408688709633?s=19

@trivikr
Copy link
Contributor Author

trivikr commented Oct 4, 2020

Update: yarn 2.3 released on Oct 2nd: https://dev.to/arcanis/yarn-2-3-info-command-detailed-options-nohoist-409h

  • yarn info top level command.
  • Clipanion update to individually document options.
  • nmHoistingLimits

@trivikr
Copy link
Contributor Author

trivikr commented Dec 1, 2020

Update: yarn 2.4 released on Nov 30th: https://dev.to/arcanis/yarn-2-4-log-filters-audits-better-warnings-49io

  • yarn npm audit.
  • Better warnings.
  • Log filters.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant