PNpM CLI
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.
<!-- sponsors -->
Platinum Sponsors
<table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://bit.cloud/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"><img src="https://pnpm.io/img/users/bit.svg" width="80" alt="Bit"></a> </td> <td align="center" valign="middle"> <a href="https://openai.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/openai_dark.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/openai_light.svg" /> <img src="https://pnpm.io/img/users/openai_dark.svg" width="160" alt="OpenAI" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://notion.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/notion.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/notion_light.svg" /> <img src="https://pnpm.io/img/users/notion.svg" width="80" alt="Notion" /> </picture> </a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/coderabbit.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/coderabbit_light.svg" /> <img src="https://pnpm.io/img/users/coderabbit.svg" width="220" alt="CodeRabbit" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://www.cloudflare.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/cloudflare.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/cloudflare_light.svg" /> <img src="https://pnpm.io/img/users/cloudflare.svg" width="160" alt="Cloudflare" /> </picture> </a> </td> </tr> </tbody> </table>
Gold Sponsors
<table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://sanity.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/sanity.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/sanity_light.svg" /> <img src="https://pnpm.io/img/users/sanity.svg" width="120" alt="Sanity" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://discord.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/discord.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/discord_light.svg" /> <img src="https://pnpm.io/img/users/discord.svg" width="220" alt="Discord" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://vite.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"><img src="https://pnpm.io/img/users/vitejs.svg" width="42" alt="Vite"></a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://serpapi.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/serpapi_dark.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/serpapi_light.svg" /> <img src="https://pnpm.io/img/users/serpapi_dark.svg" width="160" alt="SerpApi" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://stackblitz.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/stackblitz.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/stackblitz_light.svg" /> <img src="https://pnpm.io/img/users/stackblitz.svg" width="190" alt="Stackblitz" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://workleap.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/workleap.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/workleap_light.svg" /> <img src="https://pnpm.io/img/users/workleap.svg" width="190" alt="Workleap" /> </picture> </a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://nx.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/nx.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/nx_light.svg" /> <img src="https://pnpm.io/img/users/nx.svg" width="50" alt="Nx" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://latitude.so/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/latitude.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/latitude_light.svg" /> <img src="https://pnpm.io/img/users/latitude.svg" width="160" alt="Latitude" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://syntax.fm/?utm_source=pnpm&utm_medium=release_notes" target="_blank" rel="noopener noreferrer"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/syntaxfm.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/syntaxfm_light.svg" /> <img src="https://pnpm.io/img/users/syntaxfm.svg" width="90" alt="Syntax" /> </picture> </a> </td> </tr> </tbody> </table>
<!-- sponsors end -->