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 config files, and it sends registry credentials only over HTTPS.
Minor Changes
Packing and publishing
• Removed platform variants. A package version has one archive again.
pnpm no longer reads publishConfig.variants or the variant field of package.json. pnpm pack --variant and the --upload-variant, --variant-integrity and --no-variants options of pnpm publish are gone. pnpr no longer accepts variant archives with a version or serves them at <name>@<version>/variants/<tag>.
To ship builds for several platforms, publish each as its own package and list them in optionalDependencies. A frozen install of a lockfile that records the variants of a registry package fails with ERR_PNPM_BROKEN_LOCKFILE. Run pnpm install to resolve the lockfile again.
• pnpm pack and pnpm publish now fail if a package that is not private lists a private workspace package in dependencies. A private package is never published, so the published package could not be installed. devDependencies, optionalDependencies, peerDependencies, and bundled dependencies are still allowed #2321.
• pnpm publish now supports --new-version <version>, which sets the version in package.json before publishing. With --recursive, every selected workspace package is set to the new version #2168.
• pnpm pack --json now reports the package.json that goes into the tarball, with publishConfig and the other publish-time changes applied. Run pnpm pack --dry-run --json to preview it without writing a tarball. A dry run still runs prepack and prepare, unless --ignore-scripts is passed.
• pnpm pack and pnpm publish now add a workspace-root COPYING file to a workspace package that has no license file. A COPYING file at the package root now counts as the package's license, so the workspace-root LICENSE is no longer added next to it.
• Added the versioning.includePrivatePackages setting. Set it to false to leave private packages out of pnpm change #13813.
Managing dependencies
• Added the pnpm edit command to open an installed package directory in an editor.
• Added pnpm catalog migrate, which moves dependency specifiers into the default catalog and replaces them in the workspace projects' package.json files with catalog:. A dependency moves only when every project declares it with the same specifier. The command lists the dependencies it leaves unchanged #7072.
• Added a --hard option to pnpm link. With --hard, pnpm saves the linked package with the file: protocol, so its files are hard linked into node_modules and its dependencies and peer dependencies resolve from your project. pnpm unlink removes these links too #9895.
• pnpm remove now accepts glob patterns and ! exclusions in dependency selectors, such as pnpm remove "eslint-*" "!eslint-plugin-import" #13546.
• When pnpm updates a package.json5, 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.
• nodeLinker accepts object settings for isolated and hoisted installs. Linker-specific hoisting options can be configured alongside the selected linker.
Updating dependencies
• pnpm update --latest <pkg> now moves the override that pins the named dependency #8701. pnpm update --interactive --latest 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 ^ stays ^. When pnpm cannot update the governing override automatically, the update prints a warning naming it.
• pnpm update now accepts --tag <tag>. The flag updates the matched dependencies to the version behind the given dist-tag and rewrites the ranges in package.json, the way --latest updates to the latest tag. It also works with --interactive and with global updates #3534.
• With trustPolicy:no-downgrade, pnpm update --interactive shows a Trust column with the trust evidence of each offered registry dependency #8889. The list also offers only versions the trust policy accepts, so it matches what the update installs.
• pnpm update --interactive --long shows the homepage or repository URL of each package. The URL column is hidden without --long.
Release age and build settings
• Added the referenceTime setting. minimumReleaseAge and trustPolicyIgnoreAfter count back from this RFC 3339 time, both when pnpm resolves versions and when it verifies a lockfile. Set it in pnpm-workspace.yaml or with PNPM_CONFIG_REFERENCE_TIME.
• Added the --minimum-release-age and --minimum-release-age-exclude options to pnpm install, pnpm add, pnpm update, and pnpm dlx. They set minimumReleaseAge and minimumReleaseAgeExclude for a single run without editing a config file #11224.
• pnpm audit --fix accepts --no-add-release-age-exclusions, which applies the fixes without adding entries to minimumReleaseAgeExclude.
• --allow-build now accepts a comma-separated list of packages, so pnpm add foo bar --allow-build=foo,bar is the same as passing --allow-build=foo --allow-build=bar #9560.
Install output
• Deprecation warnings moved into the install summary and only name the packages the install added. A deprecated dependency added by the install is marked deprecated 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 3 deprecated packages are still installed.
• 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 #6481.
• pnpm install now warns when an entry in overrides matches no dependency, in a single line such as 2 overrides matched no dependency:foo, parent>child. Only the overrides declared in the workspace are checked. Overrides added by a config dependency or an updateConfig hook are not. Set warnUnusedOverrides: false to turn the warning off #10315.
• pnpm install now shows lockfile verification progress while the supply-chain check runs. The final pass or failure line reports how many entries were checked.
Setup and diagnostics
• pnpm doctor now checks the environment that lifecycle scripts run in. It lists the node executables on PATH 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 node #16308.
• pnpm self-update, pnpm setup, and the "Install method" check of pnpm doctor now warn when another pnpm on PATH 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.
• Set PNPM_CONFIG_HOME to choose the directory containing config.yaml and auth.ini. Global configuration commands read and write files in this directory. A non-empty value takes precedence over XDG_CONFIG_HOME and the platform defaults.
• pnpm now provides a prebuilt binary for Linux on LoongArch (loong64) with glibc.
• A failed devEngines.runtime or engines.runtime check now reports the reason in its error code. A runtime that is not installed fails with ERR_PNPM_RUNTIME_NOT_FOUND. A runtime entry without a version range fails with ERR_PNPM_MISSING_RUNTIME_VERSION_RANGE, and one with an invalid range fails with ERR_PNPM_INVALID_RUNTIME_VERSION_RANGE. An installed version that does not satisfy the range still fails with ERR_PNPM_BAD_RUNTIME_VERSION.
• pnpm view <pkg> now prints the registry it read the metadata from at the end of the summary #11394.
Patch Changes
Security
• otp is no longer read from any config file. Pass --otp on the command line, or set PNPM_CONFIG_OTP. A pnpm-workspace.yaml or a global config.yaml that carries otp is ignored, with a warning naming those two channels. pnpm config set otp fails with ERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING.
This closes a way to leak a secret. A repository could write otp:${NPM_TOKEN} beside its own registry:, and pnpm publish sent that environment variable to the registry the same file named, in the npm-otp header of its first request #13542.
• pnpm now sends