@yarnpkg/shell
4.1.4 · 21 Nov 2026BSD-2-Clause1.2M / weekRepositorynpmAtom feed
Upgrading @yarnpkg/shell From 3.2.0 to 4.1.4
14 releases in betweennotes for 8
Reading releases, release notes and advisories…
- 9+
- changes to make
- 0
- advisories fixed
- 10+
- new
- 17+
- fixes
Counted from 8 of 14 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
Release by release
4.1.1 – 4.1.44 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.2no release note
- New
Implements back the
yarn explain peer-requirementscommand - Fixed
Fixes creation of symlinks for
node-moduleslinker when inner workspace depends on outer workspace - Fixed
Fixes progress bars when the terminal is too large
- Fixed
Fixes crashes while running Yarn within Docker within GitHub Actions
- Fixed
Fixes
yarn npm audit --ignore NUMwhich didn't apply to deprecations - Fixed
Fixes
yarn npm audit --jsonwhich didn't print the right output format - Fixed
Fixes an incorrect type export in
@yarnpkg/core
- New
- 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.4 – 3.3.03 releases, nothing new or fixed; 1 without a note
- Fixed
When Corepack is enabled Yarn will now use the current CLI to prepare external Yarn classic projects, matching the behaviour of when Corepack is disabled.
- Fixed
3.2.2nothing new or fixed in the note
62 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.
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.