pnpm 12.27.0
This release adds the gh-release: protocol, which installs command-line tools from any GitHub repository's releases. It also installs more aqua: tool formats and gives Windows commands an .exe that Cargo and rustc can run. The release carries a security fix in the node-gyp bundled with pnpm.
Minor Changes#
-
Added the
gh-release:protocol. It installs a command-line tool from the assets of a GitHub repository's releases, for a tool the aqua registry has no entry for, such aspnpm add my-tool@gh-release:owner/repo.The new
ghReleaseToolssetting names the release asset and the commands of agh-release:tool when pnpm cannot pick them from the asset names, such as when a release has several assets for one platform. -
pnpm add aqua:<owner>/<repo>now installs tools released as a gzip-compressed program, such asaqua:tamasfe/taplo, and tools released as.tar.xzarchives, such asaqua:watchexec/cargo-watch. -
On Windows,
pnpm installnow adds<command>.exetonode_modules/.binfor a command whose file is an.exe, beside its.cmdshim. Cargo can run such a command as a subcommand, and rustc can use it as a linker or a wrapper. -
pnpm publish,pnpm dist-tag,pnpm unpublish, andpnpm stagenow print the notices that a registry sends when it asks for web authentication, such as the code to enter in the browser.
Patch Changes#
Installing packages#
-
The node-gyp bundled with pnpm now uses tar 8, which fixes several tar advisories, including GHSA-7c32-79xj-j3jp.
-
Installing a tarball URL or git-hosted dependency whose
package.jsonhas nonamenow fails withERR_PNPM_MISSING_PACKAGE_NAME, as it does for afile:tarball. Such a package was installed under its dependency alias at version0.0.0when itspackage.jsonhad none of the fields pnpm records, such as{}or{"private": true}. -
pnpm add -g <directory>and Git dependencies now readpackage.yamlandpackage.json5manifests. Git dependencies with these manifests run their preparation scripts. Global packages with these manifests also expose their declared binaries pnpm/tasks#220. -
pnpm installnow updates the lockfile in place after a dependency is removed or moved to another dependency group, in a project whereoverridesrewrites a direct dependency. Such an install resolved the whole dependency graph again. -
Fixed the
allowBuildsexample shown bypnpm installfor Git dependencies fetched over SSH. The quoted key includes the Git username, commit, and any package subdirectory #18628. -
pnpm no longer links a command whose name starts with
.pnpm-. Those names are reserved for the files pnpm keeps in a bin directory.
Tools and runtimes#
-
pnpm now installs a Node.js runtime from the lockfile on 32-bit ARM Linux, 32-bit Windows, and little-endian POWER Linux. On these hosts, pnpm found no Node.js download in the lockfile that matched the host.
-
supportedArchitecturesnow reads a little-endian POWER Linux machine aslinux-ppc64le. pnpm read it aslinux-ppc64be, for example when a platform list namescurrent. -
An
aqua:tool whose Linux download is a glibc build, such as hyperfine on ARM64, is no longer installed on musl systems such as Alpine. The glibc build could not run there. -
pnpm now unpacks a tool's download when the lockfile changes it from a program on its own to an archive of the same file. pnpm kept linking the stored program as the command.
-
A Rust toolchain install now stops if downloading the toolchain takes longer than 15 minutes. For a channel that moves, such as
stable, pnpm then uses the newest release of the channel already in the store pnpm/tasks#286.
Configuration and publishing#
-
pnpm config setnow handles apnpm-workspace.yamlthat begins with a UTF-8 byte order mark. Setting the first key of such a file used to add a second entry with the same key. Adding a nested setting such asallowBuilds.esbuildused to fail with an invalid YAML error #18645. -
pnpm publishandpnpm dist-tagno longer print a "Skipped OIDC" warning for every package when they fall back to the configured token, such as when publishing to GitHub Packages. pnpm logs the reason at debug level #18674.