v11.0.5
Breaking Changes📦 pnpmView on GitHub →
⚠ 1 breaking✨ 2 features🐛 5 fixes🔧 10 symbols
Summary
This patch addresses critical issues related to Intel Mac binary stability, fixes global listing commands to output valid JSON/parseable formats, and improves build approval handling in `pnpm dlx`.
⚠️ Breaking Changes
- The `darwin-x64` artifact is dropped from `@pnpm/exe` and GitHub releases due to an upstream Node.js bug causing segfaults on Intel Macs. Intel Mac users must install pnpm via `npm install -g pnpm` or remain on pnpm 10.x.
Migration Steps
- If you are an Intel Mac user relying on the prebuilt binary from `@pnpm/exe` or GitHub releases, switch your installation method to `npm install -g pnpm` or downgrade to pnpm 10.x.
✨ New Features
- `pnpm dlx` (and `pnpx`/`pnx`/`pnpm create`) now prompts interactively for build approval when dependencies have install scripts, matching `pnpm add -g` behavior.
- When `strictPeerDependencies` is true, the `ERR_PNPM_PEER_DEP_ISSUES` error now renders peer dependency issues inline, similar to `pnpm peers check` output.
🐛 Bug Fixes
- Fixed `pnpm -g ls --json` and `pnpm -g ls --parseable` to emit valid JSON/parseable output, restoring behavior from pnpm 10.
- Fixed `pnpm publish` to correctly honor `publishConfig.registry` specified in `package.json` when publishing a single package.
- Fixed an issue where `pnpm dlx` would fail with `ERR_PNPM_IGNORED_BUILDS` when packages required builds, and now correctly handles build approval prompts.
- Fixed `pnpm dlx` to remove partially populated cache directories upon install failure, ensuring subsequent runs start clean.
- Fixed `pnpm -g ls --depth=<n>` (where n > 0) to error when more than one isolated global install would be involved, preventing incoherent tree merging.