npm pnpm 12.27.0
pnpm 12.27

one hour ago

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 as pnpm add my-tool@gh-release:owner/repo.

    The new ghReleaseTools setting names the release asset and the commands of a gh-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 as aqua:tamasfe/taplo, and tools released as .tar.xz archives, such as aqua:watchexec/cargo-watch.

  • On Windows, pnpm install now adds <command>.exe to node_modules/.bin for a command whose file is an .exe, beside its .cmd shim. 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, and pnpm stage now 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.json has no name now fails with ERR_PNPM_MISSING_PACKAGE_NAME, as it does for a file: tarball. Such a package was installed under its dependency alias at version 0.0.0 when its package.json had none of the fields pnpm records, such as {} or {"private": true}.

  • pnpm add -g <directory> and Git dependencies now read package.yaml and package.json5 manifests. Git dependencies with these manifests run their preparation scripts. Global packages with these manifests also expose their declared binaries pnpm/tasks#220.

  • pnpm install now updates the lockfile in place after a dependency is removed or moved to another dependency group, in a project where overrides rewrites a direct dependency. Such an install resolved the whole dependency graph again.

  • Fixed the allowBuilds example shown by pnpm install for 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.

  • supportedArchitectures now reads a little-endian POWER Linux machine as linux-ppc64le. pnpm read it as linux-ppc64be, for example when a platform list names current.

  • 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 set now handles a pnpm-workspace.yaml that 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 as allowBuilds.esbuild used to fail with an invalid YAML error #18645.

  • pnpm publish and pnpm dist-tag no 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.

Platinum Sponsors

Bit OpenAI Notion
CodeRabbit Cloudflare

Gold Sponsors

Sanity Discord Vite
SerpApi Stackblitz Workleap
Nx Latitude Syntax

Don't miss a new pnpm release

NewReleases is sending notifications on new releases.