Packages

pnpm

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

Upgrading pnpm From 10.34.8 to 12.21.0

102 releases in betweenevery note read

Other targets from 10.34.8Newest 10.x10.34.9
  1. 10.34.8yours
  2. 1 release
  3. 11.0.0security
  4. 18 releases
  5. 11.5.0security
  6. 3 releases
  7. 11.6.0security
  8. 1 release
  9. 11.8.0security
  10. 2 releases
  11. 11.11.0security
  12. 10 releases
  13. 11.20.0security
  14. 6 releases
  15. 11.27.0security
  16. 1 release
  17. 11.28.0security
  18. 2 releases
  19. 11.28.3security
  20. 1 release
  21. 11.28.5security
  22. 11.28.6security
  23. 11.28.7security
  24. 1 release
  25. 11.28.9security
  26. 2 releases
  27. 11.28.12security
  28. 11.28.13security
  29. 11.29.0security
  30. 12.0.0major
  31. 10 releases
  32. 12.4.2security
  33. 2 releases
  34. 12.6.0security
  35. 12.7.0security
  36. 3 releases
  37. 12.9.0security
  38. 1 release
  39. 12.10.0security
  40. 8 releases
  41. 12.15.0security
  42. 12.16.0security
  43. 3 releases
  44. 12.19.0security
  45. 12.20.0security
  46. 12.21.0target
  47. 60 pre

Start here

Before you upgrade

Tick each one off as you go
  • Breaking12.20.0
  • Breaking12.20.0
  • Breaking12.0.0
  • Breaking12.0.0
  • Breaking12.0.0
  • Breaking12.0.0
  • Breaking12.0.0
  • Breaking12.0.0
  • Breaking11.28.1
  • Breaking11.22.0

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.

    12.20.0
  • 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.

    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.

    12.19.0
  • It also fixes two security issues, in zstd decompression and in signing.

    12.16.0
  • Fixed memory exposure and allocation handling vulnerabilities when processing zstd-compressed data #17388.

    12.16.0
  • Signing in pnpm and pnpr no longer uses arithmetic that may leak the private key through timing. This covers shared artifacts, OCI registry tokens, and OIDC login state advisory.

    12.16.0
  • Pnpm now fails with ERR_PNPM_REGISTRY_NAME_MISMATCH if a registry returns metadata for a package other than the one requested. Before, pnpm installed the package under the name in the metadata, so allowBuilds rules for the requested package did not apply to it.

    12.15.0
  • minimumReleaseAgeExcludePrune and trustPolicyExcludePrune now keep exclusions for resolved configuration dependencies and their transitive dependencies #17142.

    12.15.0
  • It also carries several security fixes, including one that stops a dependency version from writing files outside the global virtual store.

    12.10.0
  • pnpm install now prevents dependency versions with path traversal from writing files outside the global virtual store.

    12.10.0

Release by release

  1. 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.

  2. 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.

  3. 12.19.0

    Security fix10 Nov 202612 new · 56 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.

  4. 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.

  5. 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.

  6. 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.

  7. 12.16.0

    Security fix26 Oct 202612 new · 61 fixes
    • Security

      It also fixes two security issues, in zstd decompression and in signing.

    • Security

      Fixed memory exposure and allocation handling vulnerabilities when processing zstd-compressed data #17388.

    • Security

      Signing in pnpm and pnpr no longer uses arithmetic that may leak the private key through timing. This covers shared artifacts, OCI registry tokens, and OIDC login state advisory.

    • New

      Added a repeatable global --env-file <path> flag to load environment variables from dotenv-style files before running a command. Later files override earlier files, variables already in the environment are preserved, and loaded variables are visible to user-level .npmrc interpolation and lifecycle scripts #7111.

  8. 12.15.0

    Security fix21 Oct 202614 new · 60 fixes
    • Security

      Pnpm now fails with ERR_PNPM_REGISTRY_NAME_MISMATCH if a registry returns metadata for a package other than the one requested. Before, pnpm installed the package under the name in the metadata, so allowBuilds rules for the requested package did not apply to it.

    • Security

      minimumReleaseAgeExcludePrune and trustPolicyExcludePrune now keep exclusions for resolved configuration dependencies and their transitive dependencies #17142.

    • New

      pnpm-workspace.yaml can now delegate settings to other YAML files and to config dependencies through a new include field. Each source may define only the settings the root manifest delegates to it. Every setting has one owner. Commands that change settings write each one to the file that owns it. A relative path in an included file is relative to that file. See Splitting Settings Across Files.

    • New

      Added the lockfile.integrityTarget setting. With integrityTarget: tar, pnpm-lock.yaml pins the hash of every package's uncompressed tar, so the lockfile no longer changes when a registry recompresses its tarballs or serves them as tars. pnpm learns a version's tar hash from the store or by downloading it once. pnpm audit signatures ties the tar hash to the signed .tgz integrity.

27 other lines we could not sort, mostly version bumps
  • pnpm ignores local .pnpmfile.cjs hooks and project .npmrc proxy or TLS settings in the working directory.

    11.29.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.

    11.29.0
  • Relative local directory and tarball specifiers such as ./my-cli and ./my-cli.tgz resolve against the caller's working directory.

    11.29.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.

    11.29.0
  • pnpm add, pnpm install, and pnpm import, for dependencies, peer dependencies, and file: dependencies that point to a directory named constructor.

    11.28.3
  • Catalog entries and catalog names. Pruning unused entries crashed, and a new catalog named toString was not written.

    11.28.3
  • Workspace projects, project directories, and files inside injected packages.

    11.28.3
  • Registry prefixes and override version references such as $toString.

    11.28.3
  • Hoisting, pnpm list, and pnpm why.

    11.28.3
  • Command names. pnpm constructor runs the constructor script like any other unknown command, and pnpm help constructor no longer crashes.

    11.28.3

9 internal lines (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.