pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 12.18.0 to 12.21.0
3 releases in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 14
- new
- 92
- fixes
Before you upgrade
Tick each one off as you go- Breaking12.20.0
- Breaking12.20.0
Security
- 12.20.0
Remote resolution, shared build caches, and release notes no longer work with pnpr 0.1.0-alpha.19 or older. pnpm now reads the capabilities a pnpr server advertises under
pnpr.protocols. Installs fail when the server does not confirm the requested resolution and verification policies. - 12.19.0
It also includes a security fix: an offline install error no longer prints registry credentials. pnpm now checks the
enginesand platform fields of every workspace project, and many hoisted-linker and frozen-lockfile bugs are fixed. - 12.19.0
The error for a tarball that is missing from the store in offline mode no longer prints the credentials or token in the tarball URL.
Release by release
- New
pnpm store addrun in a project now prepares downloaded tarballs for every lockfile entry that pins them. Besides registry packages,pnpm install --offline --frozen-lockfilecan then install dependencies on a tarball URL and dependencies on a git host such as GitHub whose lockfile entry records anintegrity. - Fixed
Pnpm now reads a lockfile with a mapping key longer than 1,024 characters written as
'key':, without the?marker. Before,pnpm installand other commands failed on such a lockfile withERR_PNPM_BROKEN_LOCKFILE. - Fixed
With
lockfile.format: v13,pnpm installno longer fails to create or rewrite the lockfile when a package declares many of its dependencies as peers. - Fixed
Fixed
pnpm deployfailing withlockfile.format: v13when injected workspace packages have hashed peer bindings.
- New
- Security
Remote resolution, shared build caches, and release notes no longer work with pnpr 0.1.0-alpha.19 or older. pnpm now reads the capabilities a pnpr server advertises under
pnpr.protocols. Installs fail when the server does not confirm the requested resolution and verification policies. - Breaking
Remote resolution and shared build caches no longer work with pnpr 0.1.0-alpha.19 or older.
- Breaking
The
node-gypbundled with pnpm no longer ships undici 6, which security scanners flag for CVE-2026-84947. On Node.js 26,node-gypdownloads through a proxy or with a custom CA file no longer crash with "invalid onError method" #17941. - New
With
lockfile.format: v13,pnpm installrecords the dependency specifiers of local directory packages. Frozen installs reject changed specifiers even when the locked versions still satisfy them.
- Security
- Security
It also includes a security fix: an offline install error no longer prints registry credentials. pnpm now checks the
enginesand platform fields of every workspace project, and many hoisted-linker and frozen-lockfile bugs are fixed. - Security
The error for a tarball that is missing from the store in offline mode no longer prints the credentials or token in the tarball URL.
- New
Added
pnpm fund, which lists the funding URLs declared by the installed dependencies in the same treenpm fundprints. Use--jsonfor thenpm fund --jsonreport and--recursiveor--filterto report on workspace projects.pnpm fund <pkg>opens the funding URL of an installed package, and--whichpicks one when it lists several #7354. - New
With
nodeLinker.type: loaded, packages that need a build no longer have to be listed innodeLinker.excluded. A package with a matching side-effects cache entry loads from the store. If side-effects cache reads and writes are enabled, pnpm builds an approved package once, saves the result to the side-effects cache, and then loads it from the store. This includes a build that changes no files in its package, so its script does not run again in other projects that use the same store. List a package insideEffectsCache.excludeif its build must run in every project, such as a git hook installer. pnpm materializes other cache misses, packages with native.nodeaddons, and their dependencies automatically.
- Security
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.