Skip to content

feat!: stop reading settings from the pnpm field of package.json - #10086

Merged
zkochan merged 21 commits into
mainfrom
deprecate-pnpm-in-package.json
Mar 18, 2026
Merged

zkochan merged 21 commits into
mainfrom
deprecate-pnpm-in-package.json

Conversation

@zkochan

@zkochan zkochan commented Oct 13, 2025

Copy link
Copy Markdown
Member

Settings should be read from pnpm-workspace.yaml

@zkochan zkochan added this to the v11.0 milestone Oct 14, 2025
@zkochan
zkochan changed the base branch from v11 to main November 9, 2025 22:54
@zkochan
zkochan force-pushed the deprecate-pnpm-in-package.json branch from c1be855 to f56452a Compare November 13, 2025 11:06
@zkochan
zkochan force-pushed the deprecate-pnpm-in-package.json branch from b8c9c88 to cd95e0a Compare March 18, 2026 00:51
zkochan and others added 10 commits March 18, 2026 01:54
Settings should be read from pnpm-workspace.yaml
…tManifest

- Remove pnpm field references from deploy, exportable-manifest, global commands
- Fix rootProjectManifest type in globalAdd/globalUpdate to accept unknown
- Add packageExtensions to install command options (previously from root manifest)
- Use writeYamlFileSync in tests instead of async writeYamlFile
- Move pnpm settings from package.json to pnpm-workspace.yaml in tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zkochan
zkochan force-pushed the deprecate-pnpm-in-package.json branch from bbfb27c to 6d91b4f Compare March 18, 2026 00:55
zkochan and others added 10 commits March 18, 2026 01:56
- Remove unused imports (preparePackages, ProjectManifest, createProjectManifestWriter)
- Use top-level type imports instead of inline type specifiers
- Remove unused rootDir destructuring in checkDepsStatus
- Fix import sorting in createDeployFiles

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The test needs builds to be allowed during the initial install so that
the rebuild step can test neverBuiltDependencies filtering.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This test was testing the old pnpm field API. The neverBuiltDependencies
setting is superseded by allowBuilds in pnpm-workspace.yaml.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…st assertion

- Set packageExtensions: undefined in deploy's frozen install (effects are
  already baked into the lockfile snapshots, matching overrides/pnpmfile)
- Fix patchedDependencies YAML assertion to match unquoted output format

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The patch-remove handler needs rootProjectManifestDir to locate the
workspace manifest for writing. DEFAULT_OPTS has it as empty string.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Since the pnpm field is removed from ProjectManifest, warnings about
pnpm.overrides in non-root packages are no longer emitted. Only the
resolutions field warning remains.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Move overrides to root pnpm-workspace.yaml in non-shared lockfile test
  (per-project pnpm-workspace.yaml is not supported; the original test
  used package.json pnpm field which is now removed)
- Remove expected pnpm.overrides warnings in non-root project test
  (pnpm field no longer exists on ProjectManifest)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add 'overrides' to PROJECT_CONFIG_FIELDS so workspaces with
sharedWorkspaceLockfile=false can specify per-project overrides
in pnpm-workspace.yaml's packageConfigs section.

Example:
  packageConfigs:
    my-project:
      overrides:
        is-odd: 1.0.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zkochan
zkochan marked this pull request as ready for review March 18, 2026 12:18
Copilot AI review requested due to automatic review settings March 18, 2026 12:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates pnpm configuration away from the pnpm field in package.json and toward workspace-level configuration (primarily pnpm-workspace.yaml), updating core types, config reading/writing, deploy behavior, and a large set of tests to reflect the new configuration model.

Changes:

  • Remove ProjectManifest.pnpm support and stop deriving install options from root package.json via getOptionsFromRootManifest().
  • Update config writing to persist settings to the workspace manifest, and adjust commands (e.g. deploy/unlink) to use the new settings flow.
  • Refresh tests/fixtures to express overrides, patchedDependencies, allowBuilds, etc. via pnpm-workspace.yaml / CLI options instead of package.json.

Reviewed changes

Copilot reviewed 47 out of 49 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
workspace/projects-reader/test/index.ts Updates warning expectations after removing non-root pnpm.* warnings.
workspace/projects-reader/src/index.ts Stops warning about pnpm.* fields in non-root workspace package manifests.
releasing/exportable-manifest/test/index.test.ts Updates exportable manifest test to focus on scripts/packageManager handling.
releasing/exportable-manifest/src/index.ts Changes which fields are omitted when producing an exportable manifest.
releasing/commands/test/deploy/shared-lockfile.test.ts Adapts deploy tests to new settings sources (overrides/packageExtensions/patchedDependencies).
releasing/commands/src/deploy/deploy.ts Passes patchedDependencies into deploy file generation and disables packageExtensions during deploy install.
releasing/commands/src/deploy/createDeployFiles.ts Moves patchedDependencies emission to workspace manifest generation for deploy.
pnpm/test/recursive/rebuild.ts Writes workspace manifest in test setup (YAML) for rebuild scenario.
pnpm/test/recursive/filter.ts Moves overrides config from package.json to pnpm-workspace.yaml in tests.
pnpm/test/monorepo/index.ts Moves per-project overrides into packageConfigs in workspace manifest.
pnpm/test/install/lifecycleScripts.ts Switches workspace manifest writes to sync API; moves allowBuilds config into YAML.
pnpm/test/install/global.ts Moves allowBuilds config for global tests into workspace manifest YAML.
pnpm/test/hooks.ts Moves configDependencies from package.json to pnpm-workspace.yaml.
pnpm/test/dlx.ts Updates dlx config-ignoring test to use workspace manifest rather than package.json.
pnpm-lock.yaml Updates lockfile to reflect dependency graph changes (removals).
patching/commands/test/patch.test.ts Adjusts patch/patch-remove tests for workspace-manifest-based patchedDependencies.
installing/deps-installer/test/install/validatePeerDependencies.ts Removes redundant manifest pnpm.overrides usage in tests.
installing/deps-installer/test/install/overrides.ts Moves overrides source in test to options instead of manifest.
installing/commands/test/update/issue-7415.ts Moves git override into handler options.
installing/commands/test/patchedDependencies.ts Refactors patchedDependencies tests to write workspace YAML and pass settings explicitly.
installing/commands/test/install.ts Moves supportedArchitectures config from manifest to handler options.
installing/commands/test/add.ts Moves supportedArchitectures config from manifest to handler options.
installing/commands/src/unlink.ts Writes overrides via config writer (workspace manifest) instead of editing package.json.
installing/commands/src/remove.ts Stops merging options from root manifest via getOptionsFromRootManifest().
installing/commands/src/recursive.ts Stops reading updateConfig from manifest pnpm field; uses config options.
installing/commands/src/installDeps.ts Removes getOptionsFromRootManifest() merging and extends options to include packageExtensions.
installing/commands/src/install.ts Extends command option typing to include packageExtensions.
installing/commands/src/import/index.ts Removes root-manifest-derived options merge during import.
installing/commands/src/getFetchFullMetadata.ts Drops fallback to manifest settings; uses supportedArchitectures options only.
installing/commands/src/fetch.ts Removes root-manifest-derived options merge during fetch.
installing/commands/src/add.ts Uses opts.allowBuilds rather than manifest pnpm allowBuilds for conflict detection.
global/commands/src/installGlobalPackages.ts Removes root-manifest-derived options merge for global installs.
global/commands/src/globalUpdate.ts Removes manifest fallback in fetchFullMetadata and loosens rootProjectManifest typing.
global/commands/src/globalAdd.ts Removes manifest fallback in fetchFullMetadata and loosens rootProjectManifest typing.
engine/pm/commands/src/self-updater/installPnpm.ts Removes manifest fallback in fetchFullMetadata.
deps/status/src/checkDepsStatus.ts Shifts workspace-state comparisons to use config options directly (patchedDependencies/overrides/etc).
deps/compliance/commands/src/licenses/licensesList.ts Uses supportedArchitectures from options rather than root-manifest-derived options.
core/types/src/package.ts Removes pnpm?: PnpmSettings from ProjectManifest type.
config/writer/tsconfig.json Removes project-manifest-reader dependency from TS references.
config/writer/src/index.ts Simplifies writeSettings to only update workspace manifest.
config/writer/package.json Removes unused deps (project-manifest-reader/ramda) after writer refactor.
config/reader/test/getOptionsFromRootManifest.test.ts Removes tests for deleted getOptionsFromRootManifest; focuses on getOptionsFromPnpmSettings.
config/reader/src/projectConfig.ts Adds validation for overrides in project-specific config.
config/reader/src/index.ts Stops applying getOptionsFromRootManifest() to config object.
config/reader/src/getOptionsFromRootManifest.ts Removes getOptionsFromRootManifest implementation; keeps getOptionsFromPnpmSettings.
config/reader/src/Config.ts Adds overrides to project-configurable fields.
building/commands/test/build/index.ts Minor test file trailing whitespace/newline change.
building/after-install/src/extendBuildOptions.ts Removes getOptionsFromRootManifest merge in build option extension.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread deps/status/src/checkDepsStatus.ts Resolved
tc-imba added a commit to arkive-games/arkive that referenced this pull request Aug 8, 2026
Jump from pnpm 9.12.0 to 11.20.0, the current `latest`. pnpm 12 exists only
as a release candidate (12.0.0-rc.1, published a day ago), so it is not a
candidate for a pinned `packageManager`.

The load-bearing part of this is the override. pnpm 11 no longer reads the
`pnpm` field of `package.json` (pnpm/pnpm#10086) and only warns about it, so
leaving `overrides.vite` there would have kept installs green while quietly
resolving upstream vite instead of rolldown-vite. Verified against a scratch
project: an override left in `package.json` is reported as ignored and the
dependency resolves to its un-overridden version. It now lives in
`pnpm-workspace.yaml`, and all six apps still resolve vite to
rolldown-vite 7.2.2.

CI reads the version out of `packageManager` via `package_json_file:` rather
than pinning a major of its own, so the two cannot drift.

The lockfile is unchanged, byte for byte: pnpm reported it up to date and
skipped resolution, so no dependency moved. Nothing in the tree runs install
scripts, so no `allowBuilds` allow-list is needed yet.

Verified: 832 tests across 58 files, six app builds, six lints, the three
package-boundary guard scripts, changelog:verify, and a --frozen-lockfile
install (the CI command).
kompiro added a commit to kompiro/karasu that referenced this pull request Aug 8, 2026
…2411)

* chore(deps): move to pnpm 11 and put pnpm config where v11 reads it

pnpm 11 stops reading the `pnpm` field of `package.json` (pnpm/pnpm#10086),
which is where all 22 transitive security floors lived. It does not error on
finding one -- it warns and continues with the setting absent -- so a silent
migration would have dropped every GHSA remediation from ADR-1474 onward while
leaving the build green. The Node 24 devcontainer already ships pnpm 11.17, so
that warning was printing on every command.

Moves `overrides` and `allowBuilds` into `pnpm-workspace.yaml`, verified in two
stages to isolate the variable: first the config move alone under pnpm 10.33
(which reads both locations) confirmed `--frozen-lockfile` passes with the
lockfile untouched, then the version bump. Both stages leave `pnpm-lock.yaml`
byte-identical, all 22 overrides intact, and resolution unchanged.

`allowBuilds` denies `@vscode/vsce-sign` and `keytar` explicitly rather than
leaving them undeclared: `strictDepBuilds` now defaults to true, so an
undeclared postinstall is an install error. Both were already skipped.

Leaves `minimumReleaseAge` at pnpm's 1-day default rather than raising it to
match the 7-day Dependabot cooldown, as #2401 proposed. The two have different
scopes -- the cooldown delays PRs for declared deps, this verifies all 1479
lockfile entries including transitive ones. At 7 days the current lockfile is
already non-compliant (`rolldown@1.2.2` + 13 bindings and `nanoid@3.3.17` come
in under vite and are five days old), so every install including CI would fail
until the window passed.

Refs #2401

* test(ci): fence where pnpm config lives, and repoint the triage rule

The dangerous part of the v11 move is not the code, it is the documentation.
ADR-1474 and the ~10 security ADRs citing it spell the remediation procedure
out by filename -- "root `package.json` の `pnpm.overrides`" -- and
`.claude/rules/dependabot.md` repeats it. That rule loads automatically during
Dependabot triage, the exact task that maintains those 22 floors. Left alone,
the next triage raises a floor in a file pnpm no longer reads, sees a green
build, and ships the unpatched dependency.

Adds a "where the overrides live" section to the rule with a pointer that past
ADRs are historical, and a guard asserting no `package.json` carries a `pnpm`
field again -- pnpm only warns, so without one CI has nowhere to fail. The
guard also rejects the ten settings v11 removed and requires a pnpm 11 pin,
since below 11 the field is still honoured and the assertion would be
enforcing a shape the toolchain does not need.

Refs #2401

* docs(adr): record the pnpm 11 migration

Also repoints two ADR `assumptions:` entries at `pnpm-workspace.yaml`. They
grepped `package.json` for an override and would otherwise assert a floor that
had moved -- the same vacuous-guard trap the ADR describes.

Refs #2401

* fix(ci): allow-list workerd so the Cloudflare deploys survive strictDepBuilds

`cloudflare/wrangler-action` runs its own `pnpm add wrangler@4` at deploy time,
which pulls `workerd` and its postinstall. Under pnpm 10 that build was skipped
with a warning and the deploy worked; pnpm 11 defaults `strictDepBuilds` to
true, so the same skip is now `ERR_PNPM_IGNORED_BUILDS` and the step fails.

Declared `false` to match what was already happening rather than `true`, which
would newly execute a build no deploy has ever needed.

Local installs cannot surface this: `workerd` is not in our lockfile, it only
exists inside the action's transient install. Four workflows use the action
(preview / deploy / nest-deploy / spike-preview) and only preview runs on PRs,
so the other three would have broken after merge.

Refs #2401
kompiro added a commit to kompiro/hane that referenced this pull request Aug 9, 2026
Step 3 named `package.json`'s `pnpm.overrides` for pnpm with no version
qualification. pnpm 11 does not read the `pnpm` field at all
(pnpm/pnpm#10086). Writing an override there on a pnpm 11 repo is not an
error — it is silently ignored, the vulnerable version stays resolved, and
the PR goes green. For a security skill that is the worst failure mode
available: it looks fixed.

Caught in dogfooding within a day of v0.15.0. karasu migrated to pnpm 11
while the dompurify fix was in flight, and merging main forward would have
carried the floor raise into a block pnpm 11 ignores. It only surfaced
because package.json happened to conflict for an unrelated reason.

The step 2 pin diff from #76 shared the blind spot: its grep never looked at
pnpm-workspace.yaml, so on pnpm 11 an existing override reads as no pin at
all. Widened, with a note that a missed location reads as absence rather
than as an error.

Closes #79

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
ahacop added a commit to changebot-ai/widgets that referenced this pull request Aug 24, 2026
[cb skip]

pnpm-workspace.yaml uses allowBuilds, which pnpm 11 introduced in
place of onlyBuiltDependencies and friends. pnpm 10 does not read
it, so CI and the local nix-provided pnpm (11.21.0) were disagreeing
about which postinstall scripts may run. Both workflows now ask
pnpm/action-setup for pnpm 11.

flake.nix pulls pnpm from nixpkgs without a version, so there is no
local version string to change. The npm publish path is unaffected:
scripts/deploy-npm.sh calls npm publish directly and only uses pnpm
pack, which still resolves workspace: references to real versions
under pnpm 11.

pnpm 11.0.0
-----------

> Migration guide: [Migrating from v10 to v11](https://pnpm.io/11.x/migration)

=== Highlights

=== Major

- **Node.js 22+ required** — support for Node 18, 19, 20, and 21 is dropped, pnpm itself is now pure ESM, and the standalone exe requires glibc 2.27.
- **Supply-chain protection on by default** — `minimumReleaseAge` defaults to 1 day (newly published packages are not resolved for 24h) and `blockExoticSubdeps` defaults to `true`.
- **`allowBuilds` replaces the old build-dependency settings** — `onlyBuiltDependencies`, `onlyBuiltDependenciesFile`, `neverBuiltDependencies`, `ignoredBuiltDependencies`, and `ignoreDepScripts` have been removed.
- **Global installs are isolated and use the global virtual store by default** — each `pnpm add -g` gets its own directory with its own `package.json`, `node_modules`, and lockfile.
- **New SQLite-backed store index** (store v11) with bundled manifests and hex digests, reducing filesystem syscalls and speeding up installation.
- **Native publish flow** — [`pnpm publish`](https://pnpm.io/11.x/cli/publish), [`login`](https://pnpm.io/11.x/cli/login), [`logout`](https://pnpm.io/11.x/cli/logout), [`view`](https://pnpm.io/11.x/cli/view), [`deprecate`](https://pnpm.io/11.x/cli/deprecate), [`unpublish`](https://pnpm.io/11.x/cli/unpublish), [`dist-tag`](https://pnpm.io/11.x/cli/dist-tag), and [`version`](https://pnpm.io/11.x/cli/version) no longer delegate to the npm CLI, and the remaining npm passthrough commands now throw "not implemented".
- **[`pnpm audit`](https://pnpm.io/11.x/cli/audit) uses npm's bulk advisories endpoint** — the legacy `/security/audits` endpoints are gone. CVE-based filtering has been replaced with GHSA-based filtering: migrate `auditConfig.ignoreCves` entries to `auditConfig.ignoreGhsas`.
- **`.npmrc` is auth/registry only** — all other settings must live in `pnpm-workspace.yaml` or the new global `config.yaml`, and environment variables use the `pnpm_config_*` prefix.
- **Runtime installs are slimmer** — installing a Node.js runtime via `node@runtime:<version>` no longer extracts the bundled `npm`, `npx`, and `corepack`, roughly halving the files pnpm has to hash, write, and link.

=== Minor

- **New commands:** [`pnpm ci`](https://pnpm.io/11.x/cli/ci), [`pnpm sbom`](https://pnpm.io/11.x/cli/sbom), [`pnpm clean`](https://pnpm.io/11.x/cli/clean), [`pnpm peers check`](https://pnpm.io/11.x/cli/peers), [`pnpm runtime set`](https://pnpm.io/11.x/cli/runtime), [`pnpm docs`](https://pnpm.io/11.x/cli/docs)/`home`, [`pnpm ping`](https://pnpm.io/11.x/cli/ping), [`pnpm search`](https://pnpm.io/11.x/cli/search), [`pnpm star`](https://pnpm.io/11.x/cli/star)/`unstar`/`stars`, [`pnpm whoami`](https://pnpm.io/11.x/cli/whoami), [`pnpm with`](https://pnpm.io/11.x/cli/with), and [`pnpm pack-app`](https://pnpm.io/11.x/cli/pack-app), plus `pn`/[`pnx`](https://pnpm.io/11.x/cli/pnx) short aliases.
- **ESM pnpmfiles** via `.pnpmfile.mjs`, which takes priority over `.pnpmfile.cjs` when present.
- **[`pnpm audit --fix=update`](https://pnpm.io/11.x/cli/audit)** fixes vulnerabilities by updating packages in the lockfile instead of adding overrides, and `pnpm audit --fix --interactive` lets you select which advisories to fix.
- **[`pnpm pack-app`](https://pnpm.io/11.x/cli/pack-app)** packs a CommonJS entry into a standalone executable for one or more target platforms using Node.js Single Executable Applications.
- **Faster HTTP and I/O** — undici with Happy Eyeballs, direct-to-CAS writes, skipped staging directory, pre-allocated tarball downloads, and an NDJSON metadata cache.

=== Major Changes

=== Requirements

- pnpm is now distributed as pure ESM.
- Dropped support for Node.js v18, 19, 20, and 21.
- The standalone exe version of pnpm requires at least glibc 2.27.

=== Security & Build Defaults

- Changed default values: `optimisticRepeatInstall` is now `true`, `verifyDepsBeforeRun` is now `install`, `minimumReleaseAge` is now `1440` (1 day), and `minimumReleaseAgeStrict` is `false`. Newly published packages will not be resolved until they are at least 1 day old. This protects against supply chain attacks by giving the community time to detect and remove compromised versions. To opt out, set `minimumReleaseAge: 0` in `pnpm-workspace.yaml` [#11158](pnpm/pnpm#11158).
- `strictDepBuilds` is `true` by default.
- `blockExoticSubdeps` is `true` by default.
- Removed deprecated build dependency settings: `onlyBuiltDependencies`, `onlyBuiltDependenciesFile`, `neverBuiltDependencies`, `ignoredBuiltDependencies`, and `ignoreDepScripts` [#11220](pnpm/pnpm#11220).

  Use the `allowBuilds` setting instead. It is a map where keys are package name patterns and values are booleans:

  - `true` means the package is allowed to run build scripts
  - `false` means the package is explicitly denied from running build scripts

  Same as before, by default, none of the packages in the dependencies are allowed to run scripts. If a package has postinstall scripts and it isn't declared in `allowBuilds`, an error is printed.

  Before:

  ```yaml
  onlyBuiltDependencies:
    - electron
  onlyBuiltDependenciesFile: "allowed-builds.json"
  neverBuiltDependencies:
    - core-js
  ignoredBuiltDependencies:
    - esbuild
  ```

  After:

  ```yaml
  allowBuilds:
    electron: true
    core-js: false
    esbuild: false
  ```

- Removed `allowNonAppliedPatches` in favor of `allowUnusedPatches`.
- Removed `ignorePatchFailures`; patch application failures now throw an error.

=== Store

- Runtime dependencies are always linked from the global virtual store [#10233](pnpm/pnpm#10233).
- Optimized index file format to store the hash algorithm once per file instead of repeating it for every file entry. Each file entry now stores only the hex digest instead of the full integrity string (`<algo>-<digest>`). Using hex format improves performance since file paths in the content-addressable store use hex representation, eliminating base64-to-hex conversion during path lookups.
- Store version bumped to v11.
- The bundled manifest (name, version, bin, engines, scripts, etc.) is now stored directly in the package index file, eliminating the need to read `package.json` from the content-addressable store during resolution and installation. This reduces I/O and speeds up repeat installs [#10473](pnpm/pnpm#10473).
- The package index in the content-addressable store is now backed by SQLite. Instead of individual JSON files under `$STORE/index/`, package metadata is stored in a single SQLite database at `$STORE/index.db` with MessagePack-encoded values. This reduces filesystem syscall overhead, improves space efficiency for small metadata entries, and enables concurrent access via SQLite's WAL mode. Packages missing from the new index are re-fetched on demand [#10500](pnpm/pnpm#10500) [#10826](pnpm/pnpm#10826).

=== Global Packages

- Global installs (`pnpm add -g pkg`) and `pnx` now use the global virtual store by default. Packages are stored at `{storeDir}/links` instead of per-project `.pnpm` directories. This can be disabled by setting `enableGlobalVirtualStore: false` [#10694](pnpm/pnpm#10694).
- Isolated global packages. Each globally installed package (or group of packages installed together) now gets its own isolated installation directory with its own `package.json`, `node_modules/`, and lockfile. This prevents global packages from interfering with each other through peer dependency conflicts, hoisting changes, or version resolution shifts.

  Key changes:

  - `pnpm add -g <pkg>` creates an isolated installation in `{pnpmHomeDir}/global/v11/{hash}/`
  - `pnpm remove -g <pkg>` removes the entire installation group containing the package
  - `pnpm update -g [pkg]` re-installs packages in new isolated directories
  - `pnpm list -g` scans isolated directories to show all installed global packages
  - `pnpm install -g` (no args) is no longer supported; use `pnpm add -g <pkg>` instead

- Globally installed binaries are now stored in a `bin` subdirectory of `PNPM_HOME` instead of directly in `PNPM_HOME`. This prevents internal directories like `global/` and `store/` from polluting shell autocompletion when `PNPM_HOME` is on PATH [#10986](pnpm/pnpm#10986). After upgrading, run `pnpm setup` to update your shell configuration.
- Breaking changes to `pnpm link`:

  - `pnpm link <pkg-name>` no longer resolves packages from the global store. Only relative or absolute paths are accepted. For example, use `pnpm link ./foo` instead of `pnpm link foo`.
  - `pnpm link --global` is removed. Use `pnpm add -g .` to register a local package's bins globally.
  - `pnpm link` (no arguments) is removed. Use `pnpm link <dir>` with an explicit path instead.

=== Configuration

- pnpm no longer reads all settings from `.npmrc`. Only auth and registry settings are read from `.npmrc` files. All other settings (like `hoistPattern`, `nodeLinker`, `shamefullyHoist`, etc.) must be configured in `pnpm-workspace.yaml` or the global `~/.config/pnpm/config.yaml` [#11189](pnpm/pnpm#11189).
- Network settings (`httpProxy`, `httpsProxy`, `noProxy`, `localAddress`, `strictSsl`, `gitShallowHosts`) are now written to `config.yaml` (global) or `pnpm-workspace.yaml` (local) instead of `.npmrc`/`auth.ini`. They are still readable from `.npmrc` for easier migration from the npm CLI [#11209](pnpm/pnpm#11209).

  pnpm no longer reads `npm_config_*` environment variables. Use `pnpm_config_*` environment variables instead (e.g., `pnpm_config_registry` instead of `npm_config_registry`).

  pnpm no longer reads the npm global config at `$PREFIX/etc/npmrc`.

  `pnpm login` writes auth tokens to `~/.config/pnpm/auth.ini`.

  New `registries` setting in `pnpm-workspace.yaml`:

  ```yaml
  registries:
    default: https://registry.npmjs.org/
    "@my-org": https://private.example.com/
    "@internal": https://nexus.corp.com/
  ```

  Auth tokens in `~/.npmrc` still work — pnpm continues to read `~/.npmrc` as a fallback for registry authentication. The new `npmrcAuthFile` setting can be used to point to a different file instead of `~/.npmrc`.

- Replace workspace project specific `.npmrc` with `packageConfigs` in `pnpm-workspace.yaml`.

  A workspace manifest with `packageConfigs` looks something like this:

  ```yaml
  # File: pnpm-workspace.yaml
  packages:
    - "packages/project-1"
    - "packages/project-2"
  packageConfigs:
    "project-1":
      saveExact: true
    "project-2":
      savePrefix: "~"
  ```

  Or this:

  ```yaml
  # File: pnpm-workspace.yaml
  packages:
    - "packages/project-1"
    - "packages/project-2"
  packageConfigs:
    - match: ["project-1", "project-2"]
      modulesDir: "node_modules"
      saveExact: true
  ```

- pnpm no longer reads settings from the `pnpm` field of `package.json`. Settings should be defined in `pnpm-workspace.yaml` [#10086](pnpm/pnpm#10086).
- `pnpm config get` (without `--json`) no longer prints INI formatted text. Instead, it prints JSON for objects and arrays, and raw strings for strings, numbers, booleans, and nulls. `pnpm config get --json` still prints all types of values as JSON, as before.
- `pnpm config get <array>` now prints a JSON array.
- `pnpm config list` now prints a JSON object instead of INI formatted text.
- `pnpm config list` and `pnpm config get` (without argument) now hide auth-related settings.
- `pnpm config list` and `pnpm config get` (without argument) now show top-level keys as camelCase. Exception: keys that start with `@` or `//` are preserved (their cases don't change).
- `pnpm config get` and `pnpm config list` no longer load non-camelCase options from the workspace manifest (`pnpm-workspace.yaml`).

=== Removed Commands & npm Passthrough

- pnpm no longer falls back to the npm CLI. Commands that were previously passed through to npm (`access`, `bugs`, `docs`, `edit`, `find`, `home`, `issues`, `owner`, `ping`, `prefix`, `profile`, `pkg`, `repo`, `search`, `set-script`, `star`, `stars`, `team`, `token`, `unstar`, `whoami`, `xmas`) and their aliases (`s`, `se`) now throw a "not implemented" error, with a suggestion to use the npm CLI directly [#10642](pnpm/pnpm#10642). Other previously passed-through commands — [`view`](https://pnpm.io/11.x/cli/view) (`info`, `show`, `v`), [`login`](https://pnpm.io/11.x/cli/login) (`adduser`), [`logout`](https://pnpm.io/11.x/cli/logout), [`deprecate`](https://pnpm.io/11.x/cli/deprecate), [`unpublish`](https://pnpm.io/11.x/cli/unpublish), [`dist-tag`](https://pnpm.io/11.x/cli/dist-tag), and [`version`](https://pnpm.io/11.x/cli/version) — have been reimplemented natively in pnpm (see New Commands below).
- [`pnpm publish`](https://pnpm.io/11.x/cli/publish) now works without the `npm` CLI.

  The One-time Password feature now reads from `PNPM_CONFIG_OTP` instead of `NPM_CONFIG_OTP`:

  ```sh
  export PNPM_CONFIG_OTP='<your OTP here>'
  pnpm publish --no-git-checks
  ```

  If the registry requests OTP and the user has not provided it via the `PNPM_CONFIG_OTP` environment variable or the `--otp` flag, pnpm will prompt the user directly for an OTP code.

  If the registry requests web-based authentication, pnpm will print a scannable QR code along with the URL.

  Since the new `pnpm publish` no longer calls `npm publish`, some undocumented features may have been unknowingly dropped. If you rely on a feature that is now gone, please open an issue at <https://github.com/pnpm/pnpm/issues>. In the meantime, you can use `pnpm pack && npm publish *.tgz` as a workaround.

- Removed the `pnpm server` command [#10463](pnpm/pnpm#10463).
- Removed support for the `useNodeVersion` and `executionEnv.nodeVersion` fields. `devEngines.runtime` and `engines.runtime` should be used instead [#10373](pnpm/pnpm#10373).
- Removed support for `hooks.fetchers`. We now have a new API for custom fetchers and resolvers via the `fetchers` field of `pnpmfile`.

=== Lifecycle Scripts

- pnpm no longer populates `npm_config_*` environment variables from the pnpm config during lifecycle scripts. Only well-known `npm_*` env vars are now set, matching Yarn's behavior [#11116](pnpm/pnpm#11116).

=== CLI Output

- Cleaner output for script execution: pnpm now prints `$ command` instead of `> pkg@version stage path\n> command`, and shows project name and path only when running in a different directory. The `$ command` line is printed to stderr to keep stdout clean for piping [#11132](pnpm/pnpm#11132).
- During install, instead of rendering the full peer dependency issues tree, pnpm now suggests running [`pnpm peers check`](https://pnpm.io/11.x/cli/peers) to view the issues [#11133](pnpm/pnpm#11133).

=== Lockfile

- Simplified `patchedDependencies` lockfile format from `Record<string, { path: string, hash: string }>` to `Record<string, string>` (selector to hash). Existing lockfiles with the old format are automatically migrated [#10911](pnpm/pnpm#10911).

=== Other

- The default value of the `type` field in the `package.json` file of the project initialized by `pnpm init` command has been changed to `module`.
- Added support for lowercase options in `pnpm add`: `-d`, `-p`, `-o`, `-e` [#9197](pnpm/pnpm#9197).

  When using the `pnpm add` command only:

  - `-p` is now an alias for `--save-prod` instead of `--parseable`
  - `-d` is now an alias for `--save-dev` instead of `--loglevel=info`

- The root workspace project is no longer excluded when it is explicitly selected via a filter [#10465](pnpm/pnpm#10465).

=== Audit

- [`pnpm audit`](https://pnpm.io/11.x/cli/audit) now calls npm's `/-/npm/v1/security/advisories/bulk` endpoint. The legacy `/-/npm/v1/security/audits{,/quick}` endpoints have been retired by the registry, so the legacy request/response contract is no longer supported.

  The bulk endpoint does not return CVE identifiers. CVE-based filtering has been replaced with GitHub advisory ID (GHSA) filtering:

  - `auditConfig.ignoreCves` → `auditConfig.ignoreGhsas` (the previous key is no longer recognized)
  - `pnpm audit --ignore <id>` / `pnpm audit --ignore-unfixable` now read and write GHSAs instead of CVEs
  - GHSAs are derived from each advisory's `url` (`https://github.com/advisories/GHSA-xxxx-xxxx-xxxx`)

  To migrate: replace each `CVE-YYYY-NNNNN` entry in your `auditConfig.ignoreCves` with the corresponding `GHSA-xxxx-xxxx-xxxx` value (visible in the `More info` column of `pnpm audit` output) and move it under `auditConfig.ignoreGhsas`.

=== Package Manager Settings

- **Breaking:** removed the `managePackageManagerVersions`, `packageManagerStrict`, and `packageManagerStrictVersion` settings. They existed only to derive the `onFail` behavior for the legacy `packageManager` field, and the `pmOnFail` setting introduced alongside [`pnpm with`](https://pnpm.io/11.x/cli/with) subsumes all three — it directly sets the `onFail` behavior of both `packageManager` and `devEngines.packageManager`. The `COREPACK_ENABLE_STRICT` environment variable is no longer honored (it only gated `packageManagerStrict`); use `pmOnFail` instead.

  Migration:

  | Removed setting                       | Replace with                   |
  | ------------------------------------- | ------------------------------ |
  | `managePackageManagerVersions: true`  | `pmOnFail: download` (default) |
  | `managePackageManagerVersions: false` | `pmOnFail: ignore`             |
  | `packageManagerStrict: false`         | `pmOnFail: warn`               |
  | `packageManagerStrictVersion: true`   | `pmOnFail: error`              |
  | `COREPACK_ENABLE_STRICT=0`            | `pmOnFail: warn`               |

=== Runtime Installs

- Installing a Node.js runtime via `node@runtime:<version>` (including `pnpm env use` and `pnpm runtime set node`) no longer extracts the bundled `npm`, `npx`, and `corepack` from the Node.js archive. This cuts roughly half of the files pnpm has to hash, write to the CAS, and link during installation, making runtime installs noticeably faster. Users who still need `npm` can install it as a separate package.

=== Minor Changes

=== New Commands

- Added native [`pnpm view`](https://pnpm.io/11.x/cli/view) (`info`, `show`, `v`) command for viewing package metadata from the registry [#11064](pnpm/pnpm#11064).
- Added [`pnpm login`](https://pnpm.io/11.x/cli/login) (and `pnpm adduser` alias) command for authenticating with npm registries. Supports web-based login with QR code as well as classic username/password login [#11094](pnpm/pnpm#11094).
- Added [`pnpm logout`](https://pnpm.io/11.x/cli/logout) command for logging out of npm registries. Revokes the authentication token on the registry and removes it from the local auth config file [#11213](pnpm/pnpm#11213).
- Added native [`pnpm deprecate`](https://pnpm.io/11.x/cli/deprecate) and `pnpm undeprecate` commands for setting and removing deprecation messages on package versions without delegating to the npm CLI [#11120](pnpm/pnpm#11120).
- Added native [`pnpm unpublish`](https://pnpm.io/11.x/cli/unpublish) command. Supports unpublishing specific versions, version ranges via semver, and entire packages with `--force` [#11128](pnpm/pnpm#11128).
- Added native [`pnpm dist-tag`](https://pnpm.io/11.x/cli/dist-tag) command (`ls`, `add`, `rm` subcommands) [#11218](pnpm/pnpm#11218).
- Added [`pnpm sbom`](https://pnpm.io/11.x/cli/sbom) command for generating Software Bill of Materials in CycloneDX 1.7 and SPDX 2.3 JSON formats [#9088](pnpm/pnpm#9088).
- Added [`pnpm clean`](https://pnpm.io/11.x/cli/clean) command that safely removes `node_modules` directories from all workspace projects [#10707](pnpm/pnpm#10707). Use `--lockfile` to also remove `pnpm-lock.yaml` files.
- Added a new command [`pnpm runtime set <runtime name> <runtime version spec> [-g]`](https://pnpm.io/11.x/cli/runtime) for installing runtimes. Deprecated `pnpm env use` in favor of the new command.
- Added the ability to fix vulnerabilities by updating packages in the lockfile instead of adding overrides. Use [`pnpm audit --fix=update`](https://pnpm.io/11.x/cli/audit) [#10341](pnpm/pnpm#10341).
- Added [`pnpm ci`](https://pnpm.io/11.x/cli/ci) command for clean installs [#6100](pnpm/pnpm#6100). The command runs `pnpm clean` followed by `pnpm install --frozen-lockfile`. Designed for CI/CD environments where reproducible builds are critical. Aliases: `pnpm clean-install`, `pnpm ic`, `pnpm install-clean` [#11003](pnpm/pnpm#11003).
- Added [`pnpm peers check`](https://pnpm.io/11.x/cli/peers) command that checks for unmet and missing peer dependency issues by reading the lockfile [#7087](pnpm/pnpm#7087).
- Implemented the [`version`](https://pnpm.io/11.x/cli/version) command natively in pnpm to support workspaces and `workspace:` protocols correctly. The new command allows bumping package versions (major, minor, patch, etc.) with full workspace support and git integration [#10879](pnpm/pnpm#10879).
- [`pnpm audit --fix`](https://pnpm.io/11.x/cli/audit) now supports a new interactive mode via `--interactive`/`-i`.
- Added the [`pnpm docs`](https://pnpm.io/11.x/cli/docs) command and its alias `pnpm home`. This command opens the package documentation or homepage in the browser. When the package has no valid homepage, it falls back to `https://npmx.dev/package/<name>`.
- Added native [`pnpm ping`](https://pnpm.io/11.x/cli/ping) command to test registry connectivity. Provides a simple way to verify connectivity to the configured registry without requiring external tools.
- Implemented native [`search`](https://pnpm.io/11.x/cli/search) command and its aliases (`s`, `se`, `find`).
- Implemented native [`star`, `unstar`, `stars`](https://pnpm.io/11.x/cli/star), and [`whoami`](https://pnpm.io/11.x/cli/whoami) commands.
- Add [`pnpm with <version|current> <args...>`](https://pnpm.io/11.x/cli/with) command. Runs pnpm at a specific version (or the currently active one) for a single invocation, bypassing the project's `packageManager` and `devEngines.packageManager` pins.
- Added a new [`pnpm pack-app`](https://pnpm.io/11.x/cli/pack-app) command that packs a CommonJS entry file into a standalone executable for one or more target platforms, using the [Node.js Single Executable Applications](https://nodejs.org/api/single-executable-applications.html) API under the hood.

=== Configuration

- Added support for a global YAML config file named `config.yaml`.

  Configuration is now split into two categories:

  - Registry and auth settings, which can be stored in INI files such as the global `rc` file and local `.npmrc`.
  - pnpm-specific settings, which can only be loaded from YAML files such as the global `config.yaml` and local `pnpm-workspace.yaml`.

- Added support for loading environment variables whose names start with `pnpm_config_` into config. These environment variables override settings from `pnpm-workspace.yaml` but not CLI arguments.
- Added support for reading `allowBuilds` from `pnpm-workspace.yaml` in the global package directory for global installs.
- Added support for `pnpm config get globalconfig` to retrieve the global config file path [#9977](pnpm/pnpm#9977).
- Added a new setting `virtualStoreOnly` that populates the virtual store without creating importer symlinks, hoisting, bin links, or running lifecycle scripts. This is useful for pre-populating a store (e.g., in Nix builds) without creating unnecessary project-level artifacts. `pnpm fetch` now uses this mode internally [#10840](pnpm/pnpm#10840).
- Added support for specifying the pnpm version via `devEngines.packageManager` in `package.json`. Unlike the `packageManager` field, this supports version ranges. The resolved version is stored in `pnpm-lock.yaml` and reused if it still satisfies the range [#10932](pnpm/pnpm#10932).
- Added a new `dedupePeers` setting that reduces peer dependency duplication. When enabled, peer dependency suffixes use version-only identifiers (`name@version`) instead of full dep paths, eliminating nested suffixes like `(foo@1.0.0(bar@2.0.0))`. This dramatically reduces the number of package instances in projects with many recursive peer dependencies [#11070](pnpm/pnpm#11070).
- Config dependencies are now installed into the global virtual store (`{storeDir}/links/`) and symlinked into `node_modules/.pnpm-config/`. This allows config dependencies to be shared across projects that use the same store, avoiding redundant fetches and imports [#10910](pnpm/pnpm#10910). Config dependency and package manager integrity info is now stored in `pnpm-lock.yaml` instead of inlined in `pnpm-workspace.yaml`: the workspace manifest contains only clean version specifiers for `configDependencies`, while the resolved versions, integrity hashes, and tarball URLs are recorded in the lockfile as a separate YAML document. The env lockfile section also stores `packageManagerDependencies` resolved during version switching and self-update. Projects using the old inline-hash format are automatically migrated on install [#10912](pnpm/pnpm#10912) [#10964](pnpm/pnpm#10964).
- Added `nodeDownloadMirrors` setting to configure custom Node.js download mirrors in `pnpm-workspace.yaml`. This replaces the `node-mirror:<channel>` `.npmrc` setting, which is no longer read [#11194](pnpm/pnpm#11194):

  ```yaml
  nodeDownloadMirrors:
    release: https://my-mirror.example.com/download/release/
  ```

- `pnpm dlx` and `pnpm create` now respect security and trust policy settings (`minimumReleaseAge`, `minimumReleaseAgeExclude`, `minimumReleaseAgeStrict`, `trustPolicy`, `trustPolicyExclude`, `trustPolicyIgnoreAfter`) from project-level configuration [#11183](pnpm/pnpm#11183).
- `pnpm init` now writes a `devEngines.packageManager` field instead of the `packageManager` field when `init-package-manager` is enabled.
- Added a new setting `runtimeOnFail` that overrides the `onFail` field of `devEngines.runtime` (and `engines.runtime`) in the root project's `package.json`. Accepted values: `ignore`, `warn`, `error`, `download`. For example, setting `runtimeOnFail=download` makes pnpm download the declared runtime version even when the manifest does not set `onFail: "download"`.
- Added a new setting `minimumReleaseAgeIgnoreMissingTime`, which is `true` by default. When enabled, pnpm skips the `minimumReleaseAge` maturity check if the registry metadata does not include the `time` field. Set to `false` to fail resolution instead.

=== Store

- When the global virtual store is enabled, packages that are not allowed to build (and don't transitively depend on packages that are) now get hashes that don't include the engine name (platform, architecture, Node.js major version). This means ~95% of packages in the GVS survive Node.js upgrades and architecture changes without re-import [#10837](pnpm/pnpm#10837).

=== Hooks & Pnpmfiles

- Added support for pnpmfiles written in ESM, using the `.mjs` extension. When `.pnpmfile.mjs` exists, it takes priority over `.pnpmfile.cjs` and only one is loaded [#9730](pnpm/pnpm#9730).

=== CLI & Other

- The built-in `clean`, `setup`, `deploy`, and `rebuild` commands now prefer user scripts over built-in commands. When a project's `package.json` has a script with the same name, `pnpm` executes the script instead of the built-in command. Added `purge` as an alias for the built-in `clean` command, which always runs the built-in regardless of scripts [#11118](pnpm/pnpm#11118).
- Added `-F` as a short alias for the `--filter` option.
- Added support for hidden scripts. Scripts starting with `.` are hidden and cannot be run directly via `pnpm run`. They can only be called from other scripts. Hidden scripts are also omitted from the `pnpm run` listing [#11041](pnpm/pnpm#11041).
- `pnpm approve-builds` now accepts positional arguments for approving or denying packages without the interactive prompt. Prefix a package name with `!` to deny it. Only mentioned packages are affected; the rest are left untouched [#11030](pnpm/pnpm#11030).
- During install, packages with ignored builds that are not yet listed in `allowBuilds` are automatically added to `pnpm-workspace.yaml` with a placeholder value, so users can manually set them to `true` or `false` [#11030](pnpm/pnpm#11030).
- Added `pn` and `pnx` short aliases for `pnpm` and `pnpx` (`pnpm dlx`) [#11052](pnpm/pnpm#11052).
- `pnpm store prune` now displays the total size of removed files [#11047](pnpm/pnpm#11047).
- `pnpm audit --fix` now adds the minimum patched version for each advisory to `minimumReleaseAgeExclude` in `pnpm-workspace.yaml`, so the security fix can be installed without waiting for `minimumReleaseAge` [#11216](pnpm/pnpm#11216).
- pnpm now warns when `optimisticRepeatInstall` skips `shouldRefreshResolution` hooks [#10995](pnpm/pnpm#10995).

=== Performance

- Replaced `node-fetch` with native `undici` for HTTP requests throughout pnpm [#10537](pnpm/pnpm#10537).
- Eliminated redundant internal linking during GVS warm reinstall when no packages were added [#11073](pnpm/pnpm#11073).
- Eliminated the staging directory when importing packages into `node_modules`, avoiding the overhead of creating a temp dir and renaming per package [#11088](pnpm/pnpm#11088).
- CAS files are now written directly to their final content-addressed path instead of to a temp file and renamed. This eliminates ~30k rename syscalls per cold install [#11087](pnpm/pnpm#11087).
- Optimized hot-path string operations in the content-addressable store and increased `gunzipSync` chunk size for fewer buffer allocations during tarball decompression [#11086](pnpm/pnpm#11086).
- Improved HTTP performance with Happy Eyeballs (dual-stack), better keep-alive settings, and an optimized global dispatcher. Tarball downloads with known size now pre-allocate memory to avoid double-copy overhead [#11151](pnpm/pnpm#11151).
- Adopted `If-Modified-Since` for conditional metadata fetches, avoiding re-downloading unchanged registry metadata [#11161](pnpm/pnpm#11161).
- Switched to abbreviated metadata when checking `minimumReleaseAge`, reducing the amount of data fetched from the registry [#11160](pnpm/pnpm#11160).
- Switched the metadata cache to NDJSON format, improving read/write performance [#11188](pnpm/pnpm#11188).

=== Patch Changes

- Switched to `process.stderr.write` instead of `console.error` for script logging [#11140](pnpm/pnpm#11140).
- Respected the `frozen-lockfile` flag when migrating config dependencies [#11067](pnpm/pnpm#11067).
- Removed the `--workspace` flag from the `version` command [#11115](pnpm/pnpm#11115).
- Handled `ENOTSUP` error in the clone import path during parallel I/O [#11117](pnpm/pnpm#11117).
- Fixed `pnpm audit` command.
- Updated dependencies to fix vulnerabilities.
- pnpm now checks whether a package is installable for non-npm-hosted packages (e.g., git or tarball dependencies) after the manifest has been fetched.
- pnpm now explicitly passes the path of the global `rc` config file to `npm`.
- Fixed YAML formatting preservation in `pnpm-workspace.yaml` when running commands like `pnpm update`. Previously, quotes and other formatting were lost even when catalog values didn't change.

  Closes #10425

- The parameter set by the `--allow-build` flag is now written to `allowBuilds`.
- Fixed a bug in which specifying `filter` in `pnpm-workspace.yaml` would cause pnpm to not detect any projects.
- Deferred patch errors until all patches in a group are applied, so that one failed patch does not prevent other patches from being attempted.
- pnpm now fails on incompatible lockfiles in CI when frozen lockfile mode is enabled [#10978](pnpm/pnpm#10978).
- Fixed `strictDepBuilds` and `allowBuilds` checks being bypassed when a package's build side-effects are cached in the store [#11039](pnpm/pnpm#11039).
- In GVS mode, `pnpm approve-builds` now runs a full install instead of rebuild, ensuring that GVS hash directories and symlinks are updated correctly after changing `allowBuilds` [#11043](pnpm/pnpm#11043).
- Fixed a crash in the lockfile merger when merging non-semver version strings (e.g. `link:`, `file:`, git URLs) [#11102](pnpm/pnpm#11102).
- Handled `ENOTSUP` error in `linkOrCopy` during parallel imports [#11103](pnpm/pnpm#11103).
- Skipped linking bins that already reference the correct target. This avoids redundant I/O during repeated installs and prevents permission errors when the store is read-only (e.g. Docker layer caching, CI prewarm, NFS) [#11069](pnpm/pnpm#11069).
- Fixed `_password` handling for the default registry to decode from base64 before use, consistent with scoped registry behavior [#11089](pnpm/pnpm#11089).
- Fixed a bug where the CAS locker cache was not updated when a file already existed with correct integrity [#11085](pnpm/pnpm#11085).
- Prevented catalog entries from being removed by `cleanupUnusedCatalogs` when they are referenced only from workspace `overrides` [#11075](pnpm/pnpm#11075).
- Resolved patch file paths during `pnpm fetch` [#11054](pnpm/pnpm#11054).
- Fixed invalid specifiers for peers on all non-exact version selectors [#11049](pnpm/pnpm#11049).
- Fixed false "Command not found" error on Windows when the command exists but exits with a non-zero exit code [#11000](pnpm/pnpm#11000).
- Prepended `Bearer` to the authorization token generated by `tokenHelper` if it is missing, aligning with npm's behavior [#11097](pnpm/pnpm#11097).
- Propagated error cause when throwing `PnpmError` in `@pnpm/npm-resolver` [#10990](pnpm/pnpm#10990).
- Fixed SQLite race condition during store initialization on Windows.
- Removed `rimrafSync` in `importIndexedDir` fast-path error handler [#11168](pnpm/pnpm#11168).
- Fixed `pnpm dedupe --check` unexpectedly failing due to non-deterministic resolution [#11110](pnpm/pnpm#11110).
- Fixed empty files not being rejected in `isEmptyDirOrNothing` [#11182](pnpm/pnpm#11182).
- Fixed `.bat`/`.cmd` token helpers not working on Windows due to missing `shell: true` option.



<!-- sponsors -->

=== Platinum Sponsors

<table>
  <tbody>
    <tr>
      <td align="center" valign="middle">
        <a href="https://bit.cloud/?utm_source=pnpm&utm_medium=release_notes" target="_blank"><img src="https://pnpm.io/img/users/bit.svg" width="80" alt="Bit"></a>
      </td>
    </tr>
  </tbody>
</table>

=== Gold Sponsors

<table>
  <tbody>
    <tr>
      <td align="center" valign="middle">
        <a href="https://sanity.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/sanity.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/sanity_light.svg" />
            <img src="https://pnpm.io/img/users/sanity.svg" width="120" alt="Sanity" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/discord.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/discord_light.svg" />
            <img src="https://pnpm.io/img/users/discord.svg" width="220" alt="Discord" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://vite.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank"><img src="https://pnpm.io/img/users/vitejs.svg" width="42" alt="Vite"></a>
      </td>
    </tr>
    <tr>
      <td align="center" valign="middle">
        <a href="https://serpapi.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/serpapi_dark.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/serpapi_light.svg" />
            <img src="https://pnpm.io/img/users/serpapi_dark.svg" width="160" alt="SerpApi" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/coderabbit.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/coderabbit_light.svg" />
            <img src="https://pnpm.io/img/users/coderabbit.svg" width="220" alt="CodeRabbit" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://stackblitz.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/stackblitz.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/stackblitz_light.svg" />
            <img src="https://pnpm.io/img/users/stackblitz.svg" width="190" alt="Stackblitz" />
          </picture>
        </a>
      </td>
    </tr>
    <tr>
      <td align="center" valign="middle">
        <a href="https://workleap.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/workleap.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/workleap_light.svg" />
            <img src="https://pnpm.io/img/users/workleap.svg" width="190" alt="Workleap" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://nx.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/nx.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/nx_light.svg" />
            <img src="https://pnpm.io/img/users/nx.svg" width="50" alt="Nx" />
          </picture>
        </a>
      </td>
    </tr>
  </tbody>
</table>

<!-- sponsors end -->


Release notes:
- pnpm 11.0.0: https://github.com/pnpm/pnpm/releases/tag/v11.0.0
- Migration guide: https://pnpm.io/11.x/migration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants