From 2fee43412f3c11df85df4ae39ea26cb5ed85b293 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 29 Nov 2026 04:50:39 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/bump-only-workspace-protocol-ranges.md | 7 ------- .changeset/first-release-needs-a-bump.md | 5 ----- .changeset/gate-replays-release-commits.md | 15 --------------- .../merge-tree-reads-unrelated-histories.md | 5 ----- .changeset/plain-poets-enter.md | 5 ----- .changeset/private-member-intent-is-versioned.md | 5 ----- .changeset/private-member-versions.md | 5 ----- .changeset/private-members-skip-release.md | 6 ------ .changeset/private-members-unversioned.md | 5 ----- .changeset/release-plan-reads-pre-state.md | 5 ----- .changeset/single-package-root.md | 7 ------- .changeset/true-sides-call.md | 5 ----- CHANGELOG.md | 14 ++++++++++++++ package.json | 2 +- 14 files changed, 15 insertions(+), 76 deletions(-) delete mode 100644 .changeset/bump-only-workspace-protocol-ranges.md delete mode 100644 .changeset/first-release-needs-a-bump.md delete mode 100644 .changeset/gate-replays-release-commits.md delete mode 100644 .changeset/merge-tree-reads-unrelated-histories.md delete mode 100644 .changeset/plain-poets-enter.md delete mode 100644 .changeset/private-member-intent-is-versioned.md delete mode 100644 .changeset/private-member-versions.md delete mode 100644 .changeset/private-members-skip-release.md delete mode 100644 .changeset/private-members-unversioned.md delete mode 100644 .changeset/release-plan-reads-pre-state.md delete mode 100644 .changeset/single-package-root.md delete mode 100644 .changeset/true-sides-call.md diff --git a/.changeset/bump-only-workspace-protocol-ranges.md b/.changeset/bump-only-workspace-protocol-ranges.md deleted file mode 100644 index e8721c138..000000000 --- a/.changeset/bump-only-workspace-protocol-ranges.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@systemfsoftware/changesets-adapter": patch -"@systemfsoftware/version-engine": patch -"@systemfsoftware/github-release-engine": none ---- - -`version-management bump` rewrites a sibling's version only where the range uses the `workspace:` protocol. A plain range such as `^22.0.0` resolves from the registry and names a published release. The release PR used to rewrite it to the version not yet published, so its `pnpm install --frozen-lockfile` failed. diff --git a/.changeset/first-release-needs-a-bump.md b/.changeset/first-release-needs-a-bump.md deleted file mode 100644 index f79fed623..000000000 --- a/.changeset/first-release-needs-a-bump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/github-release-engine": patch ---- - -The release plan no longer releases an un-bumped tree. The cycle excludes a publishable member whose manifest version is still the uninitialized `0.0.0` — a first releasable cycle is the version the bump writes — and the phase resolves to `release` only when the cycle is owed and no intents are pending; while intents are pending the phase stays `version` so the run reconciles the release PR instead of tagging and publishing the tree that has not been bumped. diff --git a/.changeset/gate-replays-release-commits.md b/.changeset/gate-replays-release-commits.md deleted file mode 100644 index 7cbc13783..000000000 --- a/.changeset/gate-replays-release-commits.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@systemfsoftware/release-language": minor -"@systemfsoftware/changeset-engine": minor -"@systemfsoftware/process-adapter": minor -"@systemfsoftware/version-engine": minor -"@systemfsoftware/git-adapter": minor -"@systemfsoftware/workspace-adapter": patch -"@systemfsoftware/changesets-adapter": patch -"@systemfsoftware/github-release-engine": none -"@systemfsoftware/git-hooks-engine": none -"@systemfsoftware/cli-adapter": none -"@systemfsoftware/github-adapter": none ---- - -`changeset-management check` no longer trusts the branch name. It replays each commit that only deletes pending intents through `version bump` from that commit's parent, and passes it as a release only when the trees match exactly, so the release PR passes on a merge-queue draft and a manifest edit or extra file in a release commit is refused. Intent edits must keep each package's highest owed bump, a release cut from a base that has since changed a release surface is refused as stale, and under the turbo gate a package moved only by accounted dependencies needs no intent of its own. `ChangeEvidencePort` now reports git and turbo facts, a new `ReleaseReplayPort` names the replay, `version-engine` exports `bumpInputOf`, and `GitPort` drops `currentBranch` and `changedPaths`. A shallow clone is refused. diff --git a/.changeset/merge-tree-reads-unrelated-histories.md b/.changeset/merge-tree-reads-unrelated-histories.md deleted file mode 100644 index b3311f104..000000000 --- a/.changeset/merge-tree-reads-unrelated-histories.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/process-adapter": patch ---- - -`changeset check` reads a first-time squashed subtree add instead of crashing on it. When a two-parent merge's parents share no ancestor, its own edits are every path that differs between its first parent and the merge commit; a merge whose parents are related keeps its `git merge-tree` residue unchanged. diff --git a/.changeset/plain-poets-enter.md b/.changeset/plain-poets-enter.md deleted file mode 100644 index b87086340..000000000 --- a/.changeset/plain-poets-enter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/git-hooks-engine": patch ---- - -The staged format step runs `dprint` from PATH instead of `./bin/dprint`, so a repository must put `dprint` on PATH (its dev shell does) for the staged checks to format. diff --git a/.changeset/private-member-intent-is-versioned.md b/.changeset/private-member-intent-is-versioned.md deleted file mode 100644 index ab47762e2..000000000 --- a/.changeset/private-member-intent-is-versioned.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/changesets-adapter": patch ---- - -A private workspace member a change intent names is versioned again, so a surface bound to it (a cargo crate bound to a private member) moves with it. A private member no intent names stays out of the plan, so it is still never versioned or given a CHANGELOG entry. diff --git a/.changeset/private-member-versions.md b/.changeset/private-member-versions.md deleted file mode 100644 index 671517bc5..000000000 --- a/.changeset/private-member-versions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/workspace-adapter": patch ---- - -Allow private workspace members to omit `version` while continuing to refuse unversioned publishable members. diff --git a/.changeset/private-members-skip-release.md b/.changeset/private-members-skip-release.md deleted file mode 100644 index 85d17b6d1..000000000 --- a/.changeset/private-members-skip-release.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@systemfsoftware/release-language": patch -"@systemfsoftware/changesets-adapter": patch ---- - -A private workspace member that no change intent names stays out of the release plan and is never versioned or tagged. A change intent that names a private member without a `version` is refused as `VersionPrivatePackage`, and a publishable member without a version is refused as `ManifestInvalid` before any file is written. Plan and apply share the workspace member's manifest validation, so a malformed version fails identically on both paths. diff --git a/.changeset/private-members-unversioned.md b/.changeset/private-members-unversioned.md deleted file mode 100644 index ab6923d6b..000000000 --- a/.changeset/private-members-unversioned.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/changesets-adapter": patch ---- - -`version-management bump` no longer versions a `private: true` workspace member that no change intent names. Before, a member that is never published got a version bump and a CHANGELOG entry whenever a package it depends on was released. diff --git a/.changeset/release-plan-reads-pre-state.md b/.changeset/release-plan-reads-pre-state.md deleted file mode 100644 index fb76a6a08..000000000 --- a/.changeset/release-plan-reads-pre-state.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/changesets-adapter": patch ---- - -The release plan honors changesets pre-release mode. With `.changeset/pre.json` in `pre` mode, as written by `changeset pre enter `, `version-management bump` versions packages as `-.` instead of dropping them out of pre-release. diff --git a/.changeset/single-package-root.md b/.changeset/single-package-root.md deleted file mode 100644 index cfb989f65..000000000 --- a/.changeset/single-package-root.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@systemfsoftware/workspace-adapter": minor -"@systemfsoftware/release-language": patch -"@systemfsoftware/changeset-engine": patch ---- - -A repository whose only package is its root now releases. Topology is read from `pnpm-workspace.yaml`'s `packages` key: without it the named, non-private root manifest is the one member, at the root directory. The root then owns every tracked file, the bump writes its `package.json` and `CHANGELOG.md`, and its tag, GitHub Release and packed tarball carry its own name and version. Repositories with a `packages` list behave exactly as before. diff --git a/.changeset/true-sides-call.md b/.changeset/true-sides-call.md deleted file mode 100644 index 471978c3c..000000000 --- a/.changeset/true-sides-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/process-adapter": none ---- - -No consumer-observable change; the package builds against Node 26 types. diff --git a/CHANGELOG.md b/CHANGELOG.md index d10b4b27c..67a6cb8f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,3 +19,17 @@ - A failed `git` command while tagging now reports the command and the error git printed, instead of `cannot read captured file: git:push-tags`. Breaking for adapter authors: `TagRefusal` gains `TagGitFailed { command, stderr }`, so exhaustive matches over it need a new case. - `changeset-management check` with `"gate": { "strategy": "paths" }` now refuses in a repository whose root keeps a Turbo config at both the comparison base and the head, printing a `paths gate refused:` line that names the config and the fix: `"gate": { "strategy": "turbo" }`. A pull request that adds or removes the Turbo config is still decided by `paths`. Breaking for adapter authors: `EvidenceRefusal` gains `PathsGateUnderTurbo { turboConfig }`, so exhaustive matches over it need a new case. - `version-management bump` versions a `changesets` workspace whose private root `package.json` has no `version`. It no longer reads the root manifest under `changesets`, so it stops refusing with `VersionIntentMalformed: path=package.json`. + +## 1.1.0 + +- `version-management bump` rewrites a sibling's version only where the range uses the `workspace:` protocol. A plain range such as `^22.0.0` resolves from the registry and names a published release. The release PR used to rewrite it to the version not yet published, so its `pnpm install --frozen-lockfile` failed. +- The release plan no longer releases an un-bumped tree. The cycle excludes a publishable member whose manifest version is still the uninitialized `0.0.0` — a first releasable cycle is the version the bump writes — and the phase resolves to `release` only when the cycle is owed and no intents are pending; while intents are pending the phase stays `version` so the run reconciles the release PR instead of tagging and publishing the tree that has not been bumped. +- `changeset-management check` no longer trusts the branch name. It replays each commit that only deletes pending intents through `version bump` from that commit's parent, and passes it as a release only when the trees match exactly, so the release PR passes on a merge-queue draft and a manifest edit or extra file in a release commit is refused. Intent edits must keep each package's highest owed bump, a release cut from a base that has since changed a release surface is refused as stale, and under the turbo gate a package moved only by accounted dependencies needs no intent of its own. `ChangeEvidencePort` now reports git and turbo facts, a new `ReleaseReplayPort` names the replay, `version-engine` exports `bumpInputOf`, and `GitPort` drops `currentBranch` and `changedPaths`. A shallow clone is refused. +- `changeset check` reads a first-time squashed subtree add instead of crashing on it. When a two-parent merge's parents share no ancestor, its own edits are every path that differs between its first parent and the merge commit; a merge whose parents are related keeps its `git merge-tree` residue unchanged. +- The staged format step runs `dprint` from PATH instead of `./bin/dprint`, so a repository must put `dprint` on PATH (its dev shell does) for the staged checks to format. +- A private workspace member a change intent names is versioned again, so a surface bound to it (a cargo crate bound to a private member) moves with it. A private member no intent names stays out of the plan, so it is still never versioned or given a CHANGELOG entry. +- Allow private workspace members to omit `version` while continuing to refuse unversioned publishable members. +- A private workspace member that no change intent names stays out of the release plan and is never versioned or tagged. A change intent that names a private member without a `version` is refused as `VersionPrivatePackage`, and a publishable member without a version is refused as `ManifestInvalid` before any file is written. Plan and apply share the workspace member's manifest validation, so a malformed version fails identically on both paths. +- `version-management bump` no longer versions a `private: true` workspace member that no change intent names. Before, a member that is never published got a version bump and a CHANGELOG entry whenever a package it depends on was released. +- The release plan honors changesets pre-release mode. With `.changeset/pre.json` in `pre` mode, as written by `changeset pre enter `, `version-management bump` versions packages as `-.` instead of dropping them out of pre-release. +- A repository whose only package is its root now releases. Topology is read from `pnpm-workspace.yaml`'s `packages` key: without it the named, non-private root manifest is the one member, at the root directory. The root then owns every tracked file, the bump writes its `package.json` and `CHANGELOG.md`, and its tag, GitHub Release and packed tarball carry its own name and version. Repositories with a `packages` list behave exactly as before. diff --git a/package.json b/package.json index ac84be8d7..cbaa58ab0 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "license": "Apache-2.0", "name": "pnpm-release-management", - "version": "1.0.0", + "version": "1.1.0", "repository": { "type": "git", "url": "git+https://github.com/systemfsoftware/pnpm-release-management.git"