Repository navigation
[pull] main from pnpm:main - #433
Merged
Merged
Conversation
…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.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
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 : )