Skip to content

feat: show peer hashes in list output#10615

Draft
zkochan wants to merge 18 commits intomainfrom
perf/list-peer-hashes
Draft

feat: show peer hashes in list output#10615
zkochan wants to merge 18 commits intomainfrom
perf/list-peer-hashes

Conversation

@zkochan
Copy link
Member

@zkochan zkochan commented Feb 13, 2026

No description provided.

@zkochan zkochan changed the title Perf/list peer hashes feat: show peer hashes in list output Feb 13, 2026
@zkochan zkochan force-pushed the perf/list-peer-hashes branch from 827cead to 8e394cd Compare February 13, 2026 21:16
zkochan and others added 3 commits February 13, 2026 22:20
Display a short hash (#xxxx) next to packages that have peer dependency
resolutions, but only when the same name@version appears with multiple
distinct peer variants in the output.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@zkochan zkochan force-pushed the perf/list-peer-hashes branch from 8e394cd to e38b935 Compare February 13, 2026 23:10
zkochan and others added 12 commits February 14, 2026 02:33
Extract DEDUPED_LABEL to peerVariants.ts and simplify deduped rendering
in pnpm list to match the why output style (no child count node).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
…ation

Sort edges in the data layer (getTree, buildWhyTree) so that the
alphabetically-first occurrence of a package is always fully expanded
while later duplicates get [deduped]. Replace localeCompare with
lexCompare from @pnpm/util.lex-comparator for consistency. Remove
redundant ramda-based sorting from renderTree.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
The readManifest callback passed to finder functions in `pnpm why` now
reads the actual package.json from the content-addressable store using
the integrity hash from the lockfile. This works correctly for all
configurations including enableGlobalVirtualStore.

Also preserves finder string messages in the why output (searchMessage
field on WhyPackageResult) and removes the now-unused
virtualStoreDirMaxLength parameter from buildWhyTrees/whyForPackages.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant