pnpm 11.21: Global Update UX & Dependency Graph Refinements
Originally published on pnpm Releases
Summary & Key Takeaways
Interactive group selection is added to pnpm update --global --interactive. Running global commands with sudo now prints a warning, will fail in v12. Global packages and configuration are stored in the invoking user's home directory. Fixes for pnpm failing under asynchronous Node.js module loaders. Dependency graph re-resolution is optimized when removing or changing dependencies. The minimumReleaseAge fallback for custom dist-tags is fixed. CI regression with Git specifiers failing to install is resolved.
Our Commentary
The sudo warning is a smart move. I've definitely seen people accidentally mess up their global installs by running sudo pnpm add -g. It's a small change, but it prevents future headaches. The dependency graph optimizations are also welcome; anything that makes installs faster and more reliable is a win in my book.