Packages

pnpm

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

Upgrading pnpm From 12.19.0 to 12.21.0

2 releases in betweenevery note read

Other targets from 12.19.0Newest 12.x12.23.0
  1. 12.19.0yours
  2. 12.20.0security
  3. 12.21.0target

Before you upgrade

Tick each one off as you go
  • Breaking12.20.0
  • Breaking12.20.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

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.

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.