revert: fix(reviewing): fix memory error in pnpm why#10582
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Reverts the dependency-tree pruning introduced in #7122 for pnpm why, restoring the original (unpruned) dependency output to prioritize correctness.
Changes:
- Removed the dependency-tree pruning implementation (
pruneTree.ts). - Stopped pruning results in
listForPackages, passing the full dependency hierarchy to renderers. - Added a changeset documenting the revert and bumping
@pnpm/listandpnpmas patch releases.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| reviewing/list/src/pruneTree.ts | Deletes the pruning helper that truncated dependency trees. |
| reviewing/list/src/index.ts | Removes pruning from listForPackages, restoring full output. |
| .changeset/fluffy-bugs-knock.md | Adds a changeset noting the revert of #7122 and patch bumps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Feb 10, 2026
zkochan
added a commit
that referenced
this pull request
Feb 13, 2026
zkochan
added a commit
to teambit/bit
that referenced
this pull request
Feb 17, 2026
`bit why` now shows a reverse dependency tree. The searched package appears at the root with its dependents as branches, walking back to workspace components. This replaces the previous forward-tree output which was noisy and hard to read for deeply nested dependencies. Also with the complete rewrite of the dependency tree builder we have fixed the out-of-memory errors that were frequent with the why command. The command also became a lot faster. ## Proposed Changes Related PRs: - pnpm/pnpm#10582 - pnpm/pnpm#10586 - pnpm/pnpm#10615 - pnpm/pnpm#10616 - pnpm/pnpm#10627 - pnpm/pnpm#10629 - pnpm/pnpm#10596 --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ref #7122