Repository navigation
Commit 036dace
fix(deps): Update pnpm to v12.22.0 (#143)
> ℹ️ **Note**
>
> This PR body was truncated due to platform limits.
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [pnpm](https://pnpm.io)
([source](https://redirect.github.com/pnpm/pnpm/tree/HEAD/pnpm/npm/pnpm))
| [`12.15.0` →
`12.22.0`](https://renovatebot.com/diffs/npm/pnpm/12.15.0/12.22.0) |

|

|
---
### Release Notes
<details>
<summary>pnpm/pnpm (pnpm)</summary>
###
[`v12.22.0`](https://redirect.github.com/pnpm/pnpm/releases/tag/v12.22.0):
pnpm 12.22.0
[Compare
Source](https://redirect.github.com/pnpm/pnpm/compare/v12.21.0...v12.22.0)
pnpm 12.22.0 adds a `globalPackagesConfig` section to the global
`config.yaml` for settings that apply only to global packages, adds
`pnpm why --ranges`, and lists workspace projects in dependency order in
`pnpm list --recursive`. It also includes a security fix. After the
default or a scoped registry changed, `pnpm install` could skip the
`minimumReleaseAge` and `trustPolicy` checks against the new registry.
##### Minor Changes
- Settings under `globalPackagesConfig` in the global `config.yaml` now
apply only to commands that act on global packages, such as `pnpm add
-g` and `pnpm update -g`. For example,
`globalPackagesConfig.trustPolicyExclude` excludes a package from the
trust policy for global installs only
[#​18130](https://redirect.github.com/pnpm/pnpm/issues/18130).
`pnpm approve-builds -g` and `pnpm add -g --allow-build` now save build
decisions under `globalPackagesConfig.permissions`. pnpm still applies
build settings from the `pnpm-workspace.yaml` of the global packages
directory, with a deprecation warning. The next approval moves them to
`config.yaml`.
- Added `pnpm why --ranges`, which lists the version range that each
direct dependent declares for the package. `pnpm why --json` now
includes the declared range of each dependent in a `requires` field
[#​18121](https://redirect.github.com/pnpm/pnpm/pull/18121).
- `pnpm list --recursive` now lists workspace projects in dependency
order. Use `--no-sort` to retain workspace order
[#​7716](https://redirect.github.com/pnpm/pnpm/issues/7716).
- A `file:` dependency on a local directory now resolves `catalog:`
specifiers in that directory's `package.json` against the workspace
catalogs, as an injected workspace package does. Before, the install
failed with `ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER`.
A `file:` dependency on the `publishConfig.directory` of a project is
now described by that project's `package.json`, as an injected workspace
package is. A `package.json` that a build writes into that directory no
longer changes the resolution.
- The experimental `v13` lockfile format records a local directory
package's declared specifiers in its `dependencies` and
`optionalDependencies`, beside the versions they resolved to. A
dependency marked `injected` in `dependenciesMeta` has `injected: true`.
The format no longer has a `dependenciesMeta` field. Run `pnpm install`
to rewrite a `v13` lockfile that an earlier pnpm wrote.
##### Patch Changes
##### Security
- `pnpm install` now re-verifies lockfile resolutions when the default
registry or a scoped registry changes. Before, it reused the result
cached for the previous registry and skipped the `minimumReleaseAge` and
`trustPolicy` checks against the new one
[#​18070](https://redirect.github.com/pnpm/pnpm/pull/18070).
For a registry with `serverType: pnpr`, `pnpm install` also verifies
locked package revisions against the registry when no cached result
applies.
- `pnpm dlx` no longer reuses a cached install made under looser
`overrides`, `packageExtensions`, `minimumReleaseAge`, `trustPolicy`,
`trustLockfile`, or `blockExoticSubdeps` settings. It also no longer
applies `overrides`, `packageExtensions`, or `blockExoticSubdeps` from a
local `pnpm-workspace.yaml`
[#​18075](https://redirect.github.com/pnpm/pnpm/pull/18075).
`pnpm dlx --allow-build=!<pkg>` now denies build scripts for `<pkg>`,
including the executed package itself. Denied packages also skip
interactive build approval.
- `pnpm audit` now reports advisories whose `id` is a string. Such
advisories were dropped, and `pnpm audit` reported no known
vulnerabilities
[#​18184](https://redirect.github.com/pnpm/pnpm/issues/18184).
##### Installs that failed
- When the `pnpm` package downloads its native binary on first run, it
now reads a global `config.yaml` that holds only blank lines or comments
as no settings. Such a file made every command fail with "expected a
document, but the input is empty"
[#​18172](https://redirect.github.com/pnpm/pnpm/issues/18172).
- When the `pnpm` package downloads its native binary on first run, it
now works with registries that serve no per-version package documents,
such as Azure Artifacts. If such a registry also removed npm's
signatures, pnpm fetches them from registry.npmjs.org. The binary still
comes from the configured registry and is checked against npm's
signature.
- Fixed an offline install failing the `minimumReleaseAge` lockfile
check with `ERR_PNPM_NO_OFFLINE_META` after an online install resolved
the same packages with the same cache directory. The check now reads
publish times from the metadata that the resolution cached
[#​18063](https://redirect.github.com/pnpm/pnpm/issues/18063).
- `pnpm install` no longer runs `git ls-remote` for a git dependency
whose specifier is unchanged and whose commit the lockfile already
records. Installs that update the lockfile, such as Renovate's, no
longer fail without git credentials when the project has a private git
dependency with peer dependencies
[#​18104](https://redirect.github.com/pnpm/pnpm/issues/18104).
- `npm:<pkg>@​<range>` and named-registry package aliases with
space-separated comparators, such as `npm:bar@>=1.0.0 <2.0.0`, now
resolve the target package
[#​18169](https://redirect.github.com/pnpm/pnpm/issues/18169).
- `pnpm install` with `lockfile.format: v13` no longer fails with
`ERR_PNPM_NEXT_LOCKFILE_NOT_REPRESENTABLE` when it converts a `v9`
lockfile in which a package with many peers has a hashed peer suffix and
is in a dependency cycle with one of its peers
[#​18148](https://redirect.github.com/pnpm/pnpm/issues/18148).
- `pnpm deploy --prod` now succeeds with `lockfile.format: v13` when a
production package's optional peer is provided only by development
dependencies. The excluded provider stays out of the deployed project
[#​18117](https://redirect.github.com/pnpm/pnpm/issues/18117).
- `pnpm deploy` now preserves `lockfile.format` and
`lockfileIncludeTarballUrl` in the deployed `pnpm-workspace.yaml`.
Previously, commands such as `pnpm dedupe --check` in a deployed project
using `lockfile.format: v13` treated the lockfile as `v9` and reported
changes.
- Fixed `pnpm install --merge-git-branch-lockfiles --frozen-lockfile`
failing with `ERR_PNPM_OUTDATED_LOCKFILE` when a project sets or removes
`publishConfig.directory`, `publishConfig.linkDirectory`, or
`dependenciesMeta`. Lockfile merging now preserves and reconciles
`publishDirectory`, `linkDirectory`, and `dependenciesMeta` on
importers.
- Frozen installs accept injected workspace packages whose child
dependencies use `link:` or a bare relative path
[pnpm/tasks#274](https://redirect.github.com/pnpm/tasks/issues/274).
- Installing an injected local package no longer fails with a "no such
file or directory" error when another process renames or removes files
in that package while pnpm lists them. This happened most often on macOS
in workspaces with `sharedWorkspaceLockfile: false`, where the install
of the package itself writes its lockfile at the same time.
- Fixed a crash when `pnpm-lock.yaml` or a dependency selector contains
a package name that starts with a multi-byte UTF-8 character.
- Tarball URLs that reject HEAD requests with 405 Method Not Allowed now
fall back to a GET request during resolution.
##### Resolving and linking dependencies
- With `autoInstallPeers`, an optional peer is no longer bound to a
version outside its range that only another dependency's subtree brings
in. Before, adding an unrelated dependency could flip that binding and
rewrite the peer suffixes of other projects in the lockfile
[#​18162](https://redirect.github.com/pnpm/pnpm/issues/18162).
- Fixed duplicate packages with `nodeLinker: hoisted` and
`autoInstallPeers: false` when identical transitive peer bindings
appeared under parents with conflicting dependencies.
- When multiple `overrides` selectors match a dependency, pnpm now picks
the selector with the narrower version range regardless of the order in
which the overrides are declared
[#​18071](https://redirect.github.com/pnpm/pnpm/pull/18071).
- Patches that add lines to the end of a file without a final newline
now install the whole file. pnpm dropped the last added line when the
patch also marked it with `\ No newline at end of file`
[#​18156](https://redirect.github.com/pnpm/pnpm/issues/18156).
- Project `engines.node` checks now use the Node.js runtime that pnpm
links for the dependency groups being installed. If the lockfile records
that runtime, the check uses its resolved version. Production installs
ignore a runtime declared only in `devEngines.runtime`
[pnpm/tasks#302](https://redirect.github.com/pnpm/tasks/issues/302).
- `pnpm install` and `pnpm approve` now discover, link, and prune agent
skills from `workspace:*`, `link:`, and local directory `file:` direct
dependencies.
##### Cargo and Python
- `pnpm add crate:` and targeted `pnpm update crate:` commands keep
compatible versions from `Cargo.lock` for other crates
[pnpm/tasks#257](https://redirect.github.com/pnpm/tasks/issues/257).
- `pnpm add crate:<pkg>` no longer corrupts multiline arrays in
`Cargo.toml`. Saving an explicit version with `pnpm add
crate:<pkg>@​<version>` now replaces `workspace = true` on
existing dependency entries. Inherited workspace settings such as
`features`, `default-features`, and `package` stay on the updated entry.
`pnpm install` now accepts unversioned path dependencies on prerelease
Cargo workspace members. Cargo workspace inheritance now resolves
`package` renames.
- `pnpm add` for `pypi:` dependencies now preserves existing entries in
`pyproject.toml` whose PEP 508 environment markers differ from the added
requirement. `pnpm add` also accepts PEP 508 direct URL requirements
such as `pypi:pkg @​ https://...`. `pnpm update` at a
shared-environment workspace root without a root `[project]` table now
updates matching member manifests and the shared `pylock.toml`.
- An invalid entry in a Python registry's `packages` list now names the
patterns a Python registry accepts: an exact name, a prefix such as
`company-*`, or `**`. The error used to suggest `@scope/*`, which a
Python registry rejects. It also quotes the entry as written. A rejected
prefix such as `-a*` used to appear as `-ax`.
##### Running scripts
- `verifyDepsBeforeRun` no longer reports the dependencies as out of
date when `runtimeOnFail` stops pnpm from installing the runtime that
`devEngines.runtime` or `engines.runtime` declares
[#​18155](https://redirect.github.com/pnpm/pnpm/issues/18155).
Commands that install a single project of a workspace, such as `pnpm add
-w`, now apply `runtimeOnFail` to the other workspace projects too. They
no longer install a runtime that `runtimeOnFail` excludes.
- `pnpm --if-present start`, `pnpm run --if-present start`, and `pnpm
restart --if-present` now exit with code 0 when a project has neither a
`start` script nor a `server.js` file
[#​18073](https://redirect.github.com/pnpm/pnpm/pull/18073).
- `pnpm test`, `pnpm t`, and `pnpm tst` in a single-package project now
fail with `ERR_PNPM_NO_SCRIPT` when the `test` script is missing unless
`--if-present` is passed
[#​18073](https://redirect.github.com/pnpm/pnpm/pull/18073).
- `shellEmulator` now handles escaped backslashes (`\\`) and unquoted
escaped single quotes (`\'`) according to POSIX quoting rules.
Previously, scripts containing `"a\\"` or `\'` failed to parse or
misquoted later `${...}` parameter expansions.
- `pnpm create` now forwards `--env-file` and other CLI flags placed
after the starter template name to the starter command.
- `pnpm pipeline` now hashes no input files when `inputs: []` is
configured. `+`-prefixed input globs include gitignored files and
workspace files outside the project directory. `!`-prefixed input globs
exclude matching files. Tasks that depend on an uncacheable task now
bypass cached output restoration and re-run after that dependency
executes. Read-only cached output files restore without permission
errors. Task keys now hash each project's wanted lockfile across
per-project lockfiles, custom `lockfileDir`, and branch lockfiles.
##### Build approvals
- `pnpm approve-builds` and `pnpm approve` without package arguments or
`--all` now fail with `ERR_PNPM_APPROVE_BUILDS_NON_INTERACTIVE` and
`ERR_PNPM_APPROVE_NON_INTERACTIVE` when packages are awaiting approval
in CI or without an interactive terminal. `pnpm dlx` and global installs
also skip automatic build-approval prompts in CI, leaving pending builds
unapproved.
- `pnpm approve-builds` and `pnpm add --allow-build` no longer corrupt a
`pnpm-workspace.yaml` whose last line has no line break.
##### Workspaces and lockfiles
- Combining `--filter` and `--filter-prod` with exclusion selectors such
as `!pkg` now evaluates all selectors together in command-line order. An
exclusion passed on one flag while inclusions were passed on the other
no longer selects every workspace project.
- `pnpm -r fetch` now fetches each selected project's lockfile when
`sharedWorkspaceLockfile` is `false`. Use `--filter` to limit which
projects are fetched
[#​18152](https://redirect.github.com/pnpm/pnpm/issues/18152).
- `pnpm peers` in workspaces with `sharedWorkspaceLockfile: false` now
checks each selected project's `pnpm-lock.yaml`.
- `pnpm ci` now validates that `pnpm-lock.yaml` exists and matches
`package.json` before removing `node_modules`. `pnpm clean` and `pnpm
ci` now honor `--filter`, `--filter-prod`, and `--workspace-root`. `pnpm
clean` and `pnpm ci` also clean root `node_modules` in workspaces
without a root `package.json`. `pnpm clean --lockfile` now removes
per-project lockfiles and lockfiles inside a custom `lockfileDir`.
- `pnpm clean`, `pnpm purge`, and `pnpm ci` keep files outside the
project untouched when `modulesDir` points outside the project root.
When `node_modules` is a symlink, `pnpm` now unlinks the symlink without
modifying its target
[#​18072](https://redirect.github.com/pnpm/pnpm/pull/18072).
- `pnpm import` now preserves locked versions for `npm:` aliased
dependencies when importing from `package-lock.json`,
`npm-shrinkwrap.json`, or `yarn.lock`. `pnpm import` also parses Yarn
Classic `yarn.lock` files that reference `__metadata` package names
without treating them as Yarn Berry lockfiles.
##### Updating, publishing, and versioning
- `pnpm update` now moves an `engines.pnpm` range along with the pnpm
version in `packageManager` or `devEngines.packageManager`
[#​18142](https://redirect.github.com/pnpm/pnpm/issues/18142).
- Fixed GitHub Actions support in `pnpm update` and `pnpm outdated`.
Updating a workflow step with a major or minor version comment such as
`# v4` or a prose comment now formats the updated version comment
cleanly. Negated action selectors such as `!actions/cache/save` now
exclude only the targeted subpath actions. Passing only negated action
selectors still updates packages. Previously, negated action selectors
skipped package updates. `pnpm outdated` now reports every distinct
outdated version when several workflows pin the same action at different
versions.
- Fixed `pnpm update` skipping package updates when a Package URL
selector such as `pkg:npm/foo` is combined with
`--include-github-actions`.
- `pnpm update -g --latest` now upgrades global runtimes (`node`,
`deno`, and `bun`) and `npm:`-aliased global packages across major
versions.
- `pnpm update --changeset` now generates a changeset when a
`.changeset` directory exists or `versioning` is configured in
`pnpm-workspace.yaml`, without requiring `.changeset/config.json`. It
also respects `versioning.ignore` alongside `.changeset/config.json`.
- `pnpm version -r` now runs each bumped package's `preversion`,
`version`, and `postversion` scripts unless `--ignore-scripts` or
`--dry-run` is set. `pnpm version -r --dry-run --json` now prints the
planned releases as a JSON array.
- `pnpm lane <lane> --filter <selector>` now rejects partial moves of a
`versioning.fixed` group with `ERR_PNPM_VERSIONING_CONFLICTING_CONFIG`
before writing `pnpm-workspace.yaml`.
- `pnpm -C <dir> publish <tarball|folder>` and `pnpm --dir <dir> publish
<tarball|folder>` now resolve relative tarball and directory arguments
against `<dir>`. Git checks during `pnpm publish` also inspect the
target directory.
- `pnpm -r publish` now skips workspace manifests whose `name` or
`version` field is an empty string.
- `pnpm -r pack --out` now expands `%s` and `%v` placeholders only in
the `--out` template. Literal `%s` and `%v` segments in the working
directory path stay unchanged.
##### Other commands and settings
- `pnpm config set --global --json tools` now writes `tools` to the
global `config.yaml` and validates its structure before saving. `pnpm
config set --global` also accepts `pm-on-fail` and `runtime-on-fail`.
`blockExoticSubdeps` and `excludeLinksFromLockfile` set in the global
`config.yaml` now take effect during installs and appear in `pnpm config
get --global`. pnpm now ignores workspace-only settings in the global
`config.yaml` and prints a warning, matching `pnpm config set --global`.
- `${VAR}` placeholders in `pnpm-workspace.yaml` written with YAML flow
syntax now fail on registry URLs with
`ERR_PNPM_REGISTRY_ENV_NOT_EXPANDED`. Placeholders in flow-style proxy,
`pnprServer`, and `userAgent` settings are now ignored with a warning
[#​18074](https://redirect.github.com/pnpm/pnpm/pull/18074).
- `updateConfig` and `afterAllResolved` hooks in `.pnpmfile.cjs` that
return `undefined`, `null`, or a non-object value now fail with
`ERR_PNPM_CONFIG_IS_UNDEFINED` and
`ERR_PNPM_BAD_AFTER_ALL_RESOLVED_RETURN`.
- `finders` in `.pnpmfile.cjs` that return an empty string no longer
match packages in `pnpm list --find-by` or `pnpm why --find-by`.
- `pnpm list` no longer adds an `npm:` prefix to aliased local `file:`
directory dependencies, and `pnpm list --json` preserves
`<name>@​file:<path>` in their `version` field.
- `pnpm list --parseable --long` now keeps `<name>@​` on `link:`
and `file:` dependencies whose path or peer suffix contains `@`, such as
`link:../@​scope/pkg`. Aliased scoped `file:` dependencies whose
path contains `@` also keep `<name>@​` in `pnpm list`.
- `pnpm why` no longer merges distinct local `file:` directory
dependencies that share the same package name across projects with
dedicated lockfiles (`sharedWorkspaceLockfile: false`).
- `pnpm sbom` and `pnpm licenses list` now resolve `namedRegistries`
version prefixes in lockfile entries. `pnpm sbom` emits bare component
versions with a sanitized `repository_url` PURL qualifier. `pnpm sbom`
derives tarball download URLs from the named registry. `pnpm licenses
list` reports packages from named registries as separate entries with
bare versions and `registryName`.
- `pnpm pkg` now reads and writes the project manifest as written on
disk. `pnpm pkg get` no longer reports synthetic `runtime:` dependency
entries from `devEngines.runtime` or `engines.runtime`. `pnpm pkg set`
and `pnpm pkg delete` now preserve `devEngines.runtime`,
`engines.runtime`, and empty dependency objects set with `--json`.
- `pnpm pm` now works after CLI flags such as `--dir` and after `pnpm
with current`. `pnpm with current` also accepts subcommand boolean flags
such as `pnpm --bare with current init` ahead of `with`.
- `pnpm env` commands (`use`, `list`, and `remove`) now accept Node.js
version specifiers with a leading `v`, including prerelease versions
such as `v22.0.0-rc.1`.
- `pnpm doctor` now checks write access for the cache, store, and global
bin directories before they have been created. Previously, `pnpm doctor`
reported `no write access` on fresh environments.
`pnpm doctor` now probes whether reflinks or hardlinks work from the
store into the project's link target and warns when neither does.
##### Output and error messages
- An error from a failed dependency resolution, such as an unreachable
registry or a throwing pnpmfile resolver, now prints its cause once
[#​18077](https://redirect.github.com/pnpm/pnpm/issues/18077).
- pnpm no longer wraps error messages at the output width, so URLs and
paths in them stay intact when stderr is not a terminal
[#​18078](https://redirect.github.com/pnpm/pnpm/issues/18078).
- `pnpm install` with `nodeLinker: hoisted` no longer counts missing
packages as removed. This fixes inflated removal counts for skipped
optional dependencies
[#​18178](https://redirect.github.com/pnpm/pnpm/issues/18178).
- `pnpm outdated --json` and `pnpm outdated --format=json` now write
reporter warnings to `stderr`. Warnings previously appeared on `stdout`
before the JSON output.
- `pnpm stage` with `--json` now keeps `stdout` valid JSON during dry
runs, empty workspace runs, and errors. `pnpm pipeline --dry-run --json`
and `pnpm -r run --dry-run --json` now write reporter warnings and scope
lines to `stderr`.
- `pnpm` warns when an `updateConfig` hook changes `registries` and some
routes still use their configured registry. The warning names those
routes and points to `registriesByScope`.
- `pnpm cat-file` now reports `ERR_PNPM_INVALID_HASH` when given an
empty, malformed, or truncated digest such as `sha512-`.
<!-- 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 -->
###
[`v12.21.0`](https://redirect.github.com/pnpm/pnpm/releases/tag/v12.21.0):
pnpm 12.21
[Compare
Source](https://redirect.github.com/pnpm/pnpm/compare/v12.20.0...v12.21.0)
pnpm 12.21.0 lets `pnpm store add` prepare tarball and git dependencies
for offline installs. It also makes repeated installs keep their peer
dependency choices and fixes several `lockfile.format: v13`,
`nodeLinker: hoisted`, and `pnpm deploy` failures. If a pnpr server
refuses a setting, pnpm now resolves locally.
##### Minor Changes
- `pnpm store add` run in a project now prepares downloaded tarballs for
every lockfile entry that pins them. Besides registry packages, `pnpm
install --offline --frozen-lockfile` can then install dependencies on a
tarball URL and dependencies on a git host such as GitHub whose lockfile
entry records an `integrity`.
##### Patch Changes
##### Installs that failed
- pnpm now reads a lockfile with a mapping key longer than 1,024
characters written as `'key':`, without the `? ` marker. Before, `pnpm
install` and other commands failed on such a lockfile with
`ERR_PNPM_BROKEN_LOCKFILE`.
- With `lockfile.format: v13`, `pnpm install` no longer fails to create
or rewrite the lockfile when a package declares many of its dependencies
as peers.
- Fixed `pnpm deploy` failing with `lockfile.format: v13` when injected
workspace packages have hashed peer bindings.
- Frozen installs with v13 lockfiles now accept valid peer dependencies
of injected workspace packages that use catalogs.
- Fixed injected workspace packages that depend on themselves linking to
a nonexistent directory.
- `pnpm install` with `frozenStore` enabled no longer fails with
`ERR_PNPM_FROZEN_STORE_NEEDS_BUILD` when `nodeLinker` is `hoisted`.
`pnpm fetch` with `nodeLinker: hoisted` no longer populates global
virtual store links or modifies linked agent skills, and it preserves an
existing hoisted `node_modules` directory
[#​18037](https://redirect.github.com/pnpm/pnpm/issues/18037).
- A `requirements.txt` beside a `pyproject.toml` that declares
`[tool.uv.workspace]` without a `[project]` table no longer makes that
directory a Python project. `pnpm install` stopped there with an error
when the directory had a `.venv` that pnpm did not create
[#​18023](https://redirect.github.com/pnpm/pnpm/issues/18023).
##### Peer dependencies
- Repeated installs no longer change the peer dependency providers that
the previous install chose. This covers adding, updating, or removing a
dependency, projects that use different ranges of one dependency,
dependency cycles, and injected dependencies with `autoInstallPeers:
false`
[pnpm/tasks#221](https://redirect.github.com/pnpm/tasks/issues/221).
An unchanged install keeps a valid locked peer provider even when a
direct dependency provides another compatible version. Explicit `pnpm
add` and `pnpm update` requests take precedence over it.
- Workspace projects that select different versions of a peer provider
no longer share one copy of the package that depends on it. This
affected peers reached through an aliased dependency or a peer
dependency cycle.
- A removed dependency no longer comes back as a peer provider. Before,
a direct dependency removed with `autoInstallPeers: false` could be
restored from an old peer resolution, and a removed one could still
supply its old peer context.
- With `nodeLinker: hoisted` and `autoInstallPeers: false`, `pnpm
install` no longer creates duplicate copies of a package whose resolved
peers are identical. A package also no longer loads a copy of its
dependency that was resolved with different peer versions
[#​18003](https://redirect.github.com/pnpm/pnpm/issues/18003).
- `pnpm deploy` now binds optional peers declared only in
`peerDependenciesMeta` for linked workspace packages. The deployed
manifest and lockfile also retain these peers when filtering dependency
groups.
##### Running scripts
- Scripts now stop when pnpm's process group is killed while they are
starting.
- Bin shims in the global virtual store no longer include the hoisted
modules directory of the project that installed them
[#​18035](https://redirect.github.com/pnpm/pnpm/issues/18035).
- `pnpm pipeline` now rebuilds local packages and reruns build scripts
after it restores a shared Cargo build cache with Cargo 1.100 or newer.
Before, a worktree could reuse build-script output from the worktree
that created the cache.
##### pnpr
- If the pnpr server refuses a setting the install uses, or cannot
return the lockfile format pnpm reads, `pnpm install` and `pnpm update`
print a warning and resolve locally. Cargo and Python resolution also
fall back to resolving locally. pnpm now rejects a pnpr resolution of
npm dependencies that does not name its lockfile format.
- `pnpm install` with `pnprServer` now limits the size of the server's
resolve and lockfile verification responses. An oversized response ends
the request with an error.
- pnpm now displays pnpr error codes and reasons when remote requests
fail.
##### Other commands and settings
- `pnpm setup` and the install script now support PowerShell as the
login shell on Linux and macOS. They add `PNPM_HOME` to `PATH` in
`profile.ps1` under `$XDG_CONFIG_HOME/powershell` or
`~/.config/powershell`
[#​18026](https://redirect.github.com/pnpm/pnpm/issues/18026).
- A `lockfileDir` setting that points at the default lockfile directory
now installs the same way as leaving it unset
[pnpm/tasks#275](https://redirect.github.com/pnpm/tasks/issues/275).
<!-- 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 -->
###
[`v12.20.0`](https://redirect.github.com/pnpm/pnpm/releases/tag/v12.20.0):
pnpm 12.20
[Compare
Source](https://redirect.github.com/pnpm/pnpm/compare/v12.19.0...v12.20.0)
pnpm 12.20.0 records the specifiers of local directory dependencies in
the experimental v13 lockfile and fixes several `nodeLinker: hoisted`,
peer dependency, and `overrides` bugs. The bundled `node-gyp` no longer
ships the undici version that security scanners flag. Remote resolution
and shared build caches no longer work with pnpr 0.1.0-alpha.19 or
older.
##### Minor Changes
- With `lockfile.format: v13`, `pnpm install` records the dependency
specifiers of local directory packages. Frozen installs reject changed
specifiers even when the locked versions still satisfy them.
##### Patch Changes
##### Upgrading and security
- Remote resolution, shared build caches, and release notes no longer
work with pnpr 0.1.0-alpha.19 or older. pnpm now reads the capabilities
a pnpr server advertises under `pnpr.protocols`. Installs fail when the
server does not confirm the requested resolution and verification
policies.
- The `node-gyp` bundled with pnpm no longer ships undici 6, which
security scanners flag for CVE-2026-84947. On Node.js 26, `node-gyp`
downloads through a proxy or with a custom CA file no longer crash with
"invalid onError method"
[#​17941](https://redirect.github.com/pnpm/pnpm/issues/17941).
##### Resolving dependencies
- Version-selector `overrides` entries such as `"ms@^2.0.0": "2.1.1"`
now apply to dependencies declared with the `catalog:` protocol when the
catalog entry's range matches the selector
[#​17922](https://redirect.github.com/pnpm/pnpm/issues/17922).
- A root `overrides` entry that points a package at a `workspace:` path,
such as `workspace:./packages/foo`, now also applies when a registry
package depends on that package
[pnpm/tasks#270](https://redirect.github.com/pnpm/tasks/issues/270).
- Git dependencies now accept npm's `::` separator between fragment
parameters, such as `github:owner/repo#v1.0.0::path:packages/foo`.
Before, pnpm read the whole fragment as a branch name and failed to
resolve it
[#​17827](https://redirect.github.com/orgs/pnpm/discussions/17827).
- `pnpm dedupe` now keeps a locked runtime version, from
`devEngines.runtime` or from a dependency's `engines.runtime`, when the
declared range still admits it. `pnpm dedupe --check` no longer fails
each time a newer Node.js release in the range comes out
[#​17984](https://redirect.github.com/pnpm/pnpm/issues/17984).
- With `autoInstallPeersFromHighestMatch`, conflicting non-semver peer
dependencies now remain missing, and identical non-semver peer
specifiers are preserved. Preferred registry versions no longer replace
local paths or protocol-prefixed specifiers when pnpm installs missing
peers
[pnpm/tasks#272](https://redirect.github.com/pnpm/tasks/issues/272).
##### Hoisted node linker
- With `nodeLinker: hoisted`, a package now keeps its nested copy of a
dependency that it resolved at a version other than the top-level one,
including a peer dependency its parent supplies. Before, pnpm could
remove that copy as a duplicate or give the top-level slot to a peer
variant found deeper in the graph. The package then loaded the top-level
version.
##### Lockfile and peer dependency graphs
- Fixed `pnpm install` keeping stale peer bindings after dependency
changes. Required dependencies no longer remain marked optional when
another workspace project removes a shared package
[pnpm/tasks#221](https://redirect.github.com/pnpm/tasks/issues/221).
- Repeated installs now keep the same dependency links when packages
form cycles with several peer dependency variants
[pnpm/tasks#221](https://redirect.github.com/pnpm/tasks/issues/221).
- Fixed writing `lockfile.format: v13` for dependency cycles with
missing, optional, or transitive peers. Frozen installs also accept
unchanged injected packages whose peers use catalogs. With
`--no-optional`, frozen installs reject required catalog children
recorded only as optional dependencies
[pnpm/tasks#221](https://redirect.github.com/pnpm/tasks/issues/221).
- `pnpm deploy` preserves an injected workspace package's resolved
dependencies when they differ from the workspace project's own
dependencies. This also applies to packages with
`publishConfig.directory`
[pnpm/tasks#221](https://redirect.github.com/pnpm/tasks/issues/221).
##### Running scripts and runtimes
- Scripts that pnpm runs in a process group of their own are now ended
when pnpm is killed right after starting them. A parallel run that was
killed before pnpm registered its scripts left all of them running.
- When a command name matches no script and pnpm falls back to running
it as a command, the install that runs before scripts now runs once. Its
errors and warnings print once
[#​17977](https://redirect.github.com/pnpm/pnpm/issues/17977).
- Failed downloads by project-aware global runtime commands now explain
which configuration applies. Node.js failures also list the global
mirror settings and environment variables to check.
##### Other commands and settings
- Fixed `pnpm` occasionally crashing on the first HTTPS request, mostly
on Windows virtual machines under load. pnpm now seeds TLS randomness
from the operating system's random number generator
[pnpm/tasks#239](https://redirect.github.com/pnpm/tasks/issues/239).
- Fixed `pnpm deprecate`, `pnpm undeprecate`, and `pnpm unpublish`
failing with revision conflicts when a registry cache serves stale
package metadata.
- `pnpm sbom` now reports malformed workspace manifests. Before, it
omitted their packages
[pnpm/tasks#59](https://redirect.github.com/pnpm/tasks/issues/59).
- Fixed `pnpm store status` reporting approved builds of git
dependencies as modified when the store contains legacy build metadata.
- pnpm now recognizes Capawesome Cloud and RWX as CI environments.
<!-- 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 -->
###
[`v12.19.0`](https://redirect.github.com/pnpm/pnpm/releases/tag/v12.19.0):
pnpm 12.19
[Compare
Source](https://redirect.github.com/pnpm/pnpm/compare/v12.18.0...v12.19.0)
pnpm 12.19.0 adds `pnpm fund`, lets the `loaded` node linker handle
packages that need a build, and adds the `projectScopedOptionalPeers`
setting and an experimental JSON lockfile format. It also includes a
security fix: an offline install error no longer prints registry
credentials. pnpm now checks the `engines` and platform fields of every
workspace project, and many hoisted-linker and frozen-lockfile bugs are
fixed.
##### Minor Changes
- Added `pnpm fund`, which lists the funding URLs declared by the
installed dependencies in the same tree `npm fund` prints. Use `--json`
for the `npm fund --json` report and `--recursive` or `--filter` to
report on workspace projects. `pnpm fund <pkg>` opens the funding URL of
an installed package, and `--which` picks one when it lists several
[#​7354](https://redirect.github.com/pnpm/pnpm/issues/7354).
- With `nodeLinker.type: loaded`, packages that need a build no longer
have to be listed in `nodeLinker.excluded`. A package with a matching
side-effects cache entry loads from the store. If side-effects cache
reads and writes are enabled, pnpm builds an approved package once,
saves the result to the side-effects cache, and then loads it from the
store. This includes a build that changes no files in its package, so
its script does not run again in other projects that use the same store.
List a package in `sideEffectsCache.exclude` if its build must run in
every project, such as a git hook
> ✂ **Note**
>
> PR body was truncated to here.
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- Between 12:00 AM and 03:59 AM, on day 1 of the month (`* 0-3 1 * *`)
- Automerge
- At any time (no schedule defined)
🚦 **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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTUuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE5NS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWVyZ2UiXX0=-->
Co-authored-by: cloudquery-ci[bot] <271027272+cloudquery-ci[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>1 parent 782a416 commit 036dace
2 files changed
Lines changed: 71 additions & 62 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments