You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A crate installed globally with rustup can now run cargo and rustc outside a Rust project. pnpm sets stable as the default toolchain of the rustup it installs. cargo dylint failed with "Could not find git dependency root" before it had built its lint library. Add the crate again to fix an existing install.
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 directory dependency whose package.json has an invalid name. On Unix, it opens store lock files relative to a verified directory handle.
Minor Changes
pnpm add -g crate:<name> builds the executables of a crate and links them into the global bin directory, such as pnpm add -g crate:ripgrep@14. pnpm list -g lists the crate as crate:<name>. pnpm update -g and pnpm remove -g take the same selector.
A crate installed globally can run with a rustup that pnpm installs for it. pnpm add -g crate:cargo-dylint,rustup downloads rustup into the store and runs the commands of the crate with it. That rustup keeps its toolchains in the store and leaves ~/.rustup alone. rustup@<version> names a rustup version.
pnx crate:<name> runs an executable of a crate, such as pnx crate:ripgrep@14 --version. pnpm downloads the crate and its dependencies into the store and builds them offline with a Rust toolchain from the store. --package=crate:<name> names the crate when the command is one of its other executables. A Package URL such as pkg:cargo/ripgrep@14.1.1 names a crate too.
pnpm pack now accepts package specs, like npm pack <spec>. It packs a registry package (pnpm pack foo@1.0.0), a git repository (pnpm pack github:user/repo), a tarball URL (pnpm pack https://pkg.pr.new/vite@24234), a local directory, or a local tarball file. pnpm verifies a registry download against the integrity declared in the registry metadata.
pnpm config set accepts dotted keys to update individual fields in YAML settings. For example, pnpm config set -g globalPackagesConfig.virtualStoreType project keeps the other settings for global packages.
pnpm view node now reads the Node.js release index, the same source pnpm add node installs from. pnpm view node versions lists Node.js releases, and pnpm view node@22 npm shows the npm version bundled with the newest Node.js 22 release. Use node@npm:node to view the npm package named node.
Added pnpm runtime unset for removing runtimes installed by pnpm runtime set.
pnpm update --latest now moves the Rust release pinned in rust-toolchain.toml to the newest release of its channel when cargo.enabled is true. 1.95.0 becomes the newest stable version, and nightly-2026-01-01 the newest nightly. pnpm outdated lists the pinned release as rust when a newer one is out. Pass rust to select only the toolchain, or !rust to leave it out.
On a machine without rustup, the Rust shims that pnpm shim add rust and pnpm add -g rust create now run the release that a +<toolchain> argument or RUSTUP_TOOLCHAIN names, such as cargo +nightly build. pnpm installs the release into the store first. A RUSTUP_TOOLCHAIN that is the path of a toolchain directory runs the tool from that directory.
The hoistingLimits value that stops hoisting at each workspace project is now projects. The old name, workspaces, still works.
pnpm add -g and pnpm update -g now include pending agent skills in the interactive approval prompt.
Patch Changes
Security
pnpm now refuses to install a tarball, git, or directory dependency whose package.json has an invalid name, and fails with ERR_PNPM_INVALID_DEPENDENCY_NAME. A name such as esbuild@0.20.0( could make the package pass for a registry package in the lockfile and in allowBuilds.
Resolution now fails when two packages with different resolutions would share one packages entry of the lockfile.
Fixed two URL dependencies that could share a virtual store directory. A URL with ( or ) could match one with _, 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.
pnpm now rejects a jsr: specifier whose scope or package name contains an underscore. Before, jsr:@a_/b and jsr:@a/_b both resolved to the npm package @jsr/a___b.
On Unix, pnpm now opens store lock files relative to a verified directory handle #18509.
When pnpm resolves a runtime from its SHASUMS256.txt 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.
Installing packages
pnpm install no longer crashes with nodeLinker: hoisted and hoistingLimits: projects when a project depends on a package in a dependency cycle, such as eslint or browserslist.
Fixed installs failing in shared Unix projects when another user owns a package executable that the current user can already run #18491.
pnpm now trusts the certificate authorities listed with ca[]= in .npmrc, the array form the ca setting documents. They were ignored, so requests to a registry with a private certificate authority failed with invalid peer certificate: UnknownIssuer.
pnpm config get ca and pnpm config list now show every certificate authority set with ca= or ca[]= lines in .npmrc. 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.
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.
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.
Interrupting pnpm with Ctrl+C no longer leaves a temporary file next to a file pnpm was starting to write, such as the lockfile #1418.
On macOS, pnpm install now runs xattr only for native binaries that carry the quarantine attribute #18469.
package.yaml and package.json5 manifests
pnpm install --frozen-lockfile no longer fails with ERR_PNPM_OUTDATED_LOCKFILE when a project depends on a workspace project whose manifest is package.yaml or package.json5. It failed when the install was filtered with --filter, or when sharedWorkspaceLockfile was false.
pnpm install now reads a package.yaml or package.json5 manifest for a file: directory dependency. It does the same for an injected workspace project declared by path, such as workspace:../lib. The dependencies of such a package were not installed. pnpm install --frozen-lockfile then rejected the lockfile that pnpm install had written.
For such a file: directory, pnpm install also copies only the files that the files field selects, and it no longer skips the install scripts of the directory.
pnpm install now links the bins of a workspace project, or of a link: or file: directory dependency, whose manifest is package.yaml or package.json5.
pnpm install with nodeLinker: loaded no longer fails when the manifest of a workspace project is package.yaml or package.json5.
pnpm deploy with --legacy or forceLegacyDeploy now deploys a project whose manifest is package.yaml or package.json5. It failed with ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND.
A peer dependency that the workspace root provides through a link: dependency now resolves to the linked package's version when that package's manifest is package.yaml or package.json5. pnpm resolved it to the newest matching version from the registry.
Resolving dependencies and the lockfile
Fixed pnpm update <name>@<version> replacing a catalog reference in package.json in manual catalog mode. The update now moves the referenced catalog entry to the requested version or range #18547.
catalog.unused: prune no longer removes default catalog entries that a project or an override references as catalog:default, the long form of catalog:. It also keeps entries referenced with whitespace around the catalog name, such as catalog: default.
Running pnpm add or pnpm update on a single project now preserves shared lockfile entries for projects missing from a sparse checkout #18465.
pnpm install drops an optional peer when you remove its last provider. pnpm dedupe and pnpm install --fix-lockfile also remove stale optional peer bindings from existing lockfiles #18482.
pnpm fetch --filter now fetches only the packages of the selected projects when the workspace uses a shared lockfile #16441.
pnpm now installs the Rust toolchain of a rust-toolchain.toml whose channel ends in the host of the machine, such as 1.95.0-x86_64-unknown-linux-gnu. Such a file was left to rustup.
Building and patching dependencies
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.
pnpm patch-commit now records changes to binary files, and patchedDependencies patches that change binary files apply byte for byte. Before, binary files were written to the patch as mangled text diffs.
Fixed pnpm rebuild <pkg> leaving an approved Git dependency unprepared after pnpm install --ignore-scripts#18551.
pnpm rebuild <pkg> and pnpm approve-builds <pkg> now keep the build output of unselected file: directory dependencies under both isolated and hoisted node linkers.
Checking dependencies before a run
pnpm run and pnpm exec now treat a missing lockfile as dependencies that are not up to date when verifyDepsBeforeRun is enabled. The install action restores the lockfile before running the command, and the error action refuses to run pnpm/tasks#219.
Fixed verifyDepsBeforeRun reporting an unchanged file: directory dependency as out of date when installed under an alias #18560.
Fixed verifyDepsBeforeRun incorrectly reporting stale dependencies after an install pruned unused entries from minimumReleaseAgeExclude or trustPolicyExclude#18498.
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 ?.
The store
pnpm store prune 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.
An install that uses the global virtual store now fails if it cannot register the project in the store.
pnpm store add <directory> now adds a tarball that is a symlink to a file outside the directory, such as the links a Nix linkFarm creates. It used to skip such a tarball without a warning. A directory with no tarballs now fails with ERR_PNPM_STORE_ADD_NO_TARBALLS, which names the directory.
pnpm now accepts tarballs with unambiguous multiline package metadata from older npm releases. When pnpm store add fails to fetch or extract a tarball, the warning identifies the archive #18479.
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.
Commands and output
Fixed pnpm install reporting an error from pnpm add when an unknown option precedes a separate value #18494.
An include error about the override policy now names overrides.unused. pnpm named the older warnUnusedOverrides setting.
pnpm sbom 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.
pnpm audit deprecations 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 pnpm audit deprecations and pnpm audit engines now show only the direct dependency and the two packages closest to the reported one.
pnpm docs, pnpm home, and pnpm repo now print the URL before opening it in the browser #18516.
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> also no longer grants every permission to a package that has no pending request.
Minor Changes
Added pnpm audit deprecations, 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 1 if any package is deprecated. The deprecated line at the end of an install now points to this command.
Added pnpm audit engines, 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 1 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.
An install now ends with a checks footer above Done in. 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.
Deprecated packages are listed on one line, such as ✗ 2 packages are deprecated: request@2.88.2 and uuid@3.4.0. Peer dependencies with issues are named the same way, with a hint to run pnpm peers check for details.
Dependencies that don't support the current Node.js version or platform are grouped by what they want, such as ✗ 15 packages want Node.js ^18.18.0 || ^20.9.0 || >=21.1.0, not 12.0.0: …. 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.
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.
The pnpm:install-check log event of an unsupported engine or platform now carries the error code, the pkgId, and what the package wants in wanted. An unsupported engine event also carries the current versions.
The install summary prints an updated dependency on one line, such as ↑ lodash 4.17.20 → 4.18.1. A downgrade is marked with ↓. The changed part of the new version is colored the way pnpm outdated colors it.
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 in @scope/app. A change made by several projects shows how many, such as in 5 projects.
Dependencies with newer versions are named on one line at the end, with a hint to run pnpm outdated. 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.
When an install finishes, its progress lines are replaced by the stats, such as Packages: +58 -2 (90% downloaded), with the share of packages downloaded or reused from the store. In the bar below it, a downloaded package is drawn as ↓ and a reused one as +.
The Scope: line is printed only when a filter selected some of the workspace projects, not when the command ran on all of them.
Global installs can now link approved agent skills into skill directories under your home directory. Use pnpm approve -g to review skills and build scripts for globally installed packages pnpm/tasks#117.
pnpm install warns when a locally declared package permission matches no dependency during a full resolution. The permission stays saved for future installs. Set permissions.unused to ignore alongside permissions.rules to turn off the warning #18429.
pnpm-workspace.yaml accepts grouped forms of the override and catalog settings. overrides.rules holds override selectors alongside overrides.unused (warn or ignore). catalog.entries holds default catalog entries alongside catalog.unused (ignore or prune). catalog.mode and catalog.defaultSaveTarget configure how pnpm add uses catalogs and where it saves new entries. The existing map forms and flat settings remain supported #18429.
Package tarball downloads can use credentials over plain HTTP when the user's global settings explicitly declare the HTTP registry URL #18427.
A single-package version bump now allows unstaged edits and untracked files excluded from the package. Staged changes still block the bump #18417.
Patch Changes
Security and approvals
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.
pnpm approve <pkg> 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 permissions or use pnpm approve-builds to grant build permission in advance #18415.
pnpm approve 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 #18375. 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 #18388.
Fixed exact versions with SemVer build metadata in minimumReleaseAgeExclude, trustPolicyExclude, and allowBuilds. Pruning now keeps exclusions for versions in the lockfile #18444.
Installing packages
Fixed pnpm install --offline --frozen-lockfile failing the release-age check when workspace manifests are copied after pnpm fetch#18409.
pnpm install now resolves a catalog: peer dependency declared by a local file: dependency. Installing such a dependency failed with ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVERpnpm/tasks#310.
Fixed pnpm install failing or writing an incomplete lockfile key when a file: dependency path contains parentheses #18443.
Fixed frozen installs rejecting a local dependency when the workspace override and lockfile use equivalent relative paths #18381.
Fixed concurrent installs sharing a store occasionally copying an empty or incomplete package file #18433.
Fixed repeated installs before pnpm run and pnpm exec after a scope registry changes when the command would run a frozen or filtered install #18448.
Fixed pnpm deploy --prod --legacy failing on patches for packages excluded from the deployment #18394.
Resolving and linking dependencies
Fixed missing commands in node_modules/.bin when a patched dependency moves to a new slot in the global virtual store #18398.
Fixed packages in the global virtual store resolving an injected workspace dependency from another checkout #18447.
Fixed pnpm install leaving a hidden hoist link behind when the workspace root adds the package as a direct dependency #18362.
Fixed overrides accepting selectors with multiple parents when a middle package had a version range #18445.
Fixed pnpm update overwriting Node.js version ranges such as >=20 <23 in engines.runtime and devEngines.runtime with an exact version #18360.
Dependency changes now preserve the runtime policy declared in package.json when runtimeOnFail is set #18376.
Platforms and the pnpm binary
Fixed the FreeBSD x64 build of pnpm, which failed to compile.
The pnpm binary is 10 to 13 MB smaller on Linux and macOS. It no longer includes the symbol names that only debuggers use.
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 #18408.
Commands and settings
pnpm info and pnpm view now report a fully unpublished package with ERR_PNPM_PACKAGE_NOT_FOUND. They used to fail with a metadata decoding error, which stopped tools such as Changesets from checking the rest of a release. pnpm add --save-types now skips a @types package that was fully unpublished #18428.
Fixed pnpm sbom --dev omitting optional dependencies of development dependencies #18403.
Downloaded Node.js, Deno, and Bun runtimes now declare their MIT license in package.json. This lets pnpm licenses list report the runtime's declared license #18431.
pnpm now treats an empty XDG_CONFIG_HOME, XDG_CACHE_HOME, XDG_DATA_HOME, or PNPM_HOME as unset and uses the default directory. An empty value made pnpm read and write its global config, auth file, and cache in a pnpm directory under the current working directory.
pnpm now expands a leading ~/ in cacheDir values loaded from the global config or PNPM_CONFIG_CACHE_DIR to the user's home directory, as it does for storeDir.
pnpm config set now writes values containing Unicode line separators (U+2028 and U+2029) to pnpm-workspace.yaml unchanged, so reading the setting back returns the value that was set.
When pnpm-workspace.yaml mostly uses double quotes, quoted values pnpm adds to it now use double quotes, such as the entries written by pnpm config set, pnpm approve-builds, and catalog updates. Previously only minimumReleaseAgeExclude and trustPolicyExclude entries followed the file's quote style #18364.
pnpm install no longer warns about a project's own pnpm-workspace.yaml 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 pnpm-workspace.yaml without the warning #18441.
Install output
The install summary of a project with no previous install lists only the dependencies the command added or changed. A fresh pnpm install 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.
pnpm install --lockfile-only shows its progress again, counting the packages it resolves.
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 0.00 B line at its start.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 34131ffc-fada-420c-9457-57b71674c39e
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
12.23.0+sha512.02da94ffaf133f46074322afe552f90d40b5f71ae259aefbccdacc5085b1d617e98d65e0131f5748b9b67445978ee5055d7d59a473f1eef0d504854fefcd5975→12.25.1Release Notes
pnpm/pnpm (pnpm)
v12.25.1: pnpm 12.25.1Compare Source
Patch Changes
rustupcan now runcargoandrustcoutside a Rust project. pnpm setsstableas the default toolchain of the rustup it installs.cargo dylintfailed with "Could not find git dependency root" before it had built its lint library. Add the crate again to fix an existing install.Platinum Sponsors
Gold Sponsors
v12.25.0: pnpm 12.25Compare Source
This release lets
pnpm add -g crate:<name>andpnx crate:<name>build and run Rust crates, letspnpm packtake package specs, and adds dotted keys topnpm config set.pnpm patch-commitnow records changes to binary files. The release carries security fixes. pnpm now refuses a tarball, git, or directory dependency whosepackage.jsonhas an invalidname. On Unix, it opens store lock files relative to a verified directory handle.Minor Changes
pnpm add -g crate:<name>builds the executables of a crate and links them into the global bin directory, such aspnpm add -g crate:ripgrep@14.pnpm list -glists the crate ascrate:<name>.pnpm update -gandpnpm remove -gtake the same selector.A crate installed globally can run with a rustup that pnpm installs for it.
pnpm add -g crate:cargo-dylint,rustupdownloads rustup into the store and runs the commands of the crate with it. That rustup keeps its toolchains in the store and leaves~/.rustupalone.rustup@<version>names a rustup version.pnx crate:<name>runs an executable of a crate, such aspnx crate:ripgrep@14 --version. pnpm downloads the crate and its dependencies into the store and builds them offline with a Rust toolchain from the store.--package=crate:<name>names the crate when the command is one of its other executables. A Package URL such aspkg:cargo/ripgrep@14.1.1names a crate too.pnpm packnow accepts package specs, likenpm pack <spec>. It packs a registry package (pnpm pack foo@1.0.0), a git repository (pnpm pack github:user/repo), a tarball URL (pnpm pack https://pkg.pr.new/vite@24234), a local directory, or a local tarball file. pnpm verifies a registry download against the integrity declared in the registry metadata.pnpm config setaccepts dotted keys to update individual fields in YAML settings. For example,pnpm config set -g globalPackagesConfig.virtualStoreType projectkeeps the other settings for global packages.pnpm view nodenow reads the Node.js release index, the same sourcepnpm add nodeinstalls from.pnpm view node versionslists Node.js releases, andpnpm view node@22 npmshows the npm version bundled with the newest Node.js 22 release. Usenode@npm:nodeto view the npm package namednode.Added
pnpm runtime unsetfor removing runtimes installed bypnpm runtime set.pnpm update --latestnow moves the Rust release pinned inrust-toolchain.tomlto the newest release of its channel whencargo.enabledistrue.1.95.0becomes the newest stable version, andnightly-2026-01-01the newest nightly.pnpm outdatedlists the pinned release asrustwhen a newer one is out. Passrustto select only the toolchain, or!rustto leave it out.On a machine without rustup, the Rust shims that
pnpm shim add rustandpnpm add -g rustcreate now run the release that a+<toolchain>argument orRUSTUP_TOOLCHAINnames, such ascargo +nightly build. pnpm installs the release into the store first. ARUSTUP_TOOLCHAINthat is the path of a toolchain directory runs the tool from that directory.The
hoistingLimitsvalue that stops hoisting at each workspace project is nowprojects. The old name,workspaces, still works.pnpm add -gandpnpm update -gnow include pending agent skills in the interactive approval prompt.Patch Changes
Security
pnpm now refuses to install a tarball, git, or directory dependency whose
package.jsonhas an invalidname, and fails withERR_PNPM_INVALID_DEPENDENCY_NAME. A name such asesbuild@0.20.0(could make the package pass for a registry package in the lockfile and inallowBuilds.Resolution now fails when two packages with different resolutions would share one
packagesentry of the lockfile.Fixed two URL dependencies that could share a virtual store directory. A URL with
(or)could match one with_, 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.pnpm now rejects a
jsr:specifier whose scope or package name contains an underscore. Before,jsr:@a_/bandjsr:@a/_bboth resolved to the npm package@jsr/a___b.On Unix, pnpm now opens store lock files relative to a verified directory handle #18509.
When pnpm resolves a runtime from its
SHASUMS256.txtfile, 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.Installing packages
pnpm installno longer crashes withnodeLinker: hoistedandhoistingLimits: projectswhen a project depends on a package in a dependency cycle, such aseslintorbrowserslist.Fixed installs failing in shared Unix projects when another user owns a package executable that the current user can already run #18491.
pnpm now trusts the certificate authorities listed with
ca[]=in.npmrc, the array form thecasetting documents. They were ignored, so requests to a registry with a private certificate authority failed withinvalid peer certificate: UnknownIssuer.pnpm config get caandpnpm config listnow show every certificate authority set withca=orca[]=lines in.npmrc. 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.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.
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.
Interrupting pnpm with
Ctrl+Cno longer leaves a temporary file next to a file pnpm was starting to write, such as the lockfile #1418.On macOS,
pnpm installnow runsxattronly for native binaries that carry the quarantine attribute #18469.package.yamlandpackage.json5manifestspnpm install --frozen-lockfileno longer fails withERR_PNPM_OUTDATED_LOCKFILEwhen a project depends on a workspace project whose manifest ispackage.yamlorpackage.json5. It failed when the install was filtered with--filter, or whensharedWorkspaceLockfilewasfalse.pnpm installnow reads apackage.yamlorpackage.json5manifest for afile:directory dependency. It does the same for an injected workspace project declared by path, such asworkspace:../lib. The dependencies of such a package were not installed.pnpm install --frozen-lockfilethen rejected the lockfile thatpnpm installhad written.For such a
file:directory,pnpm installalso copies only the files that thefilesfield selects, and it no longer skips the install scripts of the directory.pnpm installnow links the bins of a workspace project, or of alink:orfile:directory dependency, whose manifest ispackage.yamlorpackage.json5.pnpm installwithnodeLinker: loadedno longer fails when the manifest of a workspace project ispackage.yamlorpackage.json5.pnpm deploywith--legacyorforceLegacyDeploynow deploys a project whose manifest ispackage.yamlorpackage.json5. It failed withERR_PNPM_NO_IMPORTER_MANIFEST_FOUND.A peer dependency that the workspace root provides through a
link:dependency now resolves to the linked package's version when that package's manifest ispackage.yamlorpackage.json5. pnpm resolved it to the newest matching version from the registry.Resolving dependencies and the lockfile
Fixed
pnpm update <name>@<version>replacing a catalog reference inpackage.jsonin manual catalog mode. The update now moves the referenced catalog entry to the requested version or range #18547.catalog.unused: pruneno longer removes default catalog entries that a project or an override references ascatalog:default, the long form ofcatalog:. It also keeps entries referenced with whitespace around the catalog name, such ascatalog: default.Running
pnpm addorpnpm updateon a single project now preserves shared lockfile entries for projects missing from a sparse checkout #18465.pnpm installdrops an optional peer when you remove its last provider.pnpm dedupeandpnpm install --fix-lockfilealso remove stale optional peer bindings from existing lockfiles #18482.pnpm fetch --filternow fetches only the packages of the selected projects when the workspace uses a shared lockfile #16441.pnpm now installs the Rust toolchain of a
rust-toolchain.tomlwhosechannelends in the host of the machine, such as1.95.0-x86_64-unknown-linux-gnu. Such a file was left to rustup.Building and patching dependencies
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.
pnpm patch-commitnow records changes to binary files, andpatchedDependenciespatches that change binary files apply byte for byte. Before, binary files were written to the patch as mangled text diffs.Fixed
pnpm rebuild <pkg>leaving an approved Git dependency unprepared afterpnpm install --ignore-scripts#18551.pnpm rebuild <pkg>andpnpm approve-builds <pkg>now keep the build output of unselectedfile:directory dependencies under both isolated and hoisted node linkers.Checking dependencies before a run
pnpm runandpnpm execnow treat a missing lockfile as dependencies that are not up to date whenverifyDepsBeforeRunis enabled. Theinstallaction restores the lockfile before running the command, and theerroraction refuses to run pnpm/tasks#219.Fixed
verifyDepsBeforeRunreporting an unchangedfile:directory dependency as out of date when installed under an alias #18560.Fixed
verifyDepsBeforeRunincorrectly reporting stale dependencies after an install pruned unused entries fromminimumReleaseAgeExcludeortrustPolicyExclude#18498.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
?.The store
pnpm store prunenow 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.An install that uses the global virtual store now fails if it cannot register the project in the store.
pnpm store add <directory>now adds a tarball that is a symlink to a file outside the directory, such as the links a NixlinkFarmcreates. It used to skip such a tarball without a warning. A directory with no tarballs now fails withERR_PNPM_STORE_ADD_NO_TARBALLS, which names the directory.pnpm now accepts tarballs with unambiguous multiline package metadata from older npm releases. When
pnpm store addfails to fetch or extract a tarball, the warning identifies the archive #18479.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.
Commands and output
Fixed
pnpm installreporting an error frompnpm addwhen an unknown option precedes a separate value #18494.An
includeerror about the override policy now namesoverrides.unused. pnpm named the olderwarnUnusedOverridessetting.pnpm sbomnow lists components, SPDX packages, and SPDX relationships in the same order on every run for the same lockfile. The order varied between runs before.pnpm audit deprecationsnow lists the deprecated versions of a package that share a deprecation message in one block, with the message shown once. Long dependency chains inpnpm audit deprecationsandpnpm audit enginesnow show only the direct dependency and the two packages closest to the reported one.pnpm docs,pnpm home, andpnpm reponow print the URL before opening it in the browser #18516.Platinum Sponsors
Gold Sponsors
v12.24.0: pnpm 12.24Compare Source
This release adds
pnpm audit deprecationsandpnpm audit engines, moves install warnings into a checks footer aboveDone 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>also no longer grants every permission to a package that has no pending request.Minor Changes
Added
pnpm audit deprecations, which lists the installed packages that their registry marks as deprecated, with the projects or packages that bring each one in. It exits with code1if any package is deprecated. The deprecated line at the end of an install now points to this command.Added
pnpm audit engines, 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 code1if any package is incompatible. The lines about unsupported Node.js versions and platforms at the end of an install now point to this command.An install now ends with a checks footer above
Done in. 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.Deprecated packages are listed on one line, such as
✗ 2 packages are deprecated: request@2.88.2 and uuid@3.4.0. Peer dependencies with issues are named the same way, with a hint to runpnpm peers checkfor details.Dependencies that don't support the current Node.js version or platform are grouped by what they want, such as
✗ 15 packages want Node.js ^18.18.0 || ^20.9.0 || >=21.1.0, not 12.0.0: …. 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.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.
The
pnpm:install-checklog event of an unsupported engine or platform now carries the errorcode, thepkgId, and what the package wants inwanted. An unsupported engine event also carries thecurrentversions.The install summary prints an updated dependency on one line, such as
↑ lodash 4.17.20 → 4.18.1. A downgrade is marked with↓. The changed part of the new version is colored the waypnpm outdatedcolors it.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
in @scope/app. A change made by several projects shows how many, such asin 5 projects.Dependencies with newer versions are named on one line at the end, with a hint to run
pnpm outdated. 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.When an install finishes, its progress lines are replaced by the stats, such as
Packages: +58 -2 (90% downloaded), with the share of packages downloaded or reused from the store. In the bar below it, a downloaded package is drawn as↓and a reused one as+.The
Scope:line is printed only when a filter selected some of the workspace projects, not when the command ran on all of them.Global installs can now link approved agent skills into skill directories under your home directory. Use
pnpm approve -gto review skills and build scripts for globally installed packages pnpm/tasks#117.pnpm installwarns when a locally declared package permission matches no dependency during a full resolution. The permission stays saved for future installs. Setpermissions.unusedtoignorealongsidepermissions.rulesto turn off the warning #18429.pnpm-workspace.yamlaccepts grouped forms of the override and catalog settings.overrides.rulesholds override selectors alongsideoverrides.unused(warnorignore).catalog.entriesholds default catalog entries alongsidecatalog.unused(ignoreorprune).catalog.modeandcatalog.defaultSaveTargetconfigure howpnpm adduses catalogs and where it saves new entries. The existing map forms and flat settings remain supported #18429.Package tarball downloads can use credentials over plain HTTP when the user's global settings explicitly declare the HTTP registry URL #18427.
A single-package version bump now allows unstaged edits and untracked files excluded from the package. Staged changes still block the bump #18417.
Patch Changes
Security and approvals
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.
pnpm approve <pkg>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, configurepermissionsor usepnpm approve-buildsto grant build permission in advance #18415.pnpm approvenow 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 #18375. 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 #18388.Fixed exact versions with SemVer build metadata in
minimumReleaseAgeExclude,trustPolicyExclude, andallowBuilds. Pruning now keeps exclusions for versions in the lockfile #18444.Installing packages
Fixed
pnpm install --offline --frozen-lockfilefailing the release-age check when workspace manifests are copied afterpnpm fetch#18409.pnpm installnow resolves acatalog:peer dependency declared by a localfile:dependency. Installing such a dependency failed withERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVERpnpm/tasks#310.Fixed
pnpm installfailing or writing an incomplete lockfile key when afile:dependency path contains parentheses #18443.Fixed frozen installs rejecting a local dependency when the workspace override and lockfile use equivalent relative paths #18381.
Fixed concurrent installs sharing a store occasionally copying an empty or incomplete package file #18433.
Fixed repeated installs before
pnpm runandpnpm execafter a scope registry changes when the command would run a frozen or filtered install #18448.Fixed
pnpm deploy --prod --legacyfailing on patches for packages excluded from the deployment #18394.Resolving and linking dependencies
Fixed missing commands in
node_modules/.binwhen a patched dependency moves to a new slot in the global virtual store #18398.Fixed packages in the global virtual store resolving an injected workspace dependency from another checkout #18447.
Fixed
pnpm installleaving a hidden hoist link behind when the workspace root adds the package as a direct dependency #18362.Fixed
overridesaccepting selectors with multiple parents when a middle package had a version range #18445.Fixed
pnpm updateoverwriting Node.js version ranges such as>=20 <23inengines.runtimeanddevEngines.runtimewith an exact version #18360.Dependency changes now preserve the runtime policy declared in
package.jsonwhenruntimeOnFailis set #18376.Platforms and the pnpm binary
Fixed the FreeBSD x64 build of
pnpm, which failed to compile.The pnpm binary is 10 to 13 MB smaller on Linux and macOS. It no longer includes the symbol names that only debuggers use.
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 #18408.
Commands and settings
pnpm infoandpnpm viewnow report a fully unpublished package withERR_PNPM_PACKAGE_NOT_FOUND. They used to fail with a metadata decoding error, which stopped tools such as Changesets from checking the rest of a release.pnpm add --save-typesnow skips a@typespackage that was fully unpublished #18428.Fixed
pnpm sbom --devomitting optional dependencies of development dependencies #18403.Downloaded Node.js, Deno, and Bun runtimes now declare their MIT license in
package.json. This letspnpm licenses listreport the runtime's declared license #18431.pnpm now treats an empty
XDG_CONFIG_HOME,XDG_CACHE_HOME,XDG_DATA_HOME, orPNPM_HOMEas unset and uses the default directory. An empty value made pnpm read and write its global config, auth file, and cache in apnpmdirectory under the current working directory.pnpm now expands a leading
~/incacheDirvalues loaded from the global config orPNPM_CONFIG_CACHE_DIRto the user's home directory, as it does forstoreDir.pnpm config setnow writes values containing Unicode line separators (U+2028 and U+2029) topnpm-workspace.yamlunchanged, so reading the setting back returns the value that was set.When
pnpm-workspace.yamlmostly uses double quotes, quoted values pnpm adds to it now use double quotes, such as the entries written bypnpm config set,pnpm approve-builds, and catalog updates. Previously onlyminimumReleaseAgeExcludeandtrustPolicyExcludeentries followed the file's quote style #18364.pnpm installno longer warns about a project's ownpnpm-workspace.yamlwhen 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 itspnpm-workspace.yamlwithout the warning #18441.Install output
The install summary of a project with no previous install lists only the dependencies the command added or changed. A fresh
pnpm installof 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.pnpm install --lockfile-onlyshows its progress again, counting the packages it resolves.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
0.00 Bline at its start.Platinum Sponsors
Gold Sponsors
Important
✂ PR body was truncated to here.
Configuration
📅 Schedule: (in timezone UTC)
* 18-21 * * *)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.