Packages

pnpm

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

Upgrading pnpm From 11.28.1 to 11.29.0

13 releases in betweenevery note read

Other targets from 11.28.1Latest12.21.0
  1. 11.28.1yours
  2. 1 release
  3. 11.28.3security
  4. 1 release
  5. 11.28.5security
  6. 11.28.6security
  7. 11.28.7security
  8. 1 release
  9. 11.28.9security
  10. 2 releases
  11. 11.28.12security
  12. 11.28.13security
  13. 11.29.0target

Before you upgrade

Tick each one off as you go
  • Breaking11.28.12

Security

  • This release carries several security fixes.

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

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

    11.29.0
  • Tarball downloads send registry credentials only over HTTPS or loopback HTTP. 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.

    11.29.0
  • Tarball URL preflight requests use the configured credentials and fetch retry settings.

    11.29.0
  • TLS file paths in .npmrc and auth.ini resolve relative to the file that declares them. Project .npmrc files skip TLS file paths containing environment variables.

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

    11.29.0
  • pnpm approve-builds now requires the exact selector shown by pnpm ignored-builds for a dependency a bare package name cannot identify (a file:, git, or tarball artifact). A bare package name only approves a plain registry version #18237.

    11.29.0
  • pnpm pack and pnpm publish now reject publishConfig.directory values that use an absolute path or .. segments outside the package directory.

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

    11.29.0

Release by release

  1. 11.29.0

    Security fix22 Nov 20262 new · 70 fixes
    • Security

      This release carries several security fixes.

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

    • Security

      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.

    • Security

      Tarball downloads send registry credentials only over HTTPS or loopback HTTP. 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.

  2. 11.28.13

    Security fix17 Nov 202640 fixes
    • Security

      pnpm 11.28.13 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 now keys its cache on active overrides, packageExtensions, minimumReleaseAge, trustPolicy, trustLockfile, and blockExoticSubdeps settings. Cached installs created under looser settings are no longer reused when stricter policies apply #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. 11.28.12

    Security fix13 Nov 20261 new · 57 fixes
    • Security

      It also includes a security fix.

    • Security

      A ${VAR} placeholder in a registry URL in pnpm-workspace.yaml or the project .npmrc now fails the command. pnpm does not expand environment variables in these files. Before, pnpm ignored such a URL and resolved packages from another registry, such as npmjs.org. pnpm now warns when it ignores a placeholder in a proxy, pnprServer, or userAgent setting in pnpm-workspace.yaml #17762.

    • Security

      Remote resolution and shared build caches 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. Upgrade the pnpr server before upgrading pnpm.

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

  4. 11.28.11

    5 Nov 202623 fixes
    • Fixed

      pnpm deploy now keeps a symlink in the project whose target is missing from the source, such as a link into a node_modules directory that was removed after the build. Deploy used to fail with ENOENT on such a link #17571.

    • Fixed

      A package with bundledDependencies and a build script now keeps its bundled dependencies when it is restored from the side-effects cache #17523.

    • Fixed

      pnpm install now links the runtime that an earlier pnpm install --no-runtime skipped #17542.

    • Fixed

      Commands of a package whose bin paths contain excess parent directory segments, such as ../dist/cli.js, are no longer missing. Such paths now resolve inside the package #17586.

  5. 11.28.10

    30 Oct 202620 fixes
    • Fixed

      pnpm store prune preserves other stores and global package data when cacheDir points to their parent directory.

    • Fixed

      Commands installed with pnpm add --global now find the dependencies that pnpm hoists for their package. A package that loads a dependency it does not declare, such as a native addon's platform-specific package, failed with "Cannot find module". Reinstall such a package with pnpm add --global to update its existing command #17503.

    • Fixed

      pnpm prune --prod no longer fails with ERR_PNPM_EXDEV when node_modules was copied from an earlier Docker build stage #17424.

    • Fixed

      pnpm install now retries a Node.js runtime zip download when the connection drops partway through. A download that still fails names its URL. Before, a single dropped connection ended the install with terminated #17411.

  6. 11.28.9

    Security fix27 Oct 20264 new · 25 fixes
    • Security

      This release fixes a crash on registry responses with too many content encodings (GHSA-xjj6-f33q-929c) and sizes the install worker pool by the container's CPU quota.

    • Security

      A registry response with too many content encodings can no longer crash pnpm. pnpm now uses undici 7.30.1, which fixes GHSA-xjj6-f33q-929c.

    • Security

      pnpm install now sizes its worker pool by the CPU quota of the container it runs in, such as a Kubernetes CPU limit, when that quota is smaller than the number of CPUs the container may run on. The default workspaceConcurrency respects the quota the same way. On a CI runner with a 4-CPU quota and hundreds of host CPUs, pnpm started hundreds of workers and ran out of memory #17382.

    • New

      Added the pnpr value to the serverType registry setting. pnpm leaves the tarball URLs of a pnpr registry out of pnpm-lock.yaml.

  7. 11.28.8

    22 Oct 20261 fix
    • Fixed

      The standalone @pnpm/exe builds now embed Node.js 26.12.1. The previously embedded Node.js 26.0.0 still trusted the certificate authority intermediates that Node.js distrusted in October 2026, so a standalone pnpm accepted TLS certificates issued under them.

  8. 11.28.7

    Security fix21 Oct 202649 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

      Pnpm now applies trustPolicy to the pnpm version a project pins in packageManager or devEngines.packageManager. A pinned version whose trust evidence was downgraded fails the command before pnpm switches to it or records it in the lockfile #16319.

    • Security

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

    • Security

      Added the maxTarballUnpackedSize setting. pnpm install fails with ERR_PNPM_TARBALL_TOO_LARGE when the files of one package unpack to more than this many bytes, 4 GiB by default pnpm/tasks#81.

11 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

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