Ir al contenido
verdict:

pnpm 11.0.0-rc.2

preview

note: la síntesis y las notas de la versión están en inglés

note: sin síntesis para esta release más antigua

Sintetizamos las releases recientes. Las notas de la versión originales de esta versión están aquí abajo.

release-notesgithub.com/pnpm/pnpm · 144 líneas
  1. ## Major Changes
  2. * **Breaking:** removed the `managePackageManagerVersions`, `packageManagerStrict`, and `packageManagerStrictVersion` settings. They existed only to derive the `onFail` behavior for the legacy `packageManager` field, and the `pmOnFail` setting introduced alongside `pnpm with` subsumes all three — it directly sets the `onFail` behavior of both `packageManager` and `devEngines.packageManager`. The `COREPACK_ENABLE_STRICT` environment variable is no longer honored (it only gated `packageManagerStrict`); use `pmOnFail` instead.
  3. Migration:
  4. | Removed setting | Replace with |
  5. | ------------------------------------- | ------------------------------ |
  6. | `managePackageManagerVersions: true` | `pmOnFail: download` (default) |
  7. | `managePackageManagerVersions: false` | `pmOnFail: ignore` |
  8. | `packageManagerStrict: false` | `pmOnFail: warn` |
  9. | `packageManagerStrictVersion: true` | `pmOnFail: error` |
  10. | `COREPACK_ENABLE_STRICT=0` | `pmOnFail: warn` |
  11. ## Minor Changes
  12. * `pnpm dlx` and `pnpm create` now respect security and trust policy settings (`minimumReleaseAge`, `minimumReleaseAgeExclude`, `minimumReleaseAgeStrict`, `trustPolicy`, `trustPolicyExclude`, `trustPolicyIgnoreAfter`) from project-level configuration [#11183](https://github.com/pnpm/pnpm/issues/11183).
  13. * Implemented native `star`, `unstar`, `stars`, and `whoami` commands.
  14. * Add `pnpm with <version|current> <args...>` command. Runs pnpm at a specific version (or the currently active one) for a single invocation, bypassing the project's `packageManager` and `devEngines.packageManager` pins. Uses the same install mechanism as `pnpm self-update`, caching the downloaded pnpm in the global virtual store for reuse.
  15. Examples:
  16. ```
  17. pnpm with current install # ignore the pinned version, use the running pnpm
  18. pnpm with 11.0.0-rc.1 install # install using pnpm 11.0.0-rc.1
  19. pnpm with next install # install using the "next" dist-tag
  20. ```
  21. Also adds a new `pmOnFail` setting that overrides the `onFail` behavior of `packageManager` and `devEngines.packageManager`. Accepted values: `download`, `error`, `warn`, `ignore`. Can be set via CLI flag, env var, `pnpm-workspace.yaml`, or `.npmrc` — useful when version management is handled by an external tool (asdf, mise, Volta, etc.) and the project wants pnpm itself to skip the check.
  22. ```
  23. pnpm install --pm-on-fail=ignore # direct CLI flag
  24. pnpm_config_pm_on_fail=ignore pnpm install # env var
  25. # or in pnpm-workspace.yaml:
  26. # pmOnFail: ignore
  27. ```
  28. * `pnpm init` now writes a `devEngines.packageManager` field instead of the `packageManager` field when `init-package-manager` is enabled.
  29. * When pnpm is declared via the `packageManager` field in `package.json`, its resolution info is no longer written to `pnpm-lock.yaml` — unless the pinned pnpm version is v12 or newer. The `packageManagerDependencies` section is still populated (and reused across runs) when pnpm is declared via `devEngines.packageManager`. This makes the transition from pnpm v10 to v11 quieter by avoiding unnecessary lockfile churn for projects that pin an older pnpm in the legacy `packageManager` field.
  30. * Added a new setting `runtimeOnFail` that overrides the `onFail` field of `devEngines.runtime` (and `engines.runtime`) in the root project's `package.json`. Accepted values: `ignore`, `warn`, `error`, `download`. For example, setting `runtimeOnFail=download` makes pnpm download the declared runtime version even when the manifest does not set `onFail: "download"`.
  31. ## Patch Changes
  32. * `pnpm init` no longer adds the `devEngines.packageManager` field when run inside a workspace subpackage. The field is only added to the workspace root's `package.json`.
  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"><img src="https://pnpm.io/img/users/bit.svg" width="80" alt="Bit"></a>
  40. </td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. ## Gold Sponsors
  45. <table>
  46. <tbody>
  47. <tr>
  48. <td align="center" valign="middle">
  49. <a href="https://sanity.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
  50. <picture>
  51. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/sanity.svg" />
  52. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/sanity_light.svg" />
  53. <img src="https://pnpm.io/img/users/sanity.svg" width="120" alt="Sanity" />
  54. </picture>
  55. </a>
  56. </td>
  57. <td align="center" valign="middle">
  58. <a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
  59. <picture>
  60. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/discord.svg" />
  61. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/discord_light.svg" />
  62. <img src="https://pnpm.io/img/users/discord.svg" width="220" alt="Discord" />
  63. </picture>
  64. </a>
  65. </td>
  66. <td align="center" valign="middle">
  67. <a href="https://vite.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank"><img src="https://pnpm.io/img/users/vitejs.svg" width="42" alt="Vite"></a>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td align="center" valign="middle">
  72. <a href="https://serpapi.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
  73. <picture>
  74. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/serpapi_dark.svg" />
  75. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/serpapi_light.svg" />
  76. <img src="https://pnpm.io/img/users/serpapi_dark.svg" width="160" alt="SerpApi" />
  77. </picture>
  78. </a>
  79. </td>
  80. <td align="center" valign="middle">
  81. <a href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
  82. <picture>
  83. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/coderabbit.svg" />
  84. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/coderabbit_light.svg" />
  85. <img src="https://pnpm.io/img/users/coderabbit.svg" width="220" alt="CodeRabbit" />
  86. </picture>
  87. </a>
  88. </td>
  89. <td align="center" valign="middle">
  90. <a href="https://stackblitz.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
  91. <picture>
  92. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/stackblitz.svg" />
  93. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/stackblitz_light.svg" />
  94. <img src="https://pnpm.io/img/users/stackblitz.svg" width="190" alt="Stackblitz" />
  95. </picture>
  96. </a>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td align="center" valign="middle">
  101. <a href="https://workleap.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
  102. <picture>
  103. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/workleap.svg" />
  104. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/workleap_light.svg" />
  105. <img src="https://pnpm.io/img/users/workleap.svg" width="190" alt="Workleap" />
  106. </picture>
  107. </a>
  108. </td>
  109. <td align="center" valign="middle">
  110. <a href="https://nx.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
  111. <picture>
  112. <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/nx.svg" />
  113. <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/nx_light.svg" />
  114. <img src="https://pnpm.io/img/users/nx.svg" width="50" alt="Nx" />
  115. </picture>
  116. </a>
  117. </td>
  118. </tr>
  119. </tbody>
  120. </table>
  121. <!-- sponsors end -->

ver en githubimported 2026-09-28 vía npm