Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/bump-only-workspace-protocol-ranges.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/first-release-needs-a-bump.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/gate-replays-release-commits.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/merge-tree-reads-unrelated-histories.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plain-poets-enter.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/private-member-intent-is-versioned.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/private-member-versions.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/private-members-skip-release.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/private-members-unversioned.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/release-plan-reads-pre-state.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/single-package-root.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/true-sides-call.md

This file was deleted.

14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tag>`, `version-management bump` versions packages as `<version>-<tag>.<n>` 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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading