Change8

v11.16.0

📦 pnpmView on GitHub →
4 features🐛 1 fixes1 deprecations🔧 7 symbols

Summary

This release introduces automatic changeset generation for dependency updates and enhances the management of GitHub Actions dependencies. It also refactors configuration settings for updates and audits, deprecating older options.

Migration Steps

  1. Update `pnpm-workspace.yaml` to use the new `update` and `audit` sections instead of `updateConfig`, `auditConfig`, and `auditLevel`.

✨ New Features

  • The first release of a package now publishes the version written in its manifest verbatim, instead of bumping off it.
  • Added a `--changeset` flag to `pnpm update` to automatically generate `.md` files for dependency changes.
  • Added GitHub Actions dependencies to `pnpm outdated` and interactive `pnpm update`. Non-interactive updates can include them with `--include-github-actions` or by setting `update.githubActions` to `true` in `pnpm-workspace.yaml`.
  • Added `update` and `audit` settings sections to `pnpm-workspace.yaml`, superseding `updateConfig`, `auditConfig`, and `auditLevel`.

🐛 Bug Fixes

  • Fixed `pnpm add --save-exact`/`--save-prefix` and `pnpm update` writing a package's version with the `peerDependencies` range's prefix (e.g. `^19.2.7` instead of the requested `19.2.7`) whenever the same package also appeared in `peerDependencies`. A real `dependencies`/`devDependencies`/`optionalDependencies` entry now takes precedence over a same-named `peerDependencies` entry when computing the current specifiers [#13108].

Affected Symbols

⚡ Deprecations

  • The `updateConfig`, `auditConfig`, and top-level `auditLevel` settings in `pnpm-workspace.yaml` are deprecated and will be removed in the next major version. Use the new `update` and `audit` sections instead.