Back to Daily Feed 
pnpm 11.1.3 Enhances Package Security with New Resolution Policies
Worth Reading
Originally published on pnpm Releases
View Original Article
Share this article:
Summary & Key Takeaways
- pnpm 11.1.3 introduces new security policies for
pnpm-lock.yamlentries. - It re-validates entries against
minimumReleaseAgeandtrustPolicy: 'no-downgrade'before fetching tarballs. - Violating entries will abort the install with specific error messages.
- Verification results are cached for faster subsequent installs.
- The
minimumReleaseAgeStrictsetting determines how immature versions are handled. - Loose mode (default) auto-adds immature picks to
minimumReleaseAgeExcludeand proceeds. - Strict mode in interactive terminals prompts the user to approve or decline immature picks.
- Strict mode in CI environments aborts with an error listing all offending entries.
Our Commentary
This is a really smart move by the pnpm team. Supply chain attacks are a constant threat, and adding these kinds of proactive checks directly into the package manager is a huge win for developer security. I particularly like the minimumReleaseAge policy – it's a practical way to mitigate risks from newly published, potentially malicious, or unstable packages. The flexibility between loose and strict modes also shows a good understanding of different team needs. This feels like a feature that other package managers should seriously consider adopting.
View Original Article
Share this article: