pnpm 10.31 preserves comments and formatting when updating pnpm-workspace.yaml, and includes numerous bug fixes.
Minor Changes
Preserving Comments in pnpm-workspace.yaml
When pnpm updates the pnpm-workspace.yaml, comments, string formatting, and whitespace will be preserved.
Patch Changes
-
Added
-Fas a short alias for the--filteroption in the help output. -
Handle undefined pkgSnapshot in
pnpm why -r#10700. -
Fix headless install not being used when a project has an injected self-referencing
file:dependency that resolves tolink:in the lockfile. -
Fixed a race condition when multiple worker threads import the same package to the global virtual store concurrently. The rename operation now tolerates
ENOTEMPTY/EEXISTerrors if another thread already completed the import. -
When
lockfile-include-tarball-urlis set tofalse, tarball URLs are now always excluded from the lockfile. Previously, tarball URLs could still appear for packages hosted under non-standard URLs #6667. -
Fixed
optimisticRepeatInstallskipping install whenoverrides,packageExtensions,ignoredOptionalDependencies,patchedDependencies, orpeersSuffixMaxLengthchanged. -
Fixed
pnpm patch-commitfailing with "unable to access '/.config/git/attributes': Permission denied" error in environments where HOME is unset or non-standard (Docker containers, CI systems) #6537. -
Fix
pnpm why -r --parseablemissing dependents when multiple workspace packages share the same dependency #8100. -
Fix
link-workspace-packages=trueincorrectly linking workspace packages when the requested version doesn't match the workspace package's version #10173. -
Fixed
pnpm update --interactivetable breaking with long version strings by dynamically calculating column widths instead of using hardcoded values #10316. -
The parameter set by the
--allow-buildflag is written toallowBuilds. -
Fix a bug in which specifying
filteronpnpm-workspace.yamlwould cause pnpm to not detect any projects. -
Print help message on running
pnpm dlxwithout arguments and exit.
"undefined"!=typeof _bsa&&_bsa&&_bsa.init("custom","CWYI4K7E","placement:pnpmio",{target:"#bsa-custom-01",template:`
##description##
##callToAction##
`})
Fetched May 2, 2026
