pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 12.8.2 to 12.23.0
21 releases in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 140
- new
- 656
- fixes
Before you upgrade
Tick each one off as you go- Breaking12.20.0
- Breaking12.20.0
Security
- 12.23.0
It also carries security fixes: pnpm no longer reads
otpfrom config files, and it sends registry credentials only over HTTPS. - 12.23.0
otpis no longer read from any config file. Pass--otpon the command line, or setPNPM_CONFIG_OTP. Apnpm-workspace.yamlor a globalconfig.yamlthat carriesotpis ignored, with a warning naming those two channels.pnpm config set otpfails withERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING. - 12.23.0
Pnpm now sends registry credentials only over HTTPS or loopback HTTP, both for tarball downloads and for requests to
pnprServer. Tarball and package metadata requests respect registry credential paths on redirects. A failed tarball request can no longer pin its redirect destination in the lockfile. - 12.23.0
pnpm installnow rejects local filesystem dependencies (file:,link:, and path-basedworkspace:specifiers) declared by non-local packages withERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. Relativefile:dependencies inside a package's own archive and local dependencies configured by the workspace throughoverrides,packageExtensions, or.pnpmfile.cjscontinue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots. - 12.23.0
pnpm installandpnpm install --frozen-lockfilenow enforceblockExoticSubdepsagainst entries inpnpm-lock.yaml. Before, pnpm accepted a lockfile with git or tarball URL subdependencies and installed those packages even withblockExoticSubdeps: true. - 12.23.0
pnpm installwithpnprServernow rejects registry-keyed lockfile entries whose resolution uses a non-registry source withERR_PNPM_RESOLUTION_SHAPE_MISMATCH. Thepnprlockfile verification and resolution endpoints enforce the same check before accepting or caching a lockfile. - 12.23.0
pnpm dlx,pnx, andpnpm createnow ignore local configuration in the working directory. This covers.pnpmfile.cjshooks, proxy and TLS settings in the project.npmrc, and execution, layout, and resolution settings in a localpnpm-workspace.yaml, includingpnpmfile,globalPnpmfile,configDependencies,scriptShell,cacheDir,storeDir, andignoreScripts. Settings from the user's globalconfig.yaml, such asblockExoticSubdeps,cacheDir, andstoreDir, remain active. - 12.23.0
Global commands (
--global,-g) no longer load.pnpmfile.cjs,pnpm-workspace.yaml, or.npmrcfrom the current working directory.pnpm why -gnow inspects globally installed packages. - 12.23.0
pnpm config getrefuses to print protected auth settings.pnpm config listhides TLS private keys and inline proxy credentials.pnpm config set --global tokenHelperwrites toauth.ini, and setting a project-leveltokenHelperfails. - 12.23.0
Matching a glob that repeats a wildcard, such as
+(*)zin the workspacepackagespatterns, no longer hangs on long paths. The bundled picomatch is patched for a security advisory.
Release by release
- Security
It also carries security fixes: pnpm no longer reads
otpfrom config files, and it sends registry credentials only over HTTPS. - Security
otpis no longer read from any config file. Pass--otpon the command line, or setPNPM_CONFIG_OTP. Apnpm-workspace.yamlor a globalconfig.yamlthat carriesotpis ignored, with a warning naming those two channels.pnpm config set otpfails withERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING. - Security
Pnpm now sends registry credentials only over HTTPS or loopback HTTP, both for tarball downloads and for requests to
pnprServer. Tarball and package metadata requests respect registry credential paths on redirects. A failed tarball request can no longer pin its redirect destination in the lockfile. - Security
pnpm installnow rejects local filesystem dependencies (file:,link:, and path-basedworkspace:specifiers) declared by non-local packages withERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. Relativefile:dependencies inside a package's own archive and local dependencies configured by the workspace throughoverrides,packageExtensions, or.pnpmfile.cjscontinue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots.
- Security
- Security
It also includes a security fix.
- Security
pnpm installnow re-verifies lockfile resolutions when the default registry or a scoped registry changes. Before, it reused the result cached for the previous registry and skipped theminimumReleaseAgeandtrustPolicychecks against the new one #18070. - Security
pnpm dlxno longer reuses a cached install made under looseroverrides,packageExtensions,minimumReleaseAge,trustPolicy,trustLockfile, orblockExoticSubdepssettings. It also no longer appliesoverrides,packageExtensions, orblockExoticSubdepsfrom a localpnpm-workspace.yaml#18075. - Security
pnpm auditnow reports advisories whoseidis a string. Such advisories were dropped, andpnpm auditreported no known vulnerabilities #18184.
- Security
- 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
- New
Pnpm now names the link to a dependency's agent skill after the skill alone. A skill that the
@acme/kitpackage ships inskills/auth/is linked as.claude/skills/auth, not.claude/skills/pnpm-@acme+kit-auth. The next install replaces links with the old names. pnpm lists the linked skills in a# pnpmblock of each agent skill directory's.gitignore#17455. - New
pnpm approvenow asks which agent skills to link when a package ships more than one. pnpm records the chosen skills as a list, such aspermissions.<pkg>.skills: [guide, migrate], and does not offer the other skills for approval again. The first time a project approves a skill,pnpm approvealso asks which agent directories to link skills into, and records the answer underskills.dirs. - New
Pnpm links agent skills nested in category directories, such as
skills/engineering/implement/SKILL.md, up to three levels belowskills/. Before, it linked only the skills directly underskills/. - New
pnpm packpacks one archive per entry ofpublishConfig.variants, each platform variant as<name>-<version>~<tag>.tgz.pnpm pack --variant <target>packs only the archive whose entry lists that target.pnpm pack --jsonprints theintegrityandsizeof every archive it writes.
- New
- New
pnpm peers checknow accepts--global(-g) to check globally installed packages. After a global install or update, the peer dependency warning now suggestspnpm peers check -g#17504. - New
pnpm outdatedandpnpm updatenow inspect and update package manager and runtime versions indevEngines.packageManager,packageManager,devEngines.runtime,engines.runtime, andruntime:dependencies. Withcargo.enabledorpython.enabled,pnpm outdatedandpnpm updatealso inspect and update Cargo dependencies inCargo.tomlandCargo.lockand Python dependencies inpyproject.tomlandpylock.toml. - New
overridesselectors now support:prod,:optional, and:peerpseudo-selectors that target a single dependency group. They also support*wildcard patterns on parent and target package names. An override with a non-range value, such asnpm:orfile:, no longer adds a peer dependency todependencies. Removing an optional dependency with"-"now also removes the duplicate entry fromdependencies#5391. - Fixed
Files that pnpm creates in a project now get the permissions the umask gives any new file, such as
0644. Before, several of them were readable only by the user who ran pnpm, which broke Docker images that run as a different user #17435.
- New
- Fixed
pnpm installno longer hangs on a cold store in a workspace that also installs Cargo crates or a Rust toolchain. - Fixed
pnpm packandpnpm publishnow apply afilesentry that names a file after the glob and directory entries, as npm does. A file excluded by name, such as!dist/index.js, stays out even when a laterdist/**matches it. A file named by its path, such aslib/secret.js, ships even when a later!lib/*.jsmatches it. - Fixed
pnpm installno longer leaves a broken symlink in an injected workspace dependency when the package links to a file outside its published files and pnpm imports by hardlink. Installing a git dependency now skips internal directory symlinks when importing its files into the store. - Fixed
pnpm installnow relinks a command that a workspace project renames into the projects that depend on it whensharedWorkspaceLockfileisfalsepnpm/tasks#224.
- Fixed
10 other lines we could not sort, mostly version bumps
- 12.23.0
Credentials configured for a registry path, such as
//registry.example.com/org-a/npm/:_authToken, are sent only to that path. They were sent to any path on the same host. - 12.23.0
It reads the registry and credentials from the global
auth.ini, wherepnpm loginwrites them, and from the_authsetting of the globalconfig.yaml. - 12.23.0
A
${NPM_TOKEN?}placeholder in.npmrcexpands to the variable. It expanded to an empty value, so the download was sent without credentials. - 12.23.0
It applies
injectWorkspacePackages,dedupeInjectedDeps,ignoredOptionalDependencies, anddependenciesMeta. Projects that use them no longer fail withERR_PNPM_OUTDATED_LOCKFILEorERR_PNPM_LOCKFILE_CONFIG_MISMATCH. - 12.23.0
pnpm install --update-checksumsrefreshes the integrity checksums in the lockfile. - 12.23.0
It enforces
minimumReleaseAgeStrictand adds fallback versions tominimumReleaseAgeExcludewhen strict mode is off. - 12.23.0
It resolves locally when the project declares
file:,link:, or local path dependencies, or whenblockExoticSubdepsisfalse.pnpralso rejects local filesystem dependency specifiers on/-/pnpr/v0/resolve. - 12.23.0
Running with
--ignore-scriptsorignoreScripts: trueuses a separatedlxcache key, keeping cached installs that skipped build scripts separate from normal runs. - 12.23.0
Relative local directory and tarball specifiers such as
./my-cliand./my-cli.tgzresolve against the caller's working directory. - 12.23.0
Explicitly requested tarball URL,
file:, and git URL packages run their build scripts by default unless--ignore-scriptsor a negated--allow-buildselector disables them.
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.