Repository navigation
[pull] main from pnpm:main - #523
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )