Packages

pnpm

12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed

Upgrading pnpm From 12.8.0 to 12.23.0

23 releases in betweenevery note read

Other targets from 12.8.0Latest12.21.0
  1. 12.8.0yours
  2. 2 releases
  3. 12.9.0security
  4. 1 release
  5. 12.10.0security
  6. 8 releases
  7. 12.15.0security
  8. 12.16.0security
  9. 3 releases
  10. 12.19.0security
  11. 12.20.0security
  12. 1 release
  13. 12.22.0security
  14. 12.23.0target

Before you upgrade

Tick each one off as you go
  • Breaking12.20.0
  • Breaking12.20.0

Security

  • It also carries security fixes: pnpm no longer reads otp from config files, and it sends registry credentials only over HTTPS.

    12.23.0
  • otp is no longer read from any config file. Pass --otp on the command line, or set PNPM_CONFIG_OTP. A pnpm-workspace.yaml or a global config.yaml that carries otp is ignored, with a warning naming those two channels. pnpm config set otp fails with ERR_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 install now rejects local filesystem dependencies (file:, link:, and path-based workspace: specifiers) declared by non-local packages with ERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. Relative file: dependencies inside a package's own archive and local dependencies configured by the workspace through overrides, packageExtensions, or .pnpmfile.cjs continue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots.

    12.23.0
  • pnpm install and pnpm install --frozen-lockfile now enforce blockExoticSubdeps against entries in pnpm-lock.yaml. Before, pnpm accepted a lockfile with git or tarball URL subdependencies and installed those packages even with blockExoticSubdeps: true.

    12.23.0
  • pnpm install with pnprServer now rejects registry-keyed lockfile entries whose resolution uses a non-registry source with ERR_PNPM_RESOLUTION_SHAPE_MISMATCH. The pnpr lockfile verification and resolution endpoints enforce the same check before accepting or caching a lockfile.

    12.23.0
  • pnpm dlx, pnx, and pnpm create now ignore local configuration in the working directory. This covers .pnpmfile.cjs hooks, proxy and TLS settings in the project .npmrc, and execution, layout, and resolution settings in a local pnpm-workspace.yaml, including pnpmfile, globalPnpmfile, configDependencies, scriptShell, cacheDir, storeDir, and ignoreScripts. Settings from the user's global config.yaml, such as blockExoticSubdeps, cacheDir, and storeDir, remain active.

    12.23.0
  • Global commands (--global, -g) no longer load .pnpmfile.cjs, pnpm-workspace.yaml, or .npmrc from the current working directory. pnpm why -g now inspects globally installed packages.

    12.23.0
  • pnpm config get refuses to print protected auth settings. pnpm config list hides TLS private keys and inline proxy credentials. pnpm config set --global tokenHelper writes to auth.ini, and setting a project-level tokenHelper fails.

    12.23.0
  • Matching a glob that repeats a wildcard, such as +(*)z in the workspace packages patterns, no longer hangs on long paths. The bundled picomatch is patched for a security advisory.

    12.23.0

Release by release

  1. 12.23.0

    Security fix22 Nov 202632 new · 132 fixes
    • Security

      It also carries security fixes: pnpm no longer reads otp from config files, and it sends registry credentials only over HTTPS.

    • Security

      otp is no longer read from any config file. Pass --otp on the command line, or set PNPM_CONFIG_OTP. A pnpm-workspace.yaml or a global config.yaml that carries otp is ignored, with a warning naming those two channels. pnpm config set otp fails with ERR_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 install now rejects local filesystem dependencies (file:, link:, and path-based workspace: specifiers) declared by non-local packages with ERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. Relative file: dependencies inside a package's own archive and local dependencies configured by the workspace through overrides, packageExtensions, or .pnpmfile.cjs continue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots.

  2. 12.22.0

    Security fix17 Nov 20265 new · 65 fixes
    • Security

      It also includes a security fix.

    • Security

      pnpm install now 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 the minimumReleaseAge and trustPolicy checks against the new one #18070.

    • Security

      pnpm dlx no longer reuses a cached install made under looser overrides, packageExtensions, minimumReleaseAge, trustPolicy, trustLockfile, or blockExoticSubdeps settings. It also no longer applies overrides, packageExtensions, or blockExoticSubdeps from a local pnpm-workspace.yaml #18075.

    • Security

      pnpm audit now reports advisories whose id is a string. Such advisories were dropped, and pnpm audit reported no known vulnerabilities #18184.

  3. 12.21.0

    13 Nov 20261 new · 20 fixes
    • New

      pnpm store add run in a project now prepares downloaded tarballs for every lockfile entry that pins them. Besides registry packages, pnpm install --offline --frozen-lockfile can then install dependencies on a tarball URL and dependencies on a git host such as GitHub whose lockfile entry records an integrity.

    • Fixed

      Pnpm now reads a lockfile with a mapping key longer than 1,024 characters written as 'key':, without the ? marker. Before, pnpm install and other commands failed on such a lockfile with ERR_PNPM_BROKEN_LOCKFILE.

    • Fixed

      With lockfile.format: v13, pnpm install no longer fails to create or rewrite the lockfile when a package declares many of its dependencies as peers.

    • Fixed

      Fixed pnpm deploy failing with lockfile.format: v13 when injected workspace packages have hashed peer bindings.

  4. 12.20.0

    Security fix12 Nov 20261 new · 15 fixes
    • 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-gyp bundled with pnpm no longer ships undici 6, which security scanners flag for CVE-2026-84947. On Node.js 26, node-gyp downloads through a proxy or with a custom CA file no longer crash with "invalid onError method" #17941.

    • New

      With lockfile.format: v13, pnpm install records the dependency specifiers of local directory packages. Frozen installs reject changed specifiers even when the locked versions still satisfy them.

  5. 12.19.0

    Security fix10 Nov 202612 new · 57 fixes
    • Security

      It also includes a security fix: an offline install error no longer prints registry credentials. pnpm now checks the engines and 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 tree npm fund prints. Use --json for the npm fund --json report and --recursive or --filter to report on workspace projects. pnpm fund <pkg> opens the funding URL of an installed package, and --which picks one when it lists several #7354.

    • New

      With nodeLinker.type: loaded, packages that need a build no longer have to be listed in nodeLinker.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 in sideEffectsCache.exclude if its build must run in every project, such as a git hook installer. pnpm materializes other cache misses, packages with native .node addons, and their dependencies automatically.

  6. 12.18.0

    5 Nov 202619 new · 44 fixes
    • New

      Pnpm now names the link to a dependency's agent skill after the skill alone. A skill that the @acme/kit package ships in skills/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 # pnpm block of each agent skill directory's .gitignore #17455.

    • New

      pnpm approve now asks which agent skills to link when a package ships more than one. pnpm records the chosen skills as a list, such as permissions.<pkg>.skills: [guide, migrate], and does not offer the other skills for approval again. The first time a project approves a skill, pnpm approve also asks which agent directories to link skills into, and records the answer under skills.dirs.

    • New

      Pnpm links agent skills nested in category directories, such as skills/engineering/implement/SKILL.md, up to three levels below skills/. Before, it linked only the skills directly under skills/.

    • New

      pnpm pack packs one archive per entry of publishConfig.variants, each platform variant as <name>-<version>~<tag>.tgz. pnpm pack --variant <target> packs only the archive whose entry lists that target. pnpm pack --json prints the integrity and size of every archive it writes.

  7. 12.17.0

    30 Oct 20263 new · 28 fixes
    • New

      pnpm peers check now accepts --global (-g) to check globally installed packages. After a global install or update, the peer dependency warning now suggests pnpm peers check -g #17504.

    • New

      pnpm outdated and pnpm update now inspect and update package manager and runtime versions in devEngines.packageManager, packageManager, devEngines.runtime, engines.runtime, and runtime: dependencies. With cargo.enabled or python.enabled, pnpm outdated and pnpm update also inspect and update Cargo dependencies in Cargo.toml and Cargo.lock and Python dependencies in pyproject.toml and pylock.toml.

    • New

      overrides selectors now support :prod, :optional, and :peer pseudo-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 as npm: or file:, no longer adds a peer dependency to dependencies. Removing an optional dependency with "-" now also removes the duplicate entry from dependencies #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.

  8. 12.16.1

    27 Oct 20269 fixes
    • Fixed

      pnpm install no longer hangs on a cold store in a workspace that also installs Cargo crates or a Rust toolchain.

    • Fixed

      pnpm pack and pnpm publish now apply a files entry 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 later dist/** matches it. A file named by its path, such as lib/secret.js, ships even when a later !lib/*.js matches it.

    • Fixed

      pnpm install no 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 install now relinks a command that a workspace project renames into the projects that depend on it when sharedWorkspaceLockfile is false pnpm/tasks#224.

10 other lines we could not sort, mostly version bumps
  • 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, where pnpm login writes them, and from the _auth setting of the global config.yaml.

    12.23.0
  • A ${NPM_TOKEN?} placeholder in .npmrc expands to the variable. It expanded to an empty value, so the download was sent without credentials.

    12.23.0
  • It applies injectWorkspacePackages, dedupeInjectedDeps, ignoredOptionalDependencies, and dependenciesMeta. Projects that use them no longer fail with ERR_PNPM_OUTDATED_LOCKFILE or ERR_PNPM_LOCKFILE_CONFIG_MISMATCH.

    12.23.0
  • pnpm install --update-checksums refreshes the integrity checksums in the lockfile.

    12.23.0
  • It enforces minimumReleaseAgeStrict and adds fallback versions to minimumReleaseAgeExclude when strict mode is off.

    12.23.0
  • It resolves locally when the project declares file:, link:, or local path dependencies, or when blockExoticSubdeps is false. pnpr also rejects local filesystem dependency specifiers on /-/pnpr/v0/resolve.

    12.23.0
  • Running with --ignore-scripts or ignoreScripts: true uses a separate dlx cache key, keeping cached installs that skipped build scripts separate from normal runs.

    12.23.0
  • Relative local directory and tarball specifiers such as ./my-cli and ./my-cli.tgz resolve 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-scripts or a negated --allow-build selector disables them.

    12.23.0

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.