<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>pnpm Blog</title>
    <link>https://pnpm.io/blog</link>
    <description>pnpm Blog</description>
    <lastBuildDate>Sun, 29 Nov 2026 00:00:00 GMT</lastBuildDate>
    <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
    <language>en</language>
    <item>
      <title><![CDATA[pnpm 12.25.1]]></title>
      <link>https://pnpm.io/blog/releases/12.25.1</link>
      <guid>https://pnpm.io/blog/releases/12.25.1</guid>
      <pubDate>Sun, 29 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[]]></description>
      <content:encoded><![CDATA[<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<ul>
<li>A crate installed globally with <code>rustup</code> can now run <code>cargo</code> and <code>rustc</code> outside a Rust project. pnpm sets <code>stable</code> as the default toolchain of the rustup it installs. <code>cargo dylint</code> failed with "Could not find git dependency root" before it had built its lint library. Add the crate again to fix an existing install.</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.25.0]]></title>
      <link>https://pnpm.io/blog/releases/12.25.0</link>
      <guid>https://pnpm.io/blog/releases/12.25.0</guid>
      <pubDate>Sun, 29 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[This release lets pnpm add -g crate:<name> and pnx crate:<name> build and run Rust crates, lets pnpm pack take package specs, and adds dotted keys to pnpm config set. pnpm patch-commit now records changes to binary files. The release carries security fixes. pnpm now refuses a tarball, git, or...]]></description>
      <content:encoded><![CDATA[<p>This release lets <code>pnpm add -g crate:&#x3C;name></code> and <code>pnx crate:&#x3C;name></code> build and run Rust crates, lets <code>pnpm pack</code> take package specs, and adds dotted keys to <code>pnpm config set</code>. <code>pnpm patch-commit</code> now records changes to binary files. The release carries security fixes. pnpm now refuses a tarball, git, or directory dependency whose <code>package.json</code> has an invalid <code>name</code>. On Unix, it opens store lock files relative to a verified directory handle.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>
<p><code>pnpm add -g crate:&#x3C;name></code> builds the executables of a crate and links them into the global bin directory, such as <code>pnpm add -g crate:ripgrep@14</code>. <code>pnpm list -g</code> lists the crate as <code>crate:&#x3C;name></code>. <code>pnpm update -g</code> and <code>pnpm remove -g</code> take the same selector.</p>
<p>A crate installed globally can run with a rustup that pnpm installs for it. <code>pnpm add -g crate:cargo-dylint,rustup</code> downloads rustup into the store and runs the commands of the crate with it. That rustup keeps its toolchains in the store and leaves <code>~/.rustup</code> alone. <code>rustup@&#x3C;version></code> names a rustup version.</p>
</li>
<li>
<p><code>pnx crate:&#x3C;name></code> runs an executable of a crate, such as <code>pnx crate:ripgrep@14 --version</code>. pnpm downloads the crate and its dependencies into the store and builds them offline with a Rust toolchain from the store. <code>--package=crate:&#x3C;name></code> names the crate when the command is one of its other executables. A Package URL such as <code>pkg:cargo/ripgrep@14.1.1</code> names a crate too.</p>
</li>
<li>
<p><code>pnpm pack</code> now accepts package specs, like <code>npm pack &#x3C;spec></code>. It packs a registry package (<code>pnpm pack foo@1.0.0</code>), a git repository (<code>pnpm pack github:user/repo</code>), a tarball URL (<code>pnpm pack https://pkg.pr.new/vite@24234</code>), a local directory, or a local tarball file. pnpm verifies a registry download against the integrity declared in the registry metadata.</p>
</li>
<li>
<p><code>pnpm config set</code> accepts dotted keys to update individual fields in YAML settings. For example, <code>pnpm config set -g globalPackagesConfig.virtualStoreType project</code> keeps the other settings for global packages.</p>
</li>
<li>
<p><code>pnpm view node</code> now reads the Node.js release index, the same source <code>pnpm add node</code> installs from. <code>pnpm view node versions</code> lists Node.js releases, and <code>pnpm view node@22 npm</code> shows the npm version bundled with the newest Node.js 22 release. Use <code>node@npm:node</code> to view the npm package named <code>node</code>.</p>
</li>
<li>
<p>Added <code>pnpm runtime unset</code> for removing runtimes installed by <code>pnpm runtime set</code>.</p>
</li>
<li>
<p><code>pnpm update --latest</code> now moves the Rust release pinned in <code>rust-toolchain.toml</code> to the newest release of its channel when <code>cargo.enabled</code> is <code>true</code>. <code>1.95.0</code> becomes the newest stable version, and <code>nightly-2026-01-01</code> the newest nightly. <code>pnpm outdated</code> lists the pinned release as <code>rust</code> when a newer one is out. Pass <code>rust</code> to select only the toolchain, or <code>!rust</code> to leave it out.</p>
</li>
<li>
<p>On a machine without rustup, the Rust shims that <code>pnpm shim add rust</code> and <code>pnpm add -g rust</code> create now run the release that a <code>+&#x3C;toolchain></code> argument or <code>RUSTUP_TOOLCHAIN</code> names, such as <code>cargo +nightly build</code>. pnpm installs the release into the store first. A <code>RUSTUP_TOOLCHAIN</code> that is the path of a toolchain directory runs the tool from that directory.</p>
</li>
<li>
<p>The <code>hoistingLimits</code> value that stops hoisting at each workspace project is now <code>projects</code>. The old name, <code>workspaces</code>, still works.</p>
</li>
<li>
<p><code>pnpm add -g</code> and <code>pnpm update -g</code> now include pending agent skills in the interactive approval prompt.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security">Security<a class="hash-link" href="#security" aria-label="Direct link to Security">#</a></h3>
<ul>
<li>
<p>pnpm now refuses to install a tarball, git, or directory dependency whose <code>package.json</code> has an invalid <code>name</code>, and fails with <code>ERR_PNPM_INVALID_DEPENDENCY_NAME</code>. A name such as <code>esbuild@0.20.0(</code> could make the package pass for a registry package in the lockfile and in <code>allowBuilds</code>.</p>
<p>Resolution now fails when two packages with different resolutions would share one <code>packages</code> entry of the lockfile.</p>
</li>
<li>
<p>Fixed two URL dependencies that could share a virtual store directory. A URL with <code>(</code> or <code>)</code> could match one with <code>_</code>, and so could a URL dependency with peers. A URL ending in what looks like a hash suffix could match another URL's hashed directory name. Such dependencies now get a hash suffix on their directory name.</p>
</li>
<li>
<p>pnpm now rejects a <code>jsr:</code> specifier whose scope or package name contains an underscore. Before, <code>jsr:@a_/b</code> and <code>jsr:@a/_b</code> both resolved to the npm package <code>@jsr/a___b</code>.</p>
</li>
<li>
<p>On Unix, pnpm now opens store lock files relative to a verified directory handle <a href="https://github.com/pnpm/pnpm/issues/18509">#18509</a>.</p>
</li>
<li>
<p>When pnpm resolves a runtime from its <code>SHASUMS256.txt</code> file, it now skips a file whose hash is not 64 hex digits. It used to write an empty or wrong integrity for that file to the lockfile.</p>
</li>
</ul>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> no longer crashes with <code>nodeLinker: hoisted</code> and <code>hoistingLimits: projects</code> when a project depends on a package in a dependency cycle, such as <code>eslint</code> or <code>browserslist</code>.</p>
</li>
<li>
<p>Fixed installs failing in shared Unix projects when another user owns a package executable that the current user can already run <a href="https://github.com/pnpm/pnpm/issues/18491">#18491</a>.</p>
</li>
<li>
<p>pnpm now trusts the certificate authorities listed with <code>ca[]=</code> in <code>.npmrc</code>, the array form the <code>ca</code> setting documents. They were ignored, so requests to a registry with a private certificate authority failed with <code>invalid peer certificate: UnknownIssuer</code>.</p>
<p><code>pnpm config get ca</code> and <code>pnpm config list</code> now show every certificate authority set with <code>ca=</code> or <code>ca[]=</code> lines in <code>.npmrc</code>. Several certificate authorities are printed as a JSON array, and a single one is still printed as a string. They showed only the last one.</p>
</li>
<li>
<p>pnpm now reads more malformed package tarballs the way npm does, and installs the same files from them. Among them are a tar that continues into a second gzip member, a header whose checksum runs into its type field, and a header after a single zero block. pnpm also ignores data after the end-of-archive marker, as npm does.</p>
</li>
<li>
<p>Fixed bin shims in the global virtual store retaining the first checkout's path when projects share a store through a relative path or symlink.</p>
</li>
<li>
<p>Interrupting pnpm with <code>Ctrl+C</code> no longer leaves a temporary file next to a file pnpm was starting to write, such as the lockfile <a href="https://github.com/pnpm/pnpm/issues/1418">#1418</a>.</p>
</li>
<li>
<p>On macOS, <code>pnpm install</code> now runs <code>xattr</code> only for native binaries that carry the quarantine attribute <a href="https://github.com/pnpm/pnpm/issues/18469">#18469</a>.</p>
</li>
</ul>
<h3 id="packageyaml-and-packagejson5-manifests"><code>package.yaml</code> and <code>package.json5</code> manifests<a class="hash-link" href="#packageyaml-and-packagejson5-manifests" aria-label="Direct link to package.yaml and package.json5 manifests">#</a></h3>
<ul>
<li>
<p><code>pnpm install --frozen-lockfile</code> no longer fails with <code>ERR_PNPM_OUTDATED_LOCKFILE</code> when a project depends on a workspace project whose manifest is <code>package.yaml</code> or <code>package.json5</code>. It failed when the install was filtered with <code>--filter</code>, or when <code>sharedWorkspaceLockfile</code> was <code>false</code>.</p>
</li>
<li>
<p><code>pnpm install</code> now reads a <code>package.yaml</code> or <code>package.json5</code> manifest for a <code>file:</code> directory dependency. It does the same for an injected workspace project declared by path, such as <code>workspace:../lib</code>. The dependencies of such a package were not installed. <code>pnpm install --frozen-lockfile</code> then rejected the lockfile that <code>pnpm install</code> had written.</p>
<p>For such a <code>file:</code> directory, <code>pnpm install</code> also copies only the files that the <code>files</code> field selects, and it no longer skips the install scripts of the directory.</p>
</li>
<li>
<p><code>pnpm install</code> now links the bins of a workspace project, or of a <code>link:</code> or <code>file:</code> directory dependency, whose manifest is <code>package.yaml</code> or <code>package.json5</code>.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>nodeLinker: loaded</code> no longer fails when the manifest of a workspace project is <code>package.yaml</code> or <code>package.json5</code>.</p>
</li>
<li>
<p><code>pnpm deploy</code> with <code>--legacy</code> or <code>forceLegacyDeploy</code> now deploys a project whose manifest is <code>package.yaml</code> or <code>package.json5</code>. It failed with <code>ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND</code>.</p>
</li>
<li>
<p>A peer dependency that the workspace root provides through a <code>link:</code> dependency now resolves to the linked package's version when that package's manifest is <code>package.yaml</code> or <code>package.json5</code>. pnpm resolved it to the newest matching version from the registry.</p>
</li>
</ul>
<h3 id="resolving-dependencies-and-the-lockfile">Resolving dependencies and the lockfile<a class="hash-link" href="#resolving-dependencies-and-the-lockfile" aria-label="Direct link to Resolving dependencies and the lockfile">#</a></h3>
<ul>
<li>
<p>Fixed <code>pnpm update &#x3C;name>@&#x3C;version></code> replacing a catalog reference in <code>package.json</code> in manual catalog mode. The update now moves the referenced catalog entry to the requested version or range <a href="https://github.com/pnpm/pnpm/issues/18547">#18547</a>.</p>
</li>
<li>
<p><code>catalog.unused: prune</code> no longer removes default catalog entries that a project or an override references as <code>catalog:default</code>, the long form of <code>catalog:</code>. It also keeps entries referenced with whitespace around the catalog name, such as <code>catalog: default</code>.</p>
</li>
<li>
<p>Running <code>pnpm add</code> or <code>pnpm update</code> on a single project now preserves shared lockfile entries for projects missing from a sparse checkout <a href="https://github.com/pnpm/pnpm/issues/18465">#18465</a>.</p>
</li>
<li>
<p><code>pnpm install</code> drops an optional peer when you remove its last provider. <code>pnpm dedupe</code> and <code>pnpm install --fix-lockfile</code> also remove stale optional peer bindings from existing lockfiles <a href="https://github.com/pnpm/pnpm/issues/18482">#18482</a>.</p>
</li>
<li>
<p><code>pnpm fetch --filter</code> now fetches only the packages of the selected projects when the workspace uses a shared lockfile <a href="https://github.com/orgs/pnpm/discussions/16441">#16441</a>.</p>
</li>
<li>
<p>pnpm now installs the Rust toolchain of a <code>rust-toolchain.toml</code> whose <code>channel</code> ends in the host of the machine, such as <code>1.95.0-x86_64-unknown-linux-gnu</code>. Such a file was left to rustup.</p>
</li>
</ul>
<h3 id="building-and-patching-dependencies">Building and patching dependencies<a class="hash-link" href="#building-and-patching-dependencies" aria-label="Direct link to Building and patching dependencies">#</a></h3>
<ul>
<li>
<p>A package's lifecycle scripts now always run after those of the dependencies it reaches. They could run at the same time when the dependency was reached only through a package without scripts that another dependency had reached first.</p>
</li>
<li>
<p><code>pnpm patch-commit</code> now records changes to binary files, and <code>patchedDependencies</code> patches that change binary files apply byte for byte. Before, binary files were written to the patch as mangled text diffs.</p>
</li>
<li>
<p>Fixed <code>pnpm rebuild &#x3C;pkg></code> leaving an approved Git dependency unprepared after <code>pnpm install --ignore-scripts</code> <a href="https://github.com/pnpm/pnpm/issues/18551">#18551</a>.</p>
</li>
<li>
<p><code>pnpm rebuild &#x3C;pkg></code> and <code>pnpm approve-builds &#x3C;pkg></code> now keep the build output of unselected <code>file:</code> directory dependencies under both isolated and hoisted node linkers.</p>
</li>
</ul>
<h3 id="checking-dependencies-before-a-run">Checking dependencies before a run<a class="hash-link" href="#checking-dependencies-before-a-run" aria-label="Direct link to Checking dependencies before a run">#</a></h3>
<ul>
<li>
<p><code>pnpm run</code> and <code>pnpm exec</code> now treat a missing lockfile as dependencies that are not up to date when <code>verifyDepsBeforeRun</code> is enabled. The <code>install</code> action restores the lockfile before running the command, and the <code>error</code> action refuses to run <a href="https://github.com/pnpm/tasks/issues/219">pnpm/tasks#219</a>.</p>
</li>
<li>
<p>Fixed <code>verifyDepsBeforeRun</code> reporting an unchanged <code>file:</code> directory dependency as out of date when installed under an alias <a href="https://github.com/pnpm/pnpm/issues/18560">#18560</a>.</p>
</li>
<li>
<p>Fixed <code>verifyDepsBeforeRun</code> incorrectly reporting stale dependencies after an install pruned unused entries from <code>minimumReleaseAgeExclude</code> or <code>trustPolicyExclude</code> <a href="https://github.com/pnpm/pnpm/issues/18498">#18498</a>.</p>
</li>
<li>
<p>Fixed filtered dependency checks accepting packages installed from a previous registry after a frozen install. Exclusion pruning now preserves negated name patterns and patterns containing <code>?</code>.</p>
</li>
</ul>
<h3 id="the-store">The store<a class="hash-link" href="#the-store" aria-label="Direct link to The store">#</a></h3>
<ul>
<li>
<p><code>pnpm store prune</code> now removes global virtual store packages after every project that used them is deleted. It also removes the Python environments that no project uses and the Cargo crates that no Cargo workspace links.</p>
<p>An install that uses the global virtual store now fails if it cannot register the project in the store.</p>
</li>
<li>
<p><code>pnpm store add &#x3C;directory></code> now adds a tarball that is a symlink to a file outside the directory, such as the links a Nix <code>linkFarm</code> creates. It used to skip such a tarball without a warning. A directory with no tarballs now fails with <code>ERR_PNPM_STORE_ADD_NO_TARBALLS</code>, which names the directory.</p>
</li>
<li>
<p>pnpm now accepts tarballs with unambiguous multiline package metadata from older npm releases. When <code>pnpm store add</code> fails to fetch or extract a tarball, the warning identifies the archive <a href="https://github.com/pnpm/pnpm/issues/18479">#18479</a>.</p>
</li>
<li>
<p>pnpm no longer aborts on a corrupt entry in the store index. An entry whose damage makes it claim more data than it holds now fails like any other unreadable entry.</p>
</li>
</ul>
<h3 id="commands-and-output">Commands and output<a class="hash-link" href="#commands-and-output" aria-label="Direct link to Commands and output">#</a></h3>
<ul>
<li>
<p>Fixed <code>pnpm install</code> reporting an error from <code>pnpm add</code> when an unknown option precedes a separate value <a href="https://github.com/pnpm/pnpm/issues/18494">#18494</a>.</p>
</li>
<li>
<p>An <code>include</code> error about the override policy now names <code>overrides.unused</code>. pnpm named the older <code>warnUnusedOverrides</code> setting.</p>
</li>
<li>
<p><code>pnpm sbom</code> now lists components, SPDX packages, and SPDX relationships in the same order on every run for the same lockfile. The order varied between runs before.</p>
</li>
<li>
<p><code>pnpm audit deprecations</code> now lists the deprecated versions of a package that share a deprecation message in one block, with the message shown once. Long dependency chains in <code>pnpm audit deprecations</code> and <code>pnpm audit engines</code> now show only the direct dependency and the two packages closest to the reported one.</p>
</li>
<li>
<p><code>pnpm docs</code>, <code>pnpm home</code>, and <code>pnpm repo</code> now print the URL before opening it in the browser <a href="https://github.com/pnpm/pnpm/issues/18516">#18516</a>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.24.0]]></title>
      <link>https://pnpm.io/blog/releases/12.24.0</link>
      <guid>https://pnpm.io/blog/releases/12.24.0</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[This release adds pnpm audit deprecations and pnpm audit engines, moves install warnings into a checks footer above Done in, and lets global installs link approved agent skills. It carries a security fix: pnpm now reads every package tarball the way npm does, or refuses it. pnpm approve <pkg>...]]></description>
      <content:encoded><![CDATA[<p>This release adds <code>pnpm audit deprecations</code> and <code>pnpm audit engines</code>, moves install warnings into a checks footer above <code>Done in</code>, and lets global installs link approved agent skills. It carries a security fix: pnpm now reads every package tarball the way npm does, or refuses it. <code>pnpm approve &#x3C;pkg></code> also no longer grants every permission to a package that has no pending request.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>
<p>Added <code>pnpm audit deprecations</code>, which lists the installed packages that their registry marks as deprecated, with the projects or packages that bring each one in. It exits with code <code>1</code> if any package is deprecated. The deprecated line at the end of an install now points to this command.</p>
</li>
<li>
<p>Added <code>pnpm audit engines</code>, which lists the installed packages that don't support the current Node.js version or platform, with what each one wants and the projects or packages that bring it in. It exits with code <code>1</code> if any package is incompatible. The lines about unsupported Node.js versions and platforms at the end of an install now point to this command.</p>
</li>
<li>
<p>An install now ends with a checks footer above <code>Done in</code>. It lists deprecated packages, peer dependency issues, unsupported engines and platforms, the lifecycle scripts that ran, and the lockfile's supply-chain verdict. In a terminal, the footer is shown live below the progress while the install runs.</p>
<p>Deprecated packages are listed on one line, such as <code>✗ 2 packages are deprecated: request@2.88.2 and uuid@3.4.0</code>. Peer dependencies with issues are named the same way, with a hint to run <code>pnpm peers check</code> for details.</p>
<p>Dependencies that don't support the current Node.js version or platform are grouped by what they want, such as <code>✗ 15 packages want Node.js ^18.18.0 || ^20.9.0 || >=21.1.0, not 12.0.0: …</code>. When packages declare different Node.js ranges, the line shows the versions that satisfy all of them. pnpm no longer prints a warning for each of these packages.</p>
<p>One line names the project scripts that ran, one the dependencies that were built, and one the dependency builds that came from the side-effects cache. A dependency that was skipped because its optional build failed is listed as a problem. While scripts run, their line shows a spinner and names the running scripts. A script that fails prints its output, as before. In CI and piped output, a script that succeeds without printing anything no longer prints any lines.</p>
<p>The <code>pnpm:install-check</code> log event of an unsupported engine or platform now carries the error <code>code</code>, the <code>pkgId</code>, and what the package wants in <code>wanted</code>. An unsupported engine event also carries the <code>current</code> versions.</p>
</li>
<li>
<p>The install summary prints an updated dependency on one line, such as <code>↑ lodash 4.17.20 → 4.18.1</code>. A downgrade is marked with <code>↓</code>. The changed part of the new version is colored the way <code>pnpm outdated</code> colors it.</p>
<p>In a workspace, the summary names the projects behind each change only when the changes were made by different projects. A change made by one project shows its package name, such as <code>in @scope/app</code>. A change made by several projects shows how many, such as <code>in 5 projects</code>.</p>
<p>Dependencies with newer versions are named on one line at the end, with a hint to run <code>pnpm outdated</code>. Summary lines no longer mark deprecated packages or end with "(x is available)". "Already up to date" is only printed when the install changed nothing.</p>
</li>
<li>
<p>When an install finishes, its progress lines are replaced by the stats, such as <code>Packages: +58 -2 (90% downloaded)</code>, with the share of packages downloaded or reused from the store. In the bar below it, a downloaded package is drawn as <code>↓</code> and a reused one as <code>+</code>.</p>
<p>The <code>Scope:</code> line is printed only when a filter selected some of the workspace projects, not when the command ran on all of them.</p>
</li>
<li>
<p>Global installs can now link approved agent skills into skill directories under your home directory. Use <code>pnpm approve -g</code> to review skills and build scripts for globally installed packages <a href="https://github.com/pnpm/tasks/issues/117">pnpm/tasks#117</a>.</p>
</li>
<li>
<p><code>pnpm install</code> warns when a locally declared package permission matches no dependency during a full resolution. The permission stays saved for future installs. Set <code>permissions.unused</code> to <code>ignore</code> alongside <code>permissions.rules</code> to turn off the warning <a href="https://github.com/pnpm/pnpm/issues/18429">#18429</a>.</p>
</li>
<li>
<p><code>pnpm-workspace.yaml</code> accepts grouped forms of the override and catalog settings. <code>overrides.rules</code> holds override selectors alongside <code>overrides.unused</code> (<code>warn</code> or <code>ignore</code>). <code>catalog.entries</code> holds default catalog entries alongside <code>catalog.unused</code> (<code>ignore</code> or <code>prune</code>). <code>catalog.mode</code> and <code>catalog.defaultSaveTarget</code> configure how <code>pnpm add</code> uses catalogs and where it saves new entries. The existing map forms and flat settings remain supported <a href="https://github.com/pnpm/pnpm/issues/18429">#18429</a>.</p>
</li>
<li>
<p>Package tarball downloads can use credentials over plain HTTP when the user's global settings explicitly declare the HTTP registry URL <a href="https://github.com/pnpm/pnpm/issues/18427">#18427</a>.</p>
</li>
<li>
<p>A single-package version bump now allows unstaged edits and untracked files excluded from the package. Staged changes still block the bump <a href="https://github.com/pnpm/pnpm/issues/18417">#18417</a>.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security-and-approvals">Security and approvals<a class="hash-link" href="#security-and-approvals" aria-label="Direct link to Security and approvals">#</a></h3>
<ul>
<li>
<p>pnpm now reads every package tarball the way npm does, or refuses it. A tarball whose headers npm could read differently, such as one with a malformed PAX header, could install different files with pnpm than with npm. A directory entry with a nonzero size and a PAX header that sets one key twice are now read as npm reads them. pnpm now extracts contiguous file entries in a tarball, as npm does.</p>
</li>
<li>
<p><code>pnpm approve &#x3C;pkg></code> no longer grants build scripts and agent skills to a package that has no pending request. It now asks which permissions to grant. In CI or without an interactive terminal, configure <code>permissions</code> or use <code>pnpm approve-builds</code> to grant build permission in advance <a href="https://github.com/pnpm/pnpm/issues/18415">#18415</a>.</p>
</li>
<li>
<p><code>pnpm approve</code> now lets you approve a Git dependency across updates. Press R on the package in the interactive prompt or pass its package name and repository URL without a commit <a href="https://github.com/pnpm/pnpm/issues/18375">#18375</a>. A bare package name or Git ref that cannot match a pending Git dependency now fails with the valid selectors, and no decisions are saved <a href="https://github.com/pnpm/pnpm/issues/18388">#18388</a>.</p>
</li>
<li>
<p>Fixed exact versions with SemVer build metadata in <code>minimumReleaseAgeExclude</code>, <code>trustPolicyExclude</code>, and <code>allowBuilds</code>. Pruning now keeps exclusions for versions in the lockfile <a href="https://github.com/pnpm/pnpm/issues/18444">#18444</a>.</p>
</li>
</ul>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p>Fixed <code>pnpm install --offline --frozen-lockfile</code> failing the release-age check when workspace manifests are copied after <code>pnpm fetch</code> <a href="https://github.com/pnpm/pnpm/issues/18409">#18409</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now resolves a <code>catalog:</code> peer dependency declared by a local <code>file:</code> dependency. Installing such a dependency failed with <code>ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER</code> <a href="https://github.com/pnpm/tasks/issues/310">pnpm/tasks#310</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm install</code> failing or writing an incomplete lockfile key when a <code>file:</code> dependency path contains parentheses <a href="https://github.com/pnpm/pnpm/issues/18443">#18443</a>.</p>
</li>
<li>
<p>Fixed frozen installs rejecting a local dependency when the workspace override and lockfile use equivalent relative paths <a href="https://github.com/pnpm/pnpm/issues/18381">#18381</a>.</p>
</li>
<li>
<p>Fixed concurrent installs sharing a store occasionally copying an empty or incomplete package file <a href="https://github.com/pnpm/pnpm/issues/18433">#18433</a>.</p>
</li>
<li>
<p>Fixed repeated installs before <code>pnpm run</code> and <code>pnpm exec</code> after a scope registry changes when the command would run a frozen or filtered install <a href="https://github.com/pnpm/pnpm/issues/18448">#18448</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm deploy --prod --legacy</code> failing on patches for packages excluded from the deployment <a href="https://github.com/pnpm/pnpm/issues/18394">#18394</a>.</p>
</li>
</ul>
<h3 id="resolving-and-linking-dependencies">Resolving and linking dependencies<a class="hash-link" href="#resolving-and-linking-dependencies" aria-label="Direct link to Resolving and linking dependencies">#</a></h3>
<ul>
<li>
<p>Fixed missing commands in <code>node_modules/.bin</code> when a patched dependency moves to a new slot in the global virtual store <a href="https://github.com/pnpm/pnpm/issues/18398">#18398</a>.</p>
</li>
<li>
<p>Fixed packages in the global virtual store resolving an injected workspace dependency from another checkout <a href="https://github.com/pnpm/pnpm/issues/18447">#18447</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm install</code> leaving a hidden hoist link behind when the workspace root adds the package as a direct dependency <a href="https://github.com/pnpm/pnpm/issues/18362">#18362</a>.</p>
</li>
<li>
<p>Fixed <code>overrides</code> accepting selectors with multiple parents when a middle package had a version range <a href="https://github.com/pnpm/pnpm/issues/18445">#18445</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm update</code> overwriting Node.js version ranges such as <code>>=20 &#x3C;23</code> in <code>engines.runtime</code> and <code>devEngines.runtime</code> with an exact version <a href="https://github.com/pnpm/pnpm/issues/18360">#18360</a>.</p>
</li>
<li>
<p>Dependency changes now preserve the runtime policy declared in <code>package.json</code> when <code>runtimeOnFail</code> is set <a href="https://github.com/pnpm/pnpm/issues/18376">#18376</a>.</p>
</li>
</ul>
<h3 id="platforms-and-the-pnpm-binary">Platforms and the pnpm binary<a class="hash-link" href="#platforms-and-the-pnpm-binary" aria-label="Direct link to Platforms and the pnpm binary">#</a></h3>
<ul>
<li>
<p>Fixed the FreeBSD x64 build of <code>pnpm</code>, which failed to compile.</p>
</li>
<li>
<p>The pnpm binary is 10 to 13 MB smaller on Linux and macOS. It no longer includes the symbol names that only debuggers use.</p>
</li>
<li>
<p>On Unix, scripts started through Corepack now receive signals sent to the pnpm PID. This requires Node.js 22.15 or later on the 22.x line, or Node.js 23.11 or later <a href="https://github.com/pnpm/pnpm/issues/18408">#18408</a>.</p>
</li>
</ul>
<h3 id="commands-and-settings">Commands and settings<a class="hash-link" href="#commands-and-settings" aria-label="Direct link to Commands and settings">#</a></h3>
<ul>
<li>
<p><code>pnpm info</code> and <code>pnpm view</code> now report a fully unpublished package with <code>ERR_PNPM_PACKAGE_NOT_FOUND</code>. They used to fail with a metadata decoding error, which stopped tools such as Changesets from checking the rest of a release. <code>pnpm add --save-types</code> now skips a <code>@types</code> package that was fully unpublished <a href="https://github.com/pnpm/pnpm/issues/18428">#18428</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm sbom --dev</code> omitting optional dependencies of development dependencies <a href="https://github.com/pnpm/pnpm/issues/18403">#18403</a>.</p>
</li>
<li>
<p>Downloaded Node.js, Deno, and Bun runtimes now declare their MIT license in <code>package.json</code>. This lets <code>pnpm licenses list</code> report the runtime's declared license <a href="https://github.com/pnpm/pnpm/issues/18431">#18431</a>.</p>
</li>
<li>
<p>pnpm now treats an empty <code>XDG_CONFIG_HOME</code>, <code>XDG_CACHE_HOME</code>, <code>XDG_DATA_HOME</code>, or <code>PNPM_HOME</code> as unset and uses the default directory. An empty value made pnpm read and write its global config, auth file, and cache in a <code>pnpm</code> directory under the current working directory.</p>
</li>
<li>
<p>pnpm now expands a leading <code>~/</code> in <code>cacheDir</code> values loaded from the global config or <code>PNPM_CONFIG_CACHE_DIR</code> to the user's home directory, as it does for <code>storeDir</code>.</p>
</li>
<li>
<p><code>pnpm config set</code> now writes values containing Unicode line separators (U+2028 and U+2029) to <code>pnpm-workspace.yaml</code> unchanged, so reading the setting back returns the value that was set.</p>
</li>
<li>
<p>When <code>pnpm-workspace.yaml</code> mostly uses double quotes, quoted values pnpm adds to it now use double quotes, such as the entries written by <code>pnpm config set</code>, <code>pnpm approve-builds</code>, and catalog updates. Previously only <code>minimumReleaseAgeExclude</code> and <code>trustPolicyExclude</code> entries followed the file's quote style <a href="https://github.com/pnpm/pnpm/pull/18364">#18364</a>.</p>
</li>
<li>
<p><code>pnpm install</code> no longer warns about a project's own <code>pnpm-workspace.yaml</code> when the workspace root already sets every setting in it. A project that is also installed on its own, such as a git submodule, can keep its <code>pnpm-workspace.yaml</code> without the warning <a href="https://github.com/orgs/pnpm/discussions/18441">#18441</a>.</p>
</li>
</ul>
<h3 id="install-output">Install output<a class="hash-link" href="#install-output" aria-label="Direct link to Install output">#</a></h3>
<ul>
<li>
<p>The install summary of a project with no previous install lists only the dependencies the command added or changed. A fresh <code>pnpm install</code> of a single project no longer lists every direct dependency, which matches how workspace projects were already reported. In a workspace, the summary again lists a dependency added to a project whose previous install had no dependencies.</p>
</li>
<li>
<p><code>pnpm install --lockfile-only</code> shows its progress again, counting the packages it resolves.</p>
</li>
<li>
<p>An install from a project inside a workspace with a shared lockfile no longer prefixes its progress lines with the path to the workspace root. In CI and piped output, a large download now prints one line when it finishes, without the <code>0.00 B</code> line at its start.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.23.0]]></title>
      <link>https://pnpm.io/blog/releases/12.23.0</link>
      <guid>https://pnpm.io/blog/releases/12.23.0</guid>
      <pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[This release adds pnpm edit, pnpm catalog migrate, and pnpm link --hard, and moves deprecation warnings into the install summary. Platform variants are removed, so packages that publish them need to move to optionalDependencies. It also carries security fixes: pnpm no longer reads otp from...]]></description>
      <content:encoded><![CDATA[<p>This release adds <code>pnpm edit</code>, <code>pnpm catalog migrate</code>, and <code>pnpm link --hard</code>, and moves deprecation warnings into the install summary. Platform variants are removed, so packages that publish them need to move to <code>optionalDependencies</code>. It also carries security fixes: pnpm no longer reads <code>otp</code> from config files, and it sends registry credentials only over HTTPS.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<h3 id="packing-and-publishing">Packing and publishing<a class="hash-link" href="#packing-and-publishing" aria-label="Direct link to Packing and publishing">#</a></h3>
<ul>
<li>
<p>Removed platform variants. A package version has one archive again.</p>
<p>pnpm no longer reads <code>publishConfig.variants</code> or the <code>variant</code> field of <code>package.json</code>. <code>pnpm pack --variant</code> and the <code>--upload-variant</code>, <code>--variant-integrity</code> and <code>--no-variants</code> options of <code>pnpm publish</code> are gone. pnpr no longer accepts variant archives with a version or serves them at <code>&#x3C;name>@&#x3C;version>/variants/&#x3C;tag></code>.</p>
<p>To ship builds for several platforms, publish each as its own package and list them in <code>optionalDependencies</code>. A frozen install of a lockfile that records the variants of a registry package fails with <code>ERR_PNPM_BROKEN_LOCKFILE</code>. Run <code>pnpm install</code> to resolve the lockfile again.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now fail if a package that is not private lists a private workspace package in <code>dependencies</code>. A private package is never published, so the published package could not be installed. <code>devDependencies</code>, <code>optionalDependencies</code>, <code>peerDependencies</code>, and bundled dependencies are still allowed <a href="https://github.com/pnpm/pnpm/issues/2321">#2321</a>.</p>
</li>
<li>
<p><code>pnpm publish</code> now supports <code>--new-version &#x3C;version></code>, which sets the version in <code>package.json</code> before publishing. With <code>--recursive</code>, every selected workspace package is set to the new version <a href="https://github.com/pnpm/pnpm/issues/2168">#2168</a>.</p>
</li>
<li>
<p><code>pnpm pack --json</code> now reports the <code>package.json</code> that goes into the tarball, with <code>publishConfig</code> and the other publish-time changes applied. Run <code>pnpm pack --dry-run --json</code> to preview it without writing a tarball. A dry run still runs <code>prepack</code> and <code>prepare</code>, unless <code>--ignore-scripts</code> is passed.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now add a workspace-root <code>COPYING</code> file to a workspace package that has no license file. A <code>COPYING</code> file at the package root now counts as the package's license, so the workspace-root <code>LICENSE</code> is no longer added next to it.</p>
</li>
<li>
<p>Added the <code>versioning.includePrivatePackages</code> setting. Set it to <code>false</code> to leave private packages out of <code>pnpm change</code> <a href="https://github.com/pnpm/pnpm/issues/13813">#13813</a>.</p>
</li>
</ul>
<h3 id="managing-dependencies">Managing dependencies<a class="hash-link" href="#managing-dependencies" aria-label="Direct link to Managing dependencies">#</a></h3>
<ul>
<li>
<p>Added the <code>pnpm edit</code> command to open an installed package directory in an editor.</p>
</li>
<li>
<p>Added <code>pnpm catalog migrate</code>, which moves dependency specifiers into the default catalog and replaces them in the workspace projects' <code>package.json</code> files with <code>catalog:</code>. A dependency moves only when every project declares it with the same specifier. The command lists the dependencies it leaves unchanged <a href="https://github.com/pnpm/pnpm/issues/7072">#7072</a>.</p>
</li>
<li>
<p>Added a <code>--hard</code> option to <code>pnpm link</code>. With <code>--hard</code>, pnpm saves the linked package with the <code>file:</code> protocol, so its files are hard linked into <code>node_modules</code> and its dependencies and peer dependencies resolve from your project. <code>pnpm unlink</code> removes these links too <a href="https://github.com/pnpm/pnpm/issues/9895">#9895</a>.</p>
</li>
<li>
<p><code>pnpm remove</code> now accepts glob patterns and <code>!</code> exclusions in dependency selectors, such as <code>pnpm remove "eslint-*" "!eslint-plugin-import"</code> <a href="https://github.com/pnpm/pnpm/issues/13546">#13546</a>.</p>
</li>
<li>
<p>When pnpm updates a <code>package.json5</code>, it now changes only the values that changed. Comments, quotes, number formats, and layout elsewhere in the file stay as written. New keys and strings use the quote style of the file.</p>
</li>
<li>
<p><code>nodeLinker</code> accepts object settings for isolated and hoisted installs. Linker-specific hoisting options can be configured alongside the selected linker.</p>
</li>
</ul>
<h3 id="updating-dependencies">Updating dependencies<a class="hash-link" href="#updating-dependencies" aria-label="Direct link to Updating dependencies">#</a></h3>
<ul>
<li>
<p><code>pnpm update --latest &#x3C;pkg></code> now moves the override that pins the named dependency <a href="https://github.com/pnpm/pnpm/issues/8701">#8701</a>. <code>pnpm update --interactive --latest</code> does the same for every selected dependency. An override keeps its own range shape: a pin on an exact version lands on the new exact version, and <code>^</code> stays <code>^</code>. When pnpm cannot update the governing override automatically, the update prints a warning naming it.</p>
</li>
<li>
<p><code>pnpm update</code> now accepts <code>--tag &#x3C;tag></code>. The flag updates the matched dependencies to the version behind the given dist-tag and rewrites the ranges in <code>package.json</code>, the way <code>--latest</code> updates to the <code>latest</code> tag. It also works with <code>--interactive</code> and with global updates <a href="https://github.com/pnpm/pnpm/issues/3534">#3534</a>.</p>
</li>
<li>
<p>With <code>trustPolicy: no-downgrade</code>, <code>pnpm update --interactive</code> shows a <code>Trust</code> column with the trust evidence of each offered registry dependency <a href="https://github.com/pnpm/pnpm/issues/8889">#8889</a>. The list also offers only versions the trust policy accepts, so it matches what the update installs.</p>
</li>
<li>
<p><code>pnpm update --interactive --long</code> shows the homepage or repository URL of each package. The URL column is hidden without <code>--long</code>.</p>
</li>
</ul>
<h3 id="release-age-and-build-settings">Release age and build settings<a class="hash-link" href="#release-age-and-build-settings" aria-label="Direct link to Release age and build settings">#</a></h3>
<ul>
<li>
<p>Added the <code>referenceTime</code> setting. <code>minimumReleaseAge</code> and <code>trustPolicyIgnoreAfter</code> count back from this RFC 3339 time, both when pnpm resolves versions and when it verifies a lockfile. Set it in <code>pnpm-workspace.yaml</code> or with <code>PNPM_CONFIG_REFERENCE_TIME</code>.</p>
</li>
<li>
<p>Added the <code>--minimum-release-age</code> and <code>--minimum-release-age-exclude</code> options to <code>pnpm install</code>, <code>pnpm add</code>, <code>pnpm update</code>, and <code>pnpm dlx</code>. They set <code>minimumReleaseAge</code> and <code>minimumReleaseAgeExclude</code> for a single run without editing a config file <a href="https://github.com/pnpm/pnpm/issues/11224">#11224</a>.</p>
</li>
<li>
<p><code>pnpm audit --fix</code> accepts <code>--no-add-release-age-exclusions</code>, which applies the fixes without adding entries to <code>minimumReleaseAgeExclude</code>.</p>
</li>
<li>
<p><code>--allow-build</code> now accepts a comma-separated list of packages, so <code>pnpm add foo bar --allow-build=foo,bar</code> is the same as passing <code>--allow-build=foo --allow-build=bar</code> <a href="https://github.com/pnpm/pnpm/pull/9560">#9560</a>.</p>
</li>
</ul>
<h3 id="install-output">Install output<a class="hash-link" href="#install-output" aria-label="Direct link to Install output">#</a></h3>
<ul>
<li>
<p>Deprecation warnings moved into the install summary and only name the packages the install added. A deprecated dependency added by the install is marked <code>deprecated</code> on its summary line, with the version that is not deprecated when there is one. Deprecated subdependencies the install added are listed right after the summary. Deprecated packages that were already installed are reported as one count, such as <code>3 deprecated packages are still installed</code>.</p>
</li>
<li>
<p>In a workspace, the install summary now lists the direct dependency changes of every project, not only of the project pnpm runs in. Each change is listed once, followed by the projects that made it, unless only the current project did. A project's first install lists only deprecated or outdated dependencies and the ones the command added <a href="https://github.com/pnpm/pnpm/issues/6481">#6481</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now warns when an entry in <code>overrides</code> matches no dependency, in a single line such as <code>2 overrides matched no dependency: foo, parent>child</code>. Only the overrides declared in the workspace are checked. Overrides added by a config dependency or an <code>updateConfig</code> hook are not. Set <code>warnUnusedOverrides: false</code> to turn the warning off <a href="https://github.com/pnpm/pnpm/issues/10315">#10315</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now shows lockfile verification progress while the supply-chain check runs. The final pass or failure line reports how many entries were checked.</p>
</li>
</ul>
<h3 id="setup-and-diagnostics">Setup and diagnostics<a class="hash-link" href="#setup-and-diagnostics" aria-label="Direct link to Setup and diagnostics">#</a></h3>
<ul>
<li>
<p><code>pnpm doctor</code> now checks the environment that lifecycle scripts run in. It lists the <code>node</code> executables on <code>PATH</code> and warns about broken ones. It reports the shell that runs scripts. A new check runs a package's executable from a script, both in a temporary project and in the current project. If that script fails, the report includes the error and, outside Windows, a trace of the executable's shim that shows how it looked up and started <code>node</code> <a href="https://github.com/pnpm/pnpm/issues/16308">#16308</a>.</p>
</li>
<li>
<p><code>pnpm self-update</code>, <code>pnpm setup</code>, and the "Install method" check of <code>pnpm doctor</code> now warn when another <code>pnpm</code> on <code>PATH</code> would run in place of the one pnpm installed. The warning names that copy. If pnpm recognizes how it was installed (npm, Homebrew, Corepack, Volta, or Scoop), the warning also gives the command that removes it.</p>
</li>
<li>
<p>Set <code>PNPM_CONFIG_HOME</code> to choose the directory containing <code>config.yaml</code> and <code>auth.ini</code>. Global configuration commands read and write files in this directory. A non-empty value takes precedence over <code>XDG_CONFIG_HOME</code> and the platform defaults.</p>
</li>
<li>
<p>pnpm now provides a prebuilt binary for Linux on LoongArch (loong64) with glibc.</p>
</li>
<li>
<p>A failed <code>devEngines.runtime</code> or <code>engines.runtime</code> check now reports the reason in its error code. A runtime that is not installed fails with <code>ERR_PNPM_RUNTIME_NOT_FOUND</code>. A runtime entry without a version range fails with <code>ERR_PNPM_MISSING_RUNTIME_VERSION_RANGE</code>, and one with an invalid range fails with <code>ERR_PNPM_INVALID_RUNTIME_VERSION_RANGE</code>. An installed version that does not satisfy the range still fails with <code>ERR_PNPM_BAD_RUNTIME_VERSION</code>.</p>
</li>
<li>
<p><code>pnpm view &#x3C;pkg></code> now prints the registry it read the metadata from at the end of the summary <a href="https://github.com/pnpm/pnpm/pull/11394">#11394</a>.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security">Security<a class="hash-link" href="#security" aria-label="Direct link to Security">#</a></h3>
<ul>
<li>
<p><code>otp</code> is no longer read from any config file. Pass <code>--otp</code> on the command line, or set <code>PNPM_CONFIG_OTP</code>. A <code>pnpm-workspace.yaml</code> or a global <code>config.yaml</code> that carries <code>otp</code> is ignored, with a warning naming those two channels. <code>pnpm config set otp</code> fails with <code>ERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING</code>.</p>
<p>This closes a way to leak a secret. A repository could write <code>otp: ${NPM_TOKEN}</code> beside its own <code>registry:</code>, and <code>pnpm publish</code> sent that environment variable to the registry the same file named, in the <code>npm-otp</code> header of its first request <a href="https://github.com/pnpm/pnpm/issues/13542">#13542</a>.</p>
</li>
<li>
<p>pnpm now sends registry credentials only over HTTPS or loopback HTTP, both for tarball downloads and for requests to <code>pnprServer</code>. Tarball and package metadata requests respect registry credential paths on redirects. A failed tarball request can no longer pin its redirect destination in the lockfile.</p>
</li>
<li>
<p><code>pnpm install</code> now rejects local filesystem dependencies (<code>file:</code>, <code>link:</code>, and path-based <code>workspace:</code> specifiers) declared by non-local packages with <code>ERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED</code>. Relative <code>file:</code> dependencies inside a package's own archive and local dependencies configured by the workspace through <code>overrides</code>, <code>packageExtensions</code>, or <code>.pnpmfile.cjs</code> continue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm install --frozen-lockfile</code> now enforce <code>blockExoticSubdeps</code> against entries in <code>pnpm-lock.yaml</code>. Before, pnpm accepted a lockfile with git or tarball URL subdependencies and installed those packages even with <code>blockExoticSubdeps: true</code>.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>pnprServer</code> now rejects registry-keyed lockfile entries whose resolution uses a non-registry source with <code>ERR_PNPM_RESOLUTION_SHAPE_MISMATCH</code>. The <code>pnpr</code> lockfile verification and resolution endpoints enforce the same check before accepting or caching a lockfile.</p>
</li>
<li>
<p><code>pnpm dlx</code>, <code>pnx</code>, and <code>pnpm create</code> now ignore local configuration in the working directory. This covers <code>.pnpmfile.cjs</code> hooks, proxy and TLS settings in the project <code>.npmrc</code>, and execution, layout, and resolution settings in a local <code>pnpm-workspace.yaml</code>, including <code>pnpmfile</code>, <code>globalPnpmfile</code>, <code>configDependencies</code>, <code>scriptShell</code>, <code>cacheDir</code>, <code>storeDir</code>, and <code>ignoreScripts</code>. Settings from the user's global <code>config.yaml</code>, such as <code>blockExoticSubdeps</code>, <code>cacheDir</code>, and <code>storeDir</code>, remain active.</p>
</li>
<li>
<p>Global commands (<code>--global</code>, <code>-g</code>) no longer load <code>.pnpmfile.cjs</code>, <code>pnpm-workspace.yaml</code>, or <code>.npmrc</code> from the current working directory. <code>pnpm why -g</code> now inspects globally installed packages.</p>
</li>
<li>
<p><code>pnpm config get</code> refuses to print protected auth settings. <code>pnpm config list</code> hides TLS private keys and inline proxy credentials. <code>pnpm config set --global tokenHelper</code> writes to <code>auth.ini</code>, and setting a project-level <code>tokenHelper</code> fails.</p>
<p>TLS file paths in <code>.npmrc</code> and <code>auth.ini</code> resolve relative to the file that declares them. Project <code>.npmrc</code> files skip TLS file paths containing environment variables.</p>
</li>
<li>
<p>When the <code>pnpm</code> package downloads its native binary on first run, it now handles registry credentials the way pnpm does:</p>
<ul>
<li>Credentials configured for a registry path, such as <code>//registry.example.com/org-a/npm/:_authToken</code>, are sent only to that path. They were sent to any path on the same host.</li>
<li>It reads the registry and credentials from the global <code>auth.ini</code>, where <code>pnpm login</code> writes them, and from the <code>_auth</code> setting of the global <code>config.yaml</code>.</li>
<li>A <code>${NPM_TOKEN?}</code> placeholder in <code>.npmrc</code> expands to the variable. It expanded to an empty value, so the download was sent without credentials.</li>
</ul>
</li>
<li>
<p>Matching a glob that repeats a wildcard, such as <code>+(*)z</code> in the workspace <code>packages</code> patterns, no longer hangs on long paths. The bundled picomatch is patched for a <a href="https://github.com/advisories/GHSA-fc5q-39xc-vjpf">security advisory</a>.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now reject <code>publishConfig.directory</code> values that use an absolute path or <code>..</code> segments outside the package directory.</p>
</li>
<li>
<p>The <code>pnpm</code> binary no longer depends on <code>chrono</code>, which RustSec reports as unmaintained in RUSTSEC-2026-0543.</p>
</li>
</ul>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> now adds a new workspace package that has no dependencies to the <code>importers</code> of <code>pnpm-lock.yaml</code> <a href="https://github.com/pnpm/pnpm/issues/18189">#18189</a>.</p>
</li>
<li>
<p>With <code>enableGlobalVirtualStore</code> on, <code>require.extensions</code> hooks run again for <code>require()</code> calls from a module compiled from a string, such as the module Next.js uses to load <code>next.config.ts</code>. A required <code>.ts</code> file skipped the registered TypeScript hook. A required <code>.json</code> file was parsed as JavaScript <a href="https://github.com/pnpm/pnpm/issues/18261">#18261</a>.</p>
</li>
<li>
<p>On Windows, when the project is on a network share, <code>pnpm install</code> now links dependencies in <code>node_modules</code> with the kind of link that can be opened on that share. It tries a junction first and a symlink second. If neither can be opened, the install fails with advice.</p>
</li>
<li>
<p>On Windows, concurrent installs that link the same dependency no longer leave an <code>.ignored_&#x3C;name></code> entry next to the link in the global virtual store.</p>
</li>
<li>
<p><code>pnpm install</code> now fails with <code>ERR_PNPM_UNSUPPORTED_PROTOCOL</code> when a <code>file:</code> dependency that is not a workspace project uses a <code>catalog:</code> specifier. Injected workspace projects still resolve their <code>catalog:</code> dependencies.</p>
</li>
<li>
<p>A <code>link:</code> or relative-path dependency of a local directory dependency now resolves from that directory. In any other package, such as a local tarball, it resolves from the lockfile directory. Both used to resolve from the importing project's directory <a href="https://github.com/pnpm/tasks/issues/319">pnpm/tasks#319</a>.</p>
<p>Two workspace projects that declare the same injected relative-path dependency, such as <code>../child</code>, no longer share the directory the first one resolved.</p>
</li>
<li>
<p><code>pnpm install</code> now links a workspace package for a <code>workspace:</code> range that combines <code>^</code>, <code>~</code>, or <code>*</code> with other ranges, such as <code>workspace:^ || ^2.0.0</code>.</p>
</li>
<li>
<p>Fixed <code>pnpm install</code> keeping a runtime binary for the previous platform after a change to <code>supportedArchitectures</code> with the global virtual store disabled.</p>
</li>
<li>
<p>The <code>nodeVersion</code> setting no longer changes the global virtual store directory names or the side-effects cache keys. These follow the Node.js runtime that pnpm installs for the project, then the <code>node</code> on <code>PATH</code>. <code>pnpm licenses</code> and <code>pnpm store status</code> now find packages that an install with <code>nodeVersion</code> placed in the global virtual store.</p>
</li>
<li>
<p>Fixed package maps resolving workspace and linked packages to the wrong directory when a path contains <code>#</code>, <code>?</code>, or <code>%</code>.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm peers check</code> no longer report a <code>catalog:</code> peer of an injected workspace package as unmet when the installed version matches the catalog entry <a href="https://github.com/pnpm/pnpm/issues/10279">#10279</a>.</p>
</li>
<li>
<p>The peer dependency check now reads the version of an injected workspace package from its <code>package.json</code>. <code>pnpm install</code> with <code>strictPeerDependencies: true</code> and <code>pnpm peers check</code> no longer report such a peer as unmet with a <code>file:</code> version.</p>
</li>
<li>
<p>With <code>sharedWorkspaceLockfile: false</code>, <code>pnpm install</code> now reports missing peers of linked workspace packages, as <code>pnpm peers check</code> does.</p>
</li>
<li>
<p><code>peerDependencyRules.allowedVersions</code> now accepts a parent version range that contains <code>></code>, such as <code>"foo@>=1.0.0>bar": "1"</code>.</p>
</li>
<li>
<p>Fixed <code>nodeLinker: hoisted</code> installs in a workspace where the directory of one project is inside the directory of another. A dependency of the inner project could resolve to the version in the outer project's <code>node_modules</code>. pnpm now keeps the inner project's dependency in its own <code>node_modules</code> when the outer project holds another version.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code>, pnpm now finds the agent skills of a dependency whose directory is shared with another peer variant of the same package version.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>pnprServer</code> set now handles more workspace settings:</p>
<ul>
<li>It applies <code>injectWorkspacePackages</code>, <code>dedupeInjectedDeps</code>, <code>ignoredOptionalDependencies</code>, and <code>dependenciesMeta</code>. Projects that use them no longer fail with <code>ERR_PNPM_OUTDATED_LOCKFILE</code> or <code>ERR_PNPM_LOCKFILE_CONFIG_MISMATCH</code>.</li>
<li><code>pnpm install --update-checksums</code> refreshes the integrity checksums in the lockfile.</li>
<li>It enforces <code>minimumReleaseAgeStrict</code> and adds fallback versions to <code>minimumReleaseAgeExclude</code> when strict mode is off.</li>
<li>It resolves locally when the project declares <code>file:</code>, <code>link:</code>, or local path dependencies, or when <code>blockExoticSubdeps</code> is <code>false</code>. <code>pnpr</code> also rejects local filesystem dependency specifiers on <code>/-/pnpr/v0/resolve</code>.</li>
</ul>
</li>
<li>
<p>When an overrides entry requests a version that does not exist on the registry, <code>pnpm install</code> now names that override entry in the error. If the entry's selector has a version range, such as <code>foo@^1</code>, the error also shows the latest published version in that range.</p>
</li>
<li>
<p><code>pnpm add</code> run from a workspace package directory that has no <code>package.json</code> yet now suggests creating one with <code>pnpm init</code> <a href="https://github.com/pnpm/pnpm/issues/11345">#11345</a>.</p>
</li>
<li>
<p>The install summary now shows "(X is available)" after a direct dependency whose <code>latest</code> version on the registry is newer than the one installed. The note appears when the install resolved that dependency against registry metadata.</p>
</li>
<li>
<p>Approving the <code>minimumReleaseAge</code> prompt no longer reprints the list of packages it just showed. pnpm now confirms with one line that says how many entries it added to <code>minimumReleaseAgeExclude</code> <a href="https://github.com/pnpm/pnpm/issues/15377">#15377</a>.</p>
</li>
<li>
<p>pnpm now prints a warning that explains why it has to remove and recreate a modules directory.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>nodeLinker: hoisted</code> no longer hangs or runs out of memory in large workspaces whose packages are installed with many different sets of peer dependencies.</p>
</li>
<li>
<p>Sped up <code>pnpm install</code> on macOS for packages installed with several sets of peer dependencies. pnpm now clones every peer variant of a package from one cached copy of its files.</p>
</li>
<li>
<p>Sped up linking bins in large workspaces. pnpm now reuses a workspace package's <code>package.json</code> across the projects that depend on it when linking their bins.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> no longer waits for a Node.js version check it does not use before it exits. With Homebrew's Node.js, a frozen install with nothing to do can be about 3x faster.</p>
</li>
<li>
<p>Resolving a remote tarball uses the download response directly, saving a request.</p>
</li>
<li>
<p>pnpm in StackBlitz WebContainers sends HTTP response bodies and subprocess output to its engine as raw bytes. A 64 KiB chunk no longer becomes a 234 KB message <a href="https://github.com/pnpm/tasks/issues/63">pnpm/tasks#63</a>.</p>
</li>
</ul>
<h3 id="lockfile">Lockfile<a class="hash-link" href="#lockfile" aria-label="Direct link to Lockfile">#</a></h3>
<ul>
<li>
<p>Fixed <code>pnpm install</code> failing with <code>ERR_PNPM_NEXT_LOCKFILE_NOT_REPRESENTABLE</code> under <code>lockfile.format: v13</code> when a peer dependency is provided by an aliased package and another alias installs the package that has the peer's name <a href="https://github.com/pnpm/pnpm/issues/18198">#18198</a>.</p>
</li>
<li>
<p>Fixed writing v13 lockfiles when a package has an ordinary npm alias of one of its direct or transitive peers <a href="https://github.com/pnpm/pnpm/issues/18274">#18274</a>.</p>
</li>
<li>
<p>Fixed conversion to the v13 lockfile format when a hashed peer suffix includes a workspace link and the package installs its own copy of another declared peer <a href="https://github.com/pnpm/pnpm/issues/18288">#18288</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now converts an existing lockfile when you change <code>lockfile.format</code>, even when all dependencies are already installed. With <code>lockfile.format: v13</code>, an install that updates a v9 lockfile without resolving, for example after a dependency is removed, now writes the v13 format.</p>
</li>
<li>
<p>A lockfile in the experimental <code>v13</code> format now always records <code>autoDedupe</code>, <code>dedupeInjectedDeps</code>, <code>dedupePeerDependents</code> and <code>linkWorkspacePackages</code>, as <code>lockfile.includeResolutionSettings</code> does for the <code>v9</code> format. After <code>pnpm install --frozen-lockfile</code> with <code>autoDedupe</code>, <code>pnpm run</code> no longer starts another install. Run <code>pnpm install</code> once to record the settings in a <code>v13</code> lockfile written by an earlier version, since <code>pnpm install --frozen-lockfile</code> fails on it <a href="https://github.com/pnpm/pnpm/issues/16583">#16583</a>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> now checks the dependencies of local directory dependencies against the lockfile more closely. It fails when the <code>injected</code> setting of such a dependency no longer matches the lockfile <a href="https://github.com/pnpm/tasks/issues/319">pnpm/tasks#319</a>. It accepts a plain-range dependency that <code>linkWorkspacePackages: deep</code> linked to a workspace project.</p>
</li>
<li>
<p>Frozen installs now detect changes to catalog entries used only by peer dependencies of local directory packages.</p>
</li>
<li>
<p>Frozen installs now restore links declared through catalogs when <code>excludeLinksFromLockfile</code> is enabled.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> now revalidates registry metadata when verifying a locked tarball whose version is missing from the cached package listing.</p>
</li>
<li>
<p>During dependency filtering in commands such as <code>pnpm install --prod --frozen-lockfile</code>, pnpm now recovers hashed peers in v9 lockfiles only when a binding can affect which dependencies are kept <a href="https://github.com/pnpm/pnpm/issues/18276">#18276</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm install --lockfile-only</code> fetching a locked transitive Git dependency when an unrelated dependency changes <a href="https://github.com/pnpm/pnpm/issues/18217">#18217</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm fetch</code> failing when a Docker build copies the lockfile before the workspace configuration or pnpmfile.</p>
</li>
<li>
<p><code>pnpm-lock.yaml</code> now quotes strings that look like numbers, such as <code>+.5</code>, so they are read back as strings.</p>
</li>
</ul>
<h3 id="build-approvals">Build approvals<a class="hash-link" href="#build-approvals" aria-label="Direct link to Build approvals">#</a></h3>
<ul>
<li>
<p><code>pnpm approve-builds --all</code> and <code>pnpm approve --all</code> no longer approve a package whose build is denied with <code>false</code> in <code>pnpm-workspace.yaml</code>.</p>
</li>
<li>
<p>A <code>&#x3C;pkg>@&#x3C;version>: false</code> entry in <code>allowBuilds</code> or <code>permissions</code> now also blocks <code>&#x3C;pkg>@&#x3C;version></code> from a named registry, including when <code>dangerouslyAllowAllBuilds</code> is set.</p>
</li>
<li>
<p><code>pnpm add --allow-build</code> now records its decision under <code>permissions</code> when <code>pnpm-workspace.yaml</code> has a <code>permissions</code> setting. Before, a <code>--allow-build=!&#x3C;pkg></code> denial went to <code>allowBuilds</code> and was overridden by an existing <code>permissions.&#x3C;pkg>.build: true</code>.</p>
</li>
<li>
<p><code>pnpm approve-builds</code> now requires the exact selector shown by <code>pnpm ignored-builds</code> for a dependency a bare package name cannot identify (a <code>file:</code>, git, or tarball artifact). A bare package name only approves a plain registry version <a href="https://github.com/pnpm/pnpm/issues/18237">#18237</a>.</p>
</li>
<li>
<p><code>pnpm approve-builds</code>, <code>pnpm approve</code>, and <code>pnpm add --allow-build</code> now refuse to edit a package's <code>permissions</code> entry written as an inline mapping that spans several lines. Before, they added a second key for the package to <code>pnpm-workspace.yaml</code>.</p>
</li>
<li>
<p>Install now reports packages awaiting build and skill approval in one notice. Approval prompts and notices show a package from a named registry by its name. They no longer label it as a tarball.</p>
</li>
</ul>
<h3 id="running-scripts-and-tasks">Running scripts and tasks<a class="hash-link" href="#running-scripts-and-tasks" aria-label="Direct link to Running scripts and tasks">#</a></h3>
<ul>
<li>
<p>Fixed <code>pnpm run</code> hanging after an interrupt:</p>
<ul>
<li>A script may leave behind a process that ignores the interrupt. pnpm now waits thirty seconds for the script's processes to stop and then exits, leaving any that are still running.</li>
<li>An interrupt that arrives while a script is starting now reaches that script. pnpm no longer waits for it for as long as it runs, or ends without it.</li>
<li>When pnpm cancels a script, it now waits up to ten seconds for the system's process list. A process that a cancelled script started is no longer left running on a machine that answers more slowly than half a second.</li>
</ul>
</li>
<li>
<p><code>pnpm run</code> and <code>pnpm exec</code> no longer trigger a reinstall solely because the last install used <code>--trust-lockfile</code> <a href="https://github.com/pnpm/pnpm/issues/18218">#18218</a>.</p>
</li>
<li>
<p>The workspace project graph now follows <code>overrides</code>. An override that points a dependency at a workspace package, such as <code>foo: workspace:*</code>, makes that package a dependency of every project whose declaration the override matches, even with <code>linkWorkspacePackages</code> off. <code>pnpm install</code> now runs that package's lifecycle scripts before the scripts of the projects depending on it. <code>pnpm -r run</code> orders the projects the same way. <code>--filter</code> selectors that follow dependencies now see the edge.</p>
</li>
<li>
<p>A <code>[&#x3C;since>]</code> filter such as <code>--filter "...[origin/main]"</code> now selects a project whose dependency an <code>overrides</code> entry points at a changed catalog entry. For example, with <code>lib: catalog:local</code> in <code>overrides</code>, changing <code>lib</code> in the <code>local</code> catalog selects every project that depends on <code>lib</code>.</p>
</li>
<li>
<p>When <code>sharedWorkspaceLockfile</code> is <code>false</code>, <code>pnpm install</code> now runs the workspace root's <code>pnpm:devPreinstall</code> script once, before any project is installed, including when a filter excludes the root. Workspace members no longer run theirs <a href="https://github.com/pnpm/pnpm/issues/4503">#4503</a>.</p>
</li>
<li>
<p>Recursive runs honor <code>--sequential</code> with <code>--parallel</code>, and changed-file ignore patterns support negation. <code>pnpm list -r --no-sort --reverse</code> reverses the selected project order. <code>pnpm clean</code> forwards positional arguments to a project's clean script.</p>
</li>
<li>
<p><code>--resume-from</code> starts at the named project when the previous run completed no tasks.</p>
</li>
<li>
<p><code>pnpm pipeline</code> fixes:</p>
<ul>
<li>Cached results are invalidated when values supplied by <code>--env-file</code>, <code>extraEnv</code>, or <code>NODE_OPTIONS</code> change, or when the script shell settings change.</li>
<li>Declared outputs of sibling tasks no longer invalidate the default inputs, and output globs support <code>!</code> exclusions.</li>
<li>It respects <code>--filter</code> and <code>--filter-prod</code>, includes untracked files when selecting affected projects, and runs the prerequisites of tasks matched by regex selectors.</li>
<li>It no longer deletes files from a build script's output directory when it restores a shared Cargo build cache, such as a <code>fingerprint</code> or <code>.fingerprint</code> directory in a nested Cargo build.</li>
</ul>
</li>
<li>
<p>With <code>shellEmulator: true</code>, parameter expansions such as <code>${MODE:-dev}</code> now see assignments made earlier in the script.</p>
</li>
<li>
<p>Plug'n'Play fixes:</p>
<ul>
<li>It respects package exports and <code>require.resolve()</code> lookup paths.</li>
<li>It combines custom export conditions from <code>NODE_OPTIONS</code> and command-line flags, and respects Node.js's enabled <code>node-addons</code> and <code>module-sync</code> conditions.</li>
<li><code>pnpm run</code> and <code>pnpm exec</code>, including recursive runs, find the loader and the experimental package map when <code>lockfileDir</code> is configured.</li>
<li><code>pnpm install</code> recreates a deleted <code>.pnp.cjs</code> loader, and a full <code>pnpm clean</code> removes the generated loader.</li>
</ul>
</li>
<li>
<p>After a workspace script runs, pnpm links commands from scoped injected packages into the containing modules directory's <code>.bin</code>. Commands declared through <code>directories.bin</code> are also refreshed.</p>
</li>
<li>
<p>Refreshing injected dependencies preserves the install's <code>NODE_PATH</code> settings in command shims and respects workspace package exclusions.</p>
</li>
<li>
<p>pnpm recognizes uppercase file extensions when choosing the interpreter for commands without a shebang. It skips hidden files and directories when linking commands from <code>directories.bin</code>.</p>
</li>
<li>
<p><code>pnpm dlx</code>, <code>pnx</code>, and <code>pnpm create</code> now handle script skipping and non-registry package specifiers consistently:</p>
<ul>
<li>Running with <code>--ignore-scripts</code> or <code>ignoreScripts: true</code> uses a separate <code>dlx</code> cache key, keeping cached installs that skipped build scripts separate from normal runs.</li>
<li>Relative local directory and tarball specifiers such as <code>./my-cli</code> and <code>./my-cli.tgz</code> resolve against the caller's working directory.</li>
<li>Explicitly requested tarball URL, <code>file:</code>, and git URL packages run their build scripts by default unless <code>--ignore-scripts</code> or a negated <code>--allow-build</code> selector disables them.</li>
</ul>
</li>
<li>
<p>A <code>tasks</code> entry with no value in <code>pnpm-workspace.yaml</code>, such as <code>build:</code>, now fails with a hint. The hint suggests writing <code>{}</code> for a task with no settings, or removing the entry to keep the default <code>dependsOn: ['^&#x3C;task>']</code>.</p>
</li>
</ul>
<h3 id="python-and-cargo">Python and Cargo<a class="hash-link" href="#python-and-cargo" aria-label="Direct link to Python and Cargo">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> now locks Cargo path dependencies outside the workspace, as Cargo does. It failed with <code>workspace dependency &#x3C;name> is not a workspace member</code>. <code>pnpm install --frozen-lockfile</code> now also fails when <code>Cargo.lock</code> misses a path dependency or locks a git dependency at another branch, tag, or revision.</p>
</li>
<li>
<p><code>pnpm outdated</code> and <code>pnpm update</code> now include Cargo dependencies declared under <code>[target.&#x3C;cfg>.dependencies]</code>. <code>pnpm update --prod</code> no longer fails on a crate that is also a dev-dependency. <code>pnpm add crate:</code> fails in a virtual Cargo workspace root, as <code>cargo add</code> does. It added a <code>[dependencies]</code> table that Cargo rejects there.</p>
</li>
<li>
<p><code>pnpm remove</code> accepts Python and Cargo package specifiers. Recursive and filtered updates include standalone Python and Cargo workspace members. <code>pnpm update</code> and <code>pnpm outdated</code> match normalized Python names and Cargo aliases.</p>
</li>
<li>
<p><code>pnpm install</code> now skips a Python project that has only a <code>requirements.txt</code> when its directory has a <code>.venv</code> that pnpm did not create, and prints a warning. The install failed for the whole workspace before.</p>
</li>
<li>
<p>Fixed Python wheel installs with legacy metadata, whitespace around entry point targets, and interpreter options in script shebangs.</p>
<p>Python dependency groups now match normalized names. Adding a development dependency reports when the project excludes the dev group.</p>
<p>Comments ending in a backslash in <code>requirements.txt</code> no longer hide the next requirement. <code>pnpm exec</code> finds the environment of requirements-only projects under a tool-only <code>pyproject.toml</code>.</p>
<p>Fixed <code>pnpm add</code> and <code>pnpm update</code> in shared Python workspaces that contain a requirements-only member.</p>
</li>
<li>
<p>Fixed <code>pnpm update</code> failing with a TOML parse error when <code>pyproject.toml</code> declares <code>[project.optional-dependencies]</code>.</p>
</li>
<li>
<p><code>pnpm store prune</code> no longer removes files of the wheels that an installed Python project uses, so <code>pnpm install --offline</code> can recreate its environment. Pruning now also removes the store index entries of Python and Cargo archives whose files it deleted.</p>
</li>
</ul>
<h3 id="updating-auditing-and-publishing">Updating, auditing, and publishing<a class="hash-link" href="#updating-auditing-and-publishing" aria-label="Direct link to Updating, auditing, and publishing">#</a></h3>
<ul>
<li>
<p><code>pnpm audit</code> now checks tarball, git, and named-registry dependencies against security advisories. <code>pnpm audit signatures</code> now verifies packages installed from named registries and skips non-registry dependencies.</p>
</li>
<li>
<p><code>pnpm audit</code> now checks patched versions correctly when registry metadata includes an <code>unpublished</code> entry in its <code>time</code> field <a href="https://github.com/pnpm/pnpm/issues/18209">#18209</a>.</p>
</li>
<li>
<p><code>pnpm audit --fix=true</code> now applies the default override fix method, like a bare <code>pnpm audit --fix</code> <a href="https://github.com/pnpm/pnpm/issues/13261">#13261</a>.</p>
</li>
<li>
<p><code>pnpm outdated</code> now reports newer prereleases of an installed prerelease. It checks the dist-tag that points to the newest version of the installed prerelease channel, such as <code>next</code> for <code>3.0.0-rc.0</code>, alongside <code>latest</code> <a href="https://github.com/pnpm/pnpm/issues/7339">#7339</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm update</code> and <code>pnpm outdated</code> matching every dependency of an ecosystem when a positive selector is combined with a negated package selector such as <code>!lodash</code>. This applied to Cargo, Python, npm, and <code>--include-github-actions</code> selectors.</p>
</li>
<li>
<p>Fixed <code>pnpm update</code> and <code>pnpm outdated</code> with <code>--include-github-actions</code> corrupting workflow YAML or skipping actions referenced through YAML anchors, aliases, or merge keys.</p>
</li>
<li>
<p><code>pnpm add</code> and <code>pnpm update</code> now keep the range operator of a specifier that has both a prerelease and a build suffix, such as <code>^1.0.0-next.0+build.1</code>.</p>
</li>
<li>
<p><code>pnpm dedupe --check</code> no longer requests the registry metadata of locked versions that the cache already holds. <code>pnpm dedupe</code> skips those requests too when <code>lockfile.format</code> is <code>v13</code>, which records no <code>deprecated</code> notices. Both were slow against a registry that sends no <code>ETag</code> or <code>Last-Modified</code>, such as Azure Artifacts, where each request downloaded the full package metadata <a href="https://github.com/pnpm/pnpm/issues/17758">#17758</a>.</p>
</li>
<li>
<p><code>pnpm publish</code> now reads <code>access</code> and <code>tag</code> from <code>pnpm-workspace.yaml</code>, the global <code>config.yaml</code>, and <code>PNPM_CONFIG_ACCESS</code> / <code>PNPM_CONFIG_TAG</code>. The <code>--access</code> and <code>--tag</code> flags still win when set. A configured <code>access</code> outranks <code>publishConfig.access</code>. An empty <code>publishBranch</code> now allows <code>master</code> and <code>main</code> <a href="https://github.com/pnpm/pnpm/issues/13542">#13542</a>.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> fixes:</p>
<ul>
<li>Packed workspace dependencies use the dependency's <code>publishConfig.name</code>.</li>
<li>Relative workspace dependencies with a <code>package.yaml</code> or <code>package.json5</code> manifest are packed correctly, and these packages include their parked changelog.</li>
<li>The manifest returned by <code>beforePacking</code> is validated and normalized.</li>
</ul>
</li>
<li>
<p><code>pnpm version</code> fixes:</p>
<ul>
<li>It rejects a version argument that is not valid semver, such as <code>1.2.3foo</code> or <code>01.2.3</code>. It used to set a normalized version that differed from the argument.</li>
<li>It rejects invalid prerelease identifiers passed to <code>--preid</code>.</li>
<li><code>pnpm version -r</code> updates explicit workspace dependency ranges that a release invalidates.</li>
<li>It preserves edits that a <code>preversion</code> script makes to other manifest fields.</li>
</ul>
</li>
<li>
<p>When <code>pnpm unpublish</code> removes the version tagged <code>latest</code>, it prefers the highest remaining stable version.</p>
</li>
<li>
<p><code>pnpm stage</code> uses the current package's publish registry when listing, viewing, approving, rejecting, or downloading staged versions. To use a one-time password at a non-default registry selected by the package, pass <code>--registry</code>.</p>
</li>
<li>
<p>Fixed several bugs in patching dependencies:</p>
<ul>
<li>A patch that only changes a file's mode no longer corrupts a binary file.</li>
<li>A patch with CRLF line endings now applies when a blank context line has lost its leading space.</li>
<li>A unified diff without <code>diff --git</code> lines now applies.</li>
<li>A patch that creates a symlink now fails with <code>ERR_PNPM_INVALID_PATCH</code>. Before, pnpm wrote the symlink as a regular file.</li>
<li><code>pnpm patch-commit --patches-dir ../outside</code> now fails with <code>ERR_PNPM_PATCHES_DIR_OUTSIDE_PROJECT</code>. Before, pnpm wrote the patch to <code>outside</code> inside the project.</li>
<li><code>pnpm patch-commit</code> keeps a file without a final newline unterminated when that file comes last in the patch. Before, the patched file gained a trailing newline.</li>
<li><code>pnpm patch-commit</code> keeps the peers a patched package is bound to in the lockfile. It no longer fails with <code>ERR_PNPM_NEXT_LOCKFILE_NOT_REPRESENTABLE</code> when the package has an optional peer and <code>lockfile.format</code> is <code>v13</code>.</li>
<li>A name-only <code>patchedDependencies</code> entry now records its patch hash on a <code>file:</code> directory dependency or an injected workspace package. <code>pnpm install --frozen-lockfile</code> no longer fails with <code>ERR_PNPM_INCONSISTENT_PATCH_HASH</code> on the lockfile that <code>pnpm install</code> wrote.</li>
<li><code>pnpm patch</code> and <code>pnpm patch-commit</code> find a package installed from a <code>namedRegistries</code> alias by its version. For example, <code>pnpm patch foo@1.0.0</code> patches a dependency declared as <code>work:1.0.0</code>.</li>
<li><code>pnpm patch-remove</code> removes the corresponding edit directory and state entry from <code>node_modules/.pnpm_patches</code>.</li>
</ul>
</li>
</ul>
<h3 id="other-commands">Other commands<a class="hash-link" href="#other-commands" aria-label="Direct link to Other commands">#</a></h3>
<ul>
<li>
<p>Global packages fixes:</p>
<ul>
<li><code>pnpm add -g</code> with several space-separated packages lists every installed package in its summary. Only the packages of the first one were listed.</li>
<li><code>pnpm list -g</code> with <code>--depth</code> greater than <code>0</code> always reads the global install directory's <code>node_modules</code> and lockfile. It could read the current project's lockfile or a custom <code>modulesDir</code>.</li>
<li><code>pnpm add -g</code>, <code>pnpm update -g</code>, and <code>pnpm outdated -g</code> use the <code>_auth</code> and <code>npmrcAuthFile</code> settings under <code>globalPackagesConfig</code> in the global <code>config.yaml</code>.</li>
<li>Commands that act on global packages honor <code>dangerouslyAllowAllBuilds</code> set at the top level of the global <code>config.yaml</code>. pnpm ignored it for global packages unless it was set under <code>globalPackagesConfig</code>.</li>
</ul>
</li>
<li>
<p>Fixed <code>pnpm deploy</code> for projects that depend on an external directory through <code>link:</code>. <code>pnpm deploy</code> now also resolves relative <code>file:</code> overrides from the source workspace <a href="https://github.com/pnpm/pnpm/issues/18191">#18191</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm link</code> for target manifests without a name. The command uses the directory name and normalizes relative paths written to the manifest. It also resolves a quoted <code>~/</code> path from the home directory.</p>
</li>
<li>
<p>Fixed <code>pnpm prune</code> leaving extraneous package links in hoisted installations, and <code>pruneDirectDependencies</code> skipping cleanup when the lockfile was already up to date.</p>
</li>
<li>
<p><code>pnpm import</code> fixes:</p>
<ul>
<li>It writes each project's lockfile when <code>sharedWorkspaceLockfile</code> is disabled and <code>lockfileDir</code> is unset.</li>
<li>It respects <code>disallowWorkspaceCycles</code> and the symlink policy for the destination lockfile.</li>
<li>It normalizes workspace-relative Yarn patch paths, skips Yarn patches outside the workspace, and accepts Yarn Classic entries identified by a URL or file path.</li>
</ul>
</li>
<li>
<p><code>pnpm store add</code> now fails if it cannot write a package to the store index, for example when another process holds the index locked. It also indexes tarball URLs that have no integrity value <a href="https://github.com/pnpm/pnpm/issues/18194">#18194</a>.</p>
</li>
<li>
<p><code>pnpm store prune</code> now fails with <code>ERR_PNPM_FROZEN_STORE_WRITE</code> when <code>frozenStore</code> is enabled. It used to remove files from the store.</p>
</li>
<li>
<p>Store and cache inspection fixes:</p>
<ul>
<li><code>pnpm cache list</code>, <code>view</code>, and <code>delete</code> search across registries by default and recognize mixed-case package names. Pass <code>--registry</code> to restrict them to one registry.</li>
<li><code>pnpm cat-file</code> can read executable files from the store.</li>
<li><code>pnpm find-hash</code> reports an unknown hash when the store is empty.</li>
<li>Inspection commands with <code>--json</code> write errors to stdout.</li>
<li><code>pnpm clean</code> removes custom virtual stores with hidden directory names.</li>
</ul>
</li>
<li>
<p><code>pnpm list --lockfile-only --find-by</code> now reads manifests from the configured store when <code>node_modules</code> is absent, and <code>pnpm licenses list</code> reads cached package metadata and license files.</p>
</li>
<li>
<p><code>pnpm list --json</code> now reports unsaved dependencies from each workspace project's own modules directory <a href="https://github.com/pnpm/pnpm/issues/18248">#18248</a>.</p>
</li>
<li>
<p><code>pnpm why --exclude-peers</code> now leaves out packages that are reached only as a resolved peer dependency. The flag was accepted but ignored.</p>
</li>
<li>
<p><code>pnpm sbom</code> now assigns workspace dependency relationships consistently across runs.</p>
</li>
<li>
<p>pnpm now fails with <code>ERR_PNPM_CONFIG_UNRESOLVED_ENV_VAR</code> when a setting in <code>pnpm-workspace.yaml</code> or the global <code>config.yaml</code> references an unset or empty environment variable without a fallback. A string setting used to get an empty string in its place <a href="https://github.com/pnpm/pnpm/pull/10963">#10963</a>.</p>
</li>
<li>
<p><code>--config.&#x3C;name></code> options now validate their values. <code>--config.storeDir</code> and <code>--config.stateDir</code> work like <code>--store-dir</code> and <code>--state-dir</code>. An empty <code>--state-dir=</code> resets to the default state directory, as <code>--store-dir=</code> does.</p>
</li>
<li>
<p><code>noProxy</code> in <code>pnpm-workspace.yaml</code> or the global <code>config.yaml</code> now fails validation unless it is a string or a boolean. <code>null</code> leaves the setting unset.</p>
</li>
<li>
<p><code>pnpm doctor</code> checks the resolved global bin directory on <code>PATH</code>.</p>
</li>
<li>
<p><code>pnpm --version</code> now succeeds when the project pins another package manager.</p>
</li>
<li>
<p>Fixed pnpm dropping Ctrl+C just before launching its native binary through Corepack or Node.js on Unix <a href="https://github.com/pnpm/pnpm/issues/18222">#18222</a>.</p>
</li>
<li>
<p>The pnpm npm package provides bundled node-gyp to lifecycle scripts even when pnpm's own install scripts were skipped <a href="https://github.com/pnpm/pnpm/issues/18227">#18227</a>.</p>
</li>
<li>
<p>The pnpm binary is about 16% smaller on Linux and macOS.</p>
</li>
<li>
<p>Tab completion suggests project scripts when you type <code>pnpm</code> followed by a script name <a href="https://github.com/pnpm/pnpm/issues/18239">#18239</a>. Shell completion uses the cursor position when editing an existing command.</p>
</li>
<li>
<p>The help for <code>pnpm config get</code> and <code>pnpm get</code> now says that the key is a property path, such as <code>catalog.react</code>.</p>
</li>
<li>
<p>Removed the obsolete <code>xmas</code> command.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 11.29.0]]></title>
      <link>https://pnpm.io/blog/releases/11.29.0</link>
      <guid>https://pnpm.io/blog/releases/11.29.0</guid>
      <pubDate>Sun, 22 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 11.29.0 stops reading otp from config files, rejects local filesystem dependencies declared by registry packages, adds the --minimum-release-age option, and recreates an incompatible node_modules without a TTY. This release carries several security fixes.]]></description>
      <content:encoded><![CDATA[<p>pnpm 11.29.0 stops reading <code>otp</code> from config files, rejects local filesystem dependencies declared by registry packages, adds the <code>--minimum-release-age</code> option, and recreates an incompatible <code>node_modules</code> without a TTY. This release carries several security fixes.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>
<p><code>otp</code> is no longer read from any config file. Pass <code>--otp</code> on the command line, or set <code>PNPM_CONFIG_OTP</code>. A <code>pnpm-workspace.yaml</code> or a global <code>config.yaml</code> that carries <code>otp</code> is ignored, with a warning naming those two channels. <code>pnpm config set otp</code> fails with <code>ERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING</code> instead of writing an entry no loader reads back.</p>
<p>This closes a way to leak a secret. A repository could write <code>otp: ${NPM_TOKEN}</code> beside its own <code>registry:</code>, and <code>pnpm publish</code> sent that environment variable to the registry the same file named, in the <code>npm-otp</code> header of its first request <a href="https://github.com/pnpm/pnpm/issues/13542">#13542</a>.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security">Security<a class="hash-link" href="#security" aria-label="Direct link to Security">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> now rejects local filesystem dependencies (<code>file:</code>, <code>link:</code>, and path-based <code>workspace:</code> specifiers) declared by non-local packages with <code>ERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED</code>. Relative <code>file:</code> dependencies inside a package's own archive and local dependencies configured by the workspace through <code>overrides</code>, <code>packageExtensions</code>, or <code>.pnpmfile.cjs</code> continue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm install --frozen-lockfile</code> now enforce <code>blockExoticSubdeps</code> against entries in <code>pnpm-lock.yaml</code>. Before, pnpm accepted a lockfile with git or tarball URL subdependencies and installed those packages even with <code>blockExoticSubdeps: true</code>.</p>
</li>
<li>
<p>Tarball downloads send registry credentials only over HTTPS or loopback HTTP. Tarball and package metadata requests respect registry credential paths on redirects. A failed tarball request can no longer pin its redirect destination in the lockfile.</p>
</li>
<li>
<p>Tarball URL preflight requests use the configured credentials and fetch retry settings.</p>
</li>
<li>
<p>TLS file paths in <code>.npmrc</code> and <code>auth.ini</code> resolve relative to the file that declares them. Project <code>.npmrc</code> files skip TLS file paths containing environment variables.</p>
<p><code>pnpm config get</code> refuses to print protected auth settings. <code>pnpm config list</code> hides TLS private keys and inline proxy credentials. <code>pnpm config set --global tokenHelper</code> writes to <code>auth.ini</code>. Setting a project-level <code>tokenHelper</code> fails.</p>
</li>
<li>
<p>Global commands (<code>--global</code>, <code>-g</code>) no longer load <code>.pnpmfile.cjs</code>, <code>pnpm-workspace.yaml</code>, or <code>.npmrc</code> from the current working directory. <code>pnpm why -g</code> now inspects globally installed packages.</p>
</li>
<li>
<p><code>pnpm dlx</code>, <code>pnx</code>, and <code>pnpm create</code> now handle local isolation, script skipping, and non-registry package specifiers consistently:</p>
<ul>
<li><code>pnpm</code> ignores local <code>.pnpmfile.cjs</code> hooks and project <code>.npmrc</code> proxy or TLS settings in the working directory.</li>
<li>Running with <code>--ignore-scripts</code> or <code>ignoreScripts: true</code> uses a separate <code>dlx</code> cache key, keeping cached installs that skipped build scripts separate from normal runs.</li>
<li>Relative local directory and tarball specifiers such as <code>./my-cli</code> and <code>./my-cli.tgz</code> resolve against the caller's working directory.</li>
<li>Explicitly requested tarball URL, <code>file:</code>, and git URL packages run their build scripts by default unless <code>--ignore-scripts</code> or a negated <code>--allow-build</code> selector disables them.</li>
</ul>
</li>
<li>
<p><code>pnpm approve-builds</code> now requires the exact selector shown by <code>pnpm ignored-builds</code> for a dependency a bare package name cannot identify (a <code>file:</code>, git, or tarball artifact). A bare package name only approves a plain registry version <a href="https://github.com/pnpm/pnpm/issues/18237">#18237</a>.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now reject <code>publishConfig.directory</code> values that use an absolute path or <code>..</code> segments outside the package directory.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>pnprServer</code> now rejects registry-keyed lockfile entries whose resolution uses a non-registry source with <code>ERR_PNPM_RESOLUTION_SHAPE_MISMATCH</code>. The <code>pnpr</code> lockfile verification and resolution endpoints enforce the same check before accepting or caching a lockfile.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>pnprServer</code> configured now falls back to local resolution when the project declares <code>file:</code>, <code>link:</code>, or local path dependencies. <code>pnpr</code> also rejects local filesystem dependency specifiers on <code>/-/pnpr/v0/resolve</code>.</p>
</li>
<li>
<p>Installs through a pnpr server now enforce <code>minimumReleaseAgeStrict</code> and add fallback versions to <code>minimumReleaseAgeExclude</code> when strict mode is off.</p>
</li>
<li>
<p><code>pnpm install</code> now records the supply-chain verification of the lockfile it writes by the lockfile's content. Before, a lockfile that another process put in its place right after the write could reuse that verification on the next install.</p>
</li>
<li>
<p>Matching a glob that repeats a wildcard, such as <code>+(*)z</code> in the workspace <code>packages</code> patterns, no longer hangs on long paths. The bundled picomatch is patched for a <a href="https://github.com/advisories/GHSA-fc5q-39xc-vjpf">security advisory</a>.</p>
</li>
</ul>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> no longer fails without a TTY when it has to recreate an incompatible <code>node_modules</code> directory, such as in a Docker build or with piped stdin <a href="https://github.com/pnpm/pnpm/issues/6778">#6778</a>, <a href="https://github.com/pnpm/pnpm/issues/9166">#9166</a>, <a href="https://github.com/pnpm/pnpm/issues/8654">#8654</a>, <a href="https://github.com/pnpm/pnpm/issues/8085">#8085</a>. It now recreates the directory and prints a warning that explains why. A custom or symlinked modules directory still requires setting <code>confirmModulesPurge</code> to <code>false</code>.</p>
</li>
<li>
<p><code>pnpm install</code> now installs a workspace project located in a parent directory of the workspace root, such as one matched by <code>packages: ['..']</code> <a href="https://github.com/pnpm/pnpm/issues/10096">#10096</a>.</p>
</li>
<li>
<p>Fixed <code>ERR_PNPM_LINKING_FAILED</code> on filesystems without copy-on-write reflinks when an install reuses an existing global virtual store entry before staging a package build. Also fixed merging <code>node_modules</code> directories during staged package imports on filesystems such as Btrfs that report <code>EEXIST</code> when renaming onto a non-empty directory.</p>
</li>
<li>
<p>A filtered <code>pnpm install</code> that changes the installed dependency groups, such as <code>pnpm --filter app install --prod</code>, no longer empties the <code>node_modules</code> directories of the workspace projects it skips.</p>
</li>
<li>
<p>With <code>enableGlobalVirtualStore</code> on, <code>require.extensions</code> hooks run again for <code>require()</code> calls from a module compiled from a string, such as the module Next.js uses to load <code>next.config.ts</code>. A required <code>.ts</code> file skipped the registered TypeScript hook. A required <code>.json</code> file was parsed as JavaScript <a href="https://github.com/pnpm/pnpm/issues/18261">#18261</a>.</p>
</li>
<li>
<p>Fixed <code>nodeLinker: hoisted</code> installs omitting a dependency that its parent also declares as a peer dependency when <code>autoInstallPeers</code> is disabled <a href="https://github.com/pnpm/pnpm/issues/18193">#18193</a>.</p>
</li>
<li>
<p>Fixed <code>nodeLinker: hoisted</code> installs placing a package where one of its dependencies resolves to another version than the lockfile records. It could happen in a workspace whose projects depend on different versions of the same packages. In a workspace where one project's directory is inside another's, pnpm now keeps the inner project's dependency in its own <code>node_modules</code> when the outer project holds another version.</p>
</li>
<li>
<p>Fixed <code>pnpm prune</code> leaving extraneous package links in hoisted installations.</p>
</li>
<li>
<p>Fixed Plug'n'Play installs with local <code>file:</code> directory dependencies. Root projects can resolve their dependencies, and workspace projects with duplicate names retain their own dependencies.</p>
</li>
<li>
<p>Plug'n'Play now combines custom export conditions from <code>NODE_OPTIONS</code> and command-line flags. It also respects Node.js's enabled <code>node-addons</code> and <code>module-sync</code> conditions.</p>
</li>
<li>
<p>Fixed package maps resolving workspace and linked packages to the wrong directory when a path contains <code>#</code>, <code>?</code>, or <code>%</code>.</p>
</li>
<li>
<p><code>pnpm fetch</code> now applies patches to packages that are only reachable through local <code>file:</code> dependencies <a href="https://github.com/pnpm/pnpm/issues/11034">#11034</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm install --lockfile-only</code> fetching unchanged Git dependencies when an unrelated dependency changes and <code>trustLockfile</code> is enabled <a href="https://github.com/pnpm/pnpm/issues/18217">#18217</a>.</p>
</li>
<li>
<p>When an overrides entry requests a version that does not exist on the registry, <code>pnpm install</code> now names that override entry in the error. If the entry's selector has a version range, such as <code>foo@^1</code>, the error also shows the latest published version in that range.</p>
</li>
<li>
<p>When an install is delegated to the Rust engine, pnpm now renders the lockfile verification progress that the engine reports. The pass and failure lines show how many entries were checked.</p>
</li>
</ul>
<h3 id="lockfile-and-frozen-installs">Lockfile and frozen installs<a class="hash-link" href="#lockfile-and-frozen-installs" aria-label="Direct link to Lockfile and frozen installs">#</a></h3>
<ul>
<li>
<p><code>pnpm install --frozen-lockfile</code> now accepts a plain-range dependency of a local directory dependency that <code>linkWorkspacePackages: deep</code> linked to a workspace project. It fails when the <code>injected</code> setting of a dependency of a local directory dependency no longer matches the lockfile <a href="https://github.com/pnpm/tasks/issues/319">pnpm/tasks#319</a>.</p>
</li>
<li>
<p>Frozen installs now detect changes to catalog entries used only by peer dependencies of local directory packages.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> now revalidates registry metadata when verifying a locked tarball whose version is missing from the cached package listing.</p>
</li>
<li>
<p><code>pnpm ci</code> no longer reports an existing current lockfile to the <code>preResolution</code> hook when <code>virtualStoreDir</code> points outside the project and the lockfile is about to be removed with <code>node_modules</code>.</p>
</li>
<li>
<p>pnpm can read lockfiles with large YAML merge mappings or ordered maps without the excessive parsing time seen in some cases <a href="https://github.com/pnpm/pnpm/issues/18246">#18246</a>.</p>
</li>
<li>
<p><code>pnpm-lock.yaml</code> now quotes strings that look like numbers, such as <code>+.5</code>, so they are read back as strings.</p>
</li>
</ul>
<h3 id="workspaces-and-scripts">Workspaces and scripts<a class="hash-link" href="#workspaces-and-scripts" aria-label="Direct link to Workspaces and scripts">#</a></h3>
<ul>
<li>
<p>The workspace project graph now follows <code>overrides</code>. An override that points a dependency at a workspace package, such as <code>foo: workspace:*</code>, makes that package a dependency of every project whose declaration the override matches, even with <code>linkWorkspacePackages</code> off. <code>pnpm install</code> now runs that package's lifecycle scripts before the scripts of the projects depending on it. <code>pnpm -r run</code> orders the projects the same way. <code>--filter</code> selectors that follow dependencies now see the edge.</p>
</li>
<li>
<p>A <code>[&#x3C;since>]</code> filter such as <code>--filter "...[origin/main]"</code> now selects a project whose dependency an <code>overrides</code> entry points at a changed catalog entry. For example, with <code>lib: catalog:local</code> in <code>overrides</code>, changing <code>lib</code> in the <code>local</code> catalog selects every project that depends on <code>lib</code>.</p>
</li>
<li>
<p><code>pnpm install</code> now runs the workspace root's <code>pnpm:devPreinstall</code> script when <code>sharedWorkspaceLockfile</code> is <code>false</code> <a href="https://github.com/pnpm/pnpm/issues/4503">#4503</a>. <code>pnpm install --dry-run</code> no longer runs it.</p>
</li>
<li>
<p><code>pnpm run</code> and <code>pnpm exec</code> now find the Plug'n'Play loader and experimental package map when <code>lockfileDir</code> is configured. This also applies to recursive commands.</p>
</li>
<li>
<p><code>pnpm run</code> and <code>pnpm exec</code> no longer trigger a reinstall solely because the last install used <code>--trust-lockfile</code> <a href="https://github.com/pnpm/pnpm/issues/18218">#18218</a>.</p>
</li>
<li>
<p>After a workspace script runs, pnpm links commands from scoped injected packages into the containing modules directory's <code>.bin</code>. Commands declared through <code>directories.bin</code> are also refreshed.</p>
</li>
<li>
<p>pnpm skips unsupported command names in <code>directories.bin</code>, including filenames with spaces.</p>
</li>
<li>
<p><code>--resume-from</code> starts at the named project when the previous run completed no tasks.</p>
</li>
<li>
<p>A <code>tasks</code> entry with no value in <code>pnpm-workspace.yaml</code>, such as <code>build:</code>, now fails with a hint. The hint suggests writing <code>{}</code> for a task with no settings, or removing the entry to keep the default <code>dependsOn: ['^&#x3C;task>']</code>.</p>
</li>
<li>
<p><code>pnpm --version</code>, <code>pnpm --help</code>, and <code>pnpm help</code> now succeed when the project pins another package manager.</p>
</li>
</ul>
<h3 id="patched-dependencies">Patched dependencies<a class="hash-link" href="#patched-dependencies" aria-label="Direct link to Patched dependencies">#</a></h3>
<ul>
<li>
<p>Fixed several bugs in applying patches:</p>
<ul>
<li>Deleting a file whose path contains <code> b/</code> no longer deletes a different file.</li>
<li>A hunk without context lines now inserts its lines after the line its header names.</li>
<li>A patch that creates a file no longer overwrites an existing file with different content. pnpm reports the patch as failed.</li>
</ul>
</li>
<li>
<p><code>pnpm patch-commit</code> now keeps a file without a final newline unterminated when that file comes last in the patch. Before, the patch dropped the final <code>\ No newline at end of file</code> marker, so the patched file gained a trailing newline.</p>
</li>
<li>
<p><code>pnpm patch-remove</code> now removes the corresponding edit directory and state entry from <code>node_modules/.pnpm_patches</code>.</p>
</li>
</ul>
<h3 id="packing-publishing-and-deploying">Packing, publishing, and deploying<a class="hash-link" href="#packing-publishing-and-deploying" aria-label="Direct link to Packing, publishing, and deploying">#</a></h3>
<ul>
<li>
<p><code>pnpm pack --json</code> now reports the <code>package.json</code> that goes into the tarball, with <code>publishConfig</code> and the other publish-time changes applied. Run <code>pnpm pack --dry-run --json</code> to preview it without writing a tarball. A dry run still runs <code>prepack</code> and <code>prepare</code>, unless <code>--ignore-scripts</code> is passed.</p>
</li>
<li>
<p>Packed workspace dependencies now use the dependency's <code>publishConfig.name</code>.</p>
</li>
<li>
<p>Fixed <code>pnpm deploy</code> for projects that depend on an external directory through <code>link:</code>.</p>
</li>
<li>
<p><code>pnpm deploy</code> now installs a workspace package from its publish directory only when the package's <code>package.json</code> sets <code>publishConfig.directory</code> to that directory. A publish directory that only the lockfile records is ignored.</p>
</li>
<li>
<p><code>pnpm stage</code> uses the current package's publish registry when listing, viewing, approving, rejecting, or downloading staged versions. To use a one-time password at a non-default registry selected by the package, pass <code>--registry</code>.</p>
</li>
<li>
<p><code>pnpm version -r</code> updates explicit workspace dependency ranges that a release invalidates. <code>pnpm version</code> preserves edits that a <code>preversion</code> script makes to other manifest fields.</p>
</li>
<li>
<p>When <code>pnpm unpublish</code> removes the version tagged <code>latest</code>, it prefers the highest remaining stable version.</p>
</li>
</ul>
<h3 id="configuration">Configuration<a class="hash-link" href="#configuration" aria-label="Direct link to Configuration">#</a></h3>
<ul>
<li>
<p>Added the <code>--minimum-release-age</code> and <code>--minimum-release-age-exclude</code> options to <code>pnpm install</code>, <code>pnpm add</code>, <code>pnpm update</code>, and <code>pnpm dlx</code>. They set <code>minimumReleaseAge</code> and <code>minimumReleaseAgeExclude</code> for a single run without editing a config file <a href="https://github.com/pnpm/pnpm/issues/11224">#11224</a>.</p>
</li>
<li>
<p><code>minimumReleaseAge</code> must now be a finite, non-negative number of minutes. Other values fail with <code>ERR_PNPM_INVALID_MINIMUM_RELEASE_AGE</code>. Before, such a value turned off the release age check or crashed the install.</p>
</li>
<li>
<p>Approving the <code>minimumReleaseAge</code> prompt no longer reprints the list of packages it just showed. pnpm now confirms with one line that says how many entries it added to <code>minimumReleaseAgeExclude</code> <a href="https://github.com/pnpm/pnpm/issues/15377">#15377</a>.</p>
</li>
<li>
<p>A setting in <code>pnpm-workspace.yaml</code> or the global <code>config.yaml</code> that references an undefined environment variable without a fallback now fails with <code>ERR_PNPM_CONFIG_UNRESOLVED_ENV_VAR</code>. Before, pnpm failed with an error that had no code <a href="https://github.com/pnpm/pnpm/issues/10963">#10963</a>.</p>
</li>
<li>
<p>Empty or whitespace-only numeric <code>pnpm_config_*</code> environment variables no longer override configured values or defaults.</p>
</li>
<li>
<p>pnpm now validates <code>noProxy</code>, <code>strictSsl</code>, <code>localAddress</code>, and <code>sideEffectsCache.exclude</code> in workspace and global configuration. <code>noProxy</code> accepts strings and booleans, and <code>null</code> leaves it unset.</p>
</li>
<li>
<p>pnpm now reports <code>referenceTime</code> in <code>pnpm-workspace.yaml</code> as a setting of a newer pnpm version.</p>
</li>
<li>
<p>Windows command shims preserve existing PATH entries when the <code>prependToPath</code> option is used.</p>
</li>
</ul>
<h3 id="other-commands-and-help">Other commands and help<a class="hash-link" href="#other-commands-and-help" aria-label="Direct link to Other commands and help">#</a></h3>
<ul>
<li>
<p><code>pnpm store prune</code> now fails with <code>ERR_PNPM_FROZEN_STORE_WRITE</code> when <code>frozenStore</code> is enabled. Before, it removed files from the store.</p>
</li>
<li>
<p><code>pnpm peers check</code> now resolves the <code>catalog:</code> peer ranges of injected workspace packages through the workspace catalogs. With <code>autoInstallPeers: false</code>, such a peer was reported as unmet even when the installed version matched the catalog entry <a href="https://github.com/pnpm/pnpm/issues/10279">#10279</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm update</code> and <code>pnpm outdated</code> with <code>--include-github-actions</code> corrupting workflow YAML or skipping actions referenced through YAML anchors, aliases, or merge keys. Combining a GitHub Action selector with a negated package selector such as <code>!lodash</code> no longer matches every package dependency.</p>
</li>
<li>
<p><code>pnpm outdated</code> now reports newer prereleases of an installed prerelease. It checks the dist-tag that points to the newest version of the installed prerelease channel, such as <code>next</code> for <code>3.0.0-rc.0</code>, alongside <code>latest</code> <a href="https://github.com/pnpm/pnpm/issues/7339">#7339</a>.</p>
</li>
<li>
<p><code>pnpm list -g</code> with <code>--depth</code> greater than <code>0</code> now always reads the global install directory's <code>node_modules</code> and lockfile. Before, it could read the current project's lockfile or a custom <code>modulesDir</code>.</p>
</li>
<li>
<p><code>pnpm list --json</code> now reports unsaved dependencies from each workspace project's own modules directory <a href="https://github.com/pnpm/pnpm/issues/18248">#18248</a>.</p>
</li>
<li>
<p><code>pnpm list --lockfile-only --find-by</code> now reads manifests from the configured store when <code>node_modules</code> is absent.</p>
</li>
<li>
<p><code>pnpm why --exclude-peers</code> now leaves out packages that are reached only as a resolved peer dependency. Before, the flag was accepted but ignored.</p>
</li>
<li>
<p><code>pnpm cat-file</code> can read executable files from the store. <code>pnpm cache list</code>, <code>view</code>, and <code>delete</code> recognize mixed-case package names.</p>
<p><code>pnpm clean</code> removes custom virtual stores with hidden directory names. In Plug'n'Play projects it also removes the generated loader on a full clean.</p>
</li>
<li>
<p>Fixed <code>pnpm unlink</code> in CI and in workspace subprojects. It now removes matching linked dependencies from the selected manifests.</p>
</li>
<li>
<p>Fixed <code>pnpm link</code> resolving a quoted <code>~/</code> path from the current directory.</p>
</li>
<li>
<p><code>pnpm import</code> respects the symlink policy for the destination lockfile and skips Yarn patches outside the workspace.</p>
</li>
<li>
<p><code>pnpm add</code> run from a workspace package directory that has no <code>package.json</code> yet now suggests creating one with <code>pnpm init</code> <a href="https://github.com/pnpm/pnpm/issues/11345">#11345</a>.</p>
</li>
<li>
<p>Removed the obsolete <code>xmas</code> command.</p>
</li>
<li>
<p><code>pnpm help</code> and <code>pnpm &#x3C;command> --help</code> now print the help when the system runtime does not satisfy the project's <code>devEngines.runtime</code> or <code>engines.runtime</code>.</p>
</li>
<li>
<p><code>pnpm clean --help</code> and the help of other commands a script can override now print the help, even when <code>package.json</code> has a script with the same name.</p>
</li>
<li>
<p>An unknown option passed via a shorthand is now reported as typed, and the shorthand of the other case is suggested when the command supports it. For instance, <code>pnpm update -l</code> used to fail with <code>Unknown option: 'long'</code>, as <code>-l</code> is short for <code>--long</code>. Now it fails with <code>Unknown option: '-l'</code> and suggests <code>-L</code> (<code>--latest</code>).</p>
</li>
<li>
<p><code>pnpm help import</code> now lists the output options, such as <code>--reporter</code>, that the command accepts <a href="https://github.com/pnpm/pnpm/issues/7829">#7829</a>.</p>
</li>
<li>
<p>The help for <code>pnpm config get</code> and <code>pnpm get</code> now says that the key is a property path, such as <code>catalog.react</code>.</p>
</li>
<li>
<p>Tab completion suggests project scripts when you type <code>pnpm</code> followed by a script name <a href="https://github.com/pnpm/pnpm/issues/18239">#18239</a>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.22.0]]></title>
      <link>https://pnpm.io/blog/releases/12.22.0</link>
      <guid>https://pnpm.io/blog/releases/12.22.0</guid>
      <pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 12.22.0 adds a globalPackagesConfig section to the global config.yaml for settings that apply only to global packages, adds pnpm why --ranges, and lists workspace projects in dependency order in pnpm list --recursive. It also includes a security fix. After the default or a scoped registry...]]></description>
      <content:encoded><![CDATA[<p>pnpm 12.22.0 adds a <code>globalPackagesConfig</code> section to the global <code>config.yaml</code> for settings that apply only to global packages, adds <code>pnpm why --ranges</code>, and lists workspace projects in dependency order in <code>pnpm list --recursive</code>. It also includes a security fix. After the default or a scoped registry changed, <code>pnpm install</code> could skip the <code>minimumReleaseAge</code> and <code>trustPolicy</code> checks against the new registry.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>
<p>Settings under <code>globalPackagesConfig</code> in the global <code>config.yaml</code> now apply only to commands that act on global packages, such as <code>pnpm add -g</code> and <code>pnpm update -g</code>. For example, <code>globalPackagesConfig.trustPolicyExclude</code> excludes a package from the trust policy for global installs only <a href="https://github.com/pnpm/pnpm/issues/18130">#18130</a>.</p>
<p><code>pnpm approve-builds -g</code> and <code>pnpm add -g --allow-build</code> now save build decisions under <code>globalPackagesConfig.permissions</code>. pnpm still applies build settings from the <code>pnpm-workspace.yaml</code> of the global packages directory, with a deprecation warning. The next approval moves them to <code>config.yaml</code>.</p>
</li>
<li>
<p>Added <code>pnpm why --ranges</code>, which lists the version range that each direct dependent declares for the package. <code>pnpm why --json</code> now includes the declared range of each dependent in a <code>requires</code> field <a href="https://github.com/pnpm/pnpm/pull/18121">#18121</a>.</p>
</li>
<li>
<p><code>pnpm list --recursive</code> now lists workspace projects in dependency order. Use <code>--no-sort</code> to retain workspace order <a href="https://github.com/pnpm/pnpm/issues/7716">#7716</a>.</p>
</li>
<li>
<p>A <code>file:</code> dependency on a local directory now resolves <code>catalog:</code> specifiers in that directory's <code>package.json</code> against the workspace catalogs, as an injected workspace package does. Before, the install failed with <code>ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER</code>.</p>
<p>A <code>file:</code> dependency on the <code>publishConfig.directory</code> of a project is now described by that project's <code>package.json</code>, as an injected workspace package is. A <code>package.json</code> that a build writes into that directory no longer changes the resolution.</p>
</li>
<li>
<p>The experimental <code>v13</code> lockfile format records a local directory package's declared specifiers in its <code>dependencies</code> and <code>optionalDependencies</code>, beside the versions they resolved to. A dependency marked <code>injected</code> in <code>dependenciesMeta</code> has <code>injected: true</code>. The format no longer has a <code>dependenciesMeta</code> field. Run <code>pnpm install</code> to rewrite a <code>v13</code> lockfile that an earlier pnpm wrote.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security">Security<a class="hash-link" href="#security" aria-label="Direct link to Security">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> now re-verifies lockfile resolutions when the default registry or a scoped registry changes. Before, it reused the result cached for the previous registry and skipped the <code>minimumReleaseAge</code> and <code>trustPolicy</code> checks against the new one <a href="https://github.com/pnpm/pnpm/pull/18070">#18070</a>.</p>
<p>For a registry with <code>serverType: pnpr</code>, <code>pnpm install</code> also verifies locked package revisions against the registry when no cached result applies.</p>
</li>
<li>
<p><code>pnpm dlx</code> no longer reuses a cached install made under looser <code>overrides</code>, <code>packageExtensions</code>, <code>minimumReleaseAge</code>, <code>trustPolicy</code>, <code>trustLockfile</code>, or <code>blockExoticSubdeps</code> settings. It also no longer applies <code>overrides</code>, <code>packageExtensions</code>, or <code>blockExoticSubdeps</code> from a local <code>pnpm-workspace.yaml</code> <a href="https://github.com/pnpm/pnpm/pull/18075">#18075</a>.</p>
<p><code>pnpm dlx --allow-build=!&#x3C;pkg></code> now denies build scripts for <code>&#x3C;pkg></code>, including the executed package itself. Denied packages also skip interactive build approval.</p>
</li>
<li>
<p><code>pnpm audit</code> now reports advisories whose <code>id</code> is a string. Such advisories were dropped, and <code>pnpm audit</code> reported no known vulnerabilities <a href="https://github.com/pnpm/pnpm/issues/18184">#18184</a>.</p>
</li>
</ul>
<h3 id="installs-that-failed">Installs that failed<a class="hash-link" href="#installs-that-failed" aria-label="Direct link to Installs that failed">#</a></h3>
<ul>
<li>
<p>When the <code>pnpm</code> package downloads its native binary on first run, it now reads a global <code>config.yaml</code> that holds only blank lines or comments as no settings. Such a file made every command fail with "expected a document, but the input is empty" <a href="https://github.com/pnpm/pnpm/issues/18172">#18172</a>.</p>
</li>
<li>
<p>When the <code>pnpm</code> package downloads its native binary on first run, it now works with registries that serve no per-version package documents, such as Azure Artifacts. If such a registry also removed npm's signatures, pnpm fetches them from registry.npmjs.org. The binary still comes from the configured registry and is checked against npm's signature.</p>
</li>
<li>
<p>Fixed an offline install failing the <code>minimumReleaseAge</code> lockfile check with <code>ERR_PNPM_NO_OFFLINE_META</code> after an online install resolved the same packages with the same cache directory. The check now reads publish times from the metadata that the resolution cached <a href="https://github.com/pnpm/pnpm/issues/18063">#18063</a>.</p>
</li>
<li>
<p><code>pnpm install</code> no longer runs <code>git ls-remote</code> for a git dependency whose specifier is unchanged and whose commit the lockfile already records. Installs that update the lockfile, such as Renovate's, no longer fail without git credentials when the project has a private git dependency with peer dependencies <a href="https://github.com/pnpm/pnpm/issues/18104">#18104</a>.</p>
</li>
<li>
<p><code>npm:&#x3C;pkg>@&#x3C;range></code> and named-registry package aliases with space-separated comparators, such as <code>npm:bar@>=1.0.0 &#x3C;2.0.0</code>, now resolve the target package <a href="https://github.com/pnpm/pnpm/issues/18169">#18169</a>.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>lockfile.format: v13</code> no longer fails with <code>ERR_PNPM_NEXT_LOCKFILE_NOT_REPRESENTABLE</code> when it converts a <code>v9</code> lockfile in which a package with many peers has a hashed peer suffix and is in a dependency cycle with one of its peers <a href="https://github.com/pnpm/pnpm/issues/18148">#18148</a>.</p>
</li>
<li>
<p><code>pnpm deploy --prod</code> now succeeds with <code>lockfile.format: v13</code> when a production package's optional peer is provided only by development dependencies. The excluded provider stays out of the deployed project <a href="https://github.com/pnpm/pnpm/issues/18117">#18117</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> now preserves <code>lockfile.format</code> and <code>lockfileIncludeTarballUrl</code> in the deployed <code>pnpm-workspace.yaml</code>. Previously, commands such as <code>pnpm dedupe --check</code> in a deployed project using <code>lockfile.format: v13</code> treated the lockfile as <code>v9</code> and reported changes.</p>
</li>
<li>
<p>Fixed <code>pnpm install --merge-git-branch-lockfiles --frozen-lockfile</code> failing with <code>ERR_PNPM_OUTDATED_LOCKFILE</code> when a project sets or removes <code>publishConfig.directory</code>, <code>publishConfig.linkDirectory</code>, or <code>dependenciesMeta</code>. Lockfile merging now preserves and reconciles <code>publishDirectory</code>, <code>linkDirectory</code>, and <code>dependenciesMeta</code> on importers.</p>
</li>
<li>
<p>Frozen installs accept injected workspace packages whose child dependencies use <code>link:</code> or a bare relative path <a href="https://github.com/pnpm/tasks/issues/274">pnpm/tasks#274</a>.</p>
</li>
<li>
<p>Installing an injected local package no longer fails with a "no such file or directory" error when another process renames or removes files in that package while pnpm lists them. This happened most often on macOS in workspaces with <code>sharedWorkspaceLockfile: false</code>, where the install of the package itself writes its lockfile at the same time.</p>
</li>
<li>
<p>Fixed a crash when <code>pnpm-lock.yaml</code> or a dependency selector contains a package name that starts with a multi-byte UTF-8 character.</p>
</li>
<li>
<p>Tarball URLs that reject HEAD requests with 405 Method Not Allowed now fall back to a GET request during resolution.</p>
</li>
</ul>
<h3 id="resolving-and-linking-dependencies">Resolving and linking dependencies<a class="hash-link" href="#resolving-and-linking-dependencies" aria-label="Direct link to Resolving and linking dependencies">#</a></h3>
<ul>
<li>
<p>With <code>autoInstallPeers</code>, an optional peer is no longer bound to a version outside its range that only another dependency's subtree brings in. Before, adding an unrelated dependency could flip that binding and rewrite the peer suffixes of other projects in the lockfile <a href="https://github.com/pnpm/pnpm/issues/18162">#18162</a>.</p>
</li>
<li>
<p>Fixed duplicate packages with <code>nodeLinker: hoisted</code> and <code>autoInstallPeers: false</code> when identical transitive peer bindings appeared under parents with conflicting dependencies.</p>
</li>
<li>
<p>When multiple <code>overrides</code> selectors match a dependency, pnpm now picks the selector with the narrower version range regardless of the order in which the overrides are declared <a href="https://github.com/pnpm/pnpm/pull/18071">#18071</a>.</p>
</li>
<li>
<p>Patches that add lines to the end of a file without a final newline now install the whole file. pnpm dropped the last added line when the patch also marked it with <code>\ No newline at end of file</code> <a href="https://github.com/pnpm/pnpm/issues/18156">#18156</a>.</p>
</li>
<li>
<p>Project <code>engines.node</code> checks now use the Node.js runtime that pnpm links for the dependency groups being installed. If the lockfile records that runtime, the check uses its resolved version. Production installs ignore a runtime declared only in <code>devEngines.runtime</code> <a href="https://github.com/pnpm/tasks/issues/302">pnpm/tasks#302</a>.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm approve</code> now discover, link, and prune agent skills from <code>workspace:*</code>, <code>link:</code>, and local directory <code>file:</code> direct dependencies.</p>
</li>
</ul>
<h3 id="cargo-and-python">Cargo and Python<a class="hash-link" href="#cargo-and-python" aria-label="Direct link to Cargo and Python">#</a></h3>
<ul>
<li>
<p><code>pnpm add crate:</code> and targeted <code>pnpm update crate:</code> commands keep compatible versions from <code>Cargo.lock</code> for other crates <a href="https://github.com/pnpm/tasks/issues/257">pnpm/tasks#257</a>.</p>
</li>
<li>
<p><code>pnpm add crate:&#x3C;pkg></code> no longer corrupts multiline arrays in <code>Cargo.toml</code>. Saving an explicit version with <code>pnpm add crate:&#x3C;pkg>@&#x3C;version></code> now replaces <code>workspace = true</code> on existing dependency entries. Inherited workspace settings such as <code>features</code>, <code>default-features</code>, and <code>package</code> stay on the updated entry. <code>pnpm install</code> now accepts unversioned path dependencies on prerelease Cargo workspace members. Cargo workspace inheritance now resolves <code>package</code> renames.</p>
</li>
<li>
<p><code>pnpm add</code> for <code>pypi:</code> dependencies now preserves existing entries in <code>pyproject.toml</code> whose PEP 508 environment markers differ from the added requirement. <code>pnpm add</code> also accepts PEP 508 direct URL requirements such as <code>pypi:pkg @ https://...</code>. <code>pnpm update</code> at a shared-environment workspace root without a root <code>[project]</code> table now updates matching member manifests and the shared <code>pylock.toml</code>.</p>
</li>
<li>
<p>An invalid entry in a Python registry's <code>packages</code> list now names the patterns a Python registry accepts: an exact name, a prefix such as <code>company-*</code>, or <code>**</code>. The error used to suggest <code>@scope/*</code>, which a Python registry rejects. It also quotes the entry as written. A rejected prefix such as <code>-a*</code> used to appear as <code>-ax</code>.</p>
</li>
</ul>
<h3 id="running-scripts">Running scripts<a class="hash-link" href="#running-scripts" aria-label="Direct link to Running scripts">#</a></h3>
<ul>
<li>
<p><code>verifyDepsBeforeRun</code> no longer reports the dependencies as out of date when <code>runtimeOnFail</code> stops pnpm from installing the runtime that <code>devEngines.runtime</code> or <code>engines.runtime</code> declares <a href="https://github.com/pnpm/pnpm/issues/18155">#18155</a>.</p>
<p>Commands that install a single project of a workspace, such as <code>pnpm add -w</code>, now apply <code>runtimeOnFail</code> to the other workspace projects too. They no longer install a runtime that <code>runtimeOnFail</code> excludes.</p>
</li>
<li>
<p><code>pnpm --if-present start</code>, <code>pnpm run --if-present start</code>, and <code>pnpm restart --if-present</code> now exit with code 0 when a project has neither a <code>start</code> script nor a <code>server.js</code> file <a href="https://github.com/pnpm/pnpm/pull/18073">#18073</a>.</p>
</li>
<li>
<p><code>pnpm test</code>, <code>pnpm t</code>, and <code>pnpm tst</code> in a single-package project now fail with <code>ERR_PNPM_NO_SCRIPT</code> when the <code>test</code> script is missing unless <code>--if-present</code> is passed <a href="https://github.com/pnpm/pnpm/pull/18073">#18073</a>.</p>
</li>
<li>
<p><code>shellEmulator</code> now handles escaped backslashes (<code>\\</code>) and unquoted escaped single quotes (<code>\'</code>) according to POSIX quoting rules. Previously, scripts containing <code>"a\\"</code> or <code>\'</code> failed to parse or misquoted later <code>${...}</code> parameter expansions.</p>
</li>
<li>
<p><code>pnpm create</code> now forwards <code>--env-file</code> and other CLI flags placed after the starter template name to the starter command.</p>
</li>
<li>
<p><code>pnpm pipeline</code> now hashes no input files when <code>inputs: []</code> is configured. <code>+</code>-prefixed input globs include gitignored files and workspace files outside the project directory. <code>!</code>-prefixed input globs exclude matching files. Tasks that depend on an uncacheable task now bypass cached output restoration and re-run after that dependency executes. Read-only cached output files restore without permission errors. Task keys now hash each project's wanted lockfile across per-project lockfiles, custom <code>lockfileDir</code>, and branch lockfiles.</p>
</li>
</ul>
<h3 id="build-approvals">Build approvals<a class="hash-link" href="#build-approvals" aria-label="Direct link to Build approvals">#</a></h3>
<ul>
<li>
<p><code>pnpm approve-builds</code> and <code>pnpm approve</code> without package arguments or <code>--all</code> now fail with <code>ERR_PNPM_APPROVE_BUILDS_NON_INTERACTIVE</code> and <code>ERR_PNPM_APPROVE_NON_INTERACTIVE</code> when packages are awaiting approval in CI or without an interactive terminal. <code>pnpm dlx</code> and global installs also skip automatic build-approval prompts in CI, leaving pending builds unapproved.</p>
</li>
<li>
<p><code>pnpm approve-builds</code> and <code>pnpm add --allow-build</code> no longer corrupt a <code>pnpm-workspace.yaml</code> whose last line has no line break.</p>
</li>
</ul>
<h3 id="workspaces-and-lockfiles">Workspaces and lockfiles<a class="hash-link" href="#workspaces-and-lockfiles" aria-label="Direct link to Workspaces and lockfiles">#</a></h3>
<ul>
<li>
<p>Combining <code>--filter</code> and <code>--filter-prod</code> with exclusion selectors such as <code>!pkg</code> now evaluates all selectors together in command-line order. An exclusion passed on one flag while inclusions were passed on the other no longer selects every workspace project.</p>
</li>
<li>
<p><code>pnpm -r fetch</code> now fetches each selected project's lockfile when <code>sharedWorkspaceLockfile</code> is <code>false</code>. Use <code>--filter</code> to limit which projects are fetched <a href="https://github.com/pnpm/pnpm/issues/18152">#18152</a>.</p>
</li>
<li>
<p><code>pnpm peers</code> in workspaces with <code>sharedWorkspaceLockfile: false</code> now checks each selected project's <code>pnpm-lock.yaml</code>.</p>
</li>
<li>
<p><code>pnpm ci</code> now validates that <code>pnpm-lock.yaml</code> exists and matches <code>package.json</code> before removing <code>node_modules</code>. <code>pnpm clean</code> and <code>pnpm ci</code> now honor <code>--filter</code>, <code>--filter-prod</code>, and <code>--workspace-root</code>. <code>pnpm clean</code> and <code>pnpm ci</code> also clean root <code>node_modules</code> in workspaces without a root <code>package.json</code>. <code>pnpm clean --lockfile</code> now removes per-project lockfiles and lockfiles inside a custom <code>lockfileDir</code>.</p>
</li>
<li>
<p><code>pnpm clean</code>, <code>pnpm purge</code>, and <code>pnpm ci</code> keep files outside the project untouched when <code>modulesDir</code> points outside the project root. When <code>node_modules</code> is a symlink, <code>pnpm</code> now unlinks the symlink without modifying its target <a href="https://github.com/pnpm/pnpm/pull/18072">#18072</a>.</p>
</li>
<li>
<p><code>pnpm import</code> now preserves locked versions for <code>npm:</code> aliased dependencies when importing from <code>package-lock.json</code>, <code>npm-shrinkwrap.json</code>, or <code>yarn.lock</code>. <code>pnpm import</code> also parses Yarn Classic <code>yarn.lock</code> files that reference <code>__metadata</code> package names without treating them as Yarn Berry lockfiles.</p>
</li>
</ul>
<h3 id="updating-publishing-and-versioning">Updating, publishing, and versioning<a class="hash-link" href="#updating-publishing-and-versioning" aria-label="Direct link to Updating, publishing, and versioning">#</a></h3>
<ul>
<li>
<p><code>pnpm update</code> now moves an <code>engines.pnpm</code> range along with the pnpm version in <code>packageManager</code> or <code>devEngines.packageManager</code> <a href="https://github.com/pnpm/pnpm/issues/18142">#18142</a>.</p>
</li>
<li>
<p>Fixed GitHub Actions support in <code>pnpm update</code> and <code>pnpm outdated</code>. Updating a workflow step with a major or minor version comment such as <code># v4</code> or a prose comment now formats the updated version comment cleanly. Negated action selectors such as <code>!actions/cache/save</code> now exclude only the targeted subpath actions. Passing only negated action selectors still updates packages. Previously, negated action selectors skipped package updates. <code>pnpm outdated</code> now reports every distinct outdated version when several workflows pin the same action at different versions.</p>
</li>
<li>
<p>Fixed <code>pnpm update</code> skipping package updates when a Package URL selector such as <code>pkg:npm/foo</code> is combined with <code>--include-github-actions</code>.</p>
</li>
<li>
<p><code>pnpm update -g --latest</code> now upgrades global runtimes (<code>node</code>, <code>deno</code>, and <code>bun</code>) and <code>npm:</code>-aliased global packages across major versions.</p>
</li>
<li>
<p><code>pnpm update --changeset</code> now generates a changeset when a <code>.changeset</code> directory exists or <code>versioning</code> is configured in <code>pnpm-workspace.yaml</code>, without requiring <code>.changeset/config.json</code>. It also respects <code>versioning.ignore</code> alongside <code>.changeset/config.json</code>.</p>
</li>
<li>
<p><code>pnpm version -r</code> now runs each bumped package's <code>preversion</code>, <code>version</code>, and <code>postversion</code> scripts unless <code>--ignore-scripts</code> or <code>--dry-run</code> is set. <code>pnpm version -r --dry-run --json</code> now prints the planned releases as a JSON array.</p>
</li>
<li>
<p><code>pnpm lane &#x3C;lane> --filter &#x3C;selector></code> now rejects partial moves of a <code>versioning.fixed</code> group with <code>ERR_PNPM_VERSIONING_CONFLICTING_CONFIG</code> before writing <code>pnpm-workspace.yaml</code>.</p>
</li>
<li>
<p><code>pnpm -C &#x3C;dir> publish &#x3C;tarball|folder></code> and <code>pnpm --dir &#x3C;dir> publish &#x3C;tarball|folder></code> now resolve relative tarball and directory arguments against <code>&#x3C;dir></code>. Git checks during <code>pnpm publish</code> also inspect the target directory.</p>
</li>
<li>
<p><code>pnpm -r publish</code> now skips workspace manifests whose <code>name</code> or <code>version</code> field is an empty string.</p>
</li>
<li>
<p><code>pnpm -r pack --out</code> now expands <code>%s</code> and <code>%v</code> placeholders only in the <code>--out</code> template. Literal <code>%s</code> and <code>%v</code> segments in the working directory path stay unchanged.</p>
</li>
</ul>
<h3 id="other-commands-and-settings">Other commands and settings<a class="hash-link" href="#other-commands-and-settings" aria-label="Direct link to Other commands and settings">#</a></h3>
<ul>
<li>
<p><code>pnpm config set --global --json tools</code> now writes <code>tools</code> to the global <code>config.yaml</code> and validates its structure before saving. <code>pnpm config set --global</code> also accepts <code>pm-on-fail</code> and <code>runtime-on-fail</code>. <code>blockExoticSubdeps</code> and <code>excludeLinksFromLockfile</code> set in the global <code>config.yaml</code> now take effect during installs and appear in <code>pnpm config get --global</code>. pnpm now ignores workspace-only settings in the global <code>config.yaml</code> and prints a warning, matching <code>pnpm config set --global</code>.</p>
</li>
<li>
<p><code>${VAR}</code> placeholders in <code>pnpm-workspace.yaml</code> written with YAML flow syntax now fail on registry URLs with <code>ERR_PNPM_REGISTRY_ENV_NOT_EXPANDED</code>. Placeholders in flow-style proxy, <code>pnprServer</code>, and <code>userAgent</code> settings are now ignored with a warning <a href="https://github.com/pnpm/pnpm/pull/18074">#18074</a>.</p>
</li>
<li>
<p><code>updateConfig</code> and <code>afterAllResolved</code> hooks in <code>.pnpmfile.cjs</code> that return <code>undefined</code>, <code>null</code>, or a non-object value now fail with <code>ERR_PNPM_CONFIG_IS_UNDEFINED</code> and <code>ERR_PNPM_BAD_AFTER_ALL_RESOLVED_RETURN</code>.</p>
</li>
<li>
<p><code>finders</code> in <code>.pnpmfile.cjs</code> that return an empty string no longer match packages in <code>pnpm list --find-by</code> or <code>pnpm why --find-by</code>.</p>
</li>
<li>
<p><code>pnpm list</code> no longer adds an <code>npm:</code> prefix to aliased local <code>file:</code> directory dependencies, and <code>pnpm list --json</code> preserves <code>&#x3C;name>@file:&#x3C;path></code> in their <code>version</code> field.</p>
</li>
<li>
<p><code>pnpm list --parseable --long</code> now keeps <code>&#x3C;name>@</code> on <code>link:</code> and <code>file:</code> dependencies whose path or peer suffix contains <code>@</code>, such as <code>link:../@scope/pkg</code>. Aliased scoped <code>file:</code> dependencies whose path contains <code>@</code> also keep <code>&#x3C;name>@</code> in <code>pnpm list</code>.</p>
</li>
<li>
<p><code>pnpm why</code> no longer merges distinct local <code>file:</code> directory dependencies that share the same package name across projects with dedicated lockfiles (<code>sharedWorkspaceLockfile: false</code>).</p>
</li>
<li>
<p><code>pnpm sbom</code> and <code>pnpm licenses list</code> now resolve <code>namedRegistries</code> version prefixes in lockfile entries. <code>pnpm sbom</code> emits bare component versions with a sanitized <code>repository_url</code> PURL qualifier. <code>pnpm sbom</code> derives tarball download URLs from the named registry. <code>pnpm licenses list</code> reports packages from named registries as separate entries with bare versions and <code>registryName</code>.</p>
</li>
<li>
<p><code>pnpm pkg</code> now reads and writes the project manifest as written on disk. <code>pnpm pkg get</code> no longer reports synthetic <code>runtime:</code> dependency entries from <code>devEngines.runtime</code> or <code>engines.runtime</code>. <code>pnpm pkg set</code> and <code>pnpm pkg delete</code> now preserve <code>devEngines.runtime</code>, <code>engines.runtime</code>, and empty dependency objects set with <code>--json</code>.</p>
</li>
<li>
<p><code>pnpm pm</code> now works after CLI flags such as <code>--dir</code> and after <code>pnpm with current</code>. <code>pnpm with current</code> also accepts subcommand boolean flags such as <code>pnpm --bare with current init</code> ahead of <code>with</code>.</p>
</li>
<li>
<p><code>pnpm env</code> commands (<code>use</code>, <code>list</code>, and <code>remove</code>) now accept Node.js version specifiers with a leading <code>v</code>, including prerelease versions such as <code>v22.0.0-rc.1</code>.</p>
</li>
<li>
<p><code>pnpm doctor</code> now checks write access for the cache, store, and global bin directories before they have been created. Previously, <code>pnpm doctor</code> reported <code>no write access</code> on fresh environments.</p>
<p><code>pnpm doctor</code> now probes whether reflinks or hardlinks work from the store into the project's link target and warns when neither does.</p>
</li>
</ul>
<h3 id="output-and-error-messages">Output and error messages<a class="hash-link" href="#output-and-error-messages" aria-label="Direct link to Output and error messages">#</a></h3>
<ul>
<li>
<p>An error from a failed dependency resolution, such as an unreachable registry or a throwing pnpmfile resolver, now prints its cause once <a href="https://github.com/pnpm/pnpm/issues/18077">#18077</a>.</p>
</li>
<li>
<p>pnpm no longer wraps error messages at the output width, so URLs and paths in them stay intact when stderr is not a terminal <a href="https://github.com/pnpm/pnpm/issues/18078">#18078</a>.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>nodeLinker: hoisted</code> no longer counts missing packages as removed. This fixes inflated removal counts for skipped optional dependencies <a href="https://github.com/pnpm/pnpm/issues/18178">#18178</a>.</p>
</li>
<li>
<p><code>pnpm outdated --json</code> and <code>pnpm outdated --format=json</code> now write reporter warnings to <code>stderr</code>. Warnings previously appeared on <code>stdout</code> before the JSON output.</p>
</li>
<li>
<p><code>pnpm stage</code> with <code>--json</code> now keeps <code>stdout</code> valid JSON during dry runs, empty workspace runs, and errors. <code>pnpm pipeline --dry-run --json</code> and <code>pnpm -r run --dry-run --json</code> now write reporter warnings and scope lines to <code>stderr</code>.</p>
</li>
<li>
<p><code>pnpm</code> warns when an <code>updateConfig</code> hook changes <code>registries</code> and some routes still use their configured registry. The warning names those routes and points to <code>registriesByScope</code>.</p>
</li>
<li>
<p><code>pnpm cat-file</code> now reports <code>ERR_PNPM_INVALID_HASH</code> when given an empty, malformed, or truncated digest such as <code>sha512-</code>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 11.28.13]]></title>
      <link>https://pnpm.io/blog/releases/11.28.13</link>
      <guid>https://pnpm.io/blog/releases/11.28.13</guid>
      <pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 11.28.13 includes a security fix. After the default or a scoped registry changed, pnpm install could skip the minimumReleaseAge and trustPolicy checks against the new registry. It also fixes pnpm audit dropping advisories with string ids, offline installs failing the minimumReleaseAge...]]></description>
      <content:encoded><![CDATA[<p>pnpm 11.28.13 includes a security fix. After the default or a scoped registry changed, <code>pnpm install</code> could skip the <code>minimumReleaseAge</code> and <code>trustPolicy</code> checks against the new registry. It also fixes <code>pnpm audit</code> dropping advisories with string ids, offline installs failing the <code>minimumReleaseAge</code> check, and peer and injected-package resolution bugs.</p>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security">Security<a class="hash-link" href="#security" aria-label="Direct link to Security">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> now re-verifies lockfile resolutions when the default registry or a scoped registry changes. Before, it reused the result cached for the previous registry and skipped the <code>minimumReleaseAge</code> and <code>trustPolicy</code> checks against the new one <a href="https://github.com/pnpm/pnpm/pull/18070">#18070</a>.</p>
</li>
<li>
<p><code>pnpm dlx</code> now keys its cache on active <code>overrides</code>, <code>packageExtensions</code>, <code>minimumReleaseAge</code>, <code>trustPolicy</code>, <code>trustLockfile</code>, and <code>blockExoticSubdeps</code> settings. Cached installs created under looser settings are no longer reused when stricter policies apply <a href="https://github.com/pnpm/pnpm/pull/18075">#18075</a>.</p>
<p><code>pnpm dlx --allow-build=!&#x3C;pkg></code> now denies build scripts for <code>&#x3C;pkg></code>, including the executed package itself. Denied packages also skip interactive build approval.</p>
</li>
<li>
<p><code>pnpm audit</code> now reports advisories whose <code>id</code> is a string. Such advisories were dropped, and <code>pnpm audit</code> reported no known vulnerabilities <a href="https://github.com/pnpm/pnpm/issues/18184">#18184</a>.</p>
</li>
</ul>
<h3 id="installs-that-failed">Installs that failed<a class="hash-link" href="#installs-that-failed" aria-label="Direct link to Installs that failed">#</a></h3>
<ul>
<li>
<p>Fixed an offline install failing the <code>minimumReleaseAge</code> lockfile check with <code>ERR_PNPM_NO_OFFLINE_META</code> after an online install resolved the same packages with the same cache directory. The check now reads publish times from the metadata that the resolution cached <a href="https://github.com/pnpm/pnpm/issues/18063">#18063</a>.</p>
</li>
<li>
<p>pnpm no longer stalls on a patch file whose <code>diff --git</code> line contains a long run of spaces.</p>
</li>
<li>
<p>Installing an injected local package no longer fails with a "no such file or directory" error when another process renames or removes files in that package while pnpm lists them. This happened most often on macOS in workspaces with <code>sharedWorkspaceLockfile: false</code>, where the install of the package itself writes its lockfile at the same time.</p>
</li>
<li>
<p>Fixed <code>pnpm install --merge-git-branch-lockfiles --frozen-lockfile</code> failing with <code>ERR_PNPM_OUTDATED_LOCKFILE</code> when a project sets or removes <code>publishConfig.directory</code>, <code>publishConfig.linkDirectory</code>, or <code>dependenciesMeta</code>. Lockfile merging now preserves and reconciles <code>publishDirectory</code>, <code>linkDirectory</code>, and <code>dependenciesMeta</code> on importers.</p>
</li>
<li>
<p>Tarball URLs that reject HEAD requests with 405 Method Not Allowed now fall back to a GET request during resolution.</p>
</li>
</ul>
<h3 id="resolving-and-linking-dependencies">Resolving and linking dependencies<a class="hash-link" href="#resolving-and-linking-dependencies" aria-label="Direct link to Resolving and linking dependencies">#</a></h3>
<ul>
<li>
<p>With <code>autoInstallPeers</code>, an optional peer is no longer bound to a version outside its range that only another dependency's subtree brings in. Before, adding an unrelated dependency could flip that binding and rewrite the peer suffixes of other projects in the lockfile <a href="https://github.com/pnpm/pnpm/issues/18162">#18162</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now updates a peer that it auto-installs for a local <code>file:</code> dependency when the peer's <code>catalog:</code> entry changes. Before, the old peer version stayed locked.</p>
</li>
<li>
<p><code>pnpm install</code> resolves the <code>link:</code> and bare relative path dependencies of an injected workspace package from that package's directory. They were resolved from the lockfile directory, so the installed link could point outside the workspace. Frozen installs now accept such dependencies <a href="https://github.com/pnpm/tasks/issues/274">pnpm/tasks#274</a>.</p>
</li>
<li>
<p>When multiple <code>overrides</code> selectors match a dependency, pnpm now picks the selector with the narrower version range regardless of the order in which the overrides are declared <a href="https://github.com/pnpm/pnpm/pull/18071">#18071</a>.</p>
</li>
<li>
<p>Patches that add lines to the end of a file without a final newline now install the whole file. pnpm dropped the last added line when the patch also marked it with <code>\ No newline at end of file</code> <a href="https://github.com/pnpm/pnpm/issues/18156">#18156</a>.</p>
</li>
<li>
<p>Project <code>engines.node</code> checks now use the Node.js runtime that pnpm links for the dependency groups being installed. If the lockfile records that runtime, the check uses its resolved version. Production installs ignore a runtime declared only in <code>devEngines.runtime</code> <a href="https://github.com/pnpm/tasks/issues/302">pnpm/tasks#302</a>.</p>
</li>
</ul>
<h3 id="scripts-and-builds">Scripts and builds<a class="hash-link" href="#scripts-and-builds" aria-label="Direct link to Scripts and builds">#</a></h3>
<ul>
<li>
<p><code>pnpm --if-present start</code>, <code>pnpm run --if-present start</code>, and <code>pnpm restart --if-present</code> now exit with code 0 when a project has neither a <code>start</code> script nor a <code>server.js</code> file <a href="https://github.com/pnpm/pnpm/pull/18073">#18073</a>.</p>
</li>
<li>
<p><code>pnpm approve-builds</code> without package arguments or <code>--all</code> now fails with <code>ERR_PNPM_APPROVE_BUILDS_NON_INTERACTIVE</code> when packages are awaiting approval in CI or without an interactive terminal. <code>pnpm dlx</code> and global installs also skip automatic build-approval prompts in CI, leaving pending builds unapproved.</p>
</li>
</ul>
<h3 id="workspaces-and-lockfiles">Workspaces and lockfiles<a class="hash-link" href="#workspaces-and-lockfiles" aria-label="Direct link to Workspaces and lockfiles">#</a></h3>
<ul>
<li>
<p>Combining <code>--filter</code> and <code>--filter-prod</code> with exclusion selectors such as <code>!pkg</code> now evaluates all selectors together in command-line order. An exclusion passed on one flag while inclusions were passed on the other no longer selects every workspace project.</p>
</li>
<li>
<p><code>pnpm -r fetch</code> now fetches each selected project's lockfile when <code>sharedWorkspaceLockfile</code> is <code>false</code>. Use <code>--filter</code> to limit which projects are fetched <a href="https://github.com/pnpm/pnpm/issues/18152">#18152</a>.</p>
</li>
<li>
<p><code>pnpm peers</code> in workspaces with <code>sharedWorkspaceLockfile: false</code> now checks each selected project's <code>pnpm-lock.yaml</code>.</p>
</li>
<li>
<p><code>pnpm ci</code> now validates that <code>pnpm-lock.yaml</code> exists and matches <code>package.json</code> before removing <code>node_modules</code>. <code>pnpm clean</code> and <code>pnpm ci</code> now honor <code>--filter</code>, <code>--filter-prod</code>, and <code>--workspace-root</code>. <code>pnpm clean</code> and <code>pnpm ci</code> also clean root <code>node_modules</code> in workspaces without a root <code>package.json</code>. <code>pnpm clean --lockfile</code> now removes per-project lockfiles and lockfiles inside a custom <code>lockfileDir</code>.</p>
</li>
<li>
<p><code>pnpm clean</code>, <code>pnpm purge</code>, and <code>pnpm ci</code> keep files outside the project untouched when <code>modulesDir</code> points outside the project root. When <code>node_modules</code> is a symlink, <code>pnpm</code> now unlinks the symlink without modifying its target <a href="https://github.com/pnpm/pnpm/pull/18072">#18072</a>.</p>
</li>
<li>
<p><code>pnpm import</code> now preserves locked versions for <code>npm:</code> aliased dependencies when importing from <code>package-lock.json</code>, <code>npm-shrinkwrap.json</code>, or <code>yarn.lock</code>. <code>pnpm import</code> also parses Yarn Classic <code>yarn.lock</code> files that reference <code>__metadata</code> package names without treating them as Yarn Berry lockfiles.</p>
</li>
</ul>
<h3 id="updating-packing-and-publishing">Updating, packing, and publishing<a class="hash-link" href="#updating-packing-and-publishing" aria-label="Direct link to Updating, packing, and publishing">#</a></h3>
<ul>
<li>
<p>Fixed GitHub Actions support in <code>pnpm update</code> and <code>pnpm outdated</code>. Updating a workflow step with a major or minor version comment such as <code># v4</code> or a prose comment now formats the updated version comment cleanly. Negated action selectors such as <code>!actions/cache/save</code> now exclude only the targeted subpath actions. Passing only negated action selectors still updates packages. Previously, negated action selectors skipped package updates. <code>pnpm outdated</code> now reports every distinct outdated version when several workflows pin the same action at different versions.</p>
</li>
<li>
<p><code>pnpm update -g --latest</code> now upgrades global runtimes (<code>node</code>, <code>deno</code>, and <code>bun</code>) and <code>npm:</code>-aliased global packages across major versions.</p>
</li>
<li>
<p><code>pnpm update --changeset</code> now generates a changeset when a <code>.changeset</code> directory exists or <code>versioning</code> is configured in <code>pnpm-workspace.yaml</code>, without requiring <code>.changeset/config.json</code>. It also respects <code>versioning.ignore</code> alongside <code>.changeset/config.json</code>.</p>
</li>
<li>
<p><code>pnpm version -r</code> now runs each bumped package's <code>preversion</code>, <code>version</code>, and <code>postversion</code> scripts unless <code>--ignore-scripts</code> or <code>--dry-run</code> is set. <code>pnpm version -r --dry-run --json</code> now prints the planned releases as a JSON array.</p>
</li>
<li>
<p><code>pnpm lane &#x3C;lane> --filter &#x3C;selector></code> now rejects partial moves of a <code>versioning.fixed</code> group with <code>ERR_PNPM_VERSIONING_CONFLICTING_CONFIG</code> before writing <code>pnpm-workspace.yaml</code>.</p>
</li>
<li>
<p><code>pnpm pack</code> now accepts <code>--ignore-pnpmfile</code> and <code>--ignore-scripts</code>, and <code>pnpm publish</code> accepts <code>--ignore-pnpmfile</code>. With these flags, a package can be packed without running the project's pnpmfile or lifecycle scripts <a href="https://github.com/pnpm/pnpm/issues/18132">#18132</a>.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> in a workspace now keep the workspace's ignore rules when a package's <code>.npmignore</code> is removed while pnpm lists the package's files.</p>
</li>
<li>
<p><code>pnpm -r pack --out</code> now expands <code>%s</code> and <code>%v</code> placeholders only in the <code>--out</code> template. Literal <code>%s</code> and <code>%v</code> segments in the working directory path stay unchanged.</p>
</li>
<li>
<p><code>pnpm -C &#x3C;dir> publish &#x3C;tarball|folder></code> and <code>pnpm --dir &#x3C;dir> publish &#x3C;tarball|folder></code> now resolve relative tarball and directory arguments against <code>&#x3C;dir></code>. Git checks during <code>pnpm publish</code> also inspect the target directory.</p>
</li>
</ul>
<h3 id="other-commands-and-settings">Other commands and settings<a class="hash-link" href="#other-commands-and-settings" aria-label="Direct link to Other commands and settings">#</a></h3>
<ul>
<li>
<p><code>updateConfig</code> and <code>afterAllResolved</code> hooks in <code>.pnpmfile.cjs</code> that return <code>undefined</code>, <code>null</code>, or a non-object value now fail with <code>ERR_PNPM_CONFIG_IS_UNDEFINED</code> and <code>ERR_PNPM_BAD_AFTER_ALL_RESOLVED_RETURN</code>.</p>
</li>
<li>
<p><code>pnpm list --parseable --long</code> now keeps <code>&#x3C;name>@</code> on <code>link:</code> and <code>file:</code> dependencies whose path or peer suffix contains <code>@</code>, such as <code>link:../@scope/pkg</code>. Aliased scoped <code>file:</code> dependencies whose path contains <code>@</code> also keep <code>&#x3C;name>@</code> in <code>pnpm list</code>.</p>
</li>
<li>
<p><code>pnpm why</code> no longer merges distinct local <code>file:</code> directory dependencies that share the same package name across projects with dedicated lockfiles (<code>sharedWorkspaceLockfile: false</code>).</p>
</li>
<li>
<p><code>pnpm pkg</code> now reads and writes the project manifest as written on disk. <code>pnpm pkg get</code> no longer reports synthetic <code>runtime:</code> dependency entries from <code>devEngines.runtime</code> or <code>engines.runtime</code>. <code>pnpm pkg set</code> and <code>pnpm pkg delete</code> now preserve <code>devEngines.runtime</code>, <code>engines.runtime</code>, and empty dependency objects set with <code>--json</code>.</p>
</li>
<li>
<p><code>pnpm pm</code> now works after CLI flags such as <code>--dir</code> and after <code>pnpm with current</code>. <code>pnpm with current</code> also accepts subcommand boolean flags such as <code>pnpm --bare with current init</code> ahead of <code>with</code>.</p>
</li>
<li>
<p><code>pnpm env</code> commands (<code>use</code>, <code>list</code>, and <code>remove</code>) now accept Node.js version specifiers with a leading <code>v</code>, including prerelease versions such as <code>v22.0.0-rc.1</code>.</p>
</li>
<li>
<p><code>pnpm doctor</code> now checks write access for the cache, store, and global bin directories before they have been created. Previously, <code>pnpm doctor</code> reported <code>no write access</code> on fresh environments.</p>
<p><code>pnpm doctor</code> now probes whether reflinks or hardlinks work from the store into the project's link target and warns when neither does.</p>
</li>
</ul>
<h3 id="output-and-error-messages">Output and error messages<a class="hash-link" href="#output-and-error-messages" aria-label="Direct link to Output and error messages">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> with <code>nodeLinker: hoisted</code> no longer counts missing packages as removed. This fixes inflated removal counts for skipped optional dependencies <a href="https://github.com/pnpm/pnpm/issues/18178">#18178</a>.</p>
</li>
<li>
<p><code>pnpm outdated --json</code> and <code>pnpm outdated --format=json</code> now write reporter warnings to <code>stderr</code>. Warnings previously appeared on <code>stdout</code> before the JSON output.</p>
</li>
<li>
<p>pnpm now reports <code>globalPackagesConfig</code> in the global <code>config.yaml</code> as a setting of a newer pnpm version. It no longer suggests a similarly named setting.</p>
</li>
<li>
<p><code>pnpm</code> warns when an <code>updateConfig</code> hook changes <code>registries</code> and some routes still use their configured registry. The warning names those routes and points to <code>registriesByScope</code>.</p>
</li>
<li>
<p><code>pnpm cat-file</code> now reports <code>ERR_PNPM_INVALID_HASH</code> when given an empty, malformed, or truncated digest such as <code>sha512-</code>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.21.0]]></title>
      <link>https://pnpm.io/blog/releases/12.21.0</link>
      <guid>https://pnpm.io/blog/releases/12.21.0</guid>
      <pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 12.21.0 lets pnpm store add prepare tarball and git dependencies for offline installs. It also makes repeated installs keep their peer dependency choices and fixes several lockfile.format: v13, nodeLinker: hoisted, and pnpm deploy failures. If a pnpr server refuses a setting, pnpm now...]]></description>
      <content:encoded><![CDATA[<p>pnpm 12.21.0 lets <code>pnpm store add</code> prepare tarball and git dependencies for offline installs. It also makes repeated installs keep their peer dependency choices and fixes several <code>lockfile.format: v13</code>, <code>nodeLinker: hoisted</code>, and <code>pnpm deploy</code> failures. If a pnpr server refuses a setting, pnpm now resolves locally.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li><code>pnpm store add</code> run in a project now prepares downloaded tarballs for every lockfile entry that pins them. Besides registry packages, <code>pnpm install --offline --frozen-lockfile</code> can then install dependencies on a tarball URL and dependencies on a git host such as GitHub whose lockfile entry records an <code>integrity</code>.</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="installs-that-failed">Installs that failed<a class="hash-link" href="#installs-that-failed" aria-label="Direct link to Installs that failed">#</a></h3>
<ul>
<li>
<p>pnpm now reads a lockfile with a mapping key longer than 1,024 characters written as <code>'key':</code>, without the <code>? </code> marker. Before, <code>pnpm install</code> and other commands failed on such a lockfile with <code>ERR_PNPM_BROKEN_LOCKFILE</code>.</p>
</li>
<li>
<p>With <code>lockfile.format: v13</code>, <code>pnpm install</code> no longer fails to create or rewrite the lockfile when a package declares many of its dependencies as peers.</p>
</li>
<li>
<p>Fixed <code>pnpm deploy</code> failing with <code>lockfile.format: v13</code> when injected workspace packages have hashed peer bindings.</p>
</li>
<li>
<p>Frozen installs with v13 lockfiles now accept valid peer dependencies of injected workspace packages that use catalogs.</p>
</li>
<li>
<p>Fixed injected workspace packages that depend on themselves linking to a nonexistent directory.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>frozenStore</code> enabled no longer fails with <code>ERR_PNPM_FROZEN_STORE_NEEDS_BUILD</code> when <code>nodeLinker</code> is <code>hoisted</code>. <code>pnpm fetch</code> with <code>nodeLinker: hoisted</code> no longer populates global virtual store links or modifies linked agent skills, and it preserves an existing hoisted <code>node_modules</code> directory <a href="https://github.com/pnpm/pnpm/issues/18037">#18037</a>.</p>
</li>
<li>
<p>A <code>requirements.txt</code> beside a <code>pyproject.toml</code> that declares <code>[tool.uv.workspace]</code> without a <code>[project]</code> table no longer makes that directory a Python project. <code>pnpm install</code> stopped there with an error when the directory had a <code>.venv</code> that pnpm did not create <a href="https://github.com/pnpm/pnpm/issues/18023">#18023</a>.</p>
</li>
</ul>
<h3 id="peer-dependencies">Peer dependencies<a class="hash-link" href="#peer-dependencies" aria-label="Direct link to Peer dependencies">#</a></h3>
<ul>
<li>
<p>Repeated installs no longer change the peer dependency providers that the previous install chose. This covers adding, updating, or removing a dependency, projects that use different ranges of one dependency, dependency cycles, and injected dependencies with <code>autoInstallPeers: false</code> <a href="https://github.com/pnpm/tasks/issues/221">pnpm/tasks#221</a>.</p>
<p>An unchanged install keeps a valid locked peer provider even when a direct dependency provides another compatible version. Explicit <code>pnpm add</code> and <code>pnpm update</code> requests take precedence over it.</p>
</li>
<li>
<p>Workspace projects that select different versions of a peer provider no longer share one copy of the package that depends on it. This affected peers reached through an aliased dependency or a peer dependency cycle.</p>
</li>
<li>
<p>A removed dependency no longer comes back as a peer provider. Before, a direct dependency removed with <code>autoInstallPeers: false</code> could be restored from an old peer resolution, and a removed one could still supply its old peer context.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code> and <code>autoInstallPeers: false</code>, <code>pnpm install</code> no longer creates duplicate copies of a package whose resolved peers are identical. A package also no longer loads a copy of its dependency that was resolved with different peer versions <a href="https://github.com/pnpm/pnpm/issues/18003">#18003</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> now binds optional peers declared only in <code>peerDependenciesMeta</code> for linked workspace packages. The deployed manifest and lockfile also retain these peers when filtering dependency groups.</p>
</li>
</ul>
<h3 id="running-scripts">Running scripts<a class="hash-link" href="#running-scripts" aria-label="Direct link to Running scripts">#</a></h3>
<ul>
<li>
<p>Scripts now stop when pnpm's process group is killed while they are starting.</p>
</li>
<li>
<p>Bin shims in the global virtual store no longer include the hoisted modules directory of the project that installed them <a href="https://github.com/pnpm/pnpm/issues/18035">#18035</a>.</p>
</li>
<li>
<p><code>pnpm pipeline</code> now rebuilds local packages and reruns build scripts after it restores a shared Cargo build cache with Cargo 1.100 or newer. Before, a worktree could reuse build-script output from the worktree that created the cache.</p>
</li>
</ul>
<h3 id="pnpr">pnpr<a class="hash-link" href="#pnpr" aria-label="Direct link to pnpr">#</a></h3>
<ul>
<li>
<p>If the pnpr server refuses a setting the install uses, or cannot return the lockfile format pnpm reads, <code>pnpm install</code> and <code>pnpm update</code> print a warning and resolve locally. Cargo and Python resolution also fall back to resolving locally. pnpm now rejects a pnpr resolution of npm dependencies that does not name its lockfile format.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>pnprServer</code> now limits the size of the server's resolve and lockfile verification responses. An oversized response ends the request with an error.</p>
</li>
<li>
<p>pnpm now displays pnpr error codes and reasons when remote requests fail.</p>
</li>
</ul>
<h3 id="other-commands-and-settings">Other commands and settings<a class="hash-link" href="#other-commands-and-settings" aria-label="Direct link to Other commands and settings">#</a></h3>
<ul>
<li>
<p><code>pnpm setup</code> and the install script now support PowerShell as the login shell on Linux and macOS. They add <code>PNPM_HOME</code> to <code>PATH</code> in <code>profile.ps1</code> under <code>$XDG_CONFIG_HOME/powershell</code> or <code>~/.config/powershell</code> <a href="https://github.com/pnpm/pnpm/issues/18026">#18026</a>.</p>
</li>
<li>
<p>A <code>lockfileDir</code> setting that points at the default lockfile directory now installs the same way as leaving it unset <a href="https://github.com/pnpm/tasks/issues/275">pnpm/tasks#275</a>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 11.28.12]]></title>
      <link>https://pnpm.io/blog/releases/11.28.12</link>
      <guid>https://pnpm.io/blog/releases/11.28.12</guid>
      <pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 11.28.12 fixes many peer dependency, pnpm deploy, frozen-lockfile, and nodeLinker: hoisted bugs. It also includes a security fix. A ${VAR} placeholder in a repository's registry URL now fails the command, so pnpm no longer sends those requests to another registry. The bundled node-gyp no...]]></description>
      <content:encoded><![CDATA[<p>pnpm 11.28.12 fixes many peer dependency, <code>pnpm deploy</code>, frozen-lockfile, and <code>nodeLinker: hoisted</code> bugs. It also includes a security fix. A <code>${VAR}</code> placeholder in a repository's registry URL now fails the command, so pnpm no longer sends those requests to another registry. The bundled <code>node-gyp</code> no longer ships the undici version that security scanners flag, and remote resolution needs pnpr 0.1.0-alpha.20 or newer.</p>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="upgrading-and-security">Upgrading and security<a class="hash-link" href="#upgrading-and-security" aria-label="Direct link to Upgrading and security">#</a></h3>
<ul>
<li>
<p>A <code>${VAR}</code> placeholder in a registry URL in <code>pnpm-workspace.yaml</code> or the project <code>.npmrc</code> now fails the command. pnpm does not expand environment variables in these files. Before, pnpm ignored such a URL and resolved packages from another registry, such as npmjs.org. pnpm now warns when it ignores a placeholder in a proxy, <code>pnprServer</code>, or <code>userAgent</code> setting in <code>pnpm-workspace.yaml</code> <a href="https://github.com/pnpm/pnpm/issues/17762">#17762</a>.</p>
</li>
<li>
<p>The <code>node-gyp</code> bundled with pnpm no longer ships undici 6, which security scanners flag for CVE-2026-84947. On Node.js 26, <code>node-gyp</code> downloads through a proxy or with a custom CA file no longer crash with "invalid onError method" <a href="https://github.com/pnpm/pnpm/issues/17941">#17941</a>.</p>
</li>
<li>
<p>Remote resolution and shared build caches no longer work with pnpr 0.1.0-alpha.19 or older. pnpm now reads the capabilities a pnpr server advertises under <code>pnpr.protocols</code>. Installs fail when the server does not confirm the requested resolution and verification policies. Upgrade the pnpr server before upgrading pnpm.</p>
</li>
</ul>
<h3 id="installs-that-failed">Installs that failed<a class="hash-link" href="#installs-that-failed" aria-label="Direct link to Installs that failed">#</a></h3>
<ul>
<li>
<p><code>pnpm install --frozen-lockfile</code> now succeeds when a workspace project recorded in <code>pnpm-lock.yaml</code> has an empty directory, such as a git submodule that was not checked out <a href="https://github.com/pnpm/pnpm/issues/17712">#17712</a>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> now accepts a lockfile when an injected workspace package declares a <code>file:</code> or <code>link:</code> dependency with backslashes, such as <code>file:..\vendor</code>, or with a slash after the protocol, such as <code>file:/./vendor</code>. Before, the install reported the lockfile as out of date right after <code>pnpm install</code> had written it <a href="https://github.com/pnpm/pnpm/pull/17720">#17720</a>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> and <code>verifyDepsBeforeRun</code> now accept a <code>workspace:</code> dependency on a project whose version is not valid semver, such as <code>workspace:1</code> on a project at version <code>1</code>. Before, they reported the lockfile that <code>pnpm install</code> had just written as out of date.</p>
</li>
<li>
<p><code>pnpm fetch</code> no longer fails with <code>ENOENT</code> when <code>nodeLinker</code> is <code>hoisted</code> and the project configures <code>patchedDependencies</code> or <code>allowBuilds</code>. <code>pnpm fetch</code> also preserves an existing hoisted <code>node_modules</code> directory <a href="https://github.com/pnpm/pnpm/issues/18037">#18037</a>.</p>
</li>
<li>
<p>Git dependencies now accept npm's <code>::</code> separator between fragment parameters, such as <code>github:owner/repo#v1.0.0::path:packages/foo</code>. Before, pnpm read the whole fragment as a branch name and failed to resolve it <a href="https://github.com/orgs/pnpm/discussions/17827">#17827</a>.</p>
</li>
<li>
<p>pnpm no longer fails to remove a dependency whose <code>package.json</code> is malformed. It removes the dependency and keeps its bins <a href="https://github.com/pnpm/tasks/issues/295">pnpm/tasks#295</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm deprecate</code>, <code>pnpm undeprecate</code>, and <code>pnpm unpublish</code> failing with revision conflicts when a registry cache serves stale package metadata.</p>
</li>
<li>
<p>When a package injected through a path, such as <code>file:../lib</code> or <code>../lib</code>, gives one of its dependencies a <code>catalog:</code> specifier, <code>pnpm install</code> now fails the way a fresh resolution does, and <code>pnpm install --frozen-lockfile</code> reports the lockfile as outdated. Before, both could accept the existing lockfile <a href="https://github.com/pnpm/pnpm/pull/17722">#17722</a>.</p>
</li>
</ul>
<h3 id="peer-dependencies">Peer dependencies<a class="hash-link" href="#peer-dependencies" aria-label="Direct link to Peer dependencies">#</a></h3>
<ul>
<li>
<p>Repeated installs no longer change the peer dependency providers that the previous install chose. This covers adding a dependency, removing a shared package from one workspace project, and projects that use different ranges of one dependency <a href="https://github.com/pnpm/tasks/issues/221">pnpm/tasks#221</a>.</p>
<p>An unchanged install keeps a valid locked peer provider even when a direct dependency provides another compatible version. Explicit <code>pnpm add</code> and <code>pnpm update</code> requests take precedence over it. Required dependencies no longer remain marked optional when another workspace project removes a shared package.</p>
</li>
<li>
<p>Workspace projects that select different versions of a peer provider no longer share one copy of the package that depends on it. This affected peers reached through an aliased dependency or a peer dependency cycle.</p>
</li>
<li>
<p>New workspace projects now prefer peer versions already pinned in the lockfile. Dependencies that are also optional peers no longer cause an unrelated project to select an older peer version.</p>
</li>
<li>
<p>With <code>dedupePeerDependents: false</code>, a missing optional peer is no longer resolved from a version that only another workspace project depends on. The workspace root's dependencies still count if <code>resolvePeersFromWorkspaceRoot</code> is <code>true</code>. Before, a tool in one project's <code>devDependencies</code>, such as <code>webpack-cli</code>, could become an optional peer of another project's production dependencies <a href="https://github.com/orgs/pnpm/discussions/16666">#16666</a>.</p>
</li>
<li>
<p><code>pnpm install</code> no longer gives a project an optional peer dependency that it skipped because a required peer would conflict with the project's dependencies. Before, <code>dedupePeerDependents</code> merged the project's copy of the package that declares the peer with another project's copy that resolves it <a href="https://github.com/pnpm/pnpm/issues/17781">#17781</a>.</p>
</li>
<li>
<p><code>pnpm install</code> no longer fills in a missing optional peer dependency if a required peer it brings in conflicts with a version the project depends on. Before, such a peer was installed along with it and reported as unmet <a href="https://github.com/orgs/pnpm/discussions/17718">#17718</a>.</p>
</li>
<li>
<p>With <code>autoInstallPeersFromHighestMatch</code>, conflicting non-semver peer dependencies now remain missing, and identical non-semver peer specifiers are preserved. Preferred registry versions no longer replace local paths or protocol-prefixed specifiers when pnpm installs missing peers <a href="https://github.com/pnpm/tasks/issues/272">pnpm/tasks#272</a>.</p>
</li>
<li>
<p>Fixed installation and peer dependency reporting for packages named <code>constructor</code> or <code>toString</code>. Optional peers with these names are also recognized when declared only in <code>peerDependenciesMeta</code>.</p>
</li>
</ul>
<h3 id="resolving-and-linking-dependencies">Resolving and linking dependencies<a class="hash-link" href="#resolving-and-linking-dependencies" aria-label="Direct link to Resolving and linking dependencies">#</a></h3>
<ul>
<li>
<p>A root <code>overrides</code> entry that points a package at a <code>workspace:</code> path, such as <code>workspace:./packages/foo</code>, now also applies when a registry package depends on that package <a href="https://github.com/pnpm/tasks/issues/270">pnpm/tasks#270</a>.</p>
</li>
<li>
<p>Version-selector <code>overrides</code> entries such as <code>"ms@^2.0.0": "2.1.1"</code> now apply to dependencies declared with the <code>catalog:</code> protocol when the catalog entry's range matches the selector <a href="https://github.com/pnpm/pnpm/issues/17922">#17922</a>.</p>
</li>
<li>
<p>An optional dependency that declares no <code>os</code>, <code>cpu</code>, or <code>libc</code> field is no longer skipped because its name contains only an operating system word, such as <code>get-windows</code> on macOS. pnpm now infers its platform from the name only when the name also has a cpu or libc token, such as <code>-win32-x64</code> <a href="https://github.com/pnpm/pnpm/issues/17774">#17774</a>.</p>
</li>
<li>
<p><code>pnpm dedupe</code> now keeps a locked runtime version, from <code>devEngines.runtime</code> or from a dependency's <code>engines.runtime</code>, when the declared range still admits it. <code>pnpm dedupe --check</code> no longer fails each time a newer Node.js release in the range comes out <a href="https://github.com/pnpm/pnpm/issues/17984">#17984</a>.</p>
</li>
<li>
<p>Resolving against a registry that sends <code>Cache-Control: no-cache</code>, such as Azure Artifacts, is fast again when the lockfile already decides the version. pnpm reads the cached metadata for a pinned version, or for a range the lockfile version is proven to win, without a registry request <a href="https://github.com/pnpm/pnpm/issues/17758">#17758</a>.</p>
</li>
<li>
<p>Dependencies declared as <code>workspace:</code> entries in catalogs now remain in the lockfile when <code>excludeLinksFromLockfile</code> is enabled. Frozen installs can restore these links after <code>node_modules</code> is removed <a href="https://github.com/pnpm/tasks/issues/260">pnpm/tasks#260</a>.</p>
</li>
<li>
<p><code>pnpm install --filter</code> in a sparse checkout now counts the dependencies of workspace projects that are missing from disk when it resolves peer dependencies and marks packages as optional. The lockfile it writes no longer differs from a full checkout in those entries <a href="https://github.com/pnpm/pnpm/issues/17791">#17791</a>.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code>, <code>pnpm install --filter</code> in a sparse checkout now drops previously installed workspace projects that are missing from disk from the hoisted <code>node_modules</code> tree. It no longer recreates <code>node_modules</code> inside a missing project's directory. Packages that only the missing project used are also removed from the root <code>node_modules</code>.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code> and a custom <code>modulesDir</code>, pnpm now installs a workspace project's dependencies that cannot be hoisted to the root into the project's <code>modulesDir</code>. The next install that relinks the project removes the copies that earlier installs left in its <code>node_modules</code>. A later install restores the project's <code>modulesDir</code> when it was removed. Package directories that pnpm did not install are now also moved to <code>.ignored</code> in a custom <code>modulesDir</code>.</p>
</li>
<li>
<p>With <code>dedupeDirectDeps</code>, <code>pnpm install</code> now compares <code>link:</code> dependencies by the directory they point at. A project's <code>link:</code> dependency is removed when the workspace root links the same directory under a different path. It is kept when the root's <code>link:</code> dependency has the same text but points at another directory. This also applies with <code>nodeLinker: hoisted</code>.</p>
<p><code>pnpm install</code> reports each removed <code>link:</code> dependency once <a href="https://github.com/pnpm/tasks/issues/293">pnpm/tasks#293</a>.</p>
</li>
<li>
<p>A repeat <code>pnpm install</code> with <code>nodeLinker: pnp</code> now applies dependency and configuration changes. Before, it printed "Already up to date" and left the lockfile unchanged.</p>
</li>
<li>
<p>Config dependencies use the declared registry <code>serverType</code> when recording and installing packages <a href="https://github.com/pnpm/tasks/issues/236">pnpm/tasks#236</a>.</p>
</li>
</ul>
<h3 id="pnpm-deploy">pnpm deploy<a class="hash-link" href="#pnpm-deploy" aria-label="Direct link to pnpm deploy">#</a></h3>
<ul>
<li>
<p><code>pnpm deploy</code> no longer fails when the deployed project depends on a workspace package that sets <code>publishConfig.directory</code>. pnpm installs that package from its publish directory and runs its build scripts <a href="https://github.com/pnpm/pnpm/pull/17771">#17771</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> now runs the build scripts of a workspace project that it installs as a <code>file:</code> dependency, without a machine-specific <code>allowBuilds</code> key. An <code>allowBuilds</code> entry that denies the project still applies <a href="https://github.com/pnpm/pnpm/issues/17740">#17740</a>.</p>
</li>
<li>
<p><code>pnpm deploy --offline --trust-lockfile</code> now reuses dependencies pinned in the source lockfile from a populated store when registry metadata is unavailable. This works with per-project lockfiles, <code>--legacy</code>, and npm aliases <a href="https://github.com/pnpm/pnpm/issues/17888">#17888</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> preserves an injected workspace package's resolved dependencies when they differ from the workspace project's own dependencies. This also applies to packages with <code>publishConfig.directory</code> <a href="https://github.com/pnpm/tasks/issues/221">pnpm/tasks#221</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> now binds optional peers declared only in <code>peerDependenciesMeta</code> for linked workspace packages. The deployed manifest and lockfile also retain these peers when filtering dependency groups.</p>
</li>
</ul>
<h3 id="builds-bins-and-scripts">Builds, bins, and scripts<a class="hash-link" href="#builds-bins-and-scripts" aria-label="Direct link to Builds, bins, and scripts">#</a></h3>
<ul>
<li>
<p>Concurrent installs into a global virtual store no longer wait on each other. A package that needs a build is built in a private directory and moved into the store once its build has finished, so another project never links a half-built package. An install with <code>--ignore-scripts</code> links the packages it does not build from their own store directories, and <code>pnpm store prune</code> removes the build directories of installs that were interrupted <a href="https://github.com/pnpm/pnpm/issues/15568">#15568</a>.</p>
</li>
<li>
<p>Packages that an older pnpm version added to the store now run their install scripts. Before, pnpm could skip those scripts and hardlink the package's files to the store. This includes git dependencies that an older pnpm marked in a shared store as not requiring a build <a href="https://github.com/pnpm/tasks/issues/189">pnpm/tasks#189</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm store status</code> reporting approved builds of git dependencies as modified when the store contains legacy build metadata.</p>
</li>
<li>
<p><code>pnpm store prune</code> now stops if a dependency link cannot be read. This keeps installed packages from being removed after an incomplete scan.</p>
</li>
<li>
<p>When <code>pnpm install</code> adds placeholder entries to <code>allowBuilds</code> in <code>pnpm-workspace.yaml</code>, it no longer copies <code>allowBuilds</code> entries from other config sources into the file.</p>
</li>
<li>
<p>Bin shims in the global virtual store no longer include the hoisted modules directory of the project that installed them <a href="https://github.com/pnpm/pnpm/issues/18035">#18035</a>.</p>
</li>
<li>
<p>POSIX bin shims and the <code>pnpm</code>, <code>pn</code>, <code>pnpx</code>, and <code>pnx</code> launchers now run inside a Nix build on macOS with the sandbox enabled. Installing again replaces the shims already in <code>node_modules</code> <a href="https://github.com/pnpm/pnpm/issues/17750">#17750</a>.</p>
</li>
<li>
<p>Installing no longer replaces the POSIX bin shims that a newer pnpm wrote in <code>node_modules/.bin</code>.</p>
</li>
<li>
<p>Linking bins is faster for packages that ship large native executables as bins. pnpm now reads only the first 512 bytes of a bin file to find its shebang <a href="https://github.com/pnpm/pnpm/issues/17361">#17361</a>.</p>
</li>
<li>
<p><code>pnpm run</code> and <code>pnpm setup</code> no longer clear the visible terminal on Windows when a project path contains non-ASCII characters.</p>
</li>
<li>
<p>pnpm stops scripts and their descendants when it is killed during script startup <a href="https://github.com/pnpm/tasks/issues/313">pnpm/tasks#313</a>.</p>
</li>
</ul>
<h3 id="engines-and-runtimes">Engines and runtimes<a class="hash-link" href="#engines-and-runtimes" aria-label="Direct link to Engines and runtimes">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> now fails on a workspace project's incompatible <code>engines.pnpm</code>, or on its incompatible <code>engines.node</code> with <code>engineStrict</code> enabled, even when the project's <code>os</code>, <code>cpu</code>, or <code>libc</code> excludes the current platform <a href="https://github.com/pnpm/tasks/issues/281">pnpm/tasks#281</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now checks the project's <code>engines</code> field when the project is already up to date. A repeat install of a project outside a workspace warns about an incompatible Node.js version, or fails with <code>engineStrict</code> enabled <a href="https://github.com/pnpm/pnpm/issues/17751">#17751</a>.</p>
</li>
<li>
<p>A workspace project that downloads its own Node.js through <code>devEngines.runtime</code> now has its <code>engines.node</code> checked against that Node.js. Before, pnpm checked it against the shared Node.js version, so <code>engineStrict</code> could reject a project whose scripts run on a compatible runtime <a href="https://github.com/pnpm/tasks/issues/300">pnpm/tasks#300</a>.</p>
</li>
<li>
<p>A repeat <code>pnpm install</code> now runs a full install when the <code>runtimeOnFail</code> setting changes. Before, it printed "Already up to date" and did not install the runtime a project declares in <code>devEngines.runtime</code> <a href="https://github.com/pnpm/tasks/issues/303">pnpm/tasks#303</a>.</p>
</li>
<li>
<p>Fixed missing warnings when a required dependency does not support the current Node.js version.</p>
</li>
</ul>
<h3 id="other-commands-and-settings">Other commands and settings<a class="hash-link" href="#other-commands-and-settings" aria-label="Direct link to Other commands and settings">#</a></h3>
<ul>
<li>
<p><code>pnpm dist-tag</code> and <code>pnpm unpublish</code> now offer browser-based authentication when the account's two-factor authentication uses a security key. Before, they asked for a one-time password in that case <a href="https://github.com/pnpm/pnpm/issues/17832">#17832</a>.</p>
</li>
<li>
<p><code>pnpm login</code> now prints the registry's <code>npm-notice</code> message before the web login URL. Some registries use it to show a code that you type in the browser.</p>
</li>
<li>
<p><code>pnpm self-update</code> now updates the project's <code>engines.pnpm</code> range along with its pnpm pin, keeping the <code>^</code> or <code>~</code> operator <a href="https://github.com/pnpm/pnpm/issues/17732">#17732</a>.</p>
</li>
<li>
<p><code>pnpm setup</code> and the install script now support PowerShell as the login shell on Linux and macOS. They add <code>PNPM_HOME</code> to <code>PATH</code> in <code>profile.ps1</code> under <code>$XDG_CONFIG_HOME/powershell</code> or <code>~/.config/powershell</code> <a href="https://github.com/pnpm/pnpm/issues/18026">#18026</a>.</p>
</li>
<li>
<p><code>pnpm setup</code> rejects a <code>PNPM_HOME</code> value that would split the saved <code>PATH</code> <a href="https://github.com/pnpm/tasks/issues/315">pnpm/tasks#315</a>.</p>
</li>
<li>
<p>Relative directory selectors set on <code>config.filter</code> or <code>config.filterProd</code> by an <code>updateConfig</code> hook now resolve from the workspace root even when <code>--dir</code> is passed or <code>pnpm</code> runs from a subdirectory <a href="https://github.com/pnpm/pnpm/issues/17906">#17906</a>.</p>
</li>
<li>
<p>pnpm now reads the boot document of <code>pnpm-lock.yaml</code> when it is written in lockfile format 13. pnpm then switches to the pnpm version such a project pins.</p>
</li>
<li>
<p>Programmatic install mutations that omit workspace project manifests now resolve locally when a pnpr server is configured <a href="https://github.com/pnpm/tasks/issues/59">pnpm/tasks#59</a>.</p>
</li>
<li>
<p>pnpm now recognizes Capawesome Cloud and RWX as CI environments.</p>
</li>
<li>
<p>The warning about unrecognized settings now marks <code>projectScopedOptionalPeers</code> as a setting of a newer pnpm version.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.20.0]]></title>
      <link>https://pnpm.io/blog/releases/12.20.0</link>
      <guid>https://pnpm.io/blog/releases/12.20.0</guid>
      <pubDate>Thu, 12 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 12.20.0 records the specifiers of local directory dependencies in the experimental v13 lockfile and fixes several nodeLinker: hoisted, peer dependency, and overrides bugs. The bundled node-gyp no longer ships the undici version that security scanners flag. Remote resolution and shared build...]]></description>
      <content:encoded><![CDATA[<p>pnpm 12.20.0 records the specifiers of local directory dependencies in the experimental v13 lockfile and fixes several <code>nodeLinker: hoisted</code>, peer dependency, and <code>overrides</code> bugs. The bundled <code>node-gyp</code> no longer ships the undici version that security scanners flag. Remote resolution and shared build caches no longer work with pnpr 0.1.0-alpha.19 or older.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>With <code>lockfile.format: v13</code>, <code>pnpm install</code> records the dependency specifiers of local directory packages. Frozen installs reject changed specifiers even when the locked versions still satisfy them.</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="upgrading-and-security">Upgrading and security<a class="hash-link" href="#upgrading-and-security" aria-label="Direct link to Upgrading and security">#</a></h3>
<ul>
<li>
<p>Remote resolution, shared build caches, and release notes no longer work with pnpr 0.1.0-alpha.19 or older. pnpm now reads the capabilities a pnpr server advertises under <code>pnpr.protocols</code>. Installs fail when the server does not confirm the requested resolution and verification policies.</p>
</li>
<li>
<p>The <code>node-gyp</code> bundled with pnpm no longer ships undici 6, which security scanners flag for CVE-2026-84947. On Node.js 26, <code>node-gyp</code> downloads through a proxy or with a custom CA file no longer crash with "invalid onError method" <a href="https://github.com/pnpm/pnpm/issues/17941">#17941</a>.</p>
</li>
</ul>
<h3 id="resolving-dependencies">Resolving dependencies<a class="hash-link" href="#resolving-dependencies" aria-label="Direct link to Resolving dependencies">#</a></h3>
<ul>
<li>
<p>Version-selector <code>overrides</code> entries such as <code>"ms@^2.0.0": "2.1.1"</code> now apply to dependencies declared with the <code>catalog:</code> protocol when the catalog entry's range matches the selector <a href="https://github.com/pnpm/pnpm/issues/17922">#17922</a>.</p>
</li>
<li>
<p>A root <code>overrides</code> entry that points a package at a <code>workspace:</code> path, such as <code>workspace:./packages/foo</code>, now also applies when a registry package depends on that package <a href="https://github.com/pnpm/tasks/issues/270">pnpm/tasks#270</a>.</p>
</li>
<li>
<p>Git dependencies now accept npm's <code>::</code> separator between fragment parameters, such as <code>github:owner/repo#v1.0.0::path:packages/foo</code>. Before, pnpm read the whole fragment as a branch name and failed to resolve it <a href="https://github.com/orgs/pnpm/discussions/17827">#17827</a>.</p>
</li>
<li>
<p><code>pnpm dedupe</code> now keeps a locked runtime version, from <code>devEngines.runtime</code> or from a dependency's <code>engines.runtime</code>, when the declared range still admits it. <code>pnpm dedupe --check</code> no longer fails each time a newer Node.js release in the range comes out <a href="https://github.com/pnpm/pnpm/issues/17984">#17984</a>.</p>
</li>
<li>
<p>With <code>autoInstallPeersFromHighestMatch</code>, conflicting non-semver peer dependencies now remain missing, and identical non-semver peer specifiers are preserved. Preferred registry versions no longer replace local paths or protocol-prefixed specifiers when pnpm installs missing peers <a href="https://github.com/pnpm/tasks/issues/272">pnpm/tasks#272</a>.</p>
</li>
</ul>
<h3 id="hoisted-node-linker">Hoisted node linker<a class="hash-link" href="#hoisted-node-linker" aria-label="Direct link to Hoisted node linker">#</a></h3>
<ul>
<li>With <code>nodeLinker: hoisted</code>, a package now keeps its nested copy of a dependency that it resolved at a version other than the top-level one, including a peer dependency its parent supplies. Before, pnpm could remove that copy as a duplicate or give the top-level slot to a peer variant found deeper in the graph. The package then loaded the top-level version.</li>
</ul>
<h3 id="lockfile-and-peer-dependency-graphs">Lockfile and peer dependency graphs<a class="hash-link" href="#lockfile-and-peer-dependency-graphs" aria-label="Direct link to Lockfile and peer dependency graphs">#</a></h3>
<ul>
<li>
<p>Fixed <code>pnpm install</code> keeping stale peer bindings after dependency changes. Required dependencies no longer remain marked optional when another workspace project removes a shared package <a href="https://github.com/pnpm/tasks/issues/221">pnpm/tasks#221</a>.</p>
</li>
<li>
<p>Repeated installs now keep the same dependency links when packages form cycles with several peer dependency variants <a href="https://github.com/pnpm/tasks/issues/221">pnpm/tasks#221</a>.</p>
</li>
<li>
<p>Fixed writing <code>lockfile.format: v13</code> for dependency cycles with missing, optional, or transitive peers. Frozen installs also accept unchanged injected packages whose peers use catalogs. With <code>--no-optional</code>, frozen installs reject required catalog children recorded only as optional dependencies <a href="https://github.com/pnpm/tasks/issues/221">pnpm/tasks#221</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> preserves an injected workspace package's resolved dependencies when they differ from the workspace project's own dependencies. This also applies to packages with <code>publishConfig.directory</code> <a href="https://github.com/pnpm/tasks/issues/221">pnpm/tasks#221</a>.</p>
</li>
</ul>
<h3 id="running-scripts-and-runtimes">Running scripts and runtimes<a class="hash-link" href="#running-scripts-and-runtimes" aria-label="Direct link to Running scripts and runtimes">#</a></h3>
<ul>
<li>
<p>Scripts that pnpm runs in a process group of their own are now ended when pnpm is killed right after starting them. A parallel run that was killed before pnpm registered its scripts left all of them running.</p>
</li>
<li>
<p>When a command name matches no script and pnpm falls back to running it as a command, the install that runs before scripts now runs once. Its errors and warnings print once <a href="https://github.com/pnpm/pnpm/issues/17977">#17977</a>.</p>
</li>
<li>
<p>Failed downloads by project-aware global runtime commands now explain which configuration applies. Node.js failures also list the global mirror settings and environment variables to check.</p>
</li>
</ul>
<h3 id="other-commands-and-settings">Other commands and settings<a class="hash-link" href="#other-commands-and-settings" aria-label="Direct link to Other commands and settings">#</a></h3>
<ul>
<li>
<p>Fixed <code>pnpm</code> occasionally crashing on the first HTTPS request, mostly on Windows virtual machines under load. pnpm now seeds TLS randomness from the operating system's random number generator <a href="https://github.com/pnpm/tasks/issues/239">pnpm/tasks#239</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm deprecate</code>, <code>pnpm undeprecate</code>, and <code>pnpm unpublish</code> failing with revision conflicts when a registry cache serves stale package metadata.</p>
</li>
<li>
<p><code>pnpm sbom</code> now reports malformed workspace manifests. Before, it omitted their packages <a href="https://github.com/pnpm/tasks/issues/59">pnpm/tasks#59</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm store status</code> reporting approved builds of git dependencies as modified when the store contains legacy build metadata.</p>
</li>
<li>
<p>pnpm now recognizes Capawesome Cloud and RWX as CI environments.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.19.0]]></title>
      <link>https://pnpm.io/blog/releases/12.19.0</link>
      <guid>https://pnpm.io/blog/releases/12.19.0</guid>
      <pubDate>Tue, 10 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 12.19.0 adds pnpm fund, lets the loaded node linker handle packages that need a build, and adds the projectScopedOptionalPeers setting and an experimental JSON lockfile format. It also includes a security fix: an offline install error no longer prints registry credentials. pnpm now checks...]]></description>
      <content:encoded><![CDATA[<p>pnpm 12.19.0 adds <code>pnpm fund</code>, lets the <code>loaded</code> node linker handle packages that need a build, and adds the <code>projectScopedOptionalPeers</code> setting and an experimental JSON lockfile format. It also includes a security fix: an offline install error no longer prints registry credentials. pnpm now checks the <code>engines</code> and platform fields of every workspace project, and many hoisted-linker and frozen-lockfile bugs are fixed.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>
<p>Added <code>pnpm fund</code>, which lists the funding URLs declared by the installed dependencies in the same tree <code>npm fund</code> prints. Use <code>--json</code> for the <code>npm fund --json</code> report and <code>--recursive</code> or <code>--filter</code> to report on workspace projects. <code>pnpm fund &#x3C;pkg></code> opens the funding URL of an installed package, and <code>--which</code> picks one when it lists several <a href="https://github.com/pnpm/pnpm/issues/7354">#7354</a>.</p>
</li>
<li>
<p>With <code>nodeLinker.type: loaded</code>, packages that need a build no longer have to be listed in <code>nodeLinker.excluded</code>. A package with a matching side-effects cache entry loads from the store. If side-effects cache reads and writes are enabled, pnpm builds an approved package once, saves the result to the side-effects cache, and then loads it from the store. This includes a build that changes no files in its package, so its script does not run again in other projects that use the same store. List a package in <code>sideEffectsCache.exclude</code> if its build must run in every project, such as a git hook installer. pnpm materializes other cache misses, packages with native <code>.node</code> addons, and their dependencies automatically.</p>
<p>pnpm also scans JavaScript sources for filesystem imports and for <code>__dirname</code> or <code>import.meta</code>, and materializes matching packages. The scan does not detect computed imports. List such packages in <code>nodeLinker.excluded</code>.</p>
</li>
<li>
<p>Added the <code>projectScopedOptionalPeers</code> setting. When it is <code>true</code>, a project gets a missing optional peer dependency only if the project's own dependencies install a version of it. Another workspace project's dependencies, such as its <code>devDependencies</code>, no longer supply one. <code>dedupePeerDependents</code> keeps deduplicating everything else <a href="https://github.com/orgs/pnpm/discussions/16666">#16666</a>.</p>
</li>
<li>
<p>Added the experimental <code>lockfile.format: v13</code> setting. With it, pnpm writes <code>pnpm-lock.yaml</code> in a JSON-like syntax, indented with tabs, with a trailing comma after every entry. The file is still valid YAML. The file has one <code>packages</code> entry per package version in place of the <code>packages</code> and <code>snapshots</code> sections, and each entry records the versions of its peer dependencies as its properties. Updating a peer dependency then changes only the lines that record its version. pnpm reads lockfiles in both formats whatever the setting is.</p>
</li>
<li>
<p><code>pnpm store add</code> now accepts directories of tarballs, such as <code>pnpm store add ./tarballs</code>, and adds every <code>.tgz</code>, <code>.tar.gz</code>, and <code>.tar</code> file inside them recursively. <code>pnpm store add</code> is now faster when it adds many packages or local tarballs <a href="https://github.com/pnpm/pnpm/issues/17875">#17875</a>.</p>
</li>
<li>
<p>With <code>supportedArchitectures</code> set, <code>pnpm install</code> and <code>pnpm fetch</code> also store, without linking them, the dependencies of the archives kept for the other listed platforms. A platform added to the setting gets its archives and their dependencies on the next install. Optional dependencies a listed platform cannot run are not stored, and one that fails to download is skipped. Dependencies from git repositories are not stored for other platforms.</p>
</li>
<li>
<p>When <code>supportedArchitectures</code> names exactly one platform and not <code>current</code>, pnpm links that platform's variant of a package published with platform variants, together with that variant's dependencies. This holds for the list form and for the <code>os</code>, <code>cpu</code>, and <code>libc</code> form. A variant whose floor or ABI the listed platform does not state is not linked for it: pnpm links another variant that fits, or the version's own archive. Changing the setting, or the platform of the host, such as a <code>node_modules</code> mounted into a musl container or a Node.js with another ABI, relinks the package on the next install, even from a frozen lockfile.</p>
</li>
<li>
<p>pnpm now provides a prebuilt binary for NetBSD 10 on x64 <a href="https://github.com/pnpm/pnpm/issues/17803">#17803</a>.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security">Security<a class="hash-link" href="#security" aria-label="Direct link to Security">#</a></h3>
<ul>
<li>The error for a tarball that is missing from the store in offline mode no longer prints the credentials or token in the tarball URL.</li>
</ul>
<h3 id="installs-that-failed-or-hung">Installs that failed or hung<a class="hash-link" href="#installs-that-failed-or-hung" aria-label="Direct link to Installs that failed or hung">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code>, <code>pnpm ci</code>, and <code>pnpm install-test</code> outside a workspace now fail with <code>ERR_PNPM_NO_PKG_MANIFEST</code> when the directory has no <code>package.json</code>, <code>package.json5</code>, or <code>package.yaml</code>. They no longer create a <code>package.json</code>, a lockfile, and <code>node_modules</code> there <a href="https://github.com/pnpm/pnpm/issues/17727">#17727</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm install</code> hanging when a concurrent tarball download or manifest read is cancelled while other tasks are waiting on the same archive.</p>
</li>
<li>
<p>Running a global command such as <code>node</code> in a project that pins its version no longer hangs while pnpm installs that version. The hang kept starting new processes until the machine ran out of memory.</p>
</li>
<li>
<p>A global command such as <code>node</code> now runs the version a project pins when <code>PNPM_CONFIG_LOCKFILE_DIR</code>, <code>PNPM_CONFIG_VIRTUAL_STORE_ONLY</code>, or <code>PNPM_CONFIG_SYMLINK</code> is set in the environment. Before, the dispatch failed with "the installed node executable is not under" the store.</p>
</li>
<li>
<p><code>pnpm install</code> now fetches fresh metadata for a package when a version allowed by <code>minimumReleaseAgeExclude</code> is missing from the cached metadata. Before, it could fail with <code>ERR_PNPM_NO_MATCHING_VERSION</code> without contacting the registry <a href="https://github.com/pnpm/pnpm/issues/17723">#17723</a>.</p>
</li>
<li>
<p>A <code>${VAR}</code> placeholder in a registry URL in <code>pnpm-workspace.yaml</code> or the project <code>.npmrc</code> now fails the command. pnpm does not expand environment variables in these files. Before, pnpm ignored such a URL and resolved packages from another registry, such as npmjs.org. pnpm now warns when it ignores a placeholder in a proxy, <code>pnprServer</code>, or <code>userAgent</code> setting in <code>pnpm-workspace.yaml</code> <a href="https://github.com/pnpm/pnpm/issues/17762">#17762</a>.</p>
</li>
<li>
<p>Fixed local package installs failing while a workspace lockfile is being written.</p>
</li>
<li>
<p><code>pnpm self-update</code> and switching to the <code>packageManager</code> version now work behind a proxy that ends a response by closing the TLS connection without a <code>close_notify</code> alert. The registry signature check failed there with <code>ERR_PNPM_PNPM_ENGINE_IDENTITY_UNVERIFIABLE</code> <a href="https://github.com/pnpm/pnpm/issues/17763">#17763</a>.</p>
</li>
<li>
<p>A package tarball that keeps failing to download now fails the install after <code>fetchRetries</code> retries. pnpm used to download it again with a second full set of retries, which doubled the wait. The error now names the actual download failure.</p>
</li>
<li>
<p>When the native binary of the pnpm version a project pins fails to download, pnpm now reports the download error. It used to report only that no native binary was found for the host.</p>
</li>
<li>
<p>POSIX bin shims and the <code>pnpm</code>, <code>pn</code>, <code>pnpx</code>, and <code>pnx</code> launchers now run inside a Nix build on macOS with the sandbox enabled. Installing again replaces the shims already in <code>node_modules</code> <a href="https://github.com/pnpm/pnpm/issues/17750">#17750</a>.</p>
</li>
<li>
<p>Fixed pnpm leaving process pipes open after it exits on macOS <a href="https://github.com/pnpm/tasks/issues/229">pnpm/tasks#229</a>.</p>
</li>
</ul>
<h3 id="engines-and-platform-checks">Engines and platform checks<a class="hash-link" href="#engines-and-platform-checks" aria-label="Direct link to Engines and platform checks">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code>, <code>pnpm add</code>, <code>pnpm update</code>, and <code>pnpm remove</code> now check the <code>engines</code>, <code>os</code>, <code>cpu</code>, and <code>libc</code> fields of every workspace project, including the workspace root. <code>pnpm run -r</code> and <code>pnpm exec -r</code> check them before running anything. An incompatible <code>engines.pnpm</code> fails the command. An incompatible <code>engines.node</code> prints a warning, or fails the command with <code>engineStrict</code> enabled. An unsupported platform prints a warning. A project that downloads its own Node.js through <code>devEngines.runtime</code> is checked against that Node.js <a href="https://github.com/pnpm/pnpm/issues/17751">#17751</a> <a href="https://github.com/pnpm/tasks/issues/281">pnpm/tasks#281</a> <a href="https://github.com/pnpm/tasks/issues/299">pnpm/tasks#299</a>.</p>
</li>
<li>
<p>Fixed missing warnings when a required dependency does not support the current Node.js version.</p>
</li>
<li>
<p>An optional dependency that declares no <code>os</code>, <code>cpu</code>, or <code>libc</code> field is no longer skipped because its name contains only an operating system word, such as <code>get-windows</code> on macOS. pnpm now infers its platform from the name only when the name also has a cpu or libc token, such as <code>-win32-x64</code> <a href="https://github.com/pnpm/pnpm/issues/17774">#17774</a>.</p>
</li>
</ul>
<h3 id="peer-dependencies">Peer dependencies<a class="hash-link" href="#peer-dependencies" aria-label="Direct link to Peer dependencies">#</a></h3>
<ul>
<li>
<p>With <code>dedupePeerDependents: false</code>, a missing optional peer is no longer resolved from a version that only another workspace project depends on. The workspace root's dependencies still count if <code>resolvePeersFromWorkspaceRoot</code> is <code>true</code>. Before, a tool in one project's <code>devDependencies</code>, such as <code>webpack-cli</code>, could become an optional peer of another project's production dependencies <a href="https://github.com/orgs/pnpm/discussions/16666">#16666</a>.</p>
</li>
<li>
<p><code>pnpm install</code> no longer gives a project an optional peer dependency that it skipped because a required peer would conflict with the project's dependencies. Before, <code>dedupePeerDependents</code> merged the project's copy of the package that declares the peer with another project's copy that resolves it <a href="https://github.com/pnpm/pnpm/issues/17781">#17781</a>.</p>
</li>
<li>
<p><code>pnpm install</code> no longer fills in a missing optional peer dependency if a required peer it brings in conflicts with a version the project depends on. Before, such a peer was installed along with it and reported as unmet <a href="https://github.com/orgs/pnpm/discussions/17718">#17718</a>.</p>
</li>
<li>
<p><code>pnpm install --filter</code> in a sparse checkout now counts the dependencies of workspace projects that are missing from disk when it resolves peer dependencies and marks packages as optional. The lockfile it writes no longer differs from a full checkout in those entries <a href="https://github.com/pnpm/pnpm/issues/17791">#17791</a>.</p>
</li>
</ul>
<h3 id="frozen-lockfile-and-workspace-links">Frozen lockfile and workspace links<a class="hash-link" href="#frozen-lockfile-and-workspace-links" aria-label="Direct link to Frozen lockfile and workspace links">#</a></h3>
<ul>
<li>
<p><code>pnpm install --frozen-lockfile</code> now succeeds when a workspace project recorded in <code>pnpm-lock.yaml</code> has an empty directory, such as a git submodule that was not checked out <a href="https://github.com/pnpm/pnpm/issues/17712">#17712</a>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> now fails with <code>ERR_PNPM_OUTDATED_LOCKFILE</code> when a workspace package linked through a plain semver range, such as <code>^7.9.5</code>, has changed to a version outside that range <a href="https://github.com/pnpm/pnpm/issues/17806">#17806</a>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> and <code>verifyDepsBeforeRun</code> now accept a <code>workspace:</code> dependency on a project whose version is not valid semver, such as <code>workspace:1</code> on a project at version <code>1</code>. Before, they reported the lockfile that <code>pnpm install</code> had just written as out of date.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> now accepts a lockfile when an injected workspace package declares a <code>file:</code> or <code>link:</code> dependency with backslashes, such as <code>file:..\vendor</code>, or with a slash after the protocol, such as <code>file:/./vendor</code>. Before, the install reported the lockfile as out of date right after <code>pnpm install</code> had written it <a href="https://github.com/pnpm/pnpm/pull/17720">#17720</a>.</p>
</li>
<li>
<p>When a package injected through a path, such as <code>file:../lib</code> or <code>../lib</code>, gives one of its dependencies a <code>catalog:</code> specifier, <code>pnpm install --frozen-lockfile</code> now reports the lockfile as outdated. For a bare path such as <code>../lib</code>, <code>pnpm install</code> now also fails the way a fresh resolution does. Before, these installs accepted the existing lockfile <a href="https://github.com/pnpm/pnpm/pull/17722">#17722</a>.</p>
</li>
<li>
<p>Dependencies declared as <code>workspace:</code> entries in catalogs now remain in the lockfile when <code>excludeLinksFromLockfile</code> is enabled. Frozen installs can restore these links after <code>node_modules</code> is removed <a href="https://github.com/pnpm/tasks/issues/260">pnpm/tasks#260</a>.</p>
</li>
<li>
<p>With <code>dedupeDirectDeps</code>, <code>pnpm install</code> now compares <code>link:</code> dependencies by the directory they point at. A project's <code>link:</code> dependency is removed when the workspace root links the same directory under a different path. It is kept when the root's <code>link:</code> dependency has the same text but points at another directory. pnpm reports a dependency the root provides as removed only once, when it removes the project's link. The summary shows the package version of a removed <code>link:</code> dependency <a href="https://github.com/pnpm/tasks/issues/293">pnpm/tasks#293</a>.</p>
</li>
</ul>
<h3 id="hoisted-node-linker-and-custom-modulesdir">Hoisted node linker and custom modulesDir<a class="hash-link" href="#hoisted-node-linker-and-custom-modulesdir" aria-label="Direct link to Hoisted node linker and custom modulesDir">#</a></h3>
<ul>
<li>
<p>With <code>nodeLinker: hoisted</code>, a package that runs a lifecycle script or has a patch is now cloned or copied into <code>node_modules</code>, as with the isolated linker. A build that rewrites one of its files no longer changes the store copy shared with other projects.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code>, pnpm no longer deletes a directory outside <code>node_modules</code> when it removes a package whose scope directory is a symlink.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code>, <code>pnpm install --filter</code> in a sparse checkout now drops previously installed workspace projects that are missing from disk from the hoisted <code>node_modules</code> tree. It no longer recreates <code>node_modules</code> inside a missing project's directory. Packages that only the missing project used are also removed from the root <code>node_modules</code>.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code> and <code>dedupeDirectDeps</code>, <code>pnpm install</code> now removes a project's <code>link:</code> dependency that the workspace root provides, and reports each <code>link:</code> dependency it removes. Removing the last scoped <code>link:</code> dependency of a scope also removes the empty <code>@scope</code> directory.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code> and a custom <code>modulesDir</code>, pnpm now installs a workspace project's dependencies that cannot be hoisted to the root into the project's <code>modulesDir</code>. The next install that relinks the project removes the copies that earlier installs left in its <code>node_modules</code>. A later install restores the project's <code>modulesDir</code> when it was removed. Package directories that pnpm did not install are now also moved to <code>.ignored</code> in a custom <code>modulesDir</code>.</p>
</li>
<li>
<p>Fixed installs in a workspace whose <code>modulesDir</code> is an absolute path, including one that goes through a symlink such as <code>/tmp</code> on macOS, or a path that starts with <code>..</code>. Dependencies of workspace projects no longer end up outside the workspace, and the root project's dependencies, <code>link:</code> dependencies, and commands are linked into the configured directory. <code>pnpm bin</code>, <code>pnpm root</code>, <code>pnpm run</code>, <code>pnpm exec</code>, and <code>pnpm version</code> now use that directory too <a href="https://github.com/pnpm/tasks/issues/285">pnpm/tasks#285</a>.</p>
</li>
</ul>
<h3 id="store-and-builds">Store and builds<a class="hash-link" href="#store-and-builds" aria-label="Direct link to Store and builds">#</a></h3>
<ul>
<li>
<p>Concurrent installs into a global virtual store no longer wait on each other. A package that needs a build is built in a private directory and moved into the store once its build has finished, so another project never links a half-built package. An install with <code>--ignore-scripts</code> links the packages it does not build from their own store directories, and <code>pnpm store prune</code> removes the build directories of installs that were interrupted <a href="https://github.com/pnpm/pnpm/issues/15568">#15568</a>.</p>
</li>
<li>
<p>Packages that an older pnpm version added to the store now run their install scripts. Before, pnpm could skip those scripts and hardlink the package's files to the store.</p>
</li>
<li>
<p><code>pnpm install</code> now keeps patches to bundled dependencies when it restores a package from the side-effects cache, including files a patch adds <a href="https://github.com/pnpm/pnpm/issues/17734">#17734</a>.</p>
</li>
<li>
<p>Local installs on macOS now keep cached clones separate from the global virtual store. <code>pnpm store prune</code> removes this cache, so unused cached packages no longer accumulate <a href="https://github.com/pnpm/pnpm/issues/17907">#17907</a>.</p>
</li>
<li>
<p><code>pnpm store prune</code> now stops if a dependency link cannot be read. This keeps installed packages from being removed after an incomplete scan.</p>
</li>
<li>
<p>A repeat <code>pnpm install</code> now runs a full install when the <code>runtimeOnFail</code> setting changes. Before, it printed "Already up to date" and did not install the runtime a project declares in <code>devEngines.runtime</code> <a href="https://github.com/pnpm/tasks/issues/303">pnpm/tasks#303</a>.</p>
</li>
<li>
<p>The sync of an injected workspace dependency now copies a file whose source has reached the filesystem's limit on hard links. <code>pnpm patch-commit</code> now copies a file into its scratch directory when the filesystem refuses to hard link it, unless the path is missing or already occupied <a href="https://github.com/pnpm/tasks/issues/283">pnpm/tasks#283</a>.</p>
</li>
</ul>
<h3 id="speed">Speed<a class="hash-link" href="#speed" aria-label="Direct link to Speed">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> is faster when it clones files from the store, which it does by default on macOS. On a Mac with endpoint security software, a cold install of a project with about 1,350 packages took 29% less time <a href="https://github.com/pnpm/tasks/issues/280">pnpm/tasks#280</a>.</p>
</li>
<li>
<p><code>pnpm install</code> unpacks packages that contain many files faster. Unpacking <code>typescript</code> took 30% less time in our measurements <a href="https://github.com/pnpm/tasks/issues/288">pnpm/tasks#288</a>.</p>
</li>
<li>
<p>Resolving against a registry that sends <code>Cache-Control: no-cache</code>, such as Azure Artifacts, is fast again when the lockfile already decides the version. pnpm reads the cached metadata for a pinned version, or for a range the lockfile version is proven to win, without a registry request <a href="https://github.com/pnpm/pnpm/issues/17758">#17758</a>.</p>
</li>
<li>
<p>POSIX bin shims start fewer processes. Running a dependency's bin through its shim from Git Bash on Windows starts 7 processes where it started 15. Installing again replaces the shims already in <code>node_modules</code>.</p>
</li>
</ul>
<h3 id="windows">Windows<a class="hash-link" href="#windows" aria-label="Direct link to Windows">#</a></h3>
<ul>
<li>
<p>pnpm now installs dependencies and runs lifecycle scripts from projects on mapped Windows network drives. When a network share refuses the links in <code>node_modules</code>, the error now suggests setting <code>nodeLinker: hoisted</code> or moving the project to a local drive <a href="https://github.com/pnpm/pnpm/issues/17747">#17747</a>.</p>
</li>
<li>
<p><code>packageImportMethod: auto</code> now tries hardlinking before cloning, as it does on Linux. Installs from a warm store on a Dev Drive are faster. An install no longer fails when the store refuses a hardlink with an access-denied error, and pnpm tries cloning or copying the file next <a href="https://github.com/pnpm/pnpm/issues/17809">#17809</a>.</p>
</li>
<li>
<p><code>pnpm run</code> and <code>pnpm setup</code> no longer clear the visible terminal when a project path contains non-ASCII characters.</p>
</li>
<li>
<p>A failed attempt to create a directory junction in <code>node_modules</code> no longer leaves a <code>.pnpm-junction-*</code> directory behind.</p>
</li>
<li>
<p><code>pnpm</code> starts faster. It loads system libraries such as <code>user32.dll</code> and <code>shell32.dll</code> the first time a command uses them, so <code>pnpm --version</code> loads 11 libraries where it loaded 25.</p>
</li>
</ul>
<h3 id="pnpm-deploy">pnpm deploy<a class="hash-link" href="#pnpm-deploy" aria-label="Direct link to pnpm deploy">#</a></h3>
<ul>
<li>
<p><code>pnpm deploy</code> now runs the build scripts of a workspace project that it installs as a <code>file:</code> dependency, without a machine-specific <code>allowBuilds</code> key. An <code>allowBuilds</code> entry that denies the project still applies <a href="https://github.com/pnpm/pnpm/issues/17740">#17740</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> no longer fails when the deployed project depends on a workspace package that sets <code>publishConfig.directory</code>. pnpm installs that package from its publish directory and runs its build scripts <a href="https://github.com/pnpm/pnpm/pull/17771">#17771</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> without a shared workspace lockfile now resolves a relative <code>workspace:</code> path, such as <code>workspace:../lib</code>, from the source project's directory. It used to be resolved from the deploy target and fail <a href="https://github.com/pnpm/pnpm/issues/17804">#17804</a>.</p>
</li>
<li>
<p><code>pnpm deploy --offline --trust-lockfile</code> now reuses dependencies pinned in the source lockfile from a populated store when registry metadata is unavailable. This works with per-project lockfiles, <code>--legacy</code>, and npm aliases <a href="https://github.com/pnpm/pnpm/issues/17888">#17888</a>.</p>
</li>
</ul>
<h3 id="other-commands-and-settings">Other commands and settings<a class="hash-link" href="#other-commands-and-settings" aria-label="Direct link to Other commands and settings">#</a></h3>
<ul>
<li>
<p><code>pnpm dist-tag</code> and <code>pnpm unpublish</code> now offer browser-based authentication when the account's two-factor authentication uses a security key. Before, they asked for a one-time password in that case <a href="https://github.com/pnpm/pnpm/issues/17832">#17832</a>.</p>
</li>
<li>
<p><code>pnpm publish</code> with provenance now downloads Sigstore's current signing configuration before signing. A failed or slow download is retried with the same retry policy and deadline as the signing requests.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now apply the first rule of a <code>.npmignore</code> or <code>.gitignore</code> that starts with a UTF-8 BOM.</p>
</li>
<li>
<p><code>pnpm outdated</code> now checks dependencies when the project has no lockfile, for example with <code>lockfile: false</code>. The <code>Current</code> column shows the installed version, or the lowest version allowed by the declared range if the dependency is not installed <a href="https://github.com/pnpm/pnpm/issues/17811">#17811</a>.</p>
</li>
<li>
<p><code>pnpm self-update</code> now updates the project's <code>engines.pnpm</code> range along with its pnpm pin, keeping the <code>^</code> or <code>~</code> operator <a href="https://github.com/pnpm/pnpm/issues/17732">#17732</a>.</p>
</li>
<li>
<p>On Linux and macOS, <code>pnpm run</code> no longer sometimes reports a lifecycle failure after <code>Ctrl+C</code> interrupts a script.</p>
</li>
<li>
<p>Config dependencies use the declared registry <code>serverType</code> when recording and installing packages <a href="https://github.com/pnpm/tasks/issues/236">pnpm/tasks#236</a>.</p>
</li>
<li>
<p>Relative directory selectors set on <code>config.filter</code> or <code>config.filterProd</code> by an <code>updateConfig</code> hook now resolve from the workspace root even when <code>--dir</code> is passed or <code>pnpm</code> runs from a subdirectory <a href="https://github.com/pnpm/pnpm/issues/17906">#17906</a>.</p>
</li>
<li>
<p>Commands that add settings to <code>pnpm-workspace.yaml</code> now fail with an error if the file contains only <code>null</code>, and leave the file unchanged. Before, they wrote invalid YAML.</p>
</li>
<li>
<p>Shell tab-completion now completes directory and file paths for path options such as <code>-C</code>, <code>--dir</code>, <code>--prefix</code>, <code>--store-dir</code>, and <code>--env-file</code>. Before, options without a fixed list of values offered command names <a href="https://github.com/pnpm/pnpm/issues/17884">#17884</a>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.18.0]]></title>
      <link>https://pnpm.io/blog/releases/12.18.0</link>
      <guid>https://pnpm.io/blog/releases/12.18.0</guid>
      <pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 12.18.0 packs, publishes, and installs packages with platform variants on pnpr registries. It also adds per-skill approval of agent skills and pnpm store add for offline installs from downloaded tarballs. Repeat installs and verifyDepsBeforeRun no longer read the package.json of unchanged...]]></description>
      <content:encoded><![CDATA[<p>pnpm 12.18.0 packs, publishes, and installs packages with platform variants on pnpr registries. It also adds per-skill approval of agent skills and <code>pnpm store add</code> for offline installs from downloaded tarballs. Repeat installs and <code>verifyDepsBeforeRun</code> no longer read the <code>package.json</code> of unchanged workspace projects. The release fixes several peer dependency resolution bugs too.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<h3 id="agent-skills">Agent skills<a class="hash-link" href="#agent-skills" aria-label="Direct link to Agent skills">#</a></h3>
<ul>
<li>
<p>pnpm now names the link to a dependency's agent skill after the skill alone. A skill that the <code>@acme/kit</code> package ships in <code>skills/auth/</code> is linked as <code>.claude/skills/auth</code>, not <code>.claude/skills/pnpm-@acme+kit-auth</code>. The next install replaces links with the old names. pnpm lists the linked skills in a <code># pnpm</code> block of each agent skill directory's <code>.gitignore</code> <a href="https://github.com/pnpm/pnpm/discussions/17455">#17455</a>.</p>
<p>When two approved packages ship a skill of the same name, or the name is already taken in an agent skill directory, pnpm links the skill as <code>pnpm-&#x3C;package>-&#x3C;skill></code>. Before, the install failed.</p>
</li>
<li>
<p><code>pnpm approve</code> now asks which agent skills to link when a package ships more than one. pnpm records the chosen skills as a list, such as <code>permissions.&#x3C;pkg>.skills: [guide, migrate]</code>, and does not offer the other skills for approval again. The first time a project approves a skill, <code>pnpm approve</code> also asks which agent directories to link skills into, and records the answer under <code>skills.dirs</code>.</p>
</li>
<li>
<p>pnpm links agent skills nested in category directories, such as <code>skills/engineering/implement/SKILL.md</code>, up to three levels below <code>skills/</code>. Before, it linked only the skills directly under <code>skills/</code>.</p>
</li>
</ul>
<h3 id="platform-variants">Platform variants<a class="hash-link" href="#platform-variants" aria-label="Direct link to Platform variants">#</a></h3>
<p>These features need a registry declared with <code>serverType: pnpr</code>.</p>
<ul>
<li>
<p><code>pnpm pack</code> packs one archive per entry of <code>publishConfig.variants</code>, each platform variant as <code>&#x3C;name>-&#x3C;version>~&#x3C;tag>.tgz</code>. <code>pnpm pack --variant &#x3C;target></code> packs only the archive whose entry lists that target. <code>pnpm pack --json</code> prints the <code>integrity</code> and <code>size</code> of every archive it writes.</p>
</li>
<li>
<p><code>pnpm publish</code> publishes a package's <code>publishConfig.variants</code>. pnpm uploads every archive before the publish request that references them. Publishing variants to any other registry is refused unless <code>--no-variants</code> is given, which publishes only the archive that targets <code>any</code>.</p>
</li>
<li>
<p><code>pnpm publish --upload-variant &#x3C;target></code> uploads the archive of one <code>publishConfig.variants</code> entry to the registry's staging area and prints <code>&#x3C;target>=&#x3C;integrity></code>. <code>pnpm publish --variant-integrity &#x3C;target>=&#x3C;integrity></code> then publishes the version from archives that other jobs uploaded. With <code>--recursive</code>, each value names its package as <code>&#x3C;name>~&#x3C;target>=&#x3C;integrity></code>.</p>
</li>
<li>
<p><code>pnpm publish -r --batch</code> now uploads each package archive on its own request and skips archives the registry already holds, so the batch request no longer grows with the archives it publishes. A batch of more than 256 packages still carries every archive inline. Packages with <code>publishConfig.variants</code> can be published in a batch. A batch with variants that would reference more than 256 archives on one registry fails with <code>ERR_PNPM_BATCH_PUBLISH_TOO_MANY_ARCHIVES</code> <a href="https://github.com/pnpm/tasks/issues/244">pnpm/tasks#244</a>.</p>
</li>
<li>
<p><code>pnpm publish --provenance</code> signs one statement that names every archive of a version with <code>publishConfig.variants</code>. A platform variant's archive is named by the version's package URL with a <code>variant</code> qualifier.</p>
</li>
<li>
<p>Rerunning <code>pnpm publish</code> after the version was already published now succeeds when the published version is the same release. pnpm compares the archives, the provenance statement when the rerun signs one, and the dist-tag. When the published version differs, the publish fails with <code>ERR_PNPM_PUBLISHED_RELEASE_DIFFERS</code>, which names what differs.</p>
</li>
<li>
<p>pnpm installs the platform variant of a package that fits the host, or the package's own archive when none does. The lockfile records every variant. A version published with variants only, and no archive for other hosts, installs on a host one of the variants fits. On any other host, an optional dependency is skipped, and any other dependency fails with an error that lists the platforms the version is published for.</p>
</li>
<li>
<p><code>supportedArchitectures</code> platform lists accept platform tags, the same tags <code>publishConfig.variants</code> entries name. An entry can state floors and an ABI, such as <code>linux-x64-manylinux_2_28</code>, <code>darwin-arm64-macos_14_0</code>, <code>linux-x64-napi8</code> or <code>linux-x64-node127</code>, and any Node.js OS and CPU, such as <code>freebsd-x64</code>. The spellings accepted before still work.</p>
</li>
<li>
<p>With <code>supportedArchitectures</code> set, pnpm also fetches into the store the variants that the other listed platforms need, when it downloads a package with platform variants.</p>
</li>
</ul>
<h3 id="pnpr-registries">pnpr registries<a class="hash-link" href="#pnpr-registries" aria-label="Direct link to pnpr registries">#</a></h3>
<ul>
<li>
<p>pnpm downloads less metadata from a registry declared with <code>serverType: pnpr</code>. A large package document leaves out the manifests of rarely picked versions, and pnpm fetches one only when it picks that version. In a benchmark that resolves 787 packages, the package documents shrank from 30.3 MB to 2.5 MB gzipped. pnpm caches these documents in <code>v12/metadata-pnpr</code>, and the <code>pnpm cache</code> commands cover them.</p>
<p>pnpm warns when a registry that is not declared <code>serverType: pnpr</code> turns out to be pnpr. For a registry declared <code>serverType: pnpr</code>, a <code>minimumReleaseAge</code> longer than 30 days fails with <code>ERR_PNPM_UNSUPPORTED_MINIMUM_RELEASE_AGE</code>.</p>
</li>
<li>
<p><code>pnpm publish</code> sends release notes to registries declared with <code>serverType: pnpr</code>. A package's notes are the section for its version in <code>CHANGELOG.md</code>, or the notes that <code>pnpm version -r</code> composed from change intents. <code>--release-notes &#x3C;file></code> gives the notes from a file, and <code>--no-release-notes</code> sends none. <code>--publication-name</code> names a release published with <code>--batch</code>.</p>
<p>In a workspace that uses pnpm's versioning, <code>pnpm version -r --release-notes &#x3C;file></code> puts a summary above the composed notes of the release.</p>
<p><code>pnpm view &#x3C;pkg>@&#x3C;version> releaseNotes</code>, <code>pnpm outdated --notes</code>, and <code>pnpm update --interactive</code> show the release notes from these registries.</p>
</li>
</ul>
<h3 id="store-and-hooks">Store and hooks<a class="hash-link" href="#store-and-hooks" aria-label="Direct link to Store and hooks">#</a></h3>
<ul>
<li>
<p><code>pnpm store add</code> now prepares the store for offline installs from package tarballs downloaded some other way. After <code>pnpm store add ./tarballs/*.tgz</code>, <code>pnpm install --offline --frozen-lockfile</code> installs each registry package whose lockfile entry pins one of those tarballs <a href="https://github.com/pnpm/pnpm/issues/2978">#2978</a>.</p>
</li>
<li>
<p>Custom pnpmfile fetchers can use <code>fetchers.gitHostedTarball</code>, <code>fetchers.git</code>, and <code>fetchers.binary</code> <a href="https://github.com/pnpm/tasks/issues/191">pnpm/tasks#191</a>.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p>Running <code>node</code> or <code>pnpm install</code> in a project that pins a Node.js version pnpm has not downloaded yet no longer hangs when a <code>globalPnpmfile</code> is configured <a href="https://github.com/pnpm/pnpm/issues/17530">#17530</a>.</p>
</li>
<li>
<p><code>pnpm install</code> with <code>enableGlobalVirtualStore</code> no longer fails on Windows for a dependency from a named registry, such as <code>gh:</code> or <code>npmjs:</code> <a href="https://github.com/pnpm/pnpm/issues/17665">#17665</a>.</p>
</li>
<li>
<p>Concurrent installs that share a global virtual store no longer fail with <code>ERR_PNPM_CMD_SHIM_SYMLINK_BIN</code> when they link the same executable at the same time <a href="https://github.com/pnpm/pnpm/issues/17587">#17587</a>.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm ci</code> now succeed when dependency skills are approved but no agent skill directory exists. The skills stay unlinked until a directory exists <a href="https://github.com/pnpm/pnpm/issues/17574">#17574</a>.</p>
</li>
<li>
<p>Commands run from a workspace package now use the same default store as the workspace root. Before, <code>pnpm add</code> in a package could fail with <code>ERR_PNPM_UNEXPECTED_STORE</code> when the workspace root was its own mount point and the home store was on another volume, as in a sandbox or a container.</p>
<p>A workspace installed with the old behavior may need one <code>pnpm install --force</code> from the workspace root.</p>
</li>
<li>
<p><code>pnpm deploy</code> now keeps a symlink in the project whose target is missing from the source, such as a link into a <code>node_modules</code> directory that was removed after the build. Deploy used to drop such a link silently <a href="https://github.com/pnpm/pnpm/issues/17571">#17571</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now links the runtime that an earlier <code>pnpm install --no-runtime</code> skipped, and <code>pnpm install --no-runtime</code> removes a runtime that an earlier install linked <a href="https://github.com/pnpm/pnpm/issues/17542">#17542</a>.</p>
</li>
<li>
<p>With <code>enableGlobalVirtualStore</code>, <code>pnpm install</code> again runs a dependency's build scripts in a project whose global virtual store slot another project already built, unless the side-effects cache has build output to restore for it. A build that writes only outside its own package, such as a git hook installer, now takes effect in every project <a href="https://github.com/pnpm/pnpm/issues/17526">#17526</a>.</p>
</li>
<li>
<p>Commands of a package whose <code>bin</code> paths contain excess parent directory segments, such as <code>../dist/cli.js</code>, are no longer missing. Such paths now resolve inside the package <a href="https://github.com/pnpm/pnpm/issues/17586">#17586</a>.</p>
</li>
<li>
<p>Generated POSIX shell shims now quote their paths, so shell special characters in a path stay literal.</p>
</li>
</ul>
<h3 id="lockfile-and-local-paths">Lockfile and local paths<a class="hash-link" href="#lockfile-and-local-paths" aria-label="Direct link to Lockfile and local paths">#</a></h3>
<ul>
<li>
<p>Packages from the default registry keep plain lockfile keys, even when a prefix such as <code>npmjs</code> points at the registry set as <code>registry</code>. A dependency written with such a prefix shares the plain entry of the same package. The next install rewrites keys that earlier versions qualified this way <a href="https://github.com/pnpm/pnpm/issues/17575">#17575</a>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code>, <code>pnpm approve-builds</code>, and <code>pnpm rebuild</code> now accept a lockfile that resolves a <code>*</code> dependency to a prerelease <code>latest</code> version. pnpm wrote such a lockfile and then reported it as outdated <a href="https://github.com/pnpm/pnpm/issues/17594">#17594</a>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> now accepts a lockfile written with <code>excludeLinksFromLockfile</code> and <code>linkWorkspacePackages</code> on, when a project depends on a workspace package through a <code>catalog:</code> entry. It used to fail with <code>ERR_PNPM_OUTDATED_LOCKFILE</code>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> no longer rejects a freshly generated lockfile when <code>addMissingPeerTypes</code> is enabled and an injected workspace package has peer dependencies <a href="https://github.com/pnpm/pnpm/issues/17668">#17668</a>.</p>
</li>
<li>
<p>Relative local paths in root <code>overrides</code> now resolve from the workspace root when each project has its own lockfile <a href="https://github.com/pnpm/pnpm/issues/17691">#17691</a>.</p>
<p>Installing a local directory dependency no longer fails when another project's install is writing a lockfile in that directory.</p>
</li>
<li>
<p>Relative local paths in root catalogs now resolve for dependencies and peers <a href="https://github.com/pnpm/pnpm/issues/17690">#17690</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now resolves auto-installed relative <code>workspace:</code> and <code>file:</code> peers from the directory of the package that declares them <a href="https://github.com/pnpm/pnpm/issues/17676">#17676</a>, <a href="https://github.com/pnpm/pnpm/issues/17689">#17689</a>.</p>
</li>
<li>
<p><code>pnpm dedupe --check</code> leaves <code>pnpm-lock.yaml</code> untouched while it looks for deduplication changes. If <code>configDependencies</code> changed since the last install, the check keeps the lockfile they sync, as <code>pnpm install</code> does <a href="https://github.com/pnpm/pnpm/issues/17628">#17628</a>.</p>
</li>
<li>
<p><code>pnpm dedupe --check</code> no longer fails when the only difference is the integrity of a locked version that the registry now reports with a stronger algorithm, such as a <code>sha512</code> integrity replacing the <code>sha1</code> shasum it reported when the lockfile was written <a href="https://github.com/pnpm/pnpm/issues/17692">#17692</a>.</p>
</li>
</ul>
<h3 id="peer-dependencies">Peer dependencies<a class="hash-link" href="#peer-dependencies" aria-label="Direct link to Peer dependencies">#</a></h3>
<ul>
<li>
<p>Peer deduplication no longer gives a project different copies of a dependency across direct and transitive paths when an optional peer has no provider <a href="https://github.com/pnpm/pnpm/issues/17666">#17666</a>.</p>
</li>
<li>
<p>Dependencies no longer bind to another project's peer variant when the provider has nested peers, including providers that finish resolving later <a href="https://github.com/pnpm/pnpm/issues/17593">#17593</a>.</p>
</li>
<li>
<p>Re-resolving a lockfile no longer preserves optional peer bindings from other projects when no provider is in scope <a href="https://github.com/pnpm/pnpm/issues/17592">#17592</a>.</p>
</li>
<li>
<p><code>pnpm peers check</code> warns when a required peer is resolved without a provider declared by the project or its dependency ancestors, with <code>autoInstallPeers: false</code> and <code>dedupePeerDependents: true</code>. These warnings do not change the command's exit code or cause <code>strictPeerDependencies</code> failures.</p>
</li>
</ul>
<h3 id="speed-and-memory">Speed and memory<a class="hash-link" href="#speed-and-memory" aria-label="Direct link to Speed and memory">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code>, and <code>pnpm run</code> and <code>pnpm exec</code> with <code>verifyDepsBeforeRun</code>, no longer read the <code>package.json</code> of workspace projects whose files did not change since the last install. This also holds with a pnpmfile, <code>configDependencies</code>, or <code>sharedWorkspaceLockfile: false</code>. In an up-to-date workspace with <code>sharedWorkspaceLockfile: false</code>, <code>pnpm install</code> no longer runs the install of each project <a href="https://github.com/pnpm/tasks/issues/256">pnpm/tasks#256</a>.</p>
</li>
<li>
<p>A recursive <code>pnpm run</code> or <code>pnpm exec</code> with <code>verifyDepsBeforeRun</code> set no longer reads every <code>package.json</code> in the workspace once per project when <code>sharedWorkspaceLockfile</code> is <code>false</code>. In a 300-project workspace, <code>pnpm -r exec true</code> went from 490 ms to 42 ms <a href="https://github.com/pnpm/tasks/issues/256">pnpm/tasks#256</a>.</p>
</li>
<li>
<p><code>pnpm install</code> makes fewer <code>stat</code> calls when it hardlinks files from the store, as few as 12.7.0 made <a href="https://github.com/pnpm/pnpm/issues/17543">#17543</a>.</p>
</li>
<li>
<p>Picking versions from registry metadata uses less temporary memory.</p>
</li>
</ul>
<h3 id="verifydepsbeforerun-and-repeat-installs">verifyDepsBeforeRun and repeat installs<a class="hash-link" href="#verifydepsbeforerun-and-repeat-installs" aria-label="Direct link to verifyDepsBeforeRun and repeat installs">#</a></h3>
<ul>
<li>
<p>With <code>verifyDepsBeforeRun</code>, <code>pnpm run</code> and <code>pnpm exec</code> now report dependencies as out of date after a dependency is added to the <code>package.json</code> of a local directory dependency, such as <code>"lib": "file:../lib"</code>. Before, the command ran without the new dependency installed.</p>
</li>
<li>
<p><code>verifyDepsBeforeRun</code> no longer reports a <code>file:</code> directory dependency as out of date after an edit to <code>package.json</code> that leaves its dependencies unchanged <a href="https://github.com/pnpm/pnpm/issues/17697">#17697</a>.</p>
</li>
<li>
<p><code>verifyDepsBeforeRun</code> no longer reports dependencies as out of sync when only the <code>version</code> field of a single-project repository changed <a href="https://github.com/pnpm/pnpm/issues/17560">#17560</a>. The same holds for a workspace project that no dependency can resolve to. A script run after such a change no longer starts an install first.</p>
</li>
<li>
<p>A repeat <code>pnpm install</code> now rewrites the bin shims after <code>extendNodePath</code> changes. Before, it reported "Already up to date" and the shims kept the <code>NODE_PATH</code> of the previous setting.</p>
</li>
</ul>
<h3 id="adding-and-updating-dependencies">Adding and updating dependencies<a class="hash-link" href="#adding-and-updating-dependencies" aria-label="Direct link to Adding and updating dependencies">#</a></h3>
<ul>
<li>
<p><code>pnpm add &#x3C;pkg></code> without a version now saves the range that the other workspace projects declare for the package, or the one a matching override sets. A <code>catalog:</code> reference still comes first, and the <code>tag</code> setting is used only when none of these exists <a href="https://github.com/pnpm/tasks/issues/191">pnpm/tasks#191</a>.</p>
</li>
<li>
<p><code>pnpm update</code> with only negated selectors, such as <code>pnpm update '!foo'</code>, now leaves the dependencies listed in <code>update.ignoreDeps</code> unchanged. Negated <code>crate:</code> and <code>pypi:</code> selectors, such as <code>!crate:sha2</code>, now exclude that dependency and update the rest <a href="https://github.com/pnpm/tasks/issues/243">pnpm/tasks#243</a>.</p>
</li>
<li>
<p><code>pnpm update --latest</code> keeps three kinds of Cargo dependencies where they are, unless the crate is named on the command line. Before, it moved each one to the newest release and left a workspace that did not build.</p>
<ul>
<li>A renamed dependency, such as <code>tower-0-4 = { package = "tower", version = "0.4" }</code>, stays within its requirement if the workspace also declares the crate under its own name.</li>
<li>A crate replaced through <code>[patch.crates-io]</code> keeps its version, with a warning.</li>
<li>A crate whose newest release is older than its current version, such as a prerelease newer than the latest stable release, keeps its version, with a warning. Only an explicit version, such as <code>pnpm update crate:foo@1</code>, moves it back.</li>
</ul>
<p>Other new major versions are still selected and may need code changes.</p>
</li>
<li>
<p><code>pnpm update</code> now keeps a Cargo dependency at its current version, with a warning, if the new version lacks a feature the workspace enables on it. If the crate is named on the command line, as in <code>pnpm update --latest crate:sha2</code>, the update fails with an error that names the missing features.</p>
</li>
<li>
<p><code>pnpm update</code> now keeps the operator of every existing Cargo requirement, so <code>~1.0.0</code> is updated to <code>~1.1.0</code>, and an exact <code>=</code> requirement stays exact unless the selector gives a range, such as <code>crate:foo@^2</code>. The <code>savePrefix</code> and <code>saveExact</code> settings apply only to new Cargo dependencies. Saved Cargo requirements omit build metadata.</p>
</li>
<li>
<p><code>pnpm update</code> now updates a Cargo dependency whose inline table spans several lines, such as one with a multi-line <code>features</code> array. It failed with "its Cargo.toml dependency declaration is not a string or single-line inline table".</p>
</li>
<li>
<p><code>pnpm update</code> no longer applies the <code>savePrefix</code> and <code>saveExact</code> settings to Python requirements. A <code>savePrefix</code> such as <code>^</code> made <code>pnpm update</code> fail in a project with Python dependencies.</p>
<p><code>pnpm update</code> now keeps the precision of a <code>~=</code> requirement, so <code>~=1.0</code> is updated to <code>~=1.5</code> and still allows any 1.x release. With <code>--latest</code>, a <code>==1.*</code> requirement is updated to <code>==2.*</code>.</p>
</li>
</ul>
<h3 id="store">Store<a class="hash-link" href="#store" aria-label="Direct link to Store">#</a></h3>
<ul>
<li>
<p><code>pnpm store prune</code> now keeps packages linked from a configured modules directory <a href="https://github.com/pnpm/tasks/issues/230">pnpm/tasks#230</a>.</p>
</li>
<li>
<p><code>pnpm store prune</code> now removes aliases of pruned packages.</p>
</li>
<li>
<p><code>pnpm store status</code> no longer reports untouched packages as modified when the global virtual store is enabled. If the installed global-store layout cannot be verified, the command reports <code>ERR_PNPM_STORE_STATUS_UNVERIFIABLE</code> and asks for a reinstall <a href="https://github.com/pnpm/pnpm/issues/17631">#17631</a>.</p>
</li>
<li>
<p><code>pnpm store add</code> now fails with <code>ERR_PNPM_FROZEN_STORE_WRITE</code> when <code>frozenStore</code> is enabled. It used to write package files into the read-only store without recording them, so no install could use them.</p>
</li>
<li>
<p><code>pnpm cat-index &#x3C;name>@&#x3C;version></code> no longer shows the index of a package whose name differs only in letter case.</p>
</li>
</ul>
<h3 id="other-commands-and-settings">Other commands and settings<a class="hash-link" href="#other-commands-and-settings" aria-label="Direct link to Other commands and settings">#</a></h3>
<ul>
<li>
<p><code>pnpm link</code> now fails without changing <code>package.json</code> or <code>pnpm-workspace.yaml</code> when the linked package's name is not a valid npm package name. It used to write that name to both files, which made every later install fail <a href="https://github.com/pnpm/pnpm/issues/17475">#17475</a>.</p>
</li>
<li>
<p><code>pnpm link &#x3C;dir></code> now resolves a relative <code>&#x3C;dir></code> against the current directory. In a directory without a <code>package.json</code>, such as a workspace's <code>packages</code> folder, <code>pnpm link .</code> used to link the nearest project above it into itself <a href="https://github.com/pnpm/pnpm/issues/17475">#17475</a>.</p>
</li>
<li>
<p>A Node.js version range such as <code>>=26.13</code>, for example in <code>devEngines.runtime</code>, now resolves to the newest stable release that satisfies it. pnpm picks a prerelease only when no stable release matches <a href="https://github.com/pnpm/pnpm/issues/17516">#17516</a>.</p>
</li>
<li>
<p>Switching to the pnpm version a project pins no longer writes a temporary <code>_tmp_*</code> file into the project directory, which file watchers reported on every command <a href="https://github.com/pnpm/pnpm/issues/17681">#17681</a>.</p>
</li>
<li>
<p>pnpm now reads the <code>linkWorkspacePackages</code>, <code>injectWorkspacePackages</code>, <code>extendNodePath</code>, <code>frozenStore</code>, and <code>optimisticRepeatInstall</code> settings from <code>PNPM_CONFIG_*</code> environment variables, such as <code>PNPM_CONFIG_LINK_WORKSPACE_PACKAGES=true</code>. <code>--config.extend-node-path</code> now applies too.</p>
</li>
<li>
<p>Recursive scripts run with <code>--sequential</code> or <code>--workspace-concurrency=1</code> print GitHub Actions log groups again <a href="https://github.com/pnpm/pnpm/issues/17629">#17629</a>.</p>
</li>
<li>
<p>When <code>pnpm docs</code> cannot open a browser, the URL it prints no longer includes the query string or the fragment.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 11.28.11]]></title>
      <link>https://pnpm.io/blog/releases/11.28.11</link>
      <guid>https://pnpm.io/blog/releases/11.28.11</guid>
      <pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 11.28.11 fixes frozen installs with excludeLinksFromLockfile, pnpm link in workspaces, pnpm deploy with dangling symlinks, and verifyDepsBeforeRun starting needless installs.]]></description>
      <content:encoded><![CDATA[<p>pnpm 11.28.11 fixes frozen installs with <code>excludeLinksFromLockfile</code>, <code>pnpm link</code> in workspaces, <code>pnpm deploy</code> with dangling symlinks, and <code>verifyDepsBeforeRun</code> starting needless installs.</p>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p><code>pnpm deploy</code> now keeps a symlink in the project whose target is missing from the source, such as a link into a <code>node_modules</code> directory that was removed after the build. Deploy used to fail with <code>ENOENT</code> on such a link <a href="https://github.com/pnpm/pnpm/issues/17571">#17571</a>.</p>
</li>
<li>
<p>A package with <code>bundledDependencies</code> and a build script now keeps its bundled dependencies when it is restored from the side-effects cache <a href="https://github.com/pnpm/pnpm/issues/17523">#17523</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now links the runtime that an earlier <code>pnpm install --no-runtime</code> skipped <a href="https://github.com/pnpm/pnpm/issues/17542">#17542</a>.</p>
</li>
<li>
<p>Commands of a package whose <code>bin</code> paths contain excess parent directory segments, such as <code>../dist/cli.js</code>, are no longer missing. Such paths now resolve inside the package <a href="https://github.com/pnpm/pnpm/issues/17586">#17586</a>.</p>
</li>
<li>
<p>Generated POSIX shell shims now quote their paths, so shell special characters in a path stay literal.</p>
</li>
<li>
<p>A repeat <code>pnpm install</code> now rewrites the bin shims after <code>extendNodePath</code> changes. Before, it reported "Already up to date" and the shims kept the <code>NODE_PATH</code> of the previous setting.</p>
</li>
</ul>
<h3 id="lockfile-and-resolution">Lockfile and resolution<a class="hash-link" href="#lockfile-and-resolution" aria-label="Direct link to Lockfile and resolution">#</a></h3>
<ul>
<li>
<p><code>pnpm install --frozen-lockfile</code> now accepts the lockfile it wrote with <code>excludeLinksFromLockfile</code> and <code>linkWorkspacePackages</code> on, when a project depends on a workspace package through a plain version range or a <code>catalog:</code> entry. It used to fail with <code>ERR_PNPM_OUTDATED_LOCKFILE</code>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code>, <code>pnpm approve-builds</code>, and <code>pnpm rebuild</code> now accept a lockfile that resolves a <code>*</code> dependency to a prerelease <code>latest</code> version. pnpm wrote such a lockfile and then reported it as outdated <a href="https://github.com/pnpm/pnpm/issues/17594">#17594</a>.</p>
</li>
<li>
<p>Packages from the default registry keep plain lockfile keys, even when a prefix such as <code>npmjs</code> points at the registry set as <code>registry</code>. A dependency written with such a prefix shares the plain entry of the same package. The next install rewrites keys that earlier versions qualified this way <a href="https://github.com/pnpm/pnpm/issues/17575">#17575</a>.</p>
</li>
<li>
<p>Relative local paths in root <code>overrides</code> now resolve from the workspace root when each project has its own lockfile <a href="https://github.com/pnpm/pnpm/issues/17691">#17691</a>.</p>
<p>Installing a local directory dependency no longer fails when another project's install is writing a lockfile in that directory.</p>
</li>
<li>
<p>Peer deduplication no longer gives a project different copies of a dependency across direct and transitive paths when an optional peer has no provider <a href="https://github.com/pnpm/pnpm/issues/17666">#17666</a>.</p>
</li>
<li>
<p>A Node.js version range such as <code>>=26.13</code>, for example in <code>devEngines.runtime</code>, now resolves to the newest stable release that satisfies it. pnpm picks a prerelease only when no stable release matches <a href="https://github.com/pnpm/pnpm/issues/17516">#17516</a>.</p>
</li>
</ul>
<h3 id="verifydepsbeforerun">verifyDepsBeforeRun<a class="hash-link" href="#verifydepsbeforerun" aria-label="Direct link to verifyDepsBeforeRun">#</a></h3>
<ul>
<li>
<p>With <code>verifyDepsBeforeRun</code>, <code>pnpm run</code> and <code>pnpm exec</code> now report dependencies as out of date after a dependency is added to the <code>package.json</code> of a local directory dependency, such as <code>"lib": "file:../lib"</code>. Before, the command ran without the new dependency installed.</p>
</li>
<li>
<p><code>verifyDepsBeforeRun</code> no longer reports dependencies as out of sync when only the <code>version</code> field of a single-project repository changed <a href="https://github.com/pnpm/pnpm/issues/17560">#17560</a>. The same holds for a workspace project that no dependency can resolve to. A script run after such a change no longer starts an install first.</p>
</li>
</ul>
<h3 id="pnpm-link">pnpm link<a class="hash-link" href="#pnpm-link" aria-label="Direct link to pnpm link">#</a></h3>
<ul>
<li>
<p>In a workspace, <code>pnpm link &#x3C;dir></code> now adds the <code>link:</code> dependency to the <code>package.json</code> of the project where the command runs, not to the workspace root's <code>package.json</code>. The link is created in that project's <code>node_modules</code>, as documented. The override is still written to the root <code>pnpm-workspace.yaml</code>.</p>
</li>
<li>
<p><code>pnpm link</code> with several paths now records every linked package in the <code>overrides</code> of <code>pnpm-workspace.yaml</code>. Some of them could be missing before.</p>
</li>
<li>
<p><code>pnpm link</code> now fails without changing <code>package.json</code> or <code>pnpm-workspace.yaml</code> when the linked package's name is not a valid npm package name. It used to write that name to both files, which made every later install fail <a href="https://github.com/pnpm/pnpm/issues/17475">#17475</a>.</p>
</li>
</ul>
<h3 id="pnpm-update">pnpm update<a class="hash-link" href="#pnpm-update" aria-label="Direct link to pnpm update">#</a></h3>
<ul>
<li>
<p><code>pnpm update</code> with only negated selectors, such as <code>pnpm update '!foo'</code>, now leaves the dependencies listed in <code>update.ignoreDeps</code> unchanged <a href="https://github.com/pnpm/tasks/issues/243">pnpm/tasks#243</a>.</p>
</li>
<li>
<p><code>pnpm update --depth 0</code> without selectors now does nothing when every direct dependency is listed in <code>update.ignoreDeps</code>. Before, it failed with <code>ERR_PNPM_NO_PACKAGE_IN_DEPENDENCIES</code> <a href="https://github.com/pnpm/tasks/issues/251">pnpm/tasks#251</a>.</p>
</li>
</ul>
<h3 id="store-and-self-update">Store and self-update<a class="hash-link" href="#store-and-self-update" aria-label="Direct link to Store and self-update">#</a></h3>
<ul>
<li>
<p><code>pnpm store prune</code> now keeps packages linked from a configured modules directory <a href="https://github.com/pnpm/tasks/issues/230">pnpm/tasks#230</a>.</p>
</li>
<li>
<p><code>pnpm store status</code> no longer reports untouched packages as modified when the global virtual store is enabled. If the installed global-store layout cannot be verified, the command reports <code>ERR_PNPM_STORE_STATUS_UNVERIFIABLE</code> and asks for a reinstall <a href="https://github.com/pnpm/pnpm/issues/17631">#17631</a>.</p>
</li>
<li>
<p><code>pnpm store add</code> now fails right away with <code>ERR_PNPM_FROZEN_STORE_WRITE</code> when <code>frozenStore</code> is enabled. It used to retry each download for minutes before failing, or fail with a SQLite error on an empty store.</p>
</li>
<li>
<p><code>pnpm self-update</code> now reinstalls a cached engine if its executable cannot run. This repairs shared store entries damaged by an earlier install <a href="https://github.com/pnpm/pnpm/issues/17582">#17582</a>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.17.0]]></title>
      <link>https://pnpm.io/blog/releases/12.17.0</link>
      <guid>https://pnpm.io/blog/releases/12.17.0</guid>
      <pubDate>Fri, 30 Oct 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 12.17.0 adds pnpm peers check --global, dependency-group selectors and wildcards in overrides, and runtime, package manager, Cargo, and Python updates in pnpm outdated and pnpm update. It also fixes files that other users could not read in Docker images, and repeat installs that missed...]]></description>
      <content:encoded><![CDATA[<p>pnpm 12.17.0 adds <code>pnpm peers check --global</code>, dependency-group selectors and wildcards in <code>overrides</code>, and runtime, package manager, Cargo, and Python updates in <code>pnpm outdated</code> and <code>pnpm update</code>. It also fixes files that other users could not read in Docker images, and repeat installs that missed changes to local dependencies.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>
<p><code>pnpm peers check</code> now accepts <code>--global</code> (<code>-g</code>) to check globally installed packages. After a global install or update, the peer dependency warning now suggests <code>pnpm peers check -g</code> <a href="https://github.com/pnpm/pnpm/issues/17504">#17504</a>.</p>
</li>
<li>
<p><code>pnpm outdated</code> and <code>pnpm update</code> now inspect and update package manager and runtime versions in <code>devEngines.packageManager</code>, <code>packageManager</code>, <code>devEngines.runtime</code>, <code>engines.runtime</code>, and <code>runtime:</code> dependencies. With <code>cargo.enabled</code> or <code>python.enabled</code>, <code>pnpm outdated</code> and <code>pnpm update</code> also inspect and update Cargo dependencies in <code>Cargo.toml</code> and <code>Cargo.lock</code> and Python dependencies in <code>pyproject.toml</code> and <code>pylock.toml</code>.</p>
</li>
<li>
<p><code>overrides</code> selectors now support <code>:prod</code>, <code>:optional</code>, and <code>:peer</code> pseudo-selectors that target a single dependency group. They also support <code>*</code> wildcard patterns on parent and target package names. An override with a non-range value, such as <code>npm:</code> or <code>file:</code>, no longer adds a peer dependency to <code>dependencies</code>. Removing an optional dependency with <code>"-"</code> now also removes the duplicate entry from <code>dependencies</code> <a href="https://github.com/pnpm/pnpm/issues/5391">#5391</a>.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p>Files that pnpm creates in a project now get the permissions the umask gives any new file, such as <code>0644</code>. Before, several of them were readable only by the user who ran pnpm, which broke Docker images that run as a different user <a href="https://github.com/orgs/pnpm/discussions/17435">#17435</a>.</p>
<p>The fix applies to:</p>
<ul>
<li><code>node_modules/.pnpm-workspace-state-v1.json</code>. A different user running <code>pnpm run</code> reinstalled the dependencies because it could not read this file.</li>
<li><code>pnpm-workspace.yaml</code></li>
<li>the files written by <code>pnpm deploy</code></li>
<li>patch files from <code>pnpm patch-commit</code></li>
<li>the lockfile restored by <code>pnpm dedupe --check</code></li>
<li>the Cargo and Python files that pnpm writes</li>
</ul>
<p>When pnpm edits an existing file, the file keeps its permissions.</p>
</li>
<li>
<p><code>pnpm install</code> no longer writes broken dependency links when the project's <code>node_modules</code> is a symlink to another directory, such as another project's <code>node_modules</code>. The install reported success, but the links it wrote did not resolve <a href="https://github.com/pnpm/pnpm/issues/17448">#17448</a>.</p>
</li>
<li>
<p>Commands installed with <code>pnpm add --global</code> now find the dependencies that pnpm hoists for their package. A package that loads a dependency it does not declare, such as a native addon's platform-specific package, failed with "Cannot find module". Reinstall such a package with <code>pnpm add --global</code> to update its existing command <a href="https://github.com/pnpm/pnpm/issues/17503">#17503</a>.</p>
</li>
<li>
<p>When pnpm switches to the version a project pins, it now installs that version's native binary for the current host, even if the project's <code>supportedArchitectures</code> excludes the host. Before, pnpm could not use the pinned version and kept running the installed one. pnpm also repairs a pinned version that an earlier install left without the host's binary.</p>
</li>
<li>
<p>With the global virtual store, a change to a dependency of one package in a dependency cycle now gives every package in that cycle a new directory. Before, the other packages kept their directories and still linked the old copy of the changed package, so the project could load two copies of it <a href="https://github.com/pnpm/pnpm/issues/17466">#17466</a>.</p>
<p>Packages in a dependency cycle, and packages that depend on one, move to new global virtual store directories once after this update. Those that run a build miss the side-effects cache once.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code>, when two workspace projects need the same package version and it cannot be hoisted to the root, each project now keeps the copy installed in its own <code>node_modules</code>. Build scripts run in each of these copies. Before, the second project's copy was replaced with a symlink to the first project's, so every repeat install imported it again <a href="https://github.com/pnpm/pnpm/issues/17498">#17498</a>.</p>
</li>
<li>
<p>The Node.js <code>latest</code> selector now chooses the newest stable release <a href="https://github.com/pnpm/pnpm/issues/17490">#17490</a>.</p>
</li>
<li>
<p>Hardlinking from the store now stats each store file once per install. Since pnpm 12.8.0, a store file was stat'ed again for every package that links it. On an offline install of a large workspace, that added up to 15% system CPU <a href="https://github.com/pnpm/pnpm/issues/17500">#17500</a>.</p>
</li>
</ul>
<h3 id="repeat-installs-and-local-dependencies">Repeat installs and local dependencies<a class="hash-link" href="#repeat-installs-and-local-dependencies" aria-label="Direct link to Repeat installs and local dependencies">#</a></h3>
<ul>
<li>
<p><code>pnpm install --frozen-lockfile</code> no longer reports an outdated lockfile right after the install that wrote it. This happened when a pnpmfile <code>readPackage</code> hook or <code>packageExtensions</code> changed the dependencies or peer dependencies of a local directory dependency outside the workspace projects. It affected a <code>file:</code> dependency, an injected <code>workspace:../dir</code> dependency outside the workspace patterns, and an injected workspace package left out by <code>--filter</code> <a href="https://github.com/pnpm/pnpm/issues/17447">#17447</a> <a href="https://github.com/pnpm/pnpm/issues/17473">#17473</a>.</p>
<p>A repeat <code>pnpm install</code> now takes the fast path when <code>ignoredOptionalDependencies</code> removes an optional dependency of a <code>file:</code> directory dependency. It used to resolve again on every run.</p>
</li>
<li>
<p><code>pnpm install</code> now resolves again after an edit to an injected <code>workspace:../dir</code> dependency outside the workspace patterns under a shared lockfile. It used to keep the lockfile unchanged. The next <code>pnpm install --frozen-lockfile</code> then failed <a href="https://github.com/pnpm/pnpm/issues/17476">#17476</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now resolves a local directory again after its <code>package.json</code> changes when an override or a package extension adds it to the dependencies of a registry package. <code>pnpm install --frozen-lockfile</code> fails on a lockfile that still records the old dependencies of such a directory <a href="https://github.com/pnpm/pnpm/issues/17486">#17486</a>.</p>
</li>
<li>
<p>With <code>injectWorkspacePackages</code> and per-project lockfiles, <code>pnpm install</code> now updates a project's lockfile when a local tarball that an injected workspace project depends on is replaced. The project's lockfile kept the old version and integrity before.</p>
</li>
<li>
<p><code>pnpm install</code> now detects a change to a local tarball or directory that only a pnpmfile <code>readPackage</code> hook depends on. A repeat install reported "Already up to date" and kept the old contents before <a href="https://github.com/pnpm/tasks/issues/227">pnpm/tasks#227</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now relinks a <code>workspace:</code> or <code>link:</code> dependency whose link was deleted from <code>node_modules</code>. It used to report "Already up to date" and leave the link missing <a href="https://github.com/pnpm/pnpm/issues/17485">#17485</a>.</p>
</li>
<li>
<p>A repeat <code>pnpm install</code> reports "Already up to date" again when a pnpmfile <code>readPackage</code> hook changes the dependencies of a workspace project. Since 12.15.0, every such install ran in full <a href="https://github.com/pnpm/pnpm/issues/17468">#17468</a>.</p>
<p>After an edit to a project's <code>package.json</code>, <code>pnpm install</code> and <code>verifyDepsBeforeRun</code> now run the pnpmfile's <code>readPackage</code> hook on the edited manifest before comparing it with the lockfile. They could report the project up to date when the hook rewrote the edited dependency to a specifier the lockfile did not record.</p>
</li>
</ul>
<h3 id="adding-and-updating-dependencies">Adding and updating dependencies<a class="hash-link" href="#adding-and-updating-dependencies" aria-label="Direct link to Adding and updating dependencies">#</a></h3>
<ul>
<li>
<p><code>pnpm update --latest</code> with package selectors now updates the dependencies of the selected packages within their declared ranges. Excluded packages and their dependencies keep their locked versions <a href="https://github.com/pnpm/pnpm/issues/17444">#17444</a>.</p>
</li>
<li>
<p><code>pnpm add &#x3C;pkg>@&#x3C;tag></code> now uses a catalog entry set to that same dist-tag. The dependency is saved as <code>catalog:</code> and the entry stays as written <a href="https://github.com/pnpm/tasks/issues/225">pnpm/tasks#225</a>.</p>
<p>When <code>pnpm add</code> adds a new dist-tag such as <code>vue@legacy</code> to a catalog, the catalog entry records the exact version the tag points to. The same applies to a dependency added without a version when the <code>tag</code> setting names a dist-tag other than <code>latest</code>.</p>
</li>
<li>
<p><code>pnpm add</code> now saves the resolved version range of an npm alias. For example, <code>pnpm add v2@npm:vue</code> and <code>pnpm add v2@npm:vue@^3.0.0</code> both save <code>npm:vue@^3.5.13</code>.</p>
</li>
</ul>
<h3 id="running-scripts-and-commands">Running scripts and commands<a class="hash-link" href="#running-scripts-and-commands" aria-label="Direct link to Running scripts and commands">#</a></h3>
<ul>
<li>
<p>Programs that a script or <code>pnpm exec</code> command leaves running, such as a browser opened by the <code>open</code> package, now outlive pnpm exactly when they would outlive the command run without pnpm. Before, on Windows, a failed command, <code>Ctrl+C</code>, or a closed terminal ended all of them. pnpm still ends them when it is killed or crashes.</p>
<p>When a recursive or parallel run bails, the scripts still running now receive <code>SIGTERM</code> on Unix and are killed only if they are still running two seconds later. On Windows, everything those scripts started is ended, including detached processes whose parent has already exited. Before, a bail killed them at once <a href="https://github.com/pnpm/pnpm/issues/17465">#17465</a>.</p>
</li>
<li>
<p>On Windows, the shell shim of a <code>.cmd</code> or <code>.bat</code> bin now runs it under Git Bash when MSYS argument conversion is off, such as with <code>MSYS_NO_PATHCONV=1</code> or <code>MSYS2_ARG_CONV_EXCL='*'</code>. The shim used to start an interactive cmd.exe prompt <a href="https://github.com/pnpm/pnpm/issues/17480">#17480</a>.</p>
</li>
<li>
<p><code>pnx</code> and <code>pnpm create</code> now run the command in the directory selected by <code>--dir</code> or <code>--workspace-root</code>. Without either flag, the command still runs in the directory pnpm was started in.</p>
</li>
<li>
<p><code>pnpm --env-file</code> now reads files the way <code>node --env-file</code> does. Values are taken as written, so <code>$VAR</code> is no longer expanded and Windows paths such as <code>C:\Users\me</code> load unchanged. A file is no longer rejected for its contents.</p>
</li>
</ul>
<h3 id="settings-and-messages">Settings and messages<a class="hash-link" href="#settings-and-messages" aria-label="Direct link to Settings and messages">#</a></h3>
<ul>
<li>
<p><code>pnpm version</code> no longer creates a git commit and tag when <code>gitTagVersion</code> is set to <code>false</code> <a href="https://github.com/pnpm/pnpm/issues/17460">#17460</a>.</p>
</li>
<li>
<p><code>pnpm publish</code> now reads the <code>publishBranch</code> setting from <code>pnpm-workspace.yaml</code> and from <code>PNPM_CONFIG_PUBLISH_BRANCH</code>. The <code>--publish-branch</code> flag overrides it.</p>
</li>
<li>
<p><code>pnpm</code> now accepts <code>--strict-ssl</code> and <code>--local-address &#x3C;ip></code> on the command line.</p>
</li>
<li>
<p><code>pnpm doctor</code> uses a 15-second timeout when checking registry connectivity.</p>
</li>
<li>
<p><code>pnpm-workspace.yaml</code> parse errors now report <code>ERR_PNPM_INVALID_SETTING</code>.</p>
</li>
<li>
<p>The error for a dependency with an invalid name in a project's manifest now names the project's directory. It used to say only "The current package", which did not tell which workspace project to fix <a href="https://github.com/pnpm/pnpm/issues/17475">#17475</a>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 11.28.10]]></title>
      <link>https://pnpm.io/blog/releases/11.28.10</link>
      <guid>https://pnpm.io/blog/releases/11.28.10</guid>
      <pubDate>Fri, 30 Oct 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[pnpm 11.28.10 stops pnpm store prune from deleting other stores when cacheDir points to their parent directory. It also fixes globally installed commands that load hoisted dependencies, and repeat installs that missed changes to local dependencies.]]></description>
      <content:encoded><![CDATA[<p>pnpm 11.28.10 stops <code>pnpm store prune</code> from deleting other stores when <code>cacheDir</code> points to their parent directory. It also fixes globally installed commands that load hoisted dependencies, and repeat installs that missed changes to local dependencies.</p>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p><code>pnpm store prune</code> preserves other stores and global package data when <code>cacheDir</code> points to their parent directory.</p>
</li>
<li>
<p>Commands installed with <code>pnpm add --global</code> now find the dependencies that pnpm hoists for their package. A package that loads a dependency it does not declare, such as a native addon's platform-specific package, failed with "Cannot find module". Reinstall such a package with <code>pnpm add --global</code> to update its existing command <a href="https://github.com/pnpm/pnpm/issues/17503">#17503</a>.</p>
</li>
<li>
<p><code>pnpm prune --prod</code> no longer fails with <code>ERR_PNPM_EXDEV</code> when <code>node_modules</code> was copied from an earlier Docker build stage <a href="https://github.com/pnpm/pnpm/issues/17424">#17424</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now retries a Node.js runtime zip download when the connection drops partway through. A download that still fails names its URL. Before, a single dropped connection ended the install with <code>terminated</code> <a href="https://github.com/pnpm/pnpm/issues/17411">#17411</a>.</p>
</li>
<li>
<p>With the global virtual store, a change to a dependency of one package in a dependency cycle now gives every package in that cycle a new directory. Before, the other packages kept their directories and still linked the old copy of the changed package, so the project could load two copies of it <a href="https://github.com/pnpm/pnpm/issues/17466">#17466</a>.</p>
<p>Packages in a dependency cycle, and packages that depend on one, move to new global virtual store directories once after this update. Those that run a build miss the side-effects cache once.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm rebuild</code> now refresh privately hoisted <code>.bin</code> shims in <code>node_modules/.pnpm/node_modules/.bin</code> after a dependency build replaces a script target with a native executable <a href="https://github.com/pnpm/pnpm/issues/17402">#17402</a>.</p>
</li>
<li>
<p>The Node.js <code>latest</code> selector now chooses the newest stable release <a href="https://github.com/pnpm/pnpm/issues/17490">#17490</a>.</p>
</li>
<li>
<p>The standalone <code>@pnpm/exe</code> builds now embed Node.js 26.13.0.</p>
</li>
</ul>
<h3 id="repeat-installs-and-lockfiles">Repeat installs and lockfiles<a class="hash-link" href="#repeat-installs-and-lockfiles" aria-label="Direct link to Repeat installs and lockfiles">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> now resolves a local directory again after its <code>package.json</code> changes when an override or a package extension adds it to the dependencies of a registry package. <code>pnpm install --frozen-lockfile</code> fails on a lockfile that still records the old dependencies of such a directory <a href="https://github.com/pnpm/pnpm/issues/17486">#17486</a>.</p>
</li>
<li>
<p>With <code>injectWorkspacePackages</code> and per-project lockfiles, <code>pnpm install</code> now updates a project's lockfile when a local tarball that an injected workspace project depends on is replaced. The project's lockfile kept the old version and integrity before.</p>
</li>
<li>
<p><code>pnpm install</code> now detects a change to a local tarball or directory that only a pnpmfile <code>readPackage</code> hook depends on. A repeat install reported "Already up to date" and kept the old contents before <a href="https://github.com/pnpm/tasks/issues/227">pnpm/tasks#227</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now relinks a <code>workspace:</code> or <code>link:</code> dependency whose link was deleted from <code>node_modules</code>. It used to report "Already up to date" and leave the link missing <a href="https://github.com/pnpm/pnpm/issues/17485">#17485</a>.</p>
</li>
<li>
<p>Merging git branch lockfiles now keeps a workspace project whose directory is named <code>__proto__</code>. It was dropped from the merged lockfile before <a href="https://github.com/pnpm/tasks/issues/59">pnpm/tasks#59</a>.</p>
</li>
</ul>
<h3 id="adding-and-publishing-packages">Adding and publishing packages<a class="hash-link" href="#adding-and-publishing-packages" aria-label="Direct link to Adding and publishing packages">#</a></h3>
<ul>
<li>
<p><code>pnpm add</code> no longer rewrites a catalog entry set to the dist-tag that the dependency resolves through. For example, an entry <code>beta</code> stays <code>beta</code> after <code>pnpm add foo@beta</code> or <code>pnpm add foo</code>. Before, the entry was replaced with the version the tag pointed to <a href="https://github.com/pnpm/tasks/issues/225">pnpm/tasks#225</a>.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now always include the binary file declared by a string <code>bin</code> field in <code>package.json</code>, even when <code>files</code> or <code>.npmignore</code> would otherwise exclude it.</p>
</li>
<li>
<p>When the version or range given to <code>pnpm unpublish</code> matches every published version, the error now says so and shows the same command with <code>--force</code>. It suggested running <code>pnpm unpublish &#x3C;pkg>@&#x3C;version></code>, the command that had just failed.</p>
</li>
</ul>
<h3 id="running-commands">Running commands<a class="hash-link" href="#running-commands" aria-label="Direct link to Running commands">#</a></h3>
<ul>
<li>
<p>Every command, including <code>pnpm --version</code>, <code>pnpm self-update</code>, and invocations with unknown flags, now applies the same <code>packageManager</code> and <code>devEngines.packageManager</code> settings when switching to the pinned pnpm version or recording it in <code>pnpm-lock.yaml</code>. <code>--config.&#x3C;key></code> flags and <code>lockfileDir</code> now reach the version switch and lockfile sync on every entry point. Unreadable settings in <code>pnpm-workspace.yaml</code> or the global <code>config.yaml</code> that do not affect the pin decision no longer block the version switch <a href="https://github.com/pnpm/tasks/issues/222">pnpm/tasks#222</a>.</p>
</li>
<li>
<p>On Windows, the shell shim of a <code>.cmd</code> or <code>.bat</code> bin now runs it under Git Bash when MSYS argument conversion is off, such as with <code>MSYS_NO_PATHCONV=1</code> or <code>MSYS2_ARG_CONV_EXCL='*'</code>. The shim used to start an interactive cmd.exe prompt <a href="https://github.com/pnpm/pnpm/issues/17480">#17480</a>.</p>
</li>
<li>
<p><code>pnx</code> and <code>pnpm create</code> now run the command in the directory selected by <code>--dir</code> or <code>--workspace-root</code>. Without either flag, the command still runs in the directory pnpm was started in.</p>
</li>
<li>
<p>The error for a dependency with an invalid name in a project's manifest now names the project's directory. It used to say only "The current package", which did not tell which workspace project to fix <a href="https://github.com/pnpm/pnpm/issues/17475">#17475</a>.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.16.1]]></title>
      <link>https://pnpm.io/blog/releases/12.16.1</link>
      <guid>https://pnpm.io/blog/releases/12.16.1</guid>
      <pubDate>Tue, 27 Oct 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[This release fixes pnpm install hanging on a cold store in workspaces that install Cargo crates, and pnpm pack shipping a file that files excludes by name.]]></description>
      <content:encoded><![CDATA[<p>This release fixes <code>pnpm install</code> hanging on a cold store in workspaces that install Cargo crates, and <code>pnpm pack</code> shipping a file that <code>files</code> excludes by name.</p>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<ul>
<li>
<p><code>pnpm install</code> no longer hangs on a cold store in a workspace that also installs Cargo crates or a Rust toolchain.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now apply a <code>files</code> entry that names a file after the glob and directory entries, as npm does. A file excluded by name, such as <code>!dist/index.js</code>, stays out even when a later <code>dist/**</code> matches it. A file named by its path, such as <code>lib/secret.js</code>, ships even when a later <code>!lib/*.js</code> matches it.</p>
</li>
<li>
<p><code>pnpm install</code> no longer leaves a broken symlink in an injected workspace dependency when the package links to a file outside its published files and pnpm imports by hardlink. Installing a git dependency now skips internal directory symlinks when importing its files into the store.</p>
</li>
<li>
<p><code>pnpm install</code> now relinks a command that a workspace project renames into the projects that depend on it when <code>sharedWorkspaceLockfile</code> is <code>false</code> <a href="https://github.com/pnpm/tasks/issues/224">pnpm/tasks#224</a>.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm rebuild</code> now refresh privately hoisted <code>.bin</code> shims in <code>node_modules/.pnpm/node_modules/.bin</code> after a dependency build replaces a script target with a native executable <a href="https://github.com/pnpm/pnpm/issues/17402">#17402</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now reads a package's manifest to decide its peer dependencies when it updates an existing lockfile, as it does when it resolves from scratch.</p>
</li>
<li>
<p>Commands, <code>pnpm --version</code>, <code>pnpm self-update</code>, and invocations with unknown flags now apply the same <code>packageManager</code> and <code>devEngines.packageManager</code> settings when switching to the pinned pnpm version or recording it in <code>pnpm-lock.yaml</code>. <code>--config.&#x3C;key></code> flags and <code>lockfileDir</code> now reach the version switch and lockfile sync on every entry point. Unreadable settings in <code>pnpm-workspace.yaml</code> or the global <code>config.yaml</code> that do not affect the pin decision no longer block the version switch <a href="https://github.com/pnpm/tasks/issues/222">pnpm/tasks#222</a>.</p>
</li>
<li>
<p>pnpm now accepts the <code>--cache-dir &#x3C;dir></code> flag, as in <code>pnpm install --cache-dir /tmp/pnpm-cache</code> <a href="https://github.com/pnpm/pnpm/issues/17422">#17422</a>.</p>
</li>
<li>
<p>When the version or range given to <code>pnpm unpublish</code> matches every published version, the error now says so and shows the same command with <code>--force</code>. Before, the error suggested running <code>pnpm unpublish &#x3C;pkg>@&#x3C;version></code>, the command that had just failed.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.16.0]]></title>
      <link>https://pnpm.io/blog/releases/12.16.0</link>
      <guid>https://pnpm.io/blog/releases/12.16.0</guid>
      <pubDate>Tue, 27 Oct 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[This release adds a global --env-file flag, updates to a symlinked pnpm-lock.yaml, and pnpm setup --no-modify-path. It also fixes two security issues, in zstd decompression and in signing.]]></description>
      <content:encoded><![CDATA[<p>This release adds a global <code>--env-file</code> flag, updates to a symlinked <code>pnpm-lock.yaml</code>, and <code>pnpm setup --no-modify-path</code>. It also fixes two security issues, in zstd decompression and in signing.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>
<p>Added a repeatable global <code>--env-file &#x3C;path></code> flag to load environment variables from dotenv-style files before running a command. Later files override earlier files, variables already in the environment are preserved, and loaded variables are visible to user-level <code>.npmrc</code> interpolation and lifecycle scripts <a href="https://github.com/pnpm/pnpm/issues/7111">#7111</a>.</p>
</li>
<li>
<p>pnpm can now update a <code>pnpm-lock.yaml</code> that is a symlink. List the directories the lockfile may link into in the <code>symlinkedLockfileTargetDirs</code> setting, in the global config or with <code>PNPM_CONFIG_SYMLINKED_LOCKFILE_TARGET_DIRS</code>. pnpm writes the update to the file the symlink points to if that file is inside one of these directories. The symlink stays in place. pnpm ignores this setting in <code>pnpm-workspace.yaml</code> <a href="https://github.com/pnpm/pnpm/issues/17222">#17222</a>.</p>
</li>
<li>
<p>Added a <code>--no-modify-path</code> option to <code>pnpm setup</code>. It installs pnpm without adding it to <code>PATH</code>, leaving the shell config file, the Windows registry, and the GitHub Actions environment files unchanged. <code>pnpm setup</code> then prints the lines to add yourself <a href="https://github.com/pnpm/get.pnpm.io/issues/37">get.pnpm.io#37</a>.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security">Security<a class="hash-link" href="#security" aria-label="Direct link to Security">#</a></h3>
<ul>
<li>
<p>Fixed memory exposure and allocation handling vulnerabilities when processing zstd-compressed data <a href="https://github.com/pnpm/pnpm/pull/17388">#17388</a>.</p>
</li>
<li>
<p>Signing in pnpm and pnpr no longer uses arithmetic that may leak the private key through timing. This covers shared artifacts, OCI registry tokens, and OIDC login state <a href="https://rustsec.org/advisories/RUSTSEC-2026-0387">advisory</a>.</p>
</li>
</ul>
<h3 id="installing-packages">Installing packages<a class="hash-link" href="#installing-packages" aria-label="Direct link to Installing packages">#</a></h3>
<ul>
<li>
<p>A dependency symlink that pnpm cannot point at the wanted target now fails the install with an error that names the link. This happens when the filesystem still serves the old link after pnpm removed it, as a <code>node_modules</code> served by a virtual filesystem does. pnpm used to remove the link again without end and crashed with a segmentation fault once the thread ran out of stack.</p>
</li>
<li>
<p>Concurrent workspace installs no longer lose store-index rows when initializing the shared SQLite index <a href="https://github.com/pnpm/pnpm/pull/17388">#17388</a>.</p>
</li>
<li>
<p>Agent skill links now keep the same target across installs when a package version is installed with several sets of peer dependencies. An install no longer fails with <code>ERR_PNPM_AGENT_SKILL_PATH_OCCUPIED</code> on a skill link that pnpm created for another of those copies <a href="https://github.com/pnpm/pnpm/issues/17319">#17319</a>.</p>
</li>
<li>
<p>pnpm now fails at once, without retrying, when a downloaded package archive contains a rejected entry path <a href="https://github.com/pnpm/pnpm/issues/17205">#17205</a>.</p>
</li>
<li>
<p>pnpm now builds a git-hosted dependency in every new location it links the dependency into, such as a new global virtual store slot or a fresh <code>node_modules</code>. When the side-effects cache holds the build output, pnpm restores it from there. Before, only the install that fetched the dependency built it. This also fixes dependencies that are already in the store <a href="https://github.com/pnpm/pnpm/issues/17224">#17224</a>.</p>
</li>
<li>
<p>Changes a <code>preResolution</code> hook makes to the lockfiles now take effect. The hook now also runs when pnpm installs from an up-to-date lockfile. An error thrown by the hook now fails the install.</p>
</li>
<li>
<p>A custom fetcher in the pnpmfile can now call <code>fetchers.directory</code> to fetch a package from a local directory. The call rejects with <code>ERR_PNPM_TARBALL_INTEGRITY</code> if the lockfile pins an archive integrity for the package. Previously, calling <code>fetchers.directory</code> failed with a <code>TypeError</code>.</p>
</li>
<li>
<p><code>packageImportMethod: copy</code> now also applies to packages that have lifecycle scripts or patches. On a filesystem that supports block cloning, such as ReFS or a Dev Drive on Windows, these packages were cloned <a href="https://github.com/pnpm/pnpm/issues/17195">#17195</a>.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code> and <code>autoInstallPeers: false</code>, a package that workspace projects use with different peer versions is now installed once per peer variant, so each project's copy resolves that project's peer <a href="https://github.com/pnpm/pnpm/issues/17395">#17395</a>.</p>
</li>
<li>
<p>Under <code>nodeLinker: hoisted</code>, <code>pnpm install</code> now leaves a patched package that is already in place alone. The same holds for a package whose peers include a patched package, such as every package peering on a patched <code>react-native</code> <a href="https://github.com/pnpm/pnpm/issues/17188">#17188</a>.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code>, an install that stops partway no longer leaves the next install trusting the packages it was replacing. Before, reverting the change that started the stopped install, such as a patch edit, kept the half-replaced package in <code>node_modules</code>.</p>
</li>
</ul>
<h3 id="repeat-installs-and-changed-settings">Repeat installs and changed settings<a class="hash-link" href="#repeat-installs-and-changed-settings" aria-label="Direct link to Repeat installs and changed settings">#</a></h3>
<ul>
<li>
<p>A repeat <code>pnpm install</code> now acts on a change to these settings. Before, it reported "Already up to date".</p>
<ul>
<li><code>storeDir</code> or <code>virtualStoreDir</code>: it recreates <code>node_modules</code>.</li>
<li><code>globalVirtualStoreDir</code>: it links the packages from the new directory.</li>
<li><code>virtualStoreDirMaxLength</code>: it renames the virtual store directories.</li>
<li><code>dangerouslyAllowAllBuilds</code> turned on: it runs the builds it skipped.</li>
<li><code>trustLockfile</code> turned off: it verifies the lockfile.</li>
</ul>
</li>
<li>
<p><code>pnpm add</code>, <code>pnpm remove</code>, and <code>pnpm update</code> now fail if <code>node_modules</code> does not match the current settings. Run <code>pnpm install</code> to recreate it. Previously, these commands removed and reinstalled <code>node_modules</code> without asking. They report:</p>
<ul>
<li><code>ERR_PNPM_UNEXPECTED_STORE</code> if <code>node_modules</code> was linked from a different store.</li>
<li><code>ERR_PNPM_UNEXPECTED_VIRTUAL_STORE</code> if it was linked from a different virtual store directory.</li>
<li><code>ERR_PNPM_MODULES_BREAKING_CHANGE</code> if it was installed by an incompatible pnpm version, or if <code>node_modules/.modules.yaml</code> cannot be read.</li>
<li><code>ERR_PNPM_NODE_LINKER_DIFF</code> if it was installed with a different <code>nodeLinker</code>.</li>
</ul>
<p><code>pnpm update</code> now also fails with <code>ERR_PNPM_HOIST_PATTERN_DIFF</code> and the other errors <code>pnpm add</code> reports for a changed hoist pattern or <code>virtualStoreDirMaxLength</code>.</p>
</li>
<li>
<p>An install filtered to some workspace projects now fails if <code>node_modules</code> was installed with a different <code>nodeLinker</code>, <code>hoistPattern</code>, <code>publicHoistPattern</code>, store, or virtual store. Before, it recreated <code>node_modules</code> and left the projects it skipped without their dependencies. A <code>pnpm install</code> of the whole workspace still recreates <code>node_modules</code> <a href="https://github.com/pnpm/tasks/issues/217">pnpm/tasks#217</a>.</p>
</li>
<li>
<p><code>pnpm install</code> and the <code>verifyDepsBeforeRun</code> check now notice an edited patch file when <code>sharedWorkspaceLockfile</code> is <code>false</code>.</p>
</li>
<li>
<p><code>pnpm install</code> now takes its fast path in a workspace with <code>patchedDependencies</code> when the previous install ran with another major version of pnpm.</p>
</li>
<li>
<p><code>pnpm install</code> now relinks the bins of a workspace package when its <code>bin</code> field changes, including with <code>--frozen-lockfile</code> and an unchanged lockfile. A filtered install relinks them in the selected projects, and the next install that covers the remaining projects relinks them there <a href="https://github.com/pnpm/pnpm/issues/17324">#17324</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now removes command shims from <code>node_modules/.bin</code> when a workspace dependency renames or removes an entry from its <code>bin</code> field <a href="https://github.com/pnpm/tasks/issues/211">pnpm/tasks#211</a>.</p>
</li>
</ul>
<h3 id="resolving-dependencies-and-the-lockfile">Resolving dependencies and the lockfile<a class="hash-link" href="#resolving-dependencies-and-the-lockfile" aria-label="Direct link to Resolving dependencies and the lockfile">#</a></h3>
<ul>
<li>
<p>A package that a plain range and a <code>&#x3C;prefix>:</code> specifier both resolve from one registry is now recorded once in <code>pnpm-lock.yaml</code> and installed once. The lockfile key names the registry a package resolved from. When that registry declares a prefix, through <code>prefix</code> in <code>registries</code> or through <code>namedRegistries</code>, the package is keyed <code>&#x3C;name>@&#x3C;prefix>:&#x3C;version></code> however its dependency was written: with the prefix, as a plain range its scope routes to that registry, or through the default registry. Before, the plain range was keyed <code>&#x3C;name>@&#x3C;version></code>, so one tarball was installed twice and <code>instanceof</code> checks and module singletons broke between the two copies. The same name and version served by two registries still get separate entries. When several prefixes declare one registry, its packages are keyed by the lexicographically smallest prefix.</p>
<p>If a scope you route reaches a registry that also declares a prefix, your next <code>pnpm install</code> re-keys those entries, which shows up as a lockfile diff. Commit it. <code>pnpm install --frozen-lockfile</code> installs the lockfile as recorded.</p>
</li>
<li>
<p><code>pnpm install</code> now resolves a scope's packages again when the scope is routed to another registry in <code>registries</code>. Before, the lockfile kept the versions and integrity resolved from the old registry, so the install failed when the new registry did not serve a locked version or served different content. pnpm records in the workspace state which registry each scope routed to, so a fresh clone without that record installs the lockfile as recorded. Changing the default registry resolves nothing again, and <code>pnpm install --frozen-lockfile</code> is unchanged.</p>
</li>
<li>
<p>When <code>autoDedupe</code> is off, a workspace project's dependencies now resolve from its own ranges, like they do with <code>sharedWorkspaceLockfile: false</code>. Previously, another project's narrower range could hold them back. For example, <code>ajv: "*"</code> now resolves to the latest Ajv even if another project depends on <code>ajv@^6</code>. Packages that a project lists in <code>peerDependencies</code> still follow the versions other projects use. <code>pnpm dedupe</code> and installs with <code>autoDedupe: true</code> still pick one version that satisfies every range. Set <code>autoDedupe: true</code> if CI runs <code>pnpm dedupe --check</code> <a href="https://github.com/pnpm/pnpm/issues/17235">#17235</a>.</p>
</li>
<li>
<p>An optional dependency written with a named-registry prefix, such as <code>work:^1.0.0</code>, now fails the install when it cannot be resolved but the lockfile already has a matching entry from that registry. Such a dependency was skipped, which removed its entries from the lockfile.</p>
</li>
<li>
<p>With <code>injectWorkspacePackages: true</code>, a <code>workspace:</code> dependency written as a relative path, such as <code>workspace:../lib-a</code>, in a workspace package now resolves from that package's directory <a href="https://github.com/pnpm/pnpm/issues/17284">#17284</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm install</code> failing with <code>ERR_PNPM_UNSUPPORTED_PROTOCOL</code> when a workspace package injected through a relative path, such as <code>workspace:../lib</code>, has <code>catalog:</code> dependencies. Their catalog entries now resolve the way they do for a package injected by name <a href="https://github.com/pnpm/pnpm/issues/17280">#17280</a>.</p>
</li>
<li>
<p><code>pnpm dedupe</code> now refreshes cached registry metadata while re-resolving locked versions <a href="https://github.com/pnpm/pnpm/issues/17208">#17208</a>.</p>
</li>
<li>
<p><code>pnpm dedupe --check</code> no longer fails when the only difference is a <code>deprecated</code> notice that the registry added or removed after the lockfile was written <a href="https://github.com/pnpm/pnpm/issues/17198">#17198</a>.</p>
</li>
<li>
<p>Installs delegated to a pnpr server now resolve every prefix declared for a registry URL. A dependency or lockfile entry that used the second of two prefixes for the same registry, such as <code>zeta:</code> next to <code>work:</code> in <code>namedRegistries</code>, failed on the server <a href="https://github.com/pnpm/tasks/issues/204">pnpm/tasks#204</a>.</p>
</li>
<li>
<p>Registry revisions are now addressed at <code>&#x3C;registry>/&#x3C;name>@&#x3C;version>+r&#x3C;revision></code> <a href="https://github.com/pnpm/tasks/issues/208">pnpm/tasks#208</a>.</p>
</li>
</ul>
<h3 id="adding-packages-and-global-packages">Adding packages and global packages<a class="hash-link" href="#adding-packages-and-global-packages" aria-label="Direct link to Adding packages and global packages">#</a></h3>
<ul>
<li>
<p><code>pnpm add &#x3C;pkg>@&#x3C;tag></code> and <code>pnpm add &#x3C;pkg>@&#x3C;range></code> now install the version the tag or range resolves to, even when the saved range allows a newer one <a href="https://github.com/pnpm/pnpm/issues/17234">#17234</a>.</p>
</li>
<li>
<p><code>pnpm add &#x3C;pkg></code> without a version now installs the version under the dist-tag set by the <code>tag</code> setting. An <code>npm:</code> alias or a <code>jsr:</code> dependency without a version resolves that tag too. The setting is read from <code>pnpm-workspace.yaml</code>, the global config, <code>PNPM_CONFIG_TAG</code>, and <code>--config.tag</code>, and defaults to <code>latest</code>.</p>
</li>
<li>
<p><code>pnpm add</code> now accepts the lowercase short options <code>-p</code>, <code>-d</code>, <code>-o</code>, and <code>-e</code> as aliases of <code>--save-prod</code>, <code>--save-dev</code>, <code>--save-optional</code>, and <code>--save-exact</code>.</p>
</li>
<li>
<p><code>pnpm -D install &#x3C;pkg></code> now saves the package to devDependencies. An <code>add</code> option such as <code>-D</code> or <code>-E</code> written before <code>install &#x3C;pkg></code> was rejected as an unexpected argument.</p>
</li>
<li>
<p><code>pnpm add -T</code> now reports that the short option is ambiguous and points to <code>--save-types</code> and <code>--tilde</code>.</p>
</li>
<li>
<p>Global packages installed with <code>pnpm add -g</code> are now linked from the global virtual store, so global packages that share dependencies share one copy. Set <code>virtualStoreType: project</code> to give each global install its own virtual store.</p>
</li>
<li>
<p><code>pnpm add -g</code> and the other <code>--global</code> commands now fail with <code>ERR_PNPM_CONFIG_CONFLICT_VIRTUAL_STORE_DIR_WITH_GLOBAL</code> when <code>--virtual-store-dir</code> is passed. A custom <code>--hoist-pattern</code> fails with <code>ERR_PNPM_CONFIG_CONFLICT_HOIST_PATTERN_WITH_GLOBAL</code>. Passing <code>--link-workspace-packages</code>, <code>--shared-workspace-lockfile</code>, or <code>--config.lockfile-dir</code> with <code>--global</code> also fails, with the matching <code>ERR_PNPM_CONFIG_CONFLICT_*_WITH_GLOBAL</code> code.</p>
</li>
</ul>
<h3 id="registries-proxies-and-login">Registries, proxies, and login<a class="hash-link" href="#registries-proxies-and-login" aria-label="Direct link to Registries, proxies, and login">#</a></h3>
<ul>
<li>
<p>pnpm now reads the <code>strictSsl</code> and <code>localAddress</code> settings from <code>pnpm-workspace.yaml</code>, the global <code>config.yaml</code>, <code>PNPM_CONFIG_*</code> environment variables, and <code>--config.*</code> options. This includes <code>pnpm self-update</code> and the download of the pnpm version pinned in <code>packageManager</code>. Before, pnpm read them only from <code>.npmrc</code> as <code>strict-ssl</code> and <code>local-address</code> and ignored the other sources <a href="https://github.com/pnpm/tasks/issues/201">pnpm/tasks#201</a>.</p>
</li>
<li>
<p>When Corepack runs pnpm and the native binary has to be downloaded, the download now uses the proxy from pnpm's config. That proxy comes from <code>PNPM_CONFIG_HTTPS_PROXY</code> and the matching variables, the global <code>config.yaml</code>, and the user <code>.npmrc</code>. Previously, the download read the proxy only from <code>HTTPS_PROXY</code>, <code>HTTP_PROXY</code>, and <code>NO_PROXY</code> <a href="https://github.com/pnpm/tasks/issues/215">pnpm/tasks#215</a>.</p>
</li>
<li>
<p>When the <code>pnpm</code> package downloads its native binary on first run, as it does under Corepack, it now trusts the CA certificates from the <code>ca</code>, <code>ca[]</code>, and <code>cafile</code> settings of <code>.npmrc</code>, including the ones scoped to the registry. A registry behind a private CA failed with <code>fetch failed</code> before, unless <code>NODE_EXTRA_CA_CERTS</code> named the CA. A project <code>.npmrc</code> is used only while the download is checked against npm's signature. Node.js versions that cannot add CA certificates after startup still need <code>NODE_EXTRA_CA_CERTS</code>.</p>
</li>
<li>
<p><code>pnpm login</code> saves the token in <code>&#x3C;pnpm config>/auth.ini</code> again. Since v12.1.0, an unscoped login had made its registry the default for every project that did not name a registry. A login now also removes the token an earlier login saved for that registry or scope under <code>_auth</code> in the global <code>config.yaml</code>. <code>pnpm login --scope</code> still routes the scope through the global <code>registries</code> setting.</p>
</li>
<li>
<p>pnpm no longer warns that a <code>registries</code> entry routed through the <code>@</code> scope matches no configured registry. pnpm applied such an entry and its options such as <code>serverType</code> while reporting it as ignored <a href="https://github.com/pnpm/tasks/issues/184">pnpm/tasks#184</a>.</p>
</li>
</ul>
<h3 id="running-scripts-and-other-commands">Running scripts and other commands<a class="hash-link" href="#running-scripts-and-other-commands" aria-label="Direct link to Running scripts and other commands">#</a></h3>
<ul>
<li>
<p><code>pnpm ci --lockfile</code> and <code>pnpm ci --config.lockfile=true</code> no longer delete <code>pnpm-lock.yaml</code>. <code>pnpm ci</code> now always keeps the lockfile and runs a frozen install from it.</p>
</li>
<li>
<p><code>pnpm deploy --legacy</code> now checks the workspace lockfile against <code>minimumReleaseAge</code> and the other resolution policies, as <code>pnpm install</code> does, and fails with <code>ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION</code> when a locked version is too new. It used to deploy an older version that is not in the lockfile without a warning <a href="https://github.com/pnpm/pnpm/issues/17209">#17209</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> now keeps a deployed symlink to a directory inside the project even if the directory is not among the deployed files, such as a link into <code>node_modules</code> <a href="https://github.com/pnpm/pnpm/issues/17288">#17288</a>.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now keep <code>pnpm.config</code> in the published <code>package.json</code>. They also always include the file <code>pnpm.config</code> points to in the tarball <a href="https://github.com/pnpm/pnpm/issues/17210">#17210</a>.</p>
</li>
<li>
<p><code>pnpm -r publish --batch</code> now sends <code>PUT /-/pnpr/v0/publish</code>, the batch publish endpoint that pnpr serves.</p>
</li>
<li>
<p><code>pnpm audit --ignore</code> and <code>pnpm audit --ignore-unfixable</code> now exit with a non-zero code when vulnerabilities at or above the audit level remain after ignoring. Before, these commands always exited with code 0.</p>
</li>
<li>
<p><code>pnpm audit --fix</code> and <code>pnpm audit --interactive</code> now fail with <code>ERR_PNPM_AUDIT_FIX_WITH_IGNORE</code> when combined with <code>--ignore</code> or <code>--ignore-unfixable</code>. Before, the fix ran and the ignore flags had no effect.</p>
</li>
<li>
<p><code>pnpm -r run &#x3C;script></code> now honors the <code>requiredScripts</code> setting from <code>pnpm-workspace.yaml</code>. If the script is listed there and a selected project does not define it, the run fails with <code>ERR_PNPM_RECURSIVE_RUN_NO_SCRIPT</code> and names the projects that lack it.</p>
</li>
<li>
<p><code>pnpm run</code> and <code>pnpm exec</code> no longer report the dependencies as out of date after a lockfile change when <code>dedupePeers</code> is <code>true</code> <a href="https://github.com/pnpm/pnpm/issues/17322">#17322</a>.</p>
</li>
<li>
<p>On macOS, killing pnpm while it runs scripts in several projects at once now ends every one of those scripts. Before, a script could keep running after pnpm died.</p>
</li>
<li>
<p><code>pnpm run</code>, <code>pnpm exec</code>, and <code>pnpm dlx</code> no longer dump a core file for <code>pnpm</code> itself when a command they started dies from a signal <a href="https://github.com/pnpm/pnpm/issues/17204">#17204</a>.</p>
</li>
<li>
<p>The <code>runtime</code> setting is now read. Setting <code>runtime: false</code> in <code>pnpm-workspace.yaml</code>, <code>pnpm_config_runtime=false</code>, or <code>--config.runtime=false</code> stops <code>pnpm install</code>, <code>pnpm add</code>, <code>pnpm dedupe</code>, and the other installing commands from installing the runtimes in <code>devEngines.runtime</code> and <code>engines.runtime</code>. <code>pnpm dedupe</code> now also accepts <code>--no-runtime</code>.</p>
</li>
<li>
<p>Directory selectors with <code>legacyDirFiltering: true</code> now include the project in the named directory along with its descendants. Excluding a directory also excludes that project <a href="https://github.com/pnpm/tasks/issues/196">pnpm/tasks#196</a>.</p>
</li>
<li>
<p><code>pnpm help --all</code> and <code>pnpm help -a</code> now print the full list of commands. They used to fail with an "unrecognized subcommand" error.</p>
</li>
<li>
<p>Reading the file-creation mask on Linux no longer sets it. pnpm had to replace the mask to learn what it was, and a file another thread created in the window between the two calls was created unmasked.</p>
</li>
<li>
<p>pnpm now passes an interrupt on to the handler it replaced, with the arguments that handler expects. A handler that asked for the signal's details was called without them. Only a program that embeds pnpm and installs its own <code>SIGINT</code>, <code>SIGTERM</code> or <code>SIGHUP</code> handler was affected.</p>
</li>
</ul>
<h3 id="store">Store<a class="hash-link" href="#store" aria-label="Direct link to Store">#</a></h3>
<ul>
<li>
<p><code>pnpm store prune</code> now keeps the packages that a project still uses when pnpm copied or cloned them into <code>node_modules</code>. These include patched packages, built packages, and every package installed with <code>packageImportMethod: copy</code>. Before, the prune removed them, and the next install downloaded them again <a href="https://github.com/pnpm/pnpm/issues/7192">#7192</a>.</p>
</li>
<li>
<p><code>pnpm store prune</code> now keeps the packages of a project when the store path reaches its directory through a symlink. Previously, prune dropped such a project from its list and removed the packages only that project used from the global virtual store.</p>
</li>
<li>
<p><code>pnpm store prune</code> now removes the package metadata cache, the <code>metadata*</code> directories in the cache directory. This clears the outdated integrity checksums that cause <code>ERR_PNPM_TARBALL_INTEGRITY</code> when a registry republishes a version.</p>
</li>
</ul>
<h3 id="speed">Speed<a class="hash-link" href="#speed" aria-label="Direct link to Speed">#</a></h3>
<ul>
<li>
<p><code>pnpm install</code> resolves dependencies faster in large workspaces on Linux, macOS, and Windows on x64 and arm64.</p>
</li>
<li>
<p>Sped up cold installs and <code>pnpm fetch</code> on macOS. pnpm now links downloaded packages into the virtual store on a separate thread, so a slow link pass no longer pauses the downloads that are still in flight <a href="https://github.com/pnpm/pnpm/issues/17271">#17271</a>.</p>
</li>
<li>
<p>Sped up installs that add new projects to a workspace with a peer-heavy lockfile. pnpm now reads the lockfile's locked peer versions once for all new projects <a href="https://github.com/pnpm/pnpm/issues/17311">#17311</a>.</p>
</li>
<li>
<p>Warm installs no longer read the <code>package.json</code> of every git-hosted dependency. pnpm now stores the manifest of a git-hosted package in the store index when it fetches the package.</p>
</li>
<li>
<p><code>pnpm update --depth &#x3C;n></code> with a large <code>n</code>, such as the <code>--depth=9999</code> that <code>update-browserslist-db</code> runs, now finishes as fast as <code>--depth Infinity</code>. It used memory and stack in proportion to <code>n</code> on lockfiles with dependency cycles, and could run out of memory or crash <a href="https://github.com/pnpm/pnpm/issues/17329">#17329</a>.</p>
</li>
</ul>
<h3 id="output-and-warnings">Output and warnings<a class="hash-link" href="#output-and-warnings" aria-label="Direct link to Output and warnings">#</a></h3>
<ul>
<li>
<p>Output that fills the terminal, such as <code>pnpm run --stream</code> script output, is now written once. Before, every new line also rewrote all the lines already on screen <a href="https://github.com/pnpm/pnpm/issues/17387">#17387</a>.</p>
</li>
<li>
<p>pnpm now warns when a pnpmfile defines the <code>importPackage</code> hook. pnpm does not run this hook. Use the <code>packageImportMethod</code> setting to choose how packages are written to <code>node_modules</code>.</p>
</li>
<li>
<p><code>pnpm</code> now warns when a project's <code>pnpm-workspace.yaml</code> sets <code>ci</code>, <code>globalShims</code>, or <code>tools</code>, and names where to set them instead. These settings were already ignored there without a warning. <code>pnpm config set</code> also refuses to write them to a project's <code>pnpm-workspace.yaml</code>.</p>
</li>
<li>
<p>pnpm no longer documents the <code>scriptsPrependNodePath</code> setting, which has no effect. A <code>pnpm-workspace.yaml</code> that sets it still loads.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 11.28.9]]></title>
      <link>https://pnpm.io/blog/releases/11.28.9</link>
      <guid>https://pnpm.io/blog/releases/11.28.9</guid>
      <pubDate>Tue, 27 Oct 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[This release fixes a crash on registry responses with too many content encodings (GHSA-xjj6-f33q-929c) and sizes the install worker pool by the container's CPU quota. A repeat pnpm install now acts on more setting changes.]]></description>
      <content:encoded><![CDATA[<p>This release fixes a crash on registry responses with too many content encodings (<a href="https://github.com/advisories/GHSA-xjj6-f33q-929c">GHSA-xjj6-f33q-929c</a>) and sizes the install worker pool by the container's CPU quota. A repeat <code>pnpm install</code> now acts on more setting changes.</p>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="crashes-and-security">Crashes and security<a class="hash-link" href="#crashes-and-security" aria-label="Direct link to Crashes and security">#</a></h3>
<ul>
<li>
<p>A registry response with too many content encodings can no longer crash pnpm. pnpm now uses undici 7.30.1, which fixes <a href="https://github.com/advisories/GHSA-xjj6-f33q-929c">GHSA-xjj6-f33q-929c</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now sizes its worker pool by the CPU quota of the container it runs in, such as a Kubernetes CPU limit, when that quota is smaller than the number of CPUs the container may run on. The default <code>workspaceConcurrency</code> respects the quota the same way. On a CI runner with a 4-CPU quota and hundreds of host CPUs, pnpm started hundreds of workers and ran out of memory <a href="https://github.com/pnpm/pnpm/issues/17382">#17382</a>.</p>
</li>
</ul>
<h3 id="repeat-installs-and-changed-settings">Repeat installs and changed settings<a class="hash-link" href="#repeat-installs-and-changed-settings" aria-label="Direct link to Repeat installs and changed settings">#</a></h3>
<ul>
<li>
<p>A repeat <code>pnpm install</code> now acts on a change to these settings. Before, it reported "Already up to date".</p>
<ul>
<li><code>storeDir</code> or <code>virtualStoreDir</code>: it recreates <code>node_modules</code>.</li>
<li><code>virtualStoreDirMaxLength</code>: it renames the virtual store directories.</li>
<li><code>dangerouslyAllowAllBuilds</code> turned on: it runs the builds it skipped.</li>
<li><code>trustLockfile</code> turned off: it verifies the lockfile.</li>
</ul>
</li>
<li>
<p><code>pnpm add</code>, <code>pnpm remove</code>, and <code>pnpm update</code> now fail when the <code>node-linker</code> setting differs from the one recorded in <code>node_modules</code>. A <code>pnpm install</code> of the whole workspace recreates <code>node_modules</code> with the new <code>node-linker</code>, and an install filtered to some projects fails <a href="https://github.com/pnpm/tasks/issues/203">pnpm/tasks#203</a>.</p>
</li>
<li>
<p>An install filtered to some workspace projects now fails if <code>node_modules</code> was installed with a different <code>nodeLinker</code>, <code>hoistPattern</code>, <code>publicHoistPattern</code>, store, or virtual store. Before, it recreated <code>node_modules</code> and left the projects it skipped without their dependencies. A <code>pnpm install</code> of the whole workspace still recreates <code>node_modules</code> <a href="https://github.com/pnpm/tasks/issues/217">pnpm/tasks#217</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now takes its fast path in a workspace with <code>patchedDependencies</code> when the previous install ran with another major version of pnpm.</p>
</li>
<li>
<p><code>pnpm install</code> now relinks the bins of a workspace package when its <code>bin</code> field changes, including with <code>--frozen-lockfile</code> and an unchanged lockfile. A filtered install relinks them in the selected projects, and the next install that covers the remaining projects relinks them there <a href="https://github.com/pnpm/pnpm/issues/17324">#17324</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now removes command shims from <code>node_modules/.bin</code> when a workspace dependency renames or removes an entry from its <code>bin</code> field <a href="https://github.com/pnpm/tasks/issues/211">pnpm/tasks#211</a>.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code>, an install that stops partway no longer leaves the next install trusting the packages it was replacing. Before, reverting the change that started the stopped install, such as a patch edit, kept the half-replaced package in <code>node_modules</code>.</p>
</li>
<li>
<p><code>pnpm run</code> and <code>pnpm exec</code> no longer report the dependencies as out of date after a lockfile change when <code>dedupePeers</code> is <code>true</code> <a href="https://github.com/pnpm/pnpm/issues/17322">#17322</a>.</p>
</li>
</ul>
<h3 id="resolving-dependencies-and-the-lockfile">Resolving dependencies and the lockfile<a class="hash-link" href="#resolving-dependencies-and-the-lockfile" aria-label="Direct link to Resolving dependencies and the lockfile">#</a></h3>
<ul>
<li>
<p>A package that a plain range and a <code>&#x3C;prefix>:</code> specifier both resolve from one registry is now recorded once in <code>pnpm-lock.yaml</code> and installed once. The lockfile key names the registry a package resolved from. When that registry declares a prefix, through <code>prefix</code> in <code>registries</code> or through <code>namedRegistries</code>, the package is keyed <code>&#x3C;name>@&#x3C;prefix>:&#x3C;version></code> however its dependency was written: with the prefix, as a plain range its scope routes to that registry, or through the default registry. Before, the plain range was keyed <code>&#x3C;name>@&#x3C;version></code>, so one tarball was installed twice and <code>instanceof</code> checks and module singletons broke between the two copies. The same name and version served by two registries still get separate entries. When several prefixes declare one registry, its packages are keyed by the lexicographically smallest prefix.</p>
<p>If a scope you route reaches a registry that also declares a prefix, your next <code>pnpm install</code> re-keys those entries, which shows up as a lockfile diff. Commit it. <code>pnpm install --frozen-lockfile</code> installs the lockfile as recorded.</p>
</li>
<li>
<p><code>pnpm install</code> now resolves a scope's packages again when the scope is routed to another registry in <code>registries</code>. Before, the lockfile kept the versions and integrity resolved from the old registry, so the install failed when the new registry did not serve a locked version or served different content. pnpm records in the workspace state which registry each scope routed to, so a fresh clone without that record installs the lockfile as recorded. Changing the default registry resolves nothing again, and <code>pnpm install --frozen-lockfile</code> is unchanged.</p>
</li>
<li>
<p>An optional dependency written with a named-registry prefix, such as <code>work:^1.0.0</code>, now fails the install when it cannot be resolved but the lockfile already has a matching entry from that registry. Such a dependency was skipped, which removed its entries from the lockfile.</p>
</li>
<li>
<p>With <code>injectWorkspacePackages: true</code>, a <code>workspace:</code> dependency written as a relative path, such as <code>workspace:../lib-a</code>, in a workspace package now resolves from that package's directory <a href="https://github.com/pnpm/pnpm/issues/17284">#17284</a>.</p>
</li>
<li>
<p>Fixed <code>pnpm install</code> failing with <code>ERR_PNPM_UNSUPPORTED_PROTOCOL</code> when a workspace package injected through a relative path, such as <code>workspace:../lib</code>, has <code>catalog:</code> dependencies. Their catalog entries now resolve the way they do for a package injected by name <a href="https://github.com/pnpm/pnpm/issues/17280">#17280</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now applies the <code>serverType</code> registry setting when it updates the lockfile for an override or catalog change without a full resolution. pnpm wrote the tarball URLs of a declared registry into the lockfile in that case.</p>
</li>
<li>
<p>Added the <code>pnpr</code> value to the <code>serverType</code> registry setting. pnpm leaves the tarball URLs of a pnpr registry out of <code>pnpm-lock.yaml</code>.</p>
</li>
<li>
<p>A <code>registries</code> entry whose <code>prefix</code> is <code>__proto__</code> is no longer ignored.</p>
</li>
<li>
<p>Installs delegated to a pnpr server now resolve every prefix declared for a registry URL. A dependency or lockfile entry that used the second of two prefixes for the same registry, such as <code>zeta:</code> next to <code>work:</code> in <code>namedRegistries</code>, failed on the server <a href="https://github.com/pnpm/tasks/issues/204">pnpm/tasks#204</a>.</p>
</li>
</ul>
<h3 id="registries-proxies-and-downloading-pnpm">Registries, proxies, and downloading pnpm<a class="hash-link" href="#registries-proxies-and-downloading-pnpm" aria-label="Direct link to Registries, proxies, and downloading pnpm">#</a></h3>
<ul>
<li>
<p>The proxy settings <code>httpProxy</code>, <code>httpsProxy</code>, <code>noProxy</code>, <code>proxy</code>, and <code>noproxy</code> set in the global <code>config.yaml</code>, through <code>PNPM_CONFIG_HTTPS_PROXY</code> and the matching variables, or as <code>--config.httpsProxy</code> on the command line now apply to <code>pnpm self-update</code> and to the download of the pnpm version pinned in <code>packageManager</code>. Previously, these requests read the proxy only from <code>.npmrc</code> and the <code>HTTPS_PROXY</code> family of variables <a href="https://github.com/pnpm/tasks/issues/215">pnpm/tasks#215</a>.</p>
</li>
<li>
<p>When <code>https-proxy</code> is <code>false</code>, pnpm now downloads the pnpm version pinned by <code>packageManager</code> through the legacy <code>proxy</code> setting, as installs already do. Setting <code>proxy</code> to <code>false</code> now also stops that download from using the <code>HTTP_PROXY</code> environment variable. The signature check of the pinned pnpm now uses the same proxy and TLS settings as its download <a href="https://github.com/pnpm/tasks/issues/193">pnpm/tasks#193</a>.</p>
</li>
<li>
<p><code>strictSsl</code> and <code>localAddress</code> set in the global <code>config.yaml</code>, through <code>PNPM_CONFIG_STRICT_SSL</code> and <code>PNPM_CONFIG_LOCAL_ADDRESS</code>, or on the command line now apply to <code>pnpm self-update</code> and to the download of the pnpm version pinned in <code>packageManager</code>. These requests read them from <code>.npmrc</code> only before. <code>--config.localAddress</code> now reaches them in the camelCase spelling too <a href="https://github.com/pnpm/tasks/issues/201">pnpm/tasks#201</a>.</p>
</li>
</ul>
<h3 id="commands">Commands<a class="hash-link" href="#commands" aria-label="Direct link to Commands">#</a></h3>
<ul>
<li>
<p><code>pnpm audit --ignore</code> and <code>pnpm audit --ignore-unfixable</code> now exit with a non-zero code when vulnerabilities at or above the audit level remain after ignoring. Before, these commands always exited with code 0.</p>
</li>
<li>
<p><code>pnpm audit --fix</code> and <code>pnpm audit --interactive</code> now fail with <code>ERR_PNPM_AUDIT_FIX_WITH_IGNORE</code> when combined with <code>--ignore</code> or <code>--ignore-unfixable</code>. Before, the fix ran and the ignore flags had no effect.</p>
</li>
<li>
<p><code>pnpm ci --lockfile</code> and <code>pnpm ci --config.lockfile=true</code> no longer delete <code>pnpm-lock.yaml</code>. <code>pnpm ci</code> now always keeps the lockfile and runs a frozen install from it.</p>
</li>
<li>
<p><code>pnpm deploy</code> now keeps a deployed symlink to a directory inside the project even if the directory is not among the deployed files, such as a link into <code>node_modules</code> <a href="https://github.com/pnpm/pnpm/issues/17288">#17288</a>.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> again include the files of a <code>publishConfig.directory</code> that is reached through a symlink, together with its bundled dependencies <a href="https://github.com/pnpm/pnpm/issues/17390">#17390</a>.</p>
</li>
<li>
<p><code>pnpm -r publish --batch</code> now sends <code>PUT /-/pnpr/v0/publish</code>, the batch publish endpoint that pnpr serves.</p>
</li>
<li>
<p><code>pnpm store prune</code> now keeps the packages that a project still uses when pnpm copied or cloned them into <code>node_modules</code>. These include patched packages, built packages, and every package installed with <code>packageImportMethod: copy</code>. Before, the prune removed them, and the next install downloaded them again <a href="https://github.com/pnpm/pnpm/issues/7192">#7192</a>.</p>
</li>
<li>
<p><code>pnpm store prune</code> now keeps the packages of a project that was installed with a different symlinked spelling of the store path. Previously, prune dropped such a project from its list and removed the packages only that project used from the global virtual store.</p>
</li>
</ul>
<h3 id="speed-and-output">Speed and output<a class="hash-link" href="#speed-and-output" aria-label="Direct link to Speed and output">#</a></h3>
<ul>
<li>
<p>Sped up installs of projects whose local directory dependencies share transitive local directory dependencies. pnpm no longer checks a shared directory again for each direct dependency that reaches it <a href="https://github.com/pnpm/pnpm/issues/17374">#17374</a>.</p>
</li>
<li>
<p>Output that fills the terminal, such as <code>pnpm run --stream</code> script output, is now written once. Before, every new line also rewrote all the lines already on screen <a href="https://github.com/pnpm/pnpm/issues/17387">#17387</a>.</p>
</li>
<li>
<p>The warning about unrecognized settings now marks <code>symlinkedLockfileTargetDirs</code> as a setting of a newer pnpm version.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 11.28.8]]></title>
      <link>https://pnpm.io/blog/releases/11.28.8</link>
      <guid>https://pnpm.io/blog/releases/11.28.8</guid>
      <pubDate>Thu, 22 Oct 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[]]></description>
      <content:encoded><![CDATA[<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<ul>
<li>The standalone <code>@pnpm/exe</code> builds now embed Node.js 26.12.1. The previously embedded Node.js 26.0.0 still trusted the certificate authority intermediates that Node.js distrusted in October 2026, so a standalone pnpm accepted TLS certificates issued under them.</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
    <item>
      <title><![CDATA[pnpm 12.15.0]]></title>
      <link>https://pnpm.io/blog/releases/12.15.0</link>
      <guid>https://pnpm.io/blog/releases/12.15.0</guid>
      <pubDate>Wed, 21 Oct 2026 00:00:00 GMT</pubDate>
      <description><![CDATA[This release lets pnpm-workspace.yaml delegate settings to other files and config dependencies with include, adds lockfile.integrityTarget: tar and tar-registry support, accepts zstd-compressed registry responses, and honors SOURCE_DATE_EPOCH in pnpm deploy and pnpm install. It also rejects...]]></description>
      <content:encoded><![CDATA[<p>This release lets <code>pnpm-workspace.yaml</code> delegate settings to other files and config dependencies with <code>include</code>, adds <code>lockfile.integrityTarget: tar</code> and tar-registry support, accepts zstd-compressed registry responses, and honors <code>SOURCE_DATE_EPOCH</code> in <code>pnpm deploy</code> and <code>pnpm install</code>. It also rejects registry metadata that names a different package than the one requested and speeds up workspace installs and macOS file linking.</p>
<h2 id="minor-changes">Minor Changes<a class="hash-link" href="#minor-changes" aria-label="Direct link to Minor Changes">#</a></h2>
<ul>
<li>
<p><code>pnpm-workspace.yaml</code> can now delegate settings to other YAML files and to config dependencies through a new <code>include</code> field. Each source may define only the settings the root manifest delegates to it. Every setting has one owner. Commands that change settings write each one to the file that owns it. A relative path in an included file is relative to that file. See <a href="https://pnpm.io/config-includes">Splitting Settings Across Files</a>.</p>
<p>A config dependency supplies its settings through the YAML file named in the <code>pnpm.config</code> field of its <code>package.json</code>. The new <code>bootConfig</code> setting sets the release-age and trust policy pnpm uses to install config dependencies and the pnpm version from <code>packageManager</code>.</p>
</li>
<li>
<p>Added the <code>lockfile.integrityTarget</code> setting. With <code>integrityTarget: tar</code>, <code>pnpm-lock.yaml</code> pins the hash of every package's uncompressed tar, so the lockfile no longer changes when a registry recompresses its tarballs or serves them as tars. pnpm learns a version's tar hash from the store or by downloading it once. <code>pnpm audit signatures</code> ties the tar hash to the signed <code>.tgz</code> integrity.</p>
<div class="code-block"><div class="code-block-title">pnpm-workspace.yaml</div><pre><code class="hljs language-yaml"><span class="hljs-attr">lockfile:</span>
  <span class="hljs-attr">integrityTarget:</span> <span class="hljs-string">tar</span>
</code></pre></div>
</li>
<li>
<p>pnpm can now install from a registry that serves uncompressed tars with zstd or gzip content coding. <code>pnpm-lock.yaml</code> records the hash of each tar. Declare such a registry with <code>serverType: pnpr</code> in <code>registries</code> to keep tarball URLs out of the lockfile. See <a href="https://pnpm.io/registries#tar-registries">Tar registries</a>.</p>
<p>pnpm now decodes the content coding of tarball downloads itself. It rejects a zstd response whose window is larger than 8 MiB.</p>
<p>Added the <code>maxTarballUnpackedSize</code> setting. It caps the bytes the files of one package may unpack to, 4 GiB by default.</p>
</li>
<li>
<p>Registry revisions now always pin the hash of the uncompressed tar, the original included. pnpm records an original selected through the revision protocol, for example with a <code>+r0</code> specifier, as <code>revision: 0</code> in the lockfile and fetches it from the registry's digest route. pnpm checks a revision's tar whether the registry sends it as a tar, gzip, or zstd. Revision metadata must list revision 0 and mark the selected revision. pnpm rejects incomplete revision metadata with <code>ERR_PNPM_MALFORMED_METADATA</code>.</p>
</li>
<li>
<p>pnpm now accepts zstd-compressed responses. Registries that serve zstd send package metadata in fewer bytes than with gzip, most of all the full metadata that settings such as <code>minimumReleaseAge</code> and <code>trustPolicy</code> read.</p>
</li>
<li>
<p><code>pnpm deploy</code> and <code>pnpm install</code> now use the <code>SOURCE_DATE_EPOCH</code> environment variable as an upper bound for timestamps in <code>node_modules/.modules.yaml</code> and <code>node_modules/.pnpm-workspace-state-v1.json</code>. With an equivalently prepared deploy target and an epoch no later than the timestamps that would otherwise be recorded, deploying the same project twice produces identical files <a href="https://github.com/pnpm/pnpm/issues/17171">#17171</a>.</p>
</li>
<li>
<p><code>pnpm update --interactive</code> now highlights the row under the cursor in cyan while keeping the colors of its version changes.</p>
</li>
</ul>
<h2 id="patch-changes">Patch Changes<a class="hash-link" href="#patch-changes" aria-label="Direct link to Patch Changes">#</a></h2>
<h3 id="security">Security<a class="hash-link" href="#security" aria-label="Direct link to Security">#</a></h3>
<ul>
<li>
<p>pnpm now fails with <code>ERR_PNPM_REGISTRY_NAME_MISMATCH</code> if a registry returns metadata for a package other than the one requested. Before, pnpm installed the package under the name in the metadata, so <code>allowBuilds</code> rules for the requested package did not apply to it.</p>
</li>
<li>
<p><code>minimumReleaseAgeExcludePrune</code> and <code>trustPolicyExcludePrune</code> now keep exclusions for resolved configuration dependencies and their transitive dependencies <a href="https://github.com/pnpm/pnpm/issues/17142">#17142</a>.</p>
</li>
</ul>
<h3 id="resolving-dependencies">Resolving dependencies<a class="hash-link" href="#resolving-dependencies" aria-label="Direct link to Resolving dependencies">#</a></h3>
<ul>
<li>
<p>When <code>pnpm install</code> resolves a dependency again, it now reuses a version that the install already resolved for the same package, as a fresh install does. Before, it kept the version the lockfile pinned and added a second copy of the package. A locked version still stays when nothing else in the install prefers another version. To pin a transitive dependency on purpose, use <code>overrides</code> <a href="https://github.com/pnpm/pnpm/issues/17084">#17084</a>.</p>
</li>
<li>
<p>When another workspace project adds a different version of a package, a project's auto-installed peer on that package now moves to the version a fresh install picks. It used to stay on its locked version while any other project still accepted that version <a href="https://github.com/pnpm/pnpm/issues/17058">#17058</a>.</p>
</li>
<li>
<p>A package that lists the same dependency in <code>dependencies</code> and as an optional peer now gets the peer bound when a project adds a provider for it later. The lockfile now records every peer a package declares, including one its own dependency supplies <a href="https://github.com/pnpm/pnpm/issues/17056">#17056</a>.</p>
</li>
<li>
<p><code>pnpm install --prod</code> and <code>pnpm deploy --prod</code> no longer drop a dependency that a package declares both as an optional peer and as its own dependency, when the package resolved it as its own dependency and a dev dependency provides the same package under another alias.</p>
</li>
<li>
<p><code>pnpm install</code> with an existing lockfile and a second <code>pnpm dedupe</code> now keep optional peer bindings that point into a dependency cycle or back into the dependent package. Before, the second run dropped the optional peer binding from the lockfile snapshot key.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm dedupe</code> now preserve own-dependency and peer-dependency bindings when reusing a lockfile whose peer suffixes were hashed by <code>peersSuffixMaxLength</code>.</p>
<p>Upgrading a direct dependency in one workspace project now refreshes matching transitive pins in sibling projects during the same <code>pnpm install</code> pass.</p>
</li>
<li>
<p>With <code>resolvePeersFromWorkspaceRoot: false</code>, a workspace project no longer binds a peer to a version that only another project's dependencies provide. pnpm now auto-installs a version that satisfies the peer range for that project. Before, the project got a version outside the range, with no peer warning.</p>
</li>
<li>
<p><code>pnpm install</code>, <code>pnpm add</code>, and <code>pnpm update</code> now reuse the lockfile's resolution for dependencies that take part in a dependency cycle, such as <code>mlly</code> and <code>pkg-types</code>. They re-resolved those packages and everything that depends on them from the registry before <a href="https://github.com/pnpm/tasks/issues/130">pnpm/tasks#130</a>.</p>
</li>
<li>
<p>pnpm now measures a <code>pnpm.overrides</code> entry written as a <code>workspace:</code> path, such as <code>workspace:./packages/foo</code>, from the directory holding <code>pnpm-workspace.yaml</code>. It used to be measured from each package the override rewrote. The install then linked a directory that does not exist, or failed if workspace packages were injected <a href="https://github.com/pnpm/pnpm/issues/17010">#17010</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now removes config dependencies that are no longer declared, including when the entire <code>configDependencies</code> setting is removed. Frozen installs reject a lockfile that still records removed config dependencies.</p>
</li>
<li>
<p><code>pnpm install --update-checksums</code> now re-resolves every locked package and records the integrity the registry reports now.</p>
</li>
<li>
<p><code>pnpm add</code> and <code>pnpm install</code> now accept <code>gist:&#x3C;id></code> dependencies and GitHub Gist URLs, and install them from the gist's archive. <code>pnpm pkg fix</code> normalizes a <code>gist:</code> repository the way <code>npm pkg fix</code> does, <code>pnpm licenses</code> links a gist package to its gist page, and <code>pnpm sbom</code> reports the repository of a package whose <code>repository</code> field is a <code>gist:</code> shorthand.</p>
</li>
<li>
<p><code>pnpm add</code> now reads the package name correctly from a tarball URL under a registry URL that has a path, such as <code>https://example.com/npm/</code>, and installs a registry tarball URL with a malformed percent escape as a plain tarball URL. Before, the registry path became part of the name, so a scoped package failed with <code>ERR_PNPM_INVALID_PACKAGE_NAME</code>.</p>
</li>
<li>
<p>With <code>minimumReleaseAge</code> set, pnpm now revalidates a package's cached full metadata with a single ETag request so an unchanged registry answers with <code>304</code>, even when the registry does not list a publish time for every version. Previously, pnpm downloaded that metadata again whenever the cached copy was older than <code>minimumReleaseAge</code>. With <code>resolutionMode</code> set to <code>lowest-direct</code> or <code>time-based</code>, pnpm also reuses that metadata across every workspace project that depends on the package.</p>
</li>
<li>
<p>When pnpm revalidates cached registry metadata, it now sends <code>If-Modified-Since</code> when the registry's modification time is a date without a time, and no longer crashes when the modification time is before 1970.</p>
</li>
<li>
<p>Added protocol versioning between the pnpm client and pnpr server, verified applied resolution policies in resolution responses, and preserved structured error codes across the wire.</p>
</li>
</ul>
<h3 id="performance">Performance<a class="hash-link" href="#performance" aria-label="Direct link to Performance">#</a></h3>
<ul>
<li>
<p>Sped up <code>pnpm install</code> on macOS. On a 12-core Mac, installing 1352 packages from a warm store took 1.3 seconds, down from 2.2. pnpm now writes package files into <code>node_modules</code> with 4 threads on macOS, whatever the number of CPU cores. Set the <code>PNPM_MACOS_LINK_THREADS</code> environment variable to use a different number of threads, or to <code>0</code> to write files with the threads pnpm uses for the rest of the install.</p>
</li>
<li>
<p><code>pnpm install</code> is faster and uses less memory in large workspaces with <code>sharedWorkspaceLockfile: false</code>. Each project's install no longer reads the manifests of every other workspace project again. Installs that wait for their workspace dependencies now count toward <code>workspaceConcurrency</code> <a href="https://github.com/pnpm/pnpm/issues/16966">#16966</a>.</p>
</li>
<li>
<p>Sped up workspace project discovery, dependency resolution, lockfile up-to-date checks, and peer dependency checks in large workspaces <a href="https://github.com/pnpm/pnpm/issues/16839">#16839</a> <a href="https://github.com/pnpm/tasks/issues/9">pnpm/tasks#9</a>. On a workspace with 6,833 projects, the lockfile up-to-date check uses about 1 second less CPU time. The peer dependency check at the end of an install now checks linked workspace projects against the manifests already in memory, without reading each <code>package.json</code> again.</p>
</li>
<li>
<p>Sped up bin linking and build planning during <code>pnpm install</code>. Package binary targets and shebang runtimes are now precalculated during tarball extraction and served in <code>pnpr</code> registry metadata alongside verified <code>requiresBuild</code>, tarball size, and file-count metadata.</p>
</li>
<li>
<p>Lowered peak memory when pnpm downloads many packuments, such as during lockfile verification with <code>trustPolicy</code> on Linux. In one 1,800-entry workspace, a lockfile update now peaks at 1.8 to 2.0 GB. It peaked at 2.6 to 3.7 GB before <a href="https://github.com/pnpm/pnpm/issues/17020">#17020</a>.</p>
</li>
<li>
<p><code>pnpm install</code> in a Cargo workspace skips crates that an earlier install already unpacked into the store. Before, a repeat install processed every crate in <code>Cargo.lock</code> again. <code>pnpm install --force</code> unpacks every crate again <a href="https://github.com/pnpm/tasks/issues/69">pnpm/tasks#69</a>.</p>
</li>
</ul>
<h3 id="linking-node_modules-and-workspaces">Linking node_modules and workspaces<a class="hash-link" href="#linking-node_modules-and-workspaces" aria-label="Direct link to Linking node_modules and workspaces">#</a></h3>
<ul>
<li>
<p>Concurrent installs that import the same package into one project now all complete. One of them used to fail with <code>ENOTEMPTY</code> when its copy of the package collided with the copy another install had already placed <a href="https://github.com/pnpm/tasks/issues/48">pnpm/tasks#48</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now succeeds when <code>node_modules</code> is a symlink to an existing directory. Dependency hoisting previously rejected a symlinked <code>node_modules</code> as an invalid destination <a href="https://github.com/pnpm/pnpm/issues/17157">#17157</a>.</p>
</li>
<li>
<p>A filtered first install under the isolated linker now links every workspace project by name into <code>node_modules/.pnpm/node_modules</code>, not only the selected ones <a href="https://github.com/pnpm/tasks/issues/155">pnpm/tasks#155</a>.</p>
</li>
<li>
<p>With <code>nodeLinker: hoisted</code>, a filtered install such as <code>pnpm --filter app add &#x3C;pkg></code> keeps the root <code>node_modules</code> links and bins of the workspace projects it did not select. A project with no dependencies of its own lost them until the next full install.</p>
</li>
<li>
<p><code>pnpm install --filter</code> with <code>nodeLinker: hoisted</code> and <code>--prod</code> or <code>--dev</code> now preserves previously installed dependency groups for unselected workspace projects <a href="https://github.com/pnpm/tasks/issues/164">pnpm/tasks#164</a>. Repeat filtered installs also re-resolve when a transitive injected workspace dependency or a linked dependency's version changes.</p>
</li>
<li>
<p>With <code>sharedWorkspaceLockfile: false</code>, <code>pnpm install</code> now runs the workspace root's pnpmfile for every project, after the project's own pnpmfile. Before, it ran only the pnpmfile in the project's directory.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm peers check</code> now detect peer dependency issues and report linked package versions in linked projects that use <code>package.json5</code> or <code>package.yaml</code> <a href="https://github.com/pnpm/tasks/issues/172">pnpm/tasks#172</a>.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>pnpm peers check</code> no longer report an unmet peer when a workspace package's peer is provided by a remote tarball URL. pnpm now compares the peer range with the version in the tarball's manifest <a href="https://github.com/pnpm/pnpm/issues/17037">#17037</a>.</p>
</li>
<li>
<p><code>pnpm prune</code> now removes extraneous direct packages from <code>node_modules</code> when <code>package.json</code> and <code>pnpm-lock.yaml</code> are already in sync. <code>pnpm prune</code> also honors <code>--filter</code>, <code>--recursive</code>, <code>sharedWorkspaceLockfile: false</code>, and the <code>trustLockfile</code> setting and <code>--trust-lockfile</code> flag. With the lockfile trusted, <code>pnpm prune --prod</code> works offline when every package is in the store <a href="https://github.com/pnpm/pnpm/issues/16999">#16999</a>.</p>
</li>
</ul>
<h3 id="injected-workspace-packages">Injected workspace packages<a class="hash-link" href="#injected-workspace-packages" aria-label="Direct link to Injected workspace packages">#</a></h3>
<ul>
<li>
<p><code>pnpm install --frozen-lockfile</code> now fails with <code>ERR_PNPM_OUTDATED_LOCKFILE</code> when a local directory dependency or injected workspace package changes a dependency to a different tarball URL or git commit <a href="https://github.com/pnpm/pnpm/issues/17129">#17129</a>. It also fails when an injected workspace package changes a dependency's named-registry range, such as <code>work:^2.0.0</code>, to one the locked version no longer satisfies.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> now accepts the lockfile it wrote for a <code>file:</code> dependency on a directory without a <code>package.json</code>. It also accepts the lockfile for an injected workspace package that bundles a dependency in <code>bundledDependencies</code>, lists a dependency in both <code>dependencies</code> and <code>optionalDependencies</code>, or publishes from a <code>publishConfig.directory</code> whose <code>package.json</code> lists other dependencies than the project's own. Before, these failed with <code>ERR_PNPM_OUTDATED_LOCKFILE</code>.</p>
</li>
<li>
<p>The lockfile now records a <code>catalog:</code> peer dependency of an injected workspace package as written in its <code>package.json</code>. It recorded the catalog's range before, so editing the catalog changed the consumer's lockfile entry <a href="https://github.com/pnpm/tasks/issues/153">pnpm/tasks#153</a>.</p>
</li>
<li>
<p><code>pnpm install</code> now resolves a git, tarball, or tag dependency of an injected workspace package again when its spec changes. Before, it kept the old version.</p>
</li>
<li>
<p>Repeat installs and <code>verifyDepsBeforeRun</code> now re-check projects that inject a modified workspace package, including when <code>sharedWorkspaceLockfile</code> is <code>false</code> <a href="https://github.com/pnpm/pnpm/issues/17007">#17007</a>, and accept aliased <code>workspace:</code> ranges on linked dependencies.</p>
</li>
<li>
<p>An injected workspace package that was linked now becomes a copy when the project that depends on it starts providing one of its peers at a version the package's own workspace context lacks. The link used to stay until that dependency was updated, so the package could not find the peer the project provides <a href="https://github.com/pnpm/pnpm/issues/17057">#17057</a>.</p>
</li>
<li>
<p>An injected workspace package now keeps only the files its manifest lists after a lifecycle script or a script named in <code>syncInjectedDepsAfterScripts</code> rebuilds it. Before, these refreshes copied every file of the package directory into the injected copy, including files that <code>files</code> or <code>.npmignore</code> leave out. With <code>deployAllFiles: true</code> the copy still gets every file.</p>
</li>
<li>
<p>A script listed in <code>syncInjectedDepsAfterScripts</code> now keeps a package's links to its own files as links in the injected copies, the way <code>pnpm install</code> writes them, and updates those copies when <code>sharedWorkspaceLockfile</code> is <code>false</code>. Before, a directory link the script added became a real directory or went missing with <code>deployAllFiles</code>, and with <code>sharedWorkspaceLockfile: false</code> the copies kept the files from the last install.</p>
</li>
</ul>
<h3 id="running-scripts-and-checking-dependencies">Running scripts and checking dependencies<a class="hash-link" href="#running-scripts-and-checking-dependencies" aria-label="Direct link to Running scripts and checking dependencies">#</a></h3>
<ul>
<li>
<p>Pressing Ctrl+C during <code>pnpm -r run</code> or <code>pnpm --filter &#x3C;pkg> run</code> no longer reports <code>ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL</code>. pnpm now ends with the interrupted script's status, such as 130 for a script that SIGINT ended on Linux or macOS <a href="https://github.com/pnpm/pnpm/issues/16964">#16964</a>.</p>
</li>
<li>
<p>With <code>enableGlobalVirtualStore</code>, a Node.js resolve hook that a script registers now sees the importer as <code>context.parentURL</code> after pnpm's <code>NODE_PATH</code> fallback fails to find a bare specifier. Hooks that resolve tsconfig <code>paths</code> aliases from the importer failed with <code>ERR_MODULE_NOT_FOUND</code> <a href="https://github.com/pnpm/pnpm/issues/16979">#16979</a>.</p>
</li>
<li>
<p><code>pnpm run</code>, <code>pnpm exec</code>, and <code>pnpm restart</code> now pass the install flags they were given, such as <code>--lockfile-dir</code>, <code>--modules-dir</code>, <code>--store-dir</code>, <code>--offline</code>, and <code>--ignore-scripts</code>, to the <code>pnpm install</code> that <code>verifyDepsBeforeRun: install</code> starts. When that install leaves the dependencies out of date, pnpm now prints a warning.</p>
</li>
<li>
<p>A repeated <code>pnpm install --filter</code> now finishes without reinstalling when the selected projects are up to date, and so does <code>pnpm install</code> once filtered commands have installed every project. After a filtered install, <code>pnpm run</code> and <code>pnpm exec</code> now install a selected project whose dependencies changed in between <a href="https://github.com/pnpm/pnpm/issues/17011">#17011</a>, require the workspace root when a filtered install with <code>pruneDirectDependencies: true</code> skipped it <a href="https://github.com/pnpm/tasks/issues/181">pnpm/tasks#181</a>, and preserve the recorded ignored build scripts of unselected projects.</p>
</li>
<li>
<p>The check that runs before a script now holds the workspace projects that the selected project depends on, including with <code>sharedWorkspaceLockfile: false</code> and for workspace dependencies declared with <code>link:</code>. <code>--filter=&#x3C;project>...</code> now selects <code>link:</code> dependencies as well. In a workspace that has no <code>package.json</code> at its root, <code>pnpm run</code> and <code>pnpm exec</code> no longer reinstall before every command when the dependencies are up to date.</p>
</li>
<li>
<p><code>verifyDepsBeforeRun</code> and repeat <code>pnpm install</code> runs now apply <code>overrides</code> before comparing a modified <code>package.json</code> with <code>pnpm-lock.yaml</code> <a href="https://github.com/pnpm/pnpm/issues/17127">#17127</a>. <code>pnpm install</code> with <code>optimisticRepeatInstall</code> now re-runs when <code>configDependencies</code> changed, <code>verifyDepsBeforeRun</code> reports <code>node_modules</code> out of date when <code>useGitBranchLockfile</code> is enabled and the branch lockfile is missing, and in a single-project repository both checks record a successful lockfile check so later runs skip it until the lockfile changes <a href="https://github.com/pnpm/pnpm/issues/16993">#16993</a>.</p>
</li>
<li>
<p><code>pnpm install</code> and <code>verifyDepsBeforeRun</code> now compare manifests, lockfiles, and patch files by content hash. They notice an edit that kept the file's modification time, as <code>cp -p</code>, <code>rsync -a</code>, or an archive extraction leave it, and a patch file that was copied or touched without changing its content no longer marks dependencies as outdated <a href="https://github.com/pnpm/pnpm/issues/16988">#16988</a>.</p>
</li>
</ul>
<h3 id="deploying-packing-and-other-commands">Deploying, packing, and other commands<a class="hash-link" href="#deploying-packing-and-other-commands" aria-label="Direct link to Deploying, packing, and other commands">#</a></h3>
<ul>
<li>
<p><code>pnpm deploy</code> now deploys <code>file:</code> dependencies that live outside the workspace directory. It failed with "Refusing to deploy unsafe lockfile path" <a href="https://github.com/pnpm/pnpm/issues/16983">#16983</a>.</p>
</li>
<li>
<p><code>pnpm deploy</code> now records the peer dependencies of the workspace packages it copies into the deployed lockfile. Before, pnpm rejected that lockfile with <code>--frozen-lockfile</code> when a deployed workspace package declared a peer and <code>injectWorkspacePackages</code> was off <a href="https://github.com/pnpm/pnpm/issues/17093">#17093</a>.</p>
</li>
<li>
<p><code>pnpm install --frozen-lockfile</code> and <code>verifyDepsBeforeRun</code> now succeed inside a directory created by <code>pnpm deploy</code>. <code>pnpm deploy</code> writes self-contained workspace and lockfile settings, prunes unused <code>patchedDependencies</code>, and preserves workspace-level dependency resolutions on deployed directory dependencies.</p>
</li>
<li>
<p>On macOS, <code>pnpm deploy</code> no longer writes a second, unused copy of every package to <code>node_modules/.pnpm/@</code> in the deploy directory <a href="https://github.com/pnpm/pnpm/issues/17116">#17116</a>.</p>
</li>
<li>
<p><code>pnpm patch-commit</code> and <code>pnpm install</code> now apply a patch that renames or moves a file of the patched package. Such a patch failed with "rename/copy operations in patches are not yet supported".</p>
</li>
<li>
<p>In workspaces with <code>sharedWorkspaceLockfile: false</code>, <code>pnpm patch</code>, <code>pnpm patch-commit</code>, and <code>pnpm patch-remove</code> now resolve patch files and <code>patchedDependencies</code> entries at the workspace root. <code>pnpm install</code> checks configured patches across all workspace projects before reporting unused patches.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> no longer include editor swap files such as <code>.*.swp</code>, macOS <code>._*</code> files, <code>.lock-wscript</code>, <code>.wafpickle-*</code>, <code>build/config.gypi</code>, or <code>archived-packages/</code> in the tarball. Naming one of these files in <code>files</code> still includes it <a href="https://github.com/pnpm/pnpm/issues/16955">#16955</a>.</p>
</li>
<li>
<p><code>pnpm pack</code> and <code>pnpm publish</code> now support extended glob patterns and brace ranges such as <code>part{1..3}.js</code> and <code>part{a..c}.js</code>, including descending ranges, steps, and zero padding, in <code>files</code>, <code>.npmignore</code>, and <code>.gitignore</code>. Explicitly listed internal directory symlinks are preserved below excluded directories, entry points honor nested ignore files, ignore negations can re-include default-excluded logs and backup files, and nested lockfiles follow the package's file selection rules.</p>
</li>
<li>
<p>Trusted publishing with OIDC now works with registries whose URL has a path, such as <code>https://registry.example/npm/private/</code>. pnpm previously sent the token exchange request to the root of the registry host.</p>
</li>
<li>
<p><code>pnpm deprecate</code> and <code>pnpm unpublish</code> now work for packages whose registry metadata is larger than 10 MiB, such as <code>typescript</code>. They accept up to 50 MiB, the same limit as <code>pnpm owner</code>.</p>
</li>
<li>
<p><code>pnpm owner ls</code> now lists the owners of a package on the npm registry. It reported every package as not found.</p>
</li>
<li>
<p><code>pnpm licenses list --prod</code> now includes optional dependencies, including transitive ones. Pass <code>--no-optional</code> to leave them out. <code>pnpm licenses list</code> also reports no licenses for workspace projects not recorded in the lockfile, errors when <code>pnpm-lock.yaml</code> is missing, and formats empty results as the requested text or JSON <a href="https://github.com/pnpm/tasks/issues/174">pnpm/tasks#174</a>.</p>
</li>
<li>
<p><code>pnpm why</code> now reads each selected workspace project's lockfile and modules directory when <code>sharedWorkspaceLockfile</code> is <code>false</code> <a href="https://github.com/pnpm/tasks/issues/169">pnpm/tasks#169</a>.</p>
</li>
<li>
<p><code>pnpm pkg fix</code> now converts a <code>repository</code> string such as <code>github:pnpm/example</code> to the object form, as <code>npm pkg fix</code> does. It also normalizes a GitHub, GitLab, or Bitbucket repository URL the way <code>npm pkg fix</code> does <a href="https://github.com/pnpm/pnpm/issues/16980">#16980</a>.</p>
</li>
</ul>
<h3 id="configuration-and-setting-up-pnpm">Configuration and setting up pnpm<a class="hash-link" href="#configuration-and-setting-up-pnpm" aria-label="Direct link to Configuration and setting up pnpm">#</a></h3>
<ul>
<li>
<p>Registry credentials and TLS settings passed with <code>--config</code>, such as <code>--config.//registry.example.com/:_authToken=&#x3C;token></code>, are now applied. They take precedence over the same settings in <code>.npmrc</code> files.</p>
</li>
<li>
<p>pnpm now reads only the settings it needs to decide whether to switch to the pnpm version a project pins. A setting outside them can no longer fail that decision or change its outcome. For example, <code>pnpm --version</code> no longer fails in a pinned project whose <code>pnpm-workspace.yaml</code> has a setting this pnpm cannot read. Projects that pin neither pnpm nor a runtime skip this check without reading any settings.</p>
</li>
<li>
<p>When pnpm switches to the version a project pins, an option only the pinned pnpm knows now reaches that pnpm when it comes immediately before the command name, as in <code>pnpm --new-flag install</code>. When switching for <code>pnpm --version</code> or an unrecognized command line, pnpm also honors <code>--color</code>, <code>--no-color</code>, <code>--reporter</code>, and <code>--loglevel</code> wherever they appear on the command line.</p>
</li>
<li>
<p><code>pnpm self-update</code> now updates the project's pnpm pin when Homebrew installed pnpm or Corepack runs it, leaving the global pnpm alone <a href="https://github.com/pnpm/pnpm/issues/17001">#17001</a>. Run inside a workspace package, <code>pnpm self-update</code> updates the pin in the workspace root's manifest, including in <code>package.yaml</code> or <code>package.json5</code>.</p>
</li>
<li>
<p><code>pnpm setup</code> now completes when Windows registry environment values cannot be read or written. It prints PowerShell commands to configure <code>PNPM_HOME</code> and <code>PATH</code> without registry access <a href="https://github.com/pnpm/pnpm/issues/17167">#17167</a>.</p>
</li>
<li>
<p><code>pnpm setup</code> now succeeds when it cannot tell which shell configuration file to update, for example in a container where <code>SHELL</code> is not set. It installs pnpm and prints the <code>PNPM_HOME</code> and <code>PATH</code> lines to add yourself. Previously it failed with <code>ERR_PNPM_UNKNOWN_SHELL</code>, and so did the installer script at get.pnpm.io <a href="https://github.com/pnpm/pnpm/issues/16973">#16973</a>.</p>
</li>
<li>
<p>In StackBlitz WebContainers, <code>pnpm</code> no longer crashes intermittently with <code>Parking not supported on this platform</code>, and running a command that does not exist now reports that the command was not found. Previously it sometimes failed with a generic error.</p>
</li>
</ul>]]></content:encoded>
      <dc:creator>Zoltan Kochan</dc:creator>
    </item>
  </channel>
</rss>
