PNpM CLI
Minor Changes
-
A new value
rollingfor optionsave-workspace-protocol. When selected, pnpm will save workspace versions using a rolling alias (e.g."foo": "workspace:^") instead of pinning the current version number (e.g."foo": "workspace:^1.0.0"). Usage example, in the root of your workspace, create a.npmrcwith the following content:save-workspace-protocol=rolling
Patch Changes
pnpm remove <pkg>should not fail in a workspace that has patches #4954- The hash of the patch file should be the same on both Windows and POSIX #4961.
pnpm env useshould throw an error on a system that use the MUSL libc.
Our Gold Sponsors
<table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://bit.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <img src="https://raw.githubusercontent.com/pnpm/pnpm.github.io/main/static/img/users/bit.svg" width="80"> </a> </td> <td align="center" valign="middle"> <a href="https://nhost.io/?utm_source=pnpm&utm_medium=release_notes#gh-light-mode-only" target="_blank"> <img src="https://raw.githubusercontent.com/pnpm/pnpm.github.io/main/static/img/users/nhost.svg" width="180"> </a> </td> <td align="center" valign="middle"> <a href="https://novu.co/?utm_source=pnpm&utm_medium=release_notes#gh-light-mode-only" target="_blank"> <img src="https://raw.githubusercontent.com/pnpm/pnpm.github.io/main/static/img/users/novu.svg" width="180"> </a> </td> </tr> </tbody> </table>
Our Silver Sponsors
<table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://prisma.io/?utm_source=pnpm&utm_medium=release_notes#gh-light-mode-only" target="_blank"> <img src="https://raw.githubusercontent.com/pnpm/pnpm.github.io/main/static/img/users/prisma.svg" width="180"> </a> </td> <td align="center" valign="middle"> <a href="https://leniolabs.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <img src="https://raw.githubusercontent.com/pnpm/pnpm.github.io/main/static/img/users/leniolabs.jpg" width="80"> </a> </td> <td align="center" valign="middle"> <a href="https://vercel.com/?utm_source=pnpm&utm_medium=release_notes#gh-light-mode-only" target="_blank"> <img src="https://raw.githubusercontent.com/pnpm/pnpm.github.io/main/static/img/users/vercel.svg" width="180"> </a> </td> <td align="center" valign="middle"> <a href="https://www.takeshape.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <img src="https://raw.githubusercontent.com/pnpm/pnpm.github.io/main/static/img/users/takeshape.svg" width="280"> </a> </td> </tr> </tbody> </table>
What's Changed
- fix(env): throw an error on a system that uses MUSL libc by @zkochan in https://github.com/pnpm/pnpm/pull/4958
- feat: use workspace spec alias by default in pnpm add by @javier-garcia-meteologica in https://github.com/pnpm/pnpm/pull/4947
- fix(patch): the hash of the patch file should be the same on both Windows and POSIX by @zkochan in https://github.com/pnpm/pnpm/pull/4969
Full Changelog: https://github.com/pnpm/pnpm/compare/v7.4.1...v7.5.0