pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 8.15.9 to 9.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 16
- changes to make
- 0
- advisories fixed
- 9
- new
- 5
- fixes
Before you upgrade
Tick each one off as you go- Breaking9.0.0
- Breaking9.0.0
- Breaking9.0.0
- Breaking9.0.0
- Breaking9.0.0
- Breaking9.0.0-alpha.0
- Breaking9.0.0-alpha.0
- Breaking9.0.0-alpha.0
- Breaking9.0.0-alpha.0
- Breaking9.0.0-alpha.0
Security
26 advisories still affect 9.0.0
- pnpm vulnerable to Command Injection via environment variable substitutionhigh · GHSA-2phv-j68v-wwqx
- pnpm: Repository config can expand victim environment secrets into registry requests before scripts runmoderate · GHSA-3qhv-2rgh-x77r
- pnpm: Reserved bin name deletes PNPM_HOME during global removemoderate · GHSA-4gxm-v5v7-fqc4
Upgrading to 10.34.5 clears them.
Release by release
- Breaking
Node.js v16 and 17 support discontinued
- Breaking
Corepack compatiblity:
- Breaking
pnpm licenses listprints license information of all versions of the same package in case different versions use different licenses. The format of thepnpm licenses list --jsonoutput has been changed #7528. - Breaking
A new command added for printing completion code to the console:
pnpm completion [shell]. The old command that modified the user's shell dotfiles has been removed #3083.
- Breaking
7 other lines we could not sort, mostly version bumps
- 9.0.0
dedupe-injected-deps: enabled by default. - 9.0.0
link-workspace-packages: disabled by default. This means that by default, dependencies will be linked from workspace packages only when they are specified using the workspace protocol. - 9.0.0
hoist-workspace-packages: enabled by default. - 9.0.0
enable-pre-post-scripts: enabled by default. - 9.0.0
Use the same directory for state files on macOS as on Linux (
~/.local/state/pnpm). - 9.0.0
Lockfile v9 is adopted. This new format has changes for better readability, and better resistence to Git conflicts.
- 9.0.0
Optional peer dependencies may be resolved from any packages in the dependency graph #7830.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.