Vai al contenuto
verdict:

pnpm 11.28.11

digest

note: la sintesi e le note di rilascio sono in inglese

note: nessuna sintesi per questa release digest

Le release digest sono elencate senza una sintesi. Le note di rilascio originali di questa versione sono qui sotto.

release-notesgithub.com/pnpm/pnpm · 193 righe
  1. pnpm 11.28.11 fixes frozen installs with `excludeLinksFromLockfile`, `pnpm link` in workspaces, `pnpm deploy` with dangling symlinks, and `verifyDepsBeforeRun` starting needless installs.
  2. ### Patch Changes
  3. #### Installing packages
  4. * `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](https://github.com/pnpm/pnpm/issues/17571).
  5. * A package with `bundledDependencies` and a build script now keeps its bundled dependencies when it is restored from the side-effects cache [#17523](https://github.com/pnpm/pnpm/issues/17523).
  6. * `pnpm install` now links the runtime that an earlier `pnpm install --no-runtime` skipped [#17542](https://github.com/pnpm/pnpm/issues/17542).
  7. * 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](https://github.com/pnpm/pnpm/issues/17586).
  8. * Generated POSIX shell shims now quote their paths, so shell special characters in a path stay literal.
  9. * A repeat `pnpm install` now rewrites the bin shims after `extendNodePath` changes. Before, it reported "Already up to date" and the shims kept the `NODE_PATH` of the previous setting.
  10. #### Lockfile and resolution
  11. * `pnpm install --frozen-lockfile` now accepts the lockfile it wrote with `excludeLinksFromLockfile` and `linkWorkspacePackages` on, when a project depends on a workspace package through a plain version range or a `catalog:` entry. It used to fail with `ERR_PNPM_OUTDATED_LOCKFILE`.
  12. * `pnpm install --frozen-lockfile`, `pnpm approve-builds`, and `pnpm rebuild` now accept a lockfile that resolves a `*` dependency to a prerelease `latest` version. pnpm wrote such a lockfile and then reported it as outdated [#17594](https://github.com/pnpm/pnpm/issues/17594).
  13. * Packages from the default registry keep plain lockfile keys, even when a prefix such as `npmjs` points at the registry set as `registry`. A dependency written with such a prefix shares the plain entry of the same package. The next install rewrites keys that earlier versions qualified this way [#17575](https://github.com/pnpm/pnpm/issues/17575).
  14. * Relative local paths in root `overrides` now resolve from the workspace root when each project has its own lockfile [#17691](https://github.com/pnpm/pnpm/issues/17691).
  15. Installing a local directory dependency no longer fails when another project's install is writing a lockfile in that directory.
  16. * Peer deduplication no longer gives a project different copies of a dependency across direct and transitive paths when an optional peer has no provider [#17666](https://github.com/pnpm/pnpm/issues/17666).
  17. * A Node.js version range such as `>=26.13`, for example in `devEngines.runtime`, now resolves to the newest stable release that satisfies it. pnpm picks a prerelease only when no stable release matches [#17516](https://github.com/pnpm/pnpm/issues/17516).
  18. #### verifyDepsBeforeRun
  19. * With `verifyDepsBeforeRun`, `pnpm run` and `pnpm exec` now report dependencies as out of date after a dependency is added to the `package.json` of a local directory dependency, such as `"lib": "file:../lib"`. Before, the command ran without the new dependency installed.
  20. * `verifyDepsBeforeRun` no longer reports dependencies as out of sync when only the `version` field of a single-project repository changed [#17560](https://github.com/pnpm/pnpm/issues/17560). The same holds for a workspace project that no dependency can resolve to. A script run after such a change no longer starts an install first.
  21. #### pnpm link
  22. * In a workspace, `pnpm link <dir>` now adds the `link:` dependency to the `package.json` of the project where the command runs, not to the workspace root's `package.json`. The link is created in that project's `node_modules`, as documented. The override is still written to the root `pnpm-workspace.yaml`.
  23. * `pnpm link` with several paths now records every linked package in the `overrides` of `pnpm-workspace.yaml`. Some of them could be missing before.
  24. * `pnpm link` now fails without changing `package.json` or `pnpm-workspace.yaml` when the linked package's name is not a valid npm package name. It used to write that name to both files, which made every later install fail [#17475](https://github.com/pnpm/pnpm/issues/17475).
  25. #### pnpm update
  26. * `pnpm update` with only negated selectors, such as `pnpm update '!foo'`, now leaves the dependencies listed in `update.ignoreDeps` unchanged [pnpm/tasks#243](https://github.com/pnpm/tasks/issues/243).
  27. * `pnpm update --depth 0` without selectors now does nothing when every direct dependency is listed in `update.ignoreDeps`. Before, it failed with `ERR_PNPM_NO_PACKAGE_IN_DEPENDENCIES` [pnpm/tasks#251](https://github.com/pnpm/tasks/issues/251).
  28. #### Store and self-update
  29. * `pnpm store prune` now keeps packages linked from a configured modules directory [pnpm/tasks#230](https://github.com/pnpm/tasks/issues/230).
  30. * `pnpm store status` no longer reports untouched packages as modified when the global virtual store is enabled. If the installed global-store layout cannot be verified, the command reports `ERR_PNPM_STORE_STATUS_UNVERIFIABLE` and asks for a reinstall [#17631](https://github.com/pnpm/pnpm/issues/17631).
  31. * `pnpm store add` now fails right away with `ERR_PNPM_FROZEN_STORE_WRITE` when `frozenStore` is enabled. It used to retry each download for minutes before failing, or fail with a SQLite error on an empty store.
  32. * `pnpm self-update` now reinstalls a cached engine if its executable cannot run. This repairs shared store entries damaged by an earlier install [#17582](https://github.com/pnpm/pnpm/issues/17582).
  33. <!-- sponsors -->
  34. ## Platinum Sponsors
  35. <table>
  36. <tbody>
  37. <tr>
  38. <td align="center" valign="middle">
  39. <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>
  40. </td>
  41. <td align="center" valign="middle">
  42. <a href="https://openai.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  43. <picture>
  44. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/openai_dark.svg" />
  45. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/openai_light.svg" />
  46. <img src="https://pnpm.io/img/users/openai_dark.svg" width="160" alt="OpenAI" />
  47. </picture>
  48. </a>
  49. </td>
  50. <td align="center" valign="middle">
  51. <a href="https://notion.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"><img src="https://pnpm.io/img/users/notion.svg" width="80" alt="Notion"></a>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td align="center" valign="middle">
  56. <a href="https://coderabbit.ai/?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/coderabbit.svg" />
  59. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/coderabbit_light.svg" />
  60. <img src="https://pnpm.io/img/users/coderabbit.svg" width="220" alt="CodeRabbit" />
  61. </picture>
  62. </a>
  63. </td>
  64. <td align="center" valign="middle">
  65. <a href="https://www.cloudflare.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/cloudflare.svg" />
  68. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/cloudflare_light.svg" />
  69. <img src="https://pnpm.io/img/users/cloudflare.svg" width="160" alt="Cloudflare" />
  70. </picture>
  71. </a>
  72. </td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. ## Gold Sponsors
  77. <table>
  78. <tbody>
  79. <tr>
  80. <td align="center" valign="middle">
  81. <a href="https://sanity.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  82. <picture>
  83. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/sanity.svg" />
  84. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/sanity_light.svg" />
  85. <img src="https://pnpm.io/img/users/sanity.svg" width="120" alt="Sanity" />
  86. </picture>
  87. </a>
  88. </td>
  89. <td align="center" valign="middle">
  90. <a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  91. <picture>
  92. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/discord.svg" />
  93. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/discord_light.svg" />
  94. <img src="https://pnpm.io/img/users/discord.svg" width="220" alt="Discord" />
  95. </picture>
  96. </a>
  97. </td>
  98. <td align="center" valign="middle">
  99. <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>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td align="center" valign="middle">
  104. <a href="https://serpapi.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  105. <picture>
  106. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/serpapi_dark.svg" />
  107. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/serpapi_light.svg" />
  108. <img src="https://pnpm.io/img/users/serpapi_dark.svg" width="160" alt="SerpApi" />
  109. </picture>
  110. </a>
  111. </td>
  112. <td align="center" valign="middle">
  113. <a href="https://stackblitz.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer">
  114. <picture>
  115. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/stackblitz.svg" />
  116. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/stackblitz_light.svg" />
  117. <img src="https://pnpm.io/img/users/stackblitz.svg" width="190" alt="Stackblitz" />
  118. </picture>
  119. </a>
  120. </td>
  121. <td align="center" valign="middle">
  122. <a href="https://workleap.com/?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/workleap.svg" />
  125. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/workleap_light.svg" />
  126. <img src="https://pnpm.io/img/users/workleap.svg" width="190" alt="Workleap" />
  127. </picture>
  128. </a>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td align="center" valign="middle">
  133. <a href="https://nx.dev/?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/nx.svg" />
  136. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/nx_light.svg" />
  137. <img src="https://pnpm.io/img/users/nx.svg" width="50" alt="Nx" />
  138. </picture>
  139. </a>
  140. </td>
  141. <td align="center" valign="middle">
  142. <a href="https://latitude.so/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"><img src="https://pnpm.io/img/users/latitude.svg" width="160" alt="Latitude"></a>
  143. </td>
  144. <td align="center" valign="middle">
  145. <a href="https://syntax.fm/?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/syntaxfm.svg" />
  148. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/syntaxfm_light.svg" />
  149. <img src="https://pnpm.io/img/users/syntaxfm.svg" width="90" alt="Syntax" />
  150. </picture>
  151. </a>
  152. </td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. <!-- sponsors end -->

vedi su githubdetected 2026-11-05 via npm