Change8

v11.15.1

📦 pnpmView on GitHub →
3 features🐛 4 fixes🔧 6 symbols

Summary

This patch release improves pnpm's handling of optional dependencies and runtime installations across different platforms. It also addresses memory usage during dependency resolution and fixes issues with registry URL normalization for login commands.

Migration Steps

  1. Ensure your PNPM_HOME is correctly configured to the v11 PNPM_HOME/bin layout to avoid warnings after pnpm setup.

✨ New Features

  • pnpm install now detects a supportedArchitectures change and re-evaluates previously skipped platform-specific optional dependencies.
  • Completed pnpm runtime installation parity for Node.js, Deno, and Bun, including runtime failure policy, target architecture selection, and dependency runtime engines.
  • Runtime failure overrides now preserve explicit runtime dependencies without matching engine entries.

🐛 Bug Fixes

  • pnpm setup now removes leftover v10-layout shims at the top of PNPM_HOME, preventing warnings about a v10 installation layout after PATH migration.
  • In the TypeScript CLI, self-update no longer treats dangling legacy shims as a real v10 layout, preventing warnings on dead shim files.
  • Fixed pnpm install running out of memory while resolving large dependency graphs by condensing registry documents to only essential fields.
  • When a dependency's build script fails under enableGlobalVirtualStore, the global virtual store directory is now removed for scoped packages too, preventing half-built directories from being reused.

Affected Symbols