Skip to content
verdict:

pnpm 12.25.0

notable

pending: summary queued

Detected 2026-12-04 at 05:55 UTC. The summary is written on the next update; the full release notes are already below.

release-notesgithub.com/pnpm/pnpm · 275 lines
  1. This release lets `pnpm add -g crate:<name>` and `pnx crate:<name>` build and run Rust crates, lets `pnpm pack` take package specs, and adds dotted keys to `pnpm config set`. `pnpm patch-commit` now records changes to binary files. The release carries security fixes. pnpm now refuses a tarball, git, or directory dependency whose `package.json` has an invalid `name`. On Unix, it opens store lock files relative to a verified directory handle.
  2. ### Minor Changes
  3. - `pnpm add -g crate:<name>` builds the executables of a crate and links them into the global bin directory, such as `pnpm add -g crate:ripgrep@14`. `pnpm list -g` lists the crate as `crate:<name>`. `pnpm update -g` and `pnpm remove -g` take the same selector.
  4. A crate installed globally can run with a rustup that pnpm installs for it. `pnpm add -g crate:cargo-dylint,rustup` downloads rustup into the store and runs the commands of the crate with it. That rustup keeps its toolchains in the store and leaves `~/.rustup` alone. `rustup@<version>` names a rustup version.
  5. - `pnx crate:<name>` runs an executable of a crate, such as `pnx crate:ripgrep@14 --version`. pnpm downloads the crate and its dependencies into the store and builds them offline with a Rust toolchain from the store. `--package=crate:<name>` names the crate when the command is one of its other executables. A Package URL such as `pkg:cargo/ripgrep@14.1.1` names a crate too.
  6. - `pnpm pack` now accepts package specs, like `npm pack <spec>`. It packs a registry package (`pnpm pack foo@1.0.0`), a git repository (`pnpm pack github:user/repo`), a tarball URL (`pnpm pack https://pkg.pr.new/vite@24234`), a local directory, or a local tarball file. pnpm verifies a registry download against the integrity declared in the registry metadata.
  7. - `pnpm config set` accepts dotted keys to update individual fields in YAML settings. For example, `pnpm config set -g globalPackagesConfig.virtualStoreType project` keeps the other settings for global packages.
  8. - `pnpm view node` now reads the Node.js release index, the same source `pnpm add node` installs from. `pnpm view node versions` lists Node.js releases, and `pnpm view node@22 npm` shows the npm version bundled with the newest Node.js 22 release. Use `node@npm:node` to view the npm package named `node`.
  9. - Added `pnpm runtime unset` for removing runtimes installed by `pnpm runtime set`.
  10. - `pnpm update --latest` now moves the Rust release pinned in `rust-toolchain.toml` to the newest release of its channel when `cargo.enabled` is `true`. `1.95.0` becomes the newest stable version, and `nightly-2026-01-01` the newest nightly. `pnpm outdated` lists the pinned release as `rust` when a newer one is out. Pass `rust` to select only the toolchain, or `!rust` to leave it out.
  11. - On a machine without rustup, the Rust shims that `pnpm shim add rust` and `pnpm add -g rust` create now run the release that a `+<toolchain>` argument or `RUSTUP_TOOLCHAIN` names, such as `cargo +nightly build`. pnpm installs the release into the store first. A `RUSTUP_TOOLCHAIN` that is the path of a toolchain directory runs the tool from that directory.
  12. - The `hoistingLimits` value that stops hoisting at each workspace project is now `projects`. The old name, `workspaces`, still works.
  13. - `pnpm add -g` and `pnpm update -g` now include pending agent skills in the interactive approval prompt.
  14. ### Patch Changes
  15. #### Security
  16. - pnpm now refuses to install a tarball, git, or directory dependency whose `package.json` has an invalid `name`, and fails with `ERR_PNPM_INVALID_DEPENDENCY_NAME`. A name such as `esbuild@0.20.0(` could make the package pass for a registry package in the lockfile and in `allowBuilds`.
  17. Resolution now fails when two packages with different resolutions would share one `packages` entry of the lockfile.
  18. - Fixed two URL dependencies that could share a virtual store directory. A URL with `(` or `)` could match one with `_`, and so could a URL dependency with peers. A URL ending in what looks like a hash suffix could match another URL's hashed directory name. Such dependencies now get a hash suffix on their directory name.
  19. - pnpm now rejects a `jsr:` specifier whose scope or package name contains an underscore. Before, `jsr:@a_/b` and `jsr:@a/_b` both resolved to the npm package `@jsr/a___b`.
  20. - On Unix, pnpm now opens store lock files relative to a verified directory handle [#18509](https://github.com/pnpm/pnpm/issues/18509).
  21. - When pnpm resolves a runtime from its `SHASUMS256.txt` file, it now skips a file whose hash is not 64 hex digits. It used to write an empty or wrong integrity for that file to the lockfile.
  22. #### Installing packages
  23. - `pnpm install` no longer crashes with `nodeLinker: hoisted` and `hoistingLimits: projects` when a project depends on a package in a dependency cycle, such as `eslint` or `browserslist`.
  24. - Fixed installs failing in shared Unix projects when another user owns a package executable that the current user can already run [#18491](https://github.com/pnpm/pnpm/issues/18491).
  25. - pnpm now trusts the certificate authorities listed with `ca[]=` in `.npmrc`, the array form the `ca` setting documents. They were ignored, so requests to a registry with a private certificate authority failed with `invalid peer certificate: UnknownIssuer`.
  26. `pnpm config get ca` and `pnpm config list` now show every certificate authority set with `ca=` or `ca[]=` lines in `.npmrc`. Several certificate authorities are printed as a JSON array, and a single one is still printed as a string. They showed only the last one.
  27. - pnpm now reads more malformed package tarballs the way npm does, and installs the same files from them. Among them are a tar that continues into a second gzip member, a header whose checksum runs into its type field, and a header after a single zero block. pnpm also ignores data after the end-of-archive marker, as npm does.
  28. - Fixed bin shims in the global virtual store retaining the first checkout's path when projects share a store through a relative path or symlink.
  29. - Interrupting pnpm with `Ctrl+C` no longer leaves a temporary file next to a file pnpm was starting to write, such as the lockfile [#1418](https://github.com/pnpm/pnpm/issues/1418).
  30. - On macOS, `pnpm install` now runs `xattr` only for native binaries that carry the quarantine attribute [#18469](https://github.com/pnpm/pnpm/issues/18469).
  31. #### `package.yaml` and `package.json5` manifests
  32. - `pnpm install --frozen-lockfile` no longer fails with `ERR_PNPM_OUTDATED_LOCKFILE` when a project depends on a workspace project whose manifest is `package.yaml` or `package.json5`. It failed when the install was filtered with `--filter`, or when `sharedWorkspaceLockfile` was `false`.
  33. - `pnpm install` now reads a `package.yaml` or `package.json5` manifest for a `file:` directory dependency. It does the same for an injected workspace project declared by path, such as `workspace:../lib`. The dependencies of such a package were not installed. `pnpm install --frozen-lockfile` then rejected the lockfile that `pnpm install` had written.
  34. For such a `file:` directory, `pnpm install` also copies only the files that the `files` field selects, and it no longer skips the install scripts of the directory.
  35. - `pnpm install` now links the bins of a workspace project, or of a `link:` or `file:` directory dependency, whose manifest is `package.yaml` or `package.json5`.
  36. - `pnpm install` with `nodeLinker: loaded` no longer fails when the manifest of a workspace project is `package.yaml` or `package.json5`.
  37. - `pnpm deploy` with `--legacy` or `forceLegacyDeploy` now deploys a project whose manifest is `package.yaml` or `package.json5`. It failed with `ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND`.
  38. - A peer dependency that the workspace root provides through a `link:` dependency now resolves to the linked package's version when that package's manifest is `package.yaml` or `package.json5`. pnpm resolved it to the newest matching version from the registry.
  39. #### Resolving dependencies and the lockfile
  40. - Fixed `pnpm update <name>@<version>` replacing a catalog reference in `package.json` in manual catalog mode. The update now moves the referenced catalog entry to the requested version or range [#18547](https://github.com/pnpm/pnpm/issues/18547).
  41. - `catalog.unused: prune` no longer removes default catalog entries that a project or an override references as `catalog:default`, the long form of `catalog:`. It also keeps entries referenced with whitespace around the catalog name, such as `catalog: default`.
  42. - Running `pnpm add` or `pnpm update` on a single project now preserves shared lockfile entries for projects missing from a sparse checkout [#18465](https://github.com/pnpm/pnpm/issues/18465).
  43. - `pnpm install` drops an optional peer when you remove its last provider. `pnpm dedupe` and `pnpm install --fix-lockfile` also remove stale optional peer bindings from existing lockfiles [#18482](https://github.com/pnpm/pnpm/issues/18482).
  44. - `pnpm fetch --filter` now fetches only the packages of the selected projects when the workspace uses a shared lockfile [#16441](https://github.com/orgs/pnpm/discussions/16441).
  45. - pnpm now installs the Rust toolchain of a `rust-toolchain.toml` whose `channel` ends in the host of the machine, such as `1.95.0-x86_64-unknown-linux-gnu`. Such a file was left to rustup.
  46. #### Building and patching dependencies
  47. - A package's lifecycle scripts now always run after those of the dependencies it reaches. They could run at the same time when the dependency was reached only through a package without scripts that another dependency had reached first.
  48. - `pnpm patch-commit` now records changes to binary files, and `patchedDependencies` patches that change binary files apply byte for byte. Before, binary files were written to the patch as mangled text diffs.
  49. - Fixed `pnpm rebuild <pkg>` leaving an approved Git dependency unprepared after `pnpm install --ignore-scripts` [#18551](https://github.com/pnpm/pnpm/issues/18551).
  50. - `pnpm rebuild <pkg>` and `pnpm approve-builds <pkg>` now keep the build output of unselected `file:` directory dependencies under both isolated and hoisted node linkers.
  51. #### Checking dependencies before a run
  52. - `pnpm run` and `pnpm exec` now treat a missing lockfile as dependencies that are not up to date when `verifyDepsBeforeRun` is enabled. The `install` action restores the lockfile before running the command, and the `error` action refuses to run [pnpm/tasks#219](https://github.com/pnpm/tasks/issues/219).
  53. - Fixed `verifyDepsBeforeRun` reporting an unchanged `file:` directory dependency as out of date when installed under an alias [#18560](https://github.com/pnpm/pnpm/issues/18560).
  54. - Fixed `verifyDepsBeforeRun` incorrectly reporting stale dependencies after an install pruned unused entries from `minimumReleaseAgeExclude` or `trustPolicyExclude` [#18498](https://github.com/pnpm/pnpm/issues/18498).
  55. - Fixed filtered dependency checks accepting packages installed from a previous registry after a frozen install. Exclusion pruning now preserves negated name patterns and patterns containing `?`.
  56. #### The store
  57. - `pnpm store prune` now removes global virtual store packages after every project that used them is deleted. It also removes the Python environments that no project uses and the Cargo crates that no Cargo workspace links.
  58. An install that uses the global virtual store now fails if it cannot register the project in the store.
  59. - `pnpm store add <directory>` now adds a tarball that is a symlink to a file outside the directory, such as the links a Nix `linkFarm` creates. It used to skip such a tarball without a warning. A directory with no tarballs now fails with `ERR_PNPM_STORE_ADD_NO_TARBALLS`, which names the directory.
  60. - pnpm now accepts tarballs with unambiguous multiline package metadata from older npm releases. When `pnpm store add` fails to fetch or extract a tarball, the warning identifies the archive [#18479](https://github.com/pnpm/pnpm/issues/18479).
  61. - pnpm no longer aborts on a corrupt entry in the store index. An entry whose damage makes it claim more data than it holds now fails like any other unreadable entry.
  62. #### Commands and output
  63. - Fixed `pnpm install` reporting an error from `pnpm add` when an unknown option precedes a separate value [#18494](https://github.com/pnpm/pnpm/issues/18494).
  64. - An `include` error about the override policy now names `overrides.unused`. pnpm named the older `warnUnusedOverrides` setting.
  65. - `pnpm sbom` now lists components, SPDX packages, and SPDX relationships in the same order on every run for the same lockfile. The order varied between runs before.
  66. - `pnpm audit deprecations` now lists the deprecated versions of a package that share a deprecation message in one block, with the message shown once. Long dependency chains in `pnpm audit deprecations` and `pnpm audit engines` now show only the direct dependency and the two packages closest to the reported one.
  67. - `pnpm docs`, `pnpm home`, and `pnpm repo` now print the URL before opening it in the browser [#18516](https://github.com/pnpm/pnpm/issues/18516).
  68. <!-- sponsors -->
  69. ## Platinum Sponsors
  70. <table>
  71. <tbody>
  72. <tr>
  73. <td align="center" valign="middle">
  74. <a href="https://bit.cloud/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"><img src="https://pnpm.io/img/users/bit.svg" width="80" alt="Bit"></a>
  75. </td>
  76. <td align="center" valign="middle">
  77. <a href="https://openai.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  78. <picture>
  79. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/openai_dark.svg" />
  80. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/openai_light.svg" />
  81. <img src="https://pnpm.io/img/users/openai_dark.svg" width="160" alt="OpenAI" />
  82. </picture>
  83. </a>
  84. </td>
  85. <td align="center" valign="middle">
  86. <a href="https://notion.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  87. <picture>
  88. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/notion.svg" />
  89. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/notion_light.svg" />
  90. <img src="https://pnpm.io/img/users/notion.svg" width="80" alt="Notion" />
  91. </picture>
  92. </a>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td align="center" valign="middle">
  97. <a href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  98. <picture>
  99. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/coderabbit.svg" />
  100. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/coderabbit_light.svg" />
  101. <img src="https://pnpm.io/img/users/coderabbit.svg" width="220" alt="CodeRabbit" />
  102. </picture>
  103. </a>
  104. </td>
  105. <td align="center" valign="middle">
  106. <a href="https://www.cloudflare.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  107. <picture>
  108. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/cloudflare.svg" />
  109. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/cloudflare_light.svg" />
  110. <img src="https://pnpm.io/img/users/cloudflare.svg" width="160" alt="Cloudflare" />
  111. </picture>
  112. </a>
  113. </td>
  114. </tr>
  115. </tbody>
  116. </table>
  117. ## Gold Sponsors
  118. <table>
  119. <tbody>
  120. <tr>
  121. <td align="center" valign="middle">
  122. <a href="https://sanity.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  123. <picture>
  124. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/sanity.svg" />
  125. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/sanity_light.svg" />
  126. <img src="https://pnpm.io/img/users/sanity.svg" width="120" alt="Sanity" />
  127. </picture>
  128. </a>
  129. </td>
  130. <td align="center" valign="middle">
  131. <a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  132. <picture>
  133. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/discord.svg" />
  134. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/discord_light.svg" />
  135. <img src="https://pnpm.io/img/users/discord.svg" width="220" alt="Discord" />
  136. </picture>
  137. </a>
  138. </td>
  139. <td align="center" valign="middle">
  140. <a href="https://vite.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"><img src="https://pnpm.io/img/users/vitejs.svg" width="42" alt="Vite"></a>
  141. </td>
  142. </tr>
  143. <tr>
  144. <td align="center" valign="middle">
  145. <a href="https://serpapi.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  146. <picture>
  147. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/serpapi_dark.svg" />
  148. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/serpapi_light.svg" />
  149. <img src="https://pnpm.io/img/users/serpapi_dark.svg" width="160" alt="SerpApi" />
  150. </picture>
  151. </a>
  152. </td>
  153. <td align="center" valign="middle">
  154. <a href="https://stackblitz.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  155. <picture>
  156. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/stackblitz.svg" />
  157. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/stackblitz_light.svg" />
  158. <img src="https://pnpm.io/img/users/stackblitz.svg" width="190" alt="Stackblitz" />
  159. </picture>
  160. </a>
  161. </td>
  162. <td align="center" valign="middle">
  163. <a href="https://workleap.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  164. <picture>
  165. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/workleap.svg" />
  166. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/workleap_light.svg" />
  167. <img src="https://pnpm.io/img/users/workleap.svg" width="190" alt="Workleap" />
  168. </picture>
  169. </a>
  170. </td>
  171. </tr>
  172. <tr>
  173. <td align="center" valign="middle">
  174. <a href="https://nx.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  175. <picture>
  176. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/nx.svg" />
  177. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/nx_light.svg" />
  178. <img src="https://pnpm.io/img/users/nx.svg" width="50" alt="Nx" />
  179. </picture>
  180. </a>
  181. </td>
  182. <td align="center" valign="middle">
  183. <a href="https://latitude.so/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  184. <picture>
  185. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/latitude.svg" />
  186. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/latitude_light.svg" />
  187. <img src="https://pnpm.io/img/users/latitude.svg" width="160" alt="Latitude" />
  188. </picture>
  189. </a>
  190. </td>
  191. <td align="center" valign="middle">
  192. <a href="https://syntax.fm/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  193. <picture>
  194. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/syntaxfm.svg" />
  195. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/syntaxfm_light.svg" />
  196. <img src="https://pnpm.io/img/users/syntaxfm.svg" width="90" alt="Syntax" />
  197. </picture>
  198. </a>
  199. </td>
  200. </tr>
  201. </tbody>
  202. </table>
  203. <!-- sponsors end -->

view on githubdetected 2026-12-04 via npm