Skip to content

[pull] main from pnpm:main - #506

Merged
pull[bot] merged 8 commits into
dwongdev:mainfrom
pnpm:main
Aug 14, 2026
Merged

pull[bot] merged 8 commits into
dwongdev:mainfrom
pnpm:main

Conversation

@pull

@pull pull Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

zkochan and others added 8 commits August 14, 2026 14:05
…om (#13911)

Two parts of the Rust engine are derived from Yarn's BSD 2-Clause code, and
neither carried its license:

- `crates/real-hoist` is a port of the hoisting algorithm in `@yarnpkg/nm`.
  It is not a clean-room reimplementation: the port mirrors the upstream
  decomposition function for function, keeps its type and function names,
  and its doc comments cite specific `hoist.ts` line numbers. That is the
  derivative-work end of the spectrum, and citing the source while omitting
  its license is a worse position than either doing it properly or never
  having read it.
- `crates/package-manager/src/compat_package_extensions.json` is a verbatim
  copy of the compatibility database in `@yarnpkg/extensions`.

The license text is reproduced verbatim from berry's `LICENSE.md` at the same
commit the `real-hoist` doc comments already reference. The copyright line is
left exactly as upstream writes it, "2016-present" included — clause 1 asks
that the notice be retained, and narrowing someone else's copyright term to
the date we happened to port the code is not ours to do.

Placement follows what each clause asks for. Clause 1 (source) is satisfied by
the inline comment at the top of each of the two files. Clause 2 (binary) asks
for the notice in the materials accompanying the distribution, so every
published package that carries the compiled engine now ships a
`THIRD-PARTY-NOTICES.md`.

Each of the three packaging paths needed its own handling. The `@pnpm/exe`
wrapper is assembled by copying `WRAPPER_FILES` but publishes the same patched
manifest as `pnpm`, so the notices file has to be in that list or it would name
a file absent from the tarball. The `@pnpm/exe.<target>` manifest declares no
`files`, so staging the file in the package directory is enough. The
`@pnpm/napi.<target>` manifest does declare one, so the notice had to be added
to that allowlist as well or the copy would be dropped at pack time.

The TypeScript CLI needs no equivalent: it depends on `@yarnpkg/nm` and
`@yarnpkg/extensions` as real packages, so their license installs into
`node_modules` on its own. Nothing user-visible changes in either stack, so
this needs no parity work.
The global config.yaml is filtered through `isConfigFileKey(kebabCase(key))`,
which accepts `state-dir`, and the settings that survive that gate are then
picked up in camelCase only — so the key passed the check whose job is to
report unsupported keys, and was dropped by the next one without a word.

Report those keys, naming the spelling that works. The two spellings
disagreed and only one of them said so.

Closes #13650
)

A catalog entry resolves to one version for every project that references it, but only the
projects in the install that moves the entry follow it. The rest kept the version they had — one
the entry no longer allowed — and nothing corrected it afterwards: by then the entry's specifier
matched what the lockfile recorded, so the up-to-date check read those projects as current and
skipped resolution entirely. A frozen install accepted the result too, so a workspace could sit
on two versions of one catalog entry indefinitely.

The up-to-date check now also compares each `catalog:` dependency's recorded version against the
version its entry resolved to, and the resolution the install forgets is chosen by the same
predicate, so a project left behind re-resolves through the catalog on its next install.\n\nExplicit frozen installs now reject the inconsistency.

An alias (`npm:` in the entry) records `<name>@<version>` rather than a bare version, and a
non-registry resolution records a protocol; neither compares to a version, so both are left
alone.
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.52.3 to 1.53.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](tokio-rs/tokio@tokio-1.52.3...tokio-1.53.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [open](https://github.com/Byron/open-rs) from 5.3.6 to 5.4.1.
- [Release notes](https://github.com/Byron/open-rs/releases)
- [Changelog](https://github.com/Byron/open-rs/blob/main/changelog.md)
- [Commits](Byron/open-rs@v5.3.6...v5.4.1)

---
updated-dependencies:
- dependency-name: open
  dependency-version: 5.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [clap](https://github.com/clap-rs/clap) from 4.6.1 to 4.6.6.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.6.1...clap_complete-v4.6.6)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.6.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#13905)

With a configured pnprServer, every install paid a full server exchange
even when the answer was already on disk, making pnpr strictly slower
than a direct install on up-to-date projects. Close that gap in three
layers, each deciding locally that the server has nothing to add:

- Let the pre-runtime "Already up to date" fast path run with a pnpr
  server configured. The check decides purely locally that nothing
  changed since the last install; asking the server cannot change that
  answer. The trust/policy settings guard pnpm already records in the
  workspace state (trustPolicy, trustPolicyExclude,
  trustPolicyIgnoreAfter, minimumReleaseAgeStrict,
  minimumReleaseAgeExclude) is now recorded and compared by pacquet
  too, so a policy change still defeats the fast path.

- Gate the resolve exchange on a local satisfaction check: an
  unfiltered install whose on-disk lockfile still satisfies every
  manifest goes straight to the frozen materialization, exactly like
  the non-pnpr preferFrozenLockfile dispatch.

- Consult the local lockfile-verified.jsonl cache before delegating
  input-lockfile verification to the server, and record server-verified
  and server-resolved lockfiles into that cache (pnpm's
  writeWantedLockfileAndRecordVerified), so repeat verifications of an
  unchanged lockfile stay local.

Add repeat-install scenarios (populated node_modules, hot and cold
cache) to the integrated benchmark, pre-warmed before hyperfine runs
and wired into the pnpr-not-slower-than-direct gate with an absolute
slack for tens-of-milliseconds runs.

Closes #13904
… store prune (#13893)

Two changes that let a CI job reuse a past lockfile verification.

`pnpm store prune` kept deleting `lockfile-verified.jsonl` in the TypeScript
CLI, for a cosmetic reason: a record written under a different policy or
lockfile looked like an alien file in `cacheDir`. It is not one — the record is
keyed on the lockfile content and the policy snapshot, and a stale one is
simply never trusted. Deleting it costs the next install a full
re-verification against the registry, which is the dominant cost of an install
in CI: 16.6s of a 17.6s install on Linux and 40.1s of 42.4s on Windows in
typescript-eslint's repository. The Rust CLI already kept it.

`pnpm cache path` prints the resolved cache directory, mirroring `pnpm store
path`. pnpm derives that directory from the platform and the `cacheDir`
setting and never reported it, so callers that want to cache or inspect it —
`pnpm/setup` and `pnpm/action-setup` among them — had to mirror the resolution
by hand. Both stacks print it absolute and lexically cleaned, so a relative
`cacheDir` yields a path other tools can consume; symlinks are left alone so
macOS does not print a path that differs from the configuration.
@pull pull Bot locked and limited conversation to collaborators Aug 14, 2026
@pull pull Bot added the ⤵️ pull label Aug 14, 2026
@pull
pull Bot merged commit 49ea66c into dwongdev:main Aug 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant