pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 9.15.9 to 10.0.0
1 release in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0-alpha.0
Security
25 advisories still affect 10.0.0
- pnpm vulnerable to Command Injection via environment variable substitutionhigh · GHSA-2phv-j68v-wwqx
- pnpm v10+ Bypass "Dependency lifecycle scripts execution disabled by default"high · GHSA-379q-355j-w6rj
- pnpm: Repository config can expand victim environment secrets into registry requests before scripts runmoderate · GHSA-3qhv-2rgh-x77r
Upgrading to 10.34.5 clears them.
Fixes 1 advisory affecting 9.15.9
- pnpm uses the md5 path shortening function causes packet paths to coincide, which causes indirect packet overwritingmoderate · GHSA-8cc4-rfj6-fhg4
- 10.0.0
Long paths inside
node_modules/.pnpmare now hashed with SHA256. - 10.0.0
Long peer dependency hashes in the lockfile now use SHA256 instead of MD5. (This affects very few users since these are only used for long keys.)
- 10.0.0
The hash stored in the
packageExtensionsChecksumfield ofpnpm-lock.yamlis now SHA256. - 10.0.0
The side effects cache keys now use SHA256.
- 10.0.0
The pnpmfile checksum in the lockfile now uses SHA256 (#8530).
- 10.0.0
The patch file checksums in the lockfile now use SHA256.
Release by release
- Security
Long paths inside
node_modules/.pnpmare now hashed with SHA256. - Security
Long peer dependency hashes in the lockfile now use SHA256 instead of MD5. (This affects very few users since these are only used for long keys.)
- Security
The hash stored in the
packageExtensionsChecksumfield ofpnpm-lock.yamlis now SHA256. - Security
The side effects cache keys now use SHA256.
- Security
12 other lines we could not sort, mostly version bumps
- 10.0.0
In a workspace: The override is added to the root of the workspace, linking the dependency to all projects in the workspace.
- 10.0.0
Global linking: To link a package globally, run
pnpm linkfrom the package’s directory. Previously, you needed to usepnpm link -g. Related PR - 10.0.0
manage-package-manager-versions: enabled by default. pnpm now manages its own version based on thepackageManagerfield inpackage.jsonby default. - 10.0.0
public-hoist-pattern: nothing is hoisted by default. Packages containingeslintorprettierin their name are no longer hoisted to the root ofnode_modules. Related Issue - 10.0.0
Upgraded
@yarnpkg/extensionsto v2.0.3. This may alter your lockfile. - 10.0.0
virtual-store-dir-max-length: the default value on Windows has been reduced to 60 characters. - 10.0.0
Reduced environment variables for scripts: During script execution, fewer
npm_package_*environment variables are set. Onlyname,version,bin,engines, andconfigremain. Related Issue - 10.0.0
All dependencies are now installed even if
NODE_ENV=production. Related Issue - 10.0.0
Store version bumped to v10.
- 10.0.0
Some registries allow identical content to be published under different package names or versions. To accommodate this, index files in the store are now stored using both the content hash and package identifier.
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.