pnpm
12.21.0 · 13 Nov 2026MIT357.1M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 7.18.2 to 7.19.0
1 release in betweenevery note read
Security
27 advisories still affect 7.19.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
- New
New setting supported in the
package.jsonthat is in the root of the workspace:pnpm.requiredScripts. Scripts listed in this array will be required in each project of the worksapce. Otherwise,pnpm -r run <script name>will fail #5569. - New
When the hoisted node linker is used, preserve
node_modulesdirectories when linking new dependencies. This improves performance, when installing in a project that already has anode_modulesdirectory #5795. - New
When the hoisted node linker is used, pnpm should not build the same package multiple times during installation. If a package is present at multipe locations because hoisting could not hoist them to a single directory, then the package should only built in one of the locations and copied to the rest #5814.
- New
Allow the
-Sflag in command shims pnpm/cmd-shim#42. - Fixed
pnpm rebuildshould work in projects that use the hoisted node linker #5560. - Fixed
pnpm patchshould print instructions about how to commit the changes #5809. - Fixed
Don't relink injected directories if they were not built #5792.
- New
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.