@yarnpkg/pnp
4.1.7 · 2 Jun 2026BSD-2-Clause310k / weekRepositorynpmAtom feed
Upgrading @yarnpkg/pnp From 2.3.2 to 4.1.7
39 releases in betweennotes for 6
Reading releases, release notes and advisories…
- 24+
- changes to make
- 0
- advisories fixed
- 19+
- new
- 43+
- fixes
Counted from 6 of 39 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
4.1.1 – 4.1.77 releases, no release note
- New
Adds a new
--jsonoption toyarn runwhen called without script name - Fixed
Fixes
node-moduleslinkerlink: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
- New
4.0.1 – 4.0.1010 releases, no release note
- 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 importfor official plugins (you still need to do it for third-party plugins, of course). - Breaking
preferAggregateCacheInfohas been removed (it's now always on) - Breaking
pnpDataPathhas 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.
- Breaking
3.2.1 – 3.3.815 releases, nothing new or fixed; 14 without a note
- 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/.storeandnode_modulesfolders 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.
- Breaking
- New
Workspaces can now be referred to using
workspace:^andworkspace:~. When published, those markers will turn into the actual version (just like what used to happen withworkspace:*), except that they'll be prefixed with the relevant semver prefix (respectively^and~). - New
A new
npmAuditRegistrysetting 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_modulesinstalls will now be given priority during hoisting, preventing cases when indirect regular dependencies would block the way for direct portal dependencies. - Fixed
The
pnpifybinary can now be used from inside directories containing spaces.
- New
3.0.1 – 3.0.22 releases, no release note
121 other lines we could not sort, mostly version bumps
- 4.1.0
Tweaks
-,--verboseinyarn workspaces foreach;-vwill now only print the prefixes,-vvwill be necessary to also print the timings. - 4.0.0
yarn initandyarn set versionwill prefer usingpackageManagerrather thanyarnPathwhen possible (when they detectCOREPACK_ROOTin your environment variables). - 4.0.0
yarn initwill 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 foreachnow requires one of--all,--recursive,--since, or--worktreeto be explicitly specified; the previous default was--worktree, but it was rarely what users expected. - 4.0.0
compressionLevelnow defaults to0rather thanmixed. 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 usingcompressionLevel: 0vscompressionLevel: 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-gypand transitive peer dependency errors) have been removed. - 4.0.0
Skipped builds are now only reported during initial installs and manual
yarn rebuildcalls. - 4.0.0
The Yarn version is now displayed on installs to help us investigate issues when reported as screenshots.
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.