Skip to content
verdict:

pnpm 11.28.13

digest

note: no summary for this digest release

Digest releases are listed without a summary. The original release notes for this version are below.

release-notesgithub.com/pnpm/pnpm · 251 lines
  1. pnpm 11.28.13 includes a security fix. After the default or a scoped registry changed, `pnpm install` could skip the `minimumReleaseAge` and `trustPolicy` checks against the new registry. It also fixes `pnpm audit` dropping advisories with string ids, offline installs failing the `minimumReleaseAge` check, and peer and injected-package resolution bugs.
  2. ### Patch Changes
  3. #### Security
  4. * `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](https://github.com/pnpm/pnpm/pull/18070).
  5. * `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](https://github.com/pnpm/pnpm/pull/18075).
  6. `pnpm dlx --allow-build=!<pkg>` now denies build scripts for `<pkg>`, including the executed package itself. Denied packages also skip interactive build approval.
  7. * `pnpm audit` now reports advisories whose `id` is a string. Such advisories were dropped, and `pnpm audit` reported no known vulnerabilities [#18184](https://github.com/pnpm/pnpm/issues/18184).
  8. #### Installs that failed
  9. * Fixed an offline install failing the `minimumReleaseAge` lockfile check with `ERR_PNPM_NO_OFFLINE_META` after an online install resolved the same packages with the same cache directory. The check now reads publish times from the metadata that the resolution cached [#18063](https://github.com/pnpm/pnpm/issues/18063).
  10. * pnpm no longer stalls on a patch file whose `diff --git` line contains a long run of spaces.
  11. * Installing an injected local package no longer fails with a "no such file or directory" error when another process renames or removes files in that package while pnpm lists them. This happened most often on macOS in workspaces with `sharedWorkspaceLockfile: false`, where the install of the package itself writes its lockfile at the same time.
  12. * Fixed `pnpm install --merge-git-branch-lockfiles --frozen-lockfile` failing with `ERR_PNPM_OUTDATED_LOCKFILE` when a project sets or removes `publishConfig.directory`, `publishConfig.linkDirectory`, or `dependenciesMeta`. Lockfile merging now preserves and reconciles `publishDirectory`, `linkDirectory`, and `dependenciesMeta` on importers.
  13. * Tarball URLs that reject HEAD requests with 405 Method Not Allowed now fall back to a GET request during resolution.
  14. #### Resolving and linking dependencies
  15. * With `autoInstallPeers`, an optional peer is no longer bound to a version outside its range that only another dependency's subtree brings in. Before, adding an unrelated dependency could flip that binding and rewrite the peer suffixes of other projects in the lockfile [#18162](https://github.com/pnpm/pnpm/issues/18162).
  16. * `pnpm install` now updates a peer that it auto-installs for a local `file:` dependency when the peer's `catalog:` entry changes. Before, the old peer version stayed locked.
  17. * `pnpm install` resolves the `link:` and bare relative path dependencies of an injected workspace package from that package's directory. They were resolved from the lockfile directory, so the installed link could point outside the workspace. Frozen installs now accept such dependencies [pnpm/tasks#274](https://github.com/pnpm/tasks/issues/274).
  18. * When multiple `overrides` selectors match a dependency, pnpm now picks the selector with the narrower version range regardless of the order in which the overrides are declared [#18071](https://github.com/pnpm/pnpm/pull/18071).
  19. * Patches that add lines to the end of a file without a final newline now install the whole file. pnpm dropped the last added line when the patch also marked it with `\ No newline at end of file` [#18156](https://github.com/pnpm/pnpm/issues/18156).
  20. * Project `engines.node` checks now use the Node.js runtime that pnpm links for the dependency groups being installed. If the lockfile records that runtime, the check uses its resolved version. Production installs ignore a runtime declared only in `devEngines.runtime` [pnpm/tasks#302](https://github.com/pnpm/tasks/issues/302).
  21. #### Scripts and builds
  22. * `pnpm --if-present start`, `pnpm run --if-present start`, and `pnpm restart --if-present` now exit with code 0 when a project has neither a `start` script nor a `server.js` file [#18073](https://github.com/pnpm/pnpm/pull/18073).
  23. * `pnpm approve-builds` without package arguments or `--all` now fails with `ERR_PNPM_APPROVE_BUILDS_NON_INTERACTIVE` when packages are awaiting approval in CI or without an interactive terminal. `pnpm dlx` and global installs also skip automatic build-approval prompts in CI, leaving pending builds unapproved.
  24. #### Workspaces and lockfiles
  25. * Combining `--filter` and `--filter-prod` with exclusion selectors such as `!pkg` now evaluates all selectors together in command-line order. An exclusion passed on one flag while inclusions were passed on the other no longer selects every workspace project.
  26. * `pnpm -r fetch` now fetches each selected project's lockfile when `sharedWorkspaceLockfile` is `false`. Use `--filter` to limit which projects are fetched [#18152](https://github.com/pnpm/pnpm/issues/18152).
  27. * `pnpm peers` in workspaces with `sharedWorkspaceLockfile: false` now checks each selected project's `pnpm-lock.yaml`.
  28. * `pnpm ci` now validates that `pnpm-lock.yaml` exists and matches `package.json` before removing `node_modules`. `pnpm clean` and `pnpm ci` now honor `--filter`, `--filter-prod`, and `--workspace-root`. `pnpm clean` and `pnpm ci` also clean root `node_modules` in workspaces without a root `package.json`. `pnpm clean --lockfile` now removes per-project lockfiles and lockfiles inside a custom `lockfileDir`.
  29. * `pnpm clean`, `pnpm purge`, and `pnpm ci` keep files outside the project untouched when `modulesDir` points outside the project root. When `node_modules` is a symlink, `pnpm` now unlinks the symlink without modifying its target [#18072](https://github.com/pnpm/pnpm/pull/18072).
  30. * `pnpm import` now preserves locked versions for `npm:` aliased dependencies when importing from `package-lock.json`, `npm-shrinkwrap.json`, or `yarn.lock`. `pnpm import` also parses Yarn Classic `yarn.lock` files that reference `__metadata` package names without treating them as Yarn Berry lockfiles.
  31. #### Updating, packing, and publishing
  32. * Fixed GitHub Actions support in `pnpm update` and `pnpm outdated`. Updating a workflow step with a major or minor version comment such as `# v4` or a prose comment now formats the updated version comment cleanly. Negated action selectors such as `!actions/cache/save` now exclude only the targeted subpath actions. Passing only negated action selectors still updates packages. Previously, negated action selectors skipped package updates. `pnpm outdated` now reports every distinct outdated version when several workflows pin the same action at different versions.
  33. * `pnpm update -g --latest` now upgrades global runtimes (`node`, `deno`, and `bun`) and `npm:`-aliased global packages across major versions.
  34. * `pnpm update --changeset` now generates a changeset when a `.changeset` directory exists or `versioning` is configured in `pnpm-workspace.yaml`, without requiring `.changeset/config.json`. It also respects `versioning.ignore` alongside `.changeset/config.json`.
  35. * `pnpm version -r` now runs each bumped package's `preversion`, `version`, and `postversion` scripts unless `--ignore-scripts` or `--dry-run` is set. `pnpm version -r --dry-run --json` now prints the planned releases as a JSON array.
  36. * `pnpm lane <lane> --filter <selector>` now rejects partial moves of a `versioning.fixed` group with `ERR_PNPM_VERSIONING_CONFLICTING_CONFIG` before writing `pnpm-workspace.yaml`.
  37. * `pnpm pack` now accepts `--ignore-pnpmfile` and `--ignore-scripts`, and `pnpm publish` accepts `--ignore-pnpmfile`. With these flags, a package can be packed without running the project's pnpmfile or lifecycle scripts [#18132](https://github.com/pnpm/pnpm/issues/18132).
  38. * `pnpm pack` and `pnpm publish` in a workspace now keep the workspace's ignore rules when a package's `.npmignore` is removed while pnpm lists the package's files.
  39. * `pnpm -r pack --out` now expands `%s` and `%v` placeholders only in the `--out` template. Literal `%s` and `%v` segments in the working directory path stay unchanged.
  40. * `pnpm -C <dir> publish <tarball|folder>` and `pnpm --dir <dir> publish <tarball|folder>` now resolve relative tarball and directory arguments against `<dir>`. Git checks during `pnpm publish` also inspect the target directory.
  41. #### Other commands and settings
  42. * `updateConfig` and `afterAllResolved` hooks in `.pnpmfile.cjs` that return `undefined`, `null`, or a non-object value now fail with `ERR_PNPM_CONFIG_IS_UNDEFINED` and `ERR_PNPM_BAD_AFTER_ALL_RESOLVED_RETURN`.
  43. * `pnpm list --parseable --long` now keeps `<name>@` on `link:` and `file:` dependencies whose path or peer suffix contains `@`, such as `link:../@scope/pkg`. Aliased scoped `file:` dependencies whose path contains `@` also keep `<name>@` in `pnpm list`.
  44. * `pnpm why` no longer merges distinct local `file:` directory dependencies that share the same package name across projects with dedicated lockfiles (`sharedWorkspaceLockfile: false`).
  45. * `pnpm pkg` now reads and writes the project manifest as written on disk. `pnpm pkg get` no longer reports synthetic `runtime:` dependency entries from `devEngines.runtime` or `engines.runtime`. `pnpm pkg set` and `pnpm pkg delete` now preserve `devEngines.runtime`, `engines.runtime`, and empty dependency objects set with `--json`.
  46. * `pnpm pm` now works after CLI flags such as `--dir` and after `pnpm with current`. `pnpm with current` also accepts subcommand boolean flags such as `pnpm --bare with current init` ahead of `with`.
  47. * `pnpm env` commands (`use`, `list`, and `remove`) now accept Node.js version specifiers with a leading `v`, including prerelease versions such as `v22.0.0-rc.1`.
  48. * `pnpm doctor` now checks write access for the cache, store, and global bin directories before they have been created. Previously, `pnpm doctor` reported `no write access` on fresh environments.
  49. `pnpm doctor` now probes whether reflinks or hardlinks work from the store into the project's link target and warns when neither does.
  50. #### Output and error messages
  51. * `pnpm install` with `nodeLinker: hoisted` no longer counts missing packages as removed. This fixes inflated removal counts for skipped optional dependencies [#18178](https://github.com/pnpm/pnpm/issues/18178).
  52. * `pnpm outdated --json` and `pnpm outdated --format=json` now write reporter warnings to `stderr`. Warnings previously appeared on `stdout` before the JSON output.
  53. * pnpm now reports `globalPackagesConfig` in the global `config.yaml` as a setting of a newer pnpm version. It no longer suggests a similarly named setting.
  54. * `pnpm` warns when an `updateConfig` hook changes `registries` and some routes still use their configured registry. The warning names those routes and points to `registriesByScope`.
  55. * `pnpm cat-file` now reports `ERR_PNPM_INVALID_HASH` when given an empty, malformed, or truncated digest such as `sha512-`.
  56. <!-- sponsors -->
  57. ## Platinum Sponsors
  58. <table>
  59. <tbody>
  60. <tr>
  61. <td align="center" valign="middle">
  62. <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>
  63. </td>
  64. <td align="center" valign="middle">
  65. <a href="https://openai.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  66. <picture>
  67. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/openai_dark.svg" />
  68. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/openai_light.svg" />
  69. <img src="https://pnpm.io/img/users/openai_dark.svg" width="160" alt="OpenAI" />
  70. </picture>
  71. </a>
  72. </td>
  73. <td align="center" valign="middle">
  74. <a href="https://notion.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  75. <picture>
  76. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/notion.svg" />
  77. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/notion_light.svg" />
  78. <img src="https://pnpm.io/img/users/notion.svg" width="80" alt="Notion" />
  79. </picture>
  80. </a>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td align="center" valign="middle">
  85. <a href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  86. <picture>
  87. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/coderabbit.svg" />
  88. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/coderabbit_light.svg" />
  89. <img src="https://pnpm.io/img/users/coderabbit.svg" width="220" alt="CodeRabbit" />
  90. </picture>
  91. </a>
  92. </td>
  93. <td align="center" valign="middle">
  94. <a href="https://www.cloudflare.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  95. <picture>
  96. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/cloudflare.svg" />
  97. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/cloudflare_light.svg" />
  98. <img src="https://pnpm.io/img/users/cloudflare.svg" width="160" alt="Cloudflare" />
  99. </picture>
  100. </a>
  101. </td>
  102. </tr>
  103. </tbody>
  104. </table>
  105. ## Gold Sponsors
  106. <table>
  107. <tbody>
  108. <tr>
  109. <td align="center" valign="middle">
  110. <a href="https://sanity.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  111. <picture>
  112. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/sanity.svg" />
  113. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/sanity_light.svg" />
  114. <img src="https://pnpm.io/img/users/sanity.svg" width="120" alt="Sanity" />
  115. </picture>
  116. </a>
  117. </td>
  118. <td align="center" valign="middle">
  119. <a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  120. <picture>
  121. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/discord.svg" />
  122. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/discord_light.svg" />
  123. <img src="https://pnpm.io/img/users/discord.svg" width="220" alt="Discord" />
  124. </picture>
  125. </a>
  126. </td>
  127. <td align="center" valign="middle">
  128. <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>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td align="center" valign="middle">
  133. <a href="https://serpapi.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/serpapi_dark.svg" />
  136. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/serpapi_light.svg" />
  137. <img src="https://pnpm.io/img/users/serpapi_dark.svg" width="160" alt="SerpApi" />
  138. </picture>
  139. </a>
  140. </td>
  141. <td align="center" valign="middle">
  142. <a href="https://stackblitz.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  143. <picture>
  144. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/stackblitz.svg" />
  145. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/stackblitz_light.svg" />
  146. <img src="https://pnpm.io/img/users/stackblitz.svg" width="190" alt="Stackblitz" />
  147. </picture>
  148. </a>
  149. </td>
  150. <td align="center" valign="middle">
  151. <a href="https://workleap.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  152. <picture>
  153. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/workleap.svg" />
  154. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/workleap_light.svg" />
  155. <img src="https://pnpm.io/img/users/workleap.svg" width="190" alt="Workleap" />
  156. </picture>
  157. </a>
  158. </td>
  159. </tr>
  160. <tr>
  161. <td align="center" valign="middle">
  162. <a href="https://nx.dev/?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/nx.svg" />
  165. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/nx_light.svg" />
  166. <img src="https://pnpm.io/img/users/nx.svg" width="50" alt="Nx" />
  167. </picture>
  168. </a>
  169. </td>
  170. <td align="center" valign="middle">
  171. <a href="https://latitude.so/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  172. <picture>
  173. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/latitude.svg" />
  174. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/latitude_light.svg" />
  175. <img src="https://pnpm.io/img/users/latitude.svg" width="160" alt="Latitude" />
  176. </picture>
  177. </a>
  178. </td>
  179. <td align="center" valign="middle">
  180. <a href="https://syntax.fm/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  181. <picture>
  182. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/syntaxfm.svg" />
  183. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/syntaxfm_light.svg" />
  184. <img src="https://pnpm.io/img/users/syntaxfm.svg" width="90" alt="Syntax" />
  185. </picture>
  186. </a>
  187. </td>
  188. </tr>
  189. </tbody>
  190. </table>
  191. <!-- sponsors end -->

view on githubdetected 2026-11-19 via npm