Commit Graph

10213 Commits

Author SHA1 Message Date
Zoltan Kochan
d12c9028ec chore(release): 10.30.0 v10.30.0 2026-02-17 15:49:12 +01:00
Zoltan Kochan
b21bae08cf ci(benchmark): fix reported pnpm version 2026-02-17 15:34:10 +01:00
Zoltan Kochan
78dc1e8261 ci: add benchmark job 2026-02-17 15:08:04 +01:00
Zoltan Kochan
8850193347 ci: add benchmark job 2026-02-17 15:05:23 +01:00
Zoltan Kochan
301d0defe6 feat: add nameFormatter option to buildDependentsTree for custom display names (#10629)
Allow consumers (e.g. Bit CLI) to provide a nameFormatter callback that
reads the package manifest and returns a custom display name. The resolved
displayName is carried through the DependentsTree/DependentNode data model
and used by all render functions (tree, JSON, parseable).
2026-02-15 22:19:49 +01:00
Zoltan Kochan
cb4991ad05 feat: add --depth option to pnpm why to limit display depth (#10627) 2026-02-15 21:41:31 +01:00
Zoltan Kochan
9a5d4e745f refactor: re-export dependents rendering functions from reviewing/list
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 20:56:04 +01:00
Zoltan Kochan
d203a71c98 feat: reverse pnpm why tree and improve list/why output (#10615)
- **`pnpm why` now shows a reverse dependency tree.** The searched package appears at the root with its dependants as branches, walking back to workspace roots. This replaces the previous forward-tree output which was noisy and hard to read for deeply nested dependencies.
- **Replaced `archy` with a new `@pnpm/text.tree-renderer` package** that renders trees using box-drawing characters (├──, └──, │) and supports grouped sections, dim connectors, and deduplication markers.
- **Show peer dependency hash suffixes** in `pnpm list` and `pnpm why` output to distinguish between different peer-dep variants of the same package.
- **Improved `pnpm list` visual output:** bold importer nodes, dimmed workspace paths, dependency grouping, package count summary, and deterministic sort order.
- **Added `--long` support to `pnpm why`** and the ability to read package manifests from the CAS store.
- **Deduplicated shared code** between `list` and `why` commands into a common module, and reused `getPkgInfo` in the why tree builder.
2026-02-15 18:04:18 +01:00
Zoltan Kochan
4718981f78 refactor: simplify dependenciesHierarchyForPackage by delegating to getTree (#10616)
Instead of manually iterating over top-level dependencies, calling
getPkgInfo/getTreeNodeChildId/getTree per dependency, and handling
dedup/search logic in parallel with materializeChildren, delegate
entirely to a single getTree call with the importer as root.

The returned PackageNode[] are then post-categorized into their
dependency fields (dependencies, devDependencies, optionalDependencies)
using a fieldMap built from the lockfile importer snapshot.

This eliminates the duplicated dedup/search handling between
dependenciesHierarchyForPackage and materializeChildren, and removes
the GetTreeResult wrapper type from getTree (now returns PackageNode[]
directly). The materializeChildren cache is now the sole mechanism for
cross-importer deduplication.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 22:09:19 +01:00
Zoltan Kochan
4071cb7ab6 perf: share dependency graph and materialization cache across importers in list/why (#10596) 2026-02-13 21:16:12 +01:00
Zoltan Kochan
9cf78367a1 chore: update pnpm 2026-02-13 16:01:25 +01:00
Zoltan Kochan
c342f0de4b revert: fix(reviewing): fix memory error in pnpm why (#10582)
ref #7122
2026-02-13 16:01:09 +01:00
Zoltan Kochan
f001ab770f chore(release): 10.29.3 v10.29.3 2026-02-11 13:07:10 +01:00
Ryo Matsukawa
0d3798c216 fix(dlx): respect minimumReleaseAgeExclude (#10572)
close #10338
2026-02-11 02:35:44 +01:00
Brandon Cheng
4794c61dd1 fix: disable global virtual store during pnpm deploy (#10577) 2026-02-11 02:20:56 +01:00
Zoltan Kochan
c02513b58b chore: update pnpm 2026-02-11 02:17:28 +01:00
Karl Kaiser
9a131f4b80 feat: add support for filtering packages since last commit under git worktree (#10542)
support managing repo in git worktree for filtering for packages changed since last commit
2026-02-11 02:17:07 +01:00
Zoltan Kochan
ba1f5960fa fix: list command should not fail with an OOM error (#10586)
close #8731
2026-02-11 00:44:58 +01:00
Zoltan Kochan
87d50fbb18 docs: update sponsors 2026-02-10 21:28:37 +01:00
Zoltan Kochan
00c7677e80 fix: apply allowBuilds config set via pnpmfile (#10564)
close #10516
2026-02-09 15:04:28 +01:00
Zoltan Kochan
ea870c786f chore(release): 10.29.2 v10.29.2 2026-02-09 02:22:45 +01:00
Zoltan Kochan
595cd414f8 revert: "fix: allow pnpm run -r to work with empty pnpm-workspace.yaml (#10578)
* revert: "fix: allow pnpm `run -r` to work with empty pnpm-workspace.yaml (#10520)"

This reverts commit f1cb40c4e1.

* revert: "test: fix"

This reverts commit 1dbbffb6ad.

* docs: add changeset

close #10571
2026-02-09 02:21:46 +01:00
Zoltan Kochan
046c693a0b chore(release): 10.29.1 v10.29.1 2026-02-07 18:56:46 +01:00
Zoltan Kochan
607c2a603d fix: force isexe version that supports Node.js 18 2026-02-07 18:56:10 +01:00
Zoltan Kochan
11202fc1ed chore(release): 10.29.0 v10.29.0 2026-02-07 17:51:43 +01:00
Zoltan Kochan
f3cdd01238 chore: update pnpm 2026-02-07 16:49:51 +01:00
Zoltan Kochan
9b59a83cf4 fix: compile 2026-02-07 16:49:29 +01:00
Zoltan Kochan
6f61c615f7 fix: ignore vulnerability in dev dep 2026-02-07 02:23:40 +01:00
Zoltan Kochan
e364a73408 fix: update tar 2026-02-07 02:22:48 +01:00
Zoltan Kochan
08f28daebd fix: pnpm help should correctly show if pnpm is bundled with Node.js (#10563)
close #10561
2026-02-07 02:10:23 +01:00
Zoltan Kochan
901750fb3f test: fix 2026-02-07 00:50:41 +01:00
Zoltan Kochan
1dbbffb6ad test: fix 2026-02-07 00:07:00 +01:00
Zoltan Kochan
a68f8cfc0f test: fix 2026-02-06 21:57:46 +01:00
Zoltan Kochan
72fd99c6dc test: fix 2026-02-06 21:32:51 +01:00
Zoltan Kochan
c03fc464f1 style: fix 2026-02-06 21:14:29 +01:00
Zoltan Kochan
789b6de5e1 fix: compile 2026-02-06 21:00:34 +01:00
btea
7d8be9f1e9 feat: support auditLevel (#10554)
* feat: support `auditLevel`

* refactor: auditLevel

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-02-06 20:32:20 +01:00
Ryo Matsukawa
22eaf9b50e fix(audit): respect --audit-level in JSON output (#10547)
* fix(audit): respect --audit-level in JSON output

* refactor: audit

* docs: fix changeset

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-02-06 20:21:17 +01:00
Luca Casonato
e18eaf0fc0 fix: exit with signal code when inner pnpm fails (#10549)
close #10548
2026-02-06 20:21:11 +01:00
Alessio Attilio
7adf26b017 fix: skip local file: protocol dependencies during pnpm fetch (#10514)
This fixes an issue where pnpm fetch would fail in Docker builds when
local directory dependencies (file: protocol) were not available.

The fix adds an ignoreLocalPackages option that is passed from the fetch
command to skip local dependencies during graph building, since pnpm
fetch only downloads packages from the registry and doesn't need local
packages that won't be available in Docker builds.

close #10460
2026-02-06 20:21:04 +01:00
Ryo Matsukawa
f1cb40c4e1 fix: allow pnpm run -r to work with empty pnpm-workspace.yaml (#10520)
close #10497
2026-02-06 20:20:55 +01:00
btea
8887218d97 fix: remove the prefix for view version info (#10498) 2026-02-06 20:20:48 +01:00
이종혁
b37a6ee9bc fix(plugin-commands-store): support relative storeDir in store commands (#10490)
close #10290

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-02-06 20:20:40 +01:00
Dennis Chen
a57ba4edee fix: warn when directory contains PATH delimiter character (#10487)
* fix: warn when directory contains PATH delimiter character

Add a warning when the current directory contains the PATH delimiter
character (colon on macOS/Linux, semicolon on Windows). On macOS,
folder names containing forward slashes (/) appear as colons (:) at
the Unix layer. Since colons are PATH separators in POSIX systems,
this breaks PATH injection for node_modules/.bin.

close #10457

* test: add tests for PATH delimiter warning

- Test warning is emitted when directory contains delimiter
- Test no warning for normal directories
2026-02-06 20:20:30 +01:00
Zoltan Kochan
9821d2d0c8 perf: save node_modules/.modules.yaml in JSON format (#10406) 2026-02-06 20:12:18 +01:00
Alessio Attilio
4471eb801f fix: preserve reference overrides in pnpm audit --fix (#10478)
close #10325

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-02-06 20:10:43 +01:00
Ryo Matsukawa
7f18264751 fix: shamefullyHoist set via updateConfig in .pnpmfile.cjs (#10519)
* fix: `shamefullyHoist` set via `updateConfig` in `.pnpmfile.cjs`

* refactor: consolidate derived config processing to cli-utils

Move shamefullyHoist → publicHoistPattern conversion from
config/config to cli-utils/getConfig.ts as suggested in review.

* test(config): update tests for derived config processing move

* refactor: move applyDerivedConfig to cli-utils

* refactor: move applyDerivedConfig to cli-utils

* test: use unit test for hoist: false in cli-utils

* revert: not needed changes

close #10271
2026-02-06 20:08:26 +01:00
Lucas Gomes Santana
9bfa53d131 fix(deps): update tar version to 7.5.7 to fix security vulnerability (pnpm#10530) (#10539)
close #10530
2026-02-06 20:07:15 +01:00
Diogo Correia
b2347e75db fix(worker): inconsistent store structure due to race condition (#10536)
close #10535
2026-02-06 20:02:59 +01:00
Chanakya Sinde
e82fdb3d31 docs: fix grammar and use HTTPS links in Code of Conduct (#10523) 2026-02-06 20:02:51 +01:00