Skip to content

[pull] main from pnpm:main - #523

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

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

Conversation

@pull

@pull pull Bot commented Aug 20, 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 6 commits August 20, 2026 12:28
Indexed metadata mirrors expose version entries as a compact sequence, but
PackageVersions rebuilt a hash table for every packument. Keep those slots in
lexical order and use binary search for point lookups.

Existing unsorted inputs are sorted once when loaded; range picks continue to
inspect the real version set, and manifest fragments remain lazily hydrated.

This reduces fresh offline resolution time by about 5.3% on the local
resolution fixture and preserves byte-identical lockfile output.

Related to pnpm/pnpm#14015.
Fresh resolution opens a store-index reader and verified-files cache so resolver
prefetches can reuse warm packages. Materialization did not receive those
handles. It ran another batch prefetch whose result was not consumed,
reinitialized the store directories, opened another reader, and allocated a
second verification cache before performing its own prefetch.

Pass the existing store context into CreateVirtualStore. Frozen-lockfile callers
continue to initialize their own context, and a fresh install whose index did
not exist before resolution can still open it when materialization begins.
Remove the unused graph-key collector and discarded prefetch.

Related to #14022.
Restrict virtual-store bin linking to snapshots materialized by the current
install.

When lifecycle scripts are ignored and no patch or side-effects-cache overlay
requires the dependency graph, record pending builds directly from those
snapshots. Preserve pending-build debt from earlier installs and keep rebuild
operating on every snapshot.

This is a bounded post-resolve pipeline improvement related to #14022.
… versions (#13832)

`pnpm audit` no longer reports a patched version that was never published or is deprecated. The inferred patched range (e.g. `>=4.17.24` from `<=4.17.23`) is now checked against the registry packument, and the report is corrected to the lowest non-deprecated published version that satisfies it (e.g. `>=4.18.1` when `4.17.24` does not exist and `4.18.0` is deprecated). When no published version satisfies the range, the report shows `Patched versions: None`. This also prevents `pnpm audit --fix` from adding overrides or `minimumReleaseAgeExclude` entries for patches that do not exist [#13824](#13824).

`pnpm audit --fix` and `pnpm audit --fix update` no longer add a `minimumReleaseAgeExclude` entry when the registry packument shows that the minimum patched version was never published. Previously such entries were written for versions that do not exist, which would have let a later publish of that version bypass the `minimumReleaseAge` gate [#11563](#11563).

The `--json` output of `pnpm audit` now returns `patched_versions: null` for advisories whose inferred patch is not available (never published, skipped, yanked, or deprecated), making it easier for tooling to distinguish "no fix available" from "fix available at version X".

---------

Co-authored-by: Zoltan Kochan <[email protected]>
… has a LICENSE file or not (#13842)

If the package has a file like `license16.json`, the workspace root LICENSE file should be packed with the package.
…3873)

`pnpm add --allow-build` built the `allowBuilds` map it wrote to
pnpm-workspace.yaml out of the flag's names alone, dropping every entry
already there. A second map, seeded from the current settings, was built
for the install itself, so the approved builds still ran and only the
file lost entries.

Seed the written map from the current settings too, and drop the now
redundant second one. This matches `approve-builds` and `pnpm add -g`,
which already merge. pacquet upserts entries individually and was never
affected.

Fixes #13872

---------

Co-authored-by: Zoltan Kochan <[email protected]>
@pull pull Bot locked and limited conversation to collaborators Aug 20, 2026
@pull pull Bot added the ⤵️ pull label Aug 20, 2026
@pull
pull Bot merged commit 8680ece into dwongdev:main Aug 20, 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.

4 participants