Skip to content

[pull] main from pnpm:main - #433

Merged
pull[bot] merged 4 commits into
dwongdev:mainfrom
pnpm:main
Jul 22, 2026
Merged

pull[bot] merged 4 commits into
dwongdev:mainfrom
pnpm:main

Conversation

@pull

@pull pull Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

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 : )

zkochan added 4 commits July 22, 2026 07:32
…13208)

`pnpm install`, `pnpm add`, `pnpm update`, and `pnpm remove` accepted the
global `-r` / `--filter` flags in a workspace, but the shared install-family
selector rejected every recursive or filtered invocation when
`sharedWorkspaceLockfile: false` with
`ERR_PNPM_RECURSIVE_SHARED_LOCKFILE_UNSUPPORTED`.

Resolve the selection into a three-way `InstallFamilyPlan` (single, shared,
per-project). For the per-project (dedicated-lockfile) case, run one
independent single-project install/add/update/remove for each selected
project against its own `pnpm-lock.yaml`, `node_modules`, and virtual store,
mirroring pnpm's per-project loop in its recursive dispatch. Both stacks now
match for `sharedWorkspaceLockfile=true` and `false`.

Refs #13201.
Route recursive rebuilds through workspace project selection instead of rebuilding an unselected state. Shared-lockfile workspaces rebuild the selected importers together, while dedicated-lockfile workspaces rebuild each selected project in topological chunks with workspace concurrency and bail behavior preserved.

Related to #13201.
`pnpm unlink` reinstalled only the active project through a bespoke
single-project `Install`, so `-r` / `--filter` selection and per-project
lockfiles (`sharedWorkspaceLockfile: false`) were ignored — unlike pnpm,
whose `unlink` handler delegates to the install handler.

Strip the matching `link:` overrides (unchanged), then reinstall through
the same `InstallPipeline` that `install` uses (the three-way
`InstallFamilyPlan`: single / shared / per-project), forcing a fresh
resolution so the removed links re-resolve from the registry. Rename the
shared install-args constructor `for_patch_manifest_change` to
`for_reresolving_install`, since both patch and unlink want a re-resolving
full reinstall.

Refs #13201.
…t version (#13207)

The release engine computed every new version as inc(currentVersion, bump),
with no notion of whether currentVersion was ever published. A brand-new
package seeded at the epic band floor (e.g. 1100.0.0) with a minor changeset
therefore debuted at 1100.1.0, silently skipping 1100.0.0 — the deliberate
band-floor debut that epic re-base already publishes members at. Surfaced by
#13198, which adds `@pnpm/deps.github-actions` at 1100.0.0.

pnpm version -r and pnpm change status now probe the registry for each
release's current version and hold the never-published ones at their manifest
version: the first release publishes it verbatim, and the pending changesets
(still composed into the changelog and recorded in the ledger) apply only from
the next release. The probe always runs (version, change status, dry-run alike)
and a probe failure fails the command rather than guessing.

Mirrored in both stacks: `@pnpm/releasing.versioning` gains an unpublishedDirs
input to assembleReleasePlan, resolved by `@pnpm/releasing.commands` via a
registry probe threaded through a two-pass assembly; pacquet mirrors it in
pacquet-versioning's plan and the CLI's change/version commands. Command tests
inject the probe (TS) or a debug-only PACQUET_ASSUME_VERSIONS_PUBLISHED seam
that is compiled out of release builds (Rust); two Rust tests exercise the real
probe against the mock registry.
@pull pull Bot locked and limited conversation to collaborators Jul 22, 2026
@pull pull Bot added the ⤵️ pull label Jul 22, 2026
@pull
pull Bot merged commit 3d28129 into dwongdev:main Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant