Skip to content

revert: fix(reviewing): fix memory error in pnpm why#10582

Merged
zkochan merged 1 commit intomainfrom
revert-7122
Feb 9, 2026
Merged

revert: fix(reviewing): fix memory error in pnpm why#10582
zkochan merged 1 commit intomainfrom
revert-7122

Conversation

@zkochan
Copy link
Member

@zkochan zkochan commented Feb 9, 2026

ref #7122

Copilot AI review requested due to automatic review settings February 9, 2026 10:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/list and pnpm as 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.

@zkochan zkochan merged commit 861dd2a into main Feb 9, 2026
25 of 26 checks passed
@zkochan zkochan deleted the revert-7122 branch February 9, 2026 14:05
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>
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.

2 participants