Skip to content
verdict:

pnpm 12.26.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 · 215 lines
  1. This release installs command-line tools such as jq and the GitHub CLI from their publishers' releases. It also adds separate `supportedArchitectures` lists for lockfile coverage and local downloads, and adds `sideEffectsCache.key` for builds that target other runtimes. The release carries security fixes. Scripts now run with an absolute `/bin/sh`, and `pnpm view` strips control characters from registry metadata.
  2. ### Minor Changes
  3. - pnpm can install command-line tools such as jq, ripgrep, and the GitHub CLI from the archives their publishers release. `pnpm add gh@aqua:cli/cli` adds `"gh": "aqua:cli/cli@^2.106.0"` to `devDependencies`, and `pnpm install` links the tool's commands into `node_modules/.bin`. The tool's name is its name in the [aqua registry](https://github.com/aquaproj/aqua-registry).
  4. `pnpm-lock.yaml` records the download and its checksum for every platform the tool publishes. When GitHub reports no checksum for a file, pnpm downloads it to compute the checksum. Use `supportedArchitectures.required` to fail resolution when a tool lacks a download for a listed platform.
  5. A tool can only be listed in the `devDependencies` of a project. `pnx aqua:cli/cli` runs one without adding it.
  6. A named registry can no longer be called `aqua`.
  7. - `supportedArchitectures` accepts separate lists for the lockfile and the local install. `supportedArchitectures.resolve` selects the platforms the lockfile covers, and `supportedArchitectures.fetch` selects the platforms whose downloads pnpm installs locally. Changing only `fetch` works with a frozen lockfile.
  8. - Added `sideEffectsCache.key`. It tells pnpm what the dependency builds of a project depend on, so builds made for different targets get their own side-effects cache entries in one store. `key.env` lists environment variables whose values pnpm hashes into the key, such as the `npm_config_runtime` that Electron projects set or the `NIX_CC` of a Nix shell. `key.excludeNodeVersion: true` leaves the Node.js major out of the key, for builds that target another runtime.
  9. - `minimumReleaseAgeExclude`, `trustPolicyExclude`, and `sideEffectsCache.exclude` now accept scoped name patterns with exact versions. For example, `@myorg/tool-*@1.2.3` exempts matching packages only at version `1.2.3`. Versioned patterns require a scope without wildcards [#18609](https://github.com/pnpm/pnpm/issues/18609).
  10. ### Patch Changes
  11. #### Security
  12. - Scripts now run with `/bin/sh` by default outside Windows, or `/system/bin/sh` on Android. A dependency that ships a bin named `sh` can no longer replace the shell that runs other packages' lifecycle scripts.
  13. - pnpm now ends a package tarball at two zero blocks that have a block npm cannot read as a header between them. Before, pnpm installed the files after that point, which npm does not install.
  14. - `pnpm view` now strips control characters and invisible formatting characters from registry metadata before printing it. In the summary and when several fields are selected, line breaks and tabs inside a value become spaces. `--json` output is unchanged.
  15. #### Installing packages
  16. - Fixed installs failing when a package tarball contains a binary extended file attribute [#18607](https://github.com/pnpm/pnpm/issues/18607).
  17. - Fixed native addon builds failing when the bundled node-gyp downloads Node.js headers [#18596](https://github.com/pnpm/pnpm/issues/18596).
  18. - `pnpm install` now reports `ERR_PNPM_MISSING_PACKAGE_NAME` when a `file:` directory, a git repository, or a tarball URL that a project depends on has a `package.json` without a `name`. The install failed before with an internal error about a dependency path that "keys no lockfile entry". A workspace project without a `name` now fails the same way when another project injects it or depends on it through `file:`. pnpm linked such a project under `dedupeInjectedDeps`, which is on by default.
  19. #### Switching pnpm versions
  20. - Fixed pinned pnpm installations failing or missing their cache when a project sets options such as `engineStrict`, `optional`, `ignoredOptionalDependencies`, `virtualStoreOnly`, `enableModulesDir`, `symlink`, or `sideEffectsCache.exclude`. Pinned pnpm installs now ignore unrelated project settings and reuse the cached installation across runs [pnpm/tasks#67](https://github.com/pnpm/tasks/issues/67).
  21. - Fixed `pnpm self-update` and package manager version switching failing when an unused registry has an unsupported client certificate. Requests that follow redirects with a single HTTP client now reject a redirect that requires different TLS settings [#18583](https://github.com/pnpm/pnpm/issues/18583).
  22. #### Workspaces and the lockfile
  23. - Filtered installs now apply catalog and override changes to registry dependencies of projects missing from disk. If an override requires information from a missing project's manifest, pnpm asks you to check out that project. A frozen install rejects a lockfile when a project records a dependency version that disagrees with its catalog entry [#18579](https://github.com/pnpm/pnpm/issues/18579).
  24. - `pnpm remove` and `pnpm link` now preserve lockfile entries for workspace projects missing from disk. `pnpm remove` also applies workspace filters supplied by the `updateConfig` hook [#18579](https://github.com/pnpm/pnpm/issues/18579).
  25. - `pnpm install`, `pnpm update`, and `pnpm outdated` now respect `minimumReleaseAge` when selecting a Node.js version for `devEngines.runtime` [#18599](https://github.com/pnpm/pnpm/issues/18599).
  26. - Pruning unused catalog entries now preserves comments following pruned entries [#18574](https://github.com/pnpm/pnpm/issues/18574).
  27. - pnpm now reads lockfile entries that spell a tool's version with `tool:`, such as `node@tool:22.0.0`, the same as the `runtime:` spelling. pnpm still writes `runtime:`.
  28. #### The side-effects cache
  29. - A `sideEffectsCache` object in `PNPM_CONFIG_SIDE_EFFECTS_CACHE` or in the result of an `updateConfig` hook that leaves out `read` or `write` now keeps the current value of that setting. Before, such an object turned a disabled side-effects cache back on.
  30. - `pnpm store status` now applies the `updateConfig` hooks of the pnpmfile, so it checks the global virtual store slots that `pnpm install` created when a hook changes `sideEffectsCache.exclude`.
  31. #### Commands
  32. - `pnpm patch-commit` now supports text-file and mode-only changes in WebContainers. Both package snapshots together can contain up to 64 MiB of file contents. A changed text file can contain up to 100,000 lines. A generated diff can contain up to 128 MiB. Binary content changes, symbolic links, and unsupported file names return an error [pnpm/tasks#63](https://github.com/pnpm/tasks/issues/63).
  33. - `pnpm config delete` now removes a field named by a dotted key, such as `pnpm config delete globalPackagesConfig.virtualStoreType`, from `config.yaml` and `pnpm-workspace.yaml`. Deleting a field that is not present succeeds without changing the file.
  34. - `pnpm pack` and `pnpm publish` no longer zero-pad brace range values because the step has a leading zero. In `files`, `.npmignore`, and `.gitignore`, `part{1..10..02}.js` now matches `part1.js` and `part3.js`, as in Bash.
  35. #### Windows
  36. - The commands of a crate installed with `pnpm add -g crate:<name>` are now executables. They were `.cmd` scripts, which Cargo cannot run as a subcommand and rustc cannot run as a linker. `pnpm update -g` replaces the scripts of an existing install.
  37. - A variable listed in the `env` of a `pnpm pipeline` task now matches an `extraEnv` entry spelled in another case, as it does in the task's own environment.
  38. <!-- sponsors -->
  39. ## Platinum Sponsors
  40. <table>
  41. <tbody>
  42. <tr>
  43. <td align="center" valign="middle">
  44. <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>
  45. </td>
  46. <td align="center" valign="middle">
  47. <a href="https://openai.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  48. <picture>
  49. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/openai_dark.svg" />
  50. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/openai_light.svg" />
  51. <img src="https://pnpm.io/img/users/openai_dark.svg" width="160" alt="OpenAI" />
  52. </picture>
  53. </a>
  54. </td>
  55. <td align="center" valign="middle">
  56. <a href="https://notion.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  57. <picture>
  58. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/notion.svg" />
  59. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/notion_light.svg" />
  60. <img src="https://pnpm.io/img/users/notion.svg" width="80" alt="Notion" />
  61. </picture>
  62. </a>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td align="center" valign="middle">
  67. <a href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  68. <picture>
  69. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/coderabbit.svg" />
  70. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/coderabbit_light.svg" />
  71. <img src="https://pnpm.io/img/users/coderabbit.svg" width="220" alt="CodeRabbit" />
  72. </picture>
  73. </a>
  74. </td>
  75. <td align="center" valign="middle">
  76. <a href="https://www.cloudflare.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  77. <picture>
  78. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/cloudflare.svg" />
  79. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/cloudflare_light.svg" />
  80. <img src="https://pnpm.io/img/users/cloudflare.svg" width="160" alt="Cloudflare" />
  81. </picture>
  82. </a>
  83. </td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. ## Gold Sponsors
  88. <table>
  89. <tbody>
  90. <tr>
  91. <td align="center" valign="middle">
  92. <a href="https://sanity.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  93. <picture>
  94. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/sanity.svg" />
  95. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/sanity_light.svg" />
  96. <img src="https://pnpm.io/img/users/sanity.svg" width="120" alt="Sanity" />
  97. </picture>
  98. </a>
  99. </td>
  100. <td align="center" valign="middle">
  101. <a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  102. <picture>
  103. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/discord.svg" />
  104. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/discord_light.svg" />
  105. <img src="https://pnpm.io/img/users/discord.svg" width="220" alt="Discord" />
  106. </picture>
  107. </a>
  108. </td>
  109. <td align="center" valign="middle">
  110. <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>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td align="center" valign="middle">
  115. <a href="https://serpapi.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  116. <picture>
  117. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/serpapi_dark.svg" />
  118. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/serpapi_light.svg" />
  119. <img src="https://pnpm.io/img/users/serpapi_dark.svg" width="160" alt="SerpApi" />
  120. </picture>
  121. </a>
  122. </td>
  123. <td align="center" valign="middle">
  124. <a href="https://stackblitz.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  125. <picture>
  126. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/stackblitz.svg" />
  127. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/stackblitz_light.svg" />
  128. <img src="https://pnpm.io/img/users/stackblitz.svg" width="190" alt="Stackblitz" />
  129. </picture>
  130. </a>
  131. </td>
  132. <td align="center" valign="middle">
  133. <a href="https://workleap.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  134. <picture>
  135. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/workleap.svg" />
  136. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/workleap_light.svg" />
  137. <img src="https://pnpm.io/img/users/workleap.svg" width="190" alt="Workleap" />
  138. </picture>
  139. </a>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td align="center" valign="middle">
  144. <a href="https://nx.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  145. <picture>
  146. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/nx.svg" />
  147. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/nx_light.svg" />
  148. <img src="https://pnpm.io/img/users/nx.svg" width="50" alt="Nx" />
  149. </picture>
  150. </a>
  151. </td>
  152. <td align="center" valign="middle">
  153. <a href="https://latitude.so/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  154. <picture>
  155. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/latitude.svg" />
  156. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/latitude_light.svg" />
  157. <img src="https://pnpm.io/img/users/latitude.svg" width="160" alt="Latitude" />
  158. </picture>
  159. </a>
  160. </td>
  161. <td align="center" valign="middle">
  162. <a href="https://syntax.fm/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  163. <picture>
  164. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/syntaxfm.svg" />
  165. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/syntaxfm_light.svg" />
  166. <img src="https://pnpm.io/img/users/syntaxfm.svg" width="90" alt="Syntax" />
  167. </picture>
  168. </a>
  169. </td>
  170. </tr>
  171. </tbody>
  172. </table>
  173. <!-- sponsors end -->

view on githubdetected 2026-12-04 via npm