Packages

@yarnpkg/shell

4.1.4 · 21 Nov 2026BSD-2-Clause1.2M / weekRepositorynpmAtom feed

Upgrading @yarnpkg/shell From 3.3.0 to 4.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.3.0Latest4.1.4
  1. 3.3.0yours
  2. 4.0.0target
  3. 30 pre

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

Release by release

  1. 4.0.0

    Migration needed22 Oct 20234 new · 2 fixes
    • Breaking

      With Node.js 16's now being End of Life'd, we dropped support for Node.js versions lower than 18.12.

    • Breaking

      All official Yarn plugins are now included by default in the bundle we provide. You no longer need to run yarn plugin import for official plugins (you still need to do it for third-party plugins, of course).

    • Breaking

      preferAggregateCacheInfo has been removed (it's now always on)

    • Breaking

      pnpDataPath has been removed to adhere to our new PnP specification. For consistency, all PnP files will now be hardcoded to a single value so that third-party tools can implement the PnP specification without relying on the Yarn configuration.

42 other lines we could not sort, mostly version bumps
  • yarn init and yarn set version will prefer using packageManager rather than yarnPath when possible (when they detect COREPACK_ROOT in your environment variables).

    4.0.0
  • yarn init will no longer use zero-install by default. You still can enable it, but it should make it easier to start one-of projects without having to rewrite the configuration afterwards.

    4.0.0
  • yarn workspaces foreach now requires one of --all, --recursive, --since, or --worktree to be explicitly specified; the previous default was --worktree, but it was rarely what users expected.

    4.0.0
  • compressionLevel now defaults to 0 rather than mixed. It's been proved significantly faster on installs, and the size impact was reasonable enough to change the default. Note that it benefits you even if you use Zero-Installs: as per our tests, a zero-compression is actually easier to handle for Git (you can see by yourself with those examples using compressionLevel: 0 vs compressionLevel: mixed).

    4.0.0
  • Packages added and removed from the lockfile are now explicitly reported.

    4.0.0
  • Fluctuations in the project cache size are now reported as a single line.

    4.0.0
  • Unactionable warnings (node-gyp and transitive peer dependency errors) have been removed.

    4.0.0
  • Skipped builds are now only reported during initial installs and manual yarn rebuild calls.

    4.0.0
  • The Yarn version is now displayed on installs to help us investigate issues when reported as screenshots.

    4.0.0
  • Deprecation checks have been moved to yarn npm audit.

    4.0.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.