Packages

@yarnpkg/cli

4.18.1 · 24 Sep 2026BSD-2-Clause121.1k / weekRepositorynpmAtom feed

Upgrading @yarnpkg/cli From 2.1.1 to 2.2.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.1.1Newest 2.x2.4.3Latest4.18.1
  1. 2.1.1yours
  2. 2.2.0target
0
changes to make
0
advisories fixed
0
new
13
fixes

Release by release

  1. 2.2.0

    28 Aug 202013 fixes
    • Fixed

      Requests won't timeout anymore as long as the server is still sending data.

    • Fixed

      yarn pack will properly include main/module/bin files, even when not explicitly referenced through the files field.

    • Fixed

      Local git repositories can now be fetched via the git+file: protocol.

    • Fixed

      The progress bars will be properly styled when using the new Windows terminal on certain days.

7 other lines we could not sort, mostly version bumps
  • Packages can now use the publishConfig.executableFiles field in their manifests to indicate which files should keep the executable flag once packed in the archive. This is important as for portability reasons Yarn strips the executable flag from all files during packing (otherwise yarn pack would yield different outputs when run on Posix vs Windows). Files listed in the bin field are assumed executable by default, so you don't need to explicitly list them in executableFiles.

    2.2.0
  • Yarn will now report an error when run through an incompatible Node version.

    2.2.0
  • yarn add and yarn up will now respect the preferInteractive configuration option.

    2.2.0
  • yarn config set now supports the -H,--home flag, which causes it to update the home configuration instead of the project configuration.

    2.2.0
  • The settings found in the home configuration file won't cause exceptions when consumed by older Yarn versions. Unsupported options will simply be silently ignored. This should improve the user experience when working with multiple projects configured with different Yarn versions.

    2.2.0
  • A new immutablePaths setting allow you to specify paths that must not change when running Yarn with the --immutable flag set. You can use it to detect unforeseen changes to your install artifacts, be it .pnp.js or node_modules files.

    2.2.0
  • The PnP hook will now display clearer error message when requiring Node builtins from contexts that can't access them out of the box (for example when accessing the fs module from within a Webpack browser bundle).

    2.2.0

4 internal lines (docs, tests, tooling) left out.

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.