Packages

@yarnpkg/pnp

4.1.7 · 2 Jun 2026BSD-2-Clause310k / weekRepositorynpmAtom feed

Upgrading @yarnpkg/pnp From 2.2.1 to 4.1.7

42 releases in betweennotes for 6

Reading releases, release notes and advisories…

Other targets from 2.2.1Newest 2.x2.3.2
  1. 2.2.1yours
  2. 3 releases
  3. 3.0.0major
  4. 3 releases
  5. 3.2.0breaking
  6. 15 releases
  7. 4.0.0major
  8. 17 releases
  9. 4.1.7target
24+
changes to make
0
advisories fixed
19+
new
43+
fixes

Counted from 6 of 42 release notes. Advisories are counted from the advisory database, in full.

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
  • Breaking3.2.0

Release by release

  1. 4.1.1 – 4.1.77 releases, no release note

  2. 4.1.0

    9 Apr 20251 new · 7 fixes
    • New

      Adds a new --json option to yarn run when called without script name

    • Fixed

      Fixes node-modules linker link: dependencies mistreatment as inner workspaces, when they point to a parent folder of a workspace

    • Fixed

      Fixes spurious "No candidates found" errors

    • Fixed

      Fixes missing executable permissions when using nodeLinker: pnpm

  3. 4.0.1 – 4.0.1010 releases, no release note

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

  5. 3.2.1 – 3.3.815 releases, nothing new or fixed; 14 without a note

  6. 3.2.0

    Migration needed21 Feb 20229 new · 11 fixes
    • Breaking

      Could potentially be a breaking change, but the old behavior caused portability issues with a few packages, so we had to make this change (especially since the portable shell is intended to help portability).

    • New

      It will now remove the node_modules/.store and node_modules folders if they are empty.

    • New

      It now supports running binaries of soft links.

    • New

      It will now create self-references for packages that don't depend on other versions of themselves.

  7. 3.1.0

    25 Oct 20212 new · 11 fixes
    • New

      Workspaces can now be referred to using workspace:^ and workspace:~. When published, those markers will turn into the actual version (just like what used to happen with workspace:*), except that they'll be prefixed with the relevant semver prefix (respectively ^ and ~).

    • New

      A new npmAuditRegistry setting will let you define which registry to use when running audits. If unset, we'll fallback to the currently configured publish registry (we'll likely change this behavior in Yarn 4 to rather use the fetch registry).

    • Fixed

      Direct portal dependencies for node_modules installs will now be given priority during hoisting, preventing cases when indirect regular dependencies would block the way for direct portal dependencies.

    • Fixed

      The pnpify binary can now be used from inside directories containing spaces.

  8. 3.0.1 – 3.0.22 releases, no release note

121 other lines we could not sort, mostly version bumps
  • Tweaks -,--verbose in yarn workspaces foreach; -v will now only print the prefixes, -vv will be necessary to also print the timings.

    4.1.0
  • 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

1 internal line (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.