@yarnpkg/shell
4.1.4 · 21 Nov 2026BSD-2-Clause1.2M / weekRepositorynpmAtom feed
3.3.0 is the newest release of 3.x.
In short
9 new11 fixed19 changed
Release note
Various improvements have been made in the core to improve performance. Additionally:
Commands
The
yarn workspaces foreach runcommand is now able to run binaries.The
yarn npm infocommand now supports displaying information about a tagged version of a package (e.g.yarn npm info vue@next).A new
yarn explaincommand has been added. It can be used to explain an error code, or list all available error codes.For example, try to run
yarn explain YN0002.
The
yarn npm publishcommand now accepts a new--otpoption, to set the One-Time Password from the CLI.A better error message will also be shown when a query fails due to an invalid OTP.
yarn upgrade-interactivenow has improved paging:Yarn will display as many suggestions as can fit in the viewport (rather than a fixed-size list).
The suggestions that fit in the viewport will be fetched in the foreground and will load one-by-one.
The suggestions that don't will be fetched in the background and will be loaded in batches to increase responsiveness and reduce input lag.
Most notably, you won't have to wait for all of the suggestions to be fetched (which took a very long time before on large monorepos) before you can start navigating through the list.
Installs
The node-modules linker now tolerates if
node_modulesis a symbolic link, and doesn't recreate it.On top of the
cpuandarchfields, Yarn now support a newlibcfield which can be used in tandem withoptionalDependenciesto avoid downloading packages that have been linked against incompatible standard libraries (we currently support two values:glibcandmusl).The pnpm linker has received various improvements:
It will now remove the
node_modules/.storeandnode_modulesfolders if they are empty.It now supports running binaries of soft links.
It will now create self-references for packages that don't depend on other versions of themselves.
It will now remove scope folders (e.g.
node_modules/@yarnpkg) if they are empty or after removing a scoped dependency.
All
.pnp.cjsfiles with inlined data will now store the data in a JSON string literal instead of an object literal to improve startup performance.
Compatibility
The shell now treats backslashes same as Bash (so it mostly ignore them).
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).
The shell now supports
${FOO:+}.The PnP filesystem now handles
readandreadSyncusing options.The PnP filesystem now handles UNC paths using forward slashes.
The PnP filesystem now sets the proper
pathproperty on streams created bycreateReadStream()and obtained from zip archives.The PnP runtime now throws an
ERR_REQUIRE_ESMerror when attempting to require an ES Module, matching the default Node.js behaviour.Updates the PnP compatibility layer for TypeScript 4.6 Beta (it's possible we'll need to publish another patch update once the 4.6 enters stable).
Bugfixes
@yarnpkg/pnpifynow escapes paths correctly.The ESM loader is now enabled regardless of the entrypoint module type, this fixes support for dynamic imports in commonjs modules when the entrypoint is also commonjs.
The ESM loader is now able to resolve relative imports with search parameters.
The
nodefield inside thenpm_config_user_agentYarn sets will now include a leadingv.Yarn is now able to recover from a corrupted install state.
Yarn is now able to migrate classic lockfiles containing unconventional tarball URLs.
The nm linker hoists portals after hoisting their dependencies first.
Fixed a crash caused by a bad interaction between aliased packages and peer dependencies.
The ESBuild plugin will no longer allow access to Node.js builtins if the
platformisn't set to Node.SemVer ranges with build metadata can now be resolved.
The
YARN_IGNORE_NODEenvironment variable will now be parsed using the same mechanism as env variable configuration settings (i.e. both1/0andtrue/falsewill be accepted)
ZipFS Extension
You can now unmount zip folders by right-clicking on their workspaces.
Miscellaneous Features
Reporting for Git errors has been improved.
The resolution step now has a progress indicator.
The experimental ESM loader warning emitted by Node.js is now suppressed.
Private registries can now be authenticated using private keys and certificates.
A new
wrapNetworkRequesthook now lets you wrap network requests (for example to log them).
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.