Repository navigation
feat!: promote v2 to the main API, release v0.4.0 - #7
Merged
Merged
Conversation
The library is below v1.0.0, so the break lands here instead of in a /v2 import path: the import path does not change. v2/ moves to the root, and the v0.3.0 API is deleted. A step now declares its own input type and its own output type, so one type no longer carries the whole pipeline. The three faults that followed from that shape cannot occur any more: a reflective merge that dropped a result, a deep copy that fell back to a shallow one, and a Run that rewrote its own step slice and added a second layer of middleware. The library now has no dependency outside the standard library. The examples and the documentation are rewritten for the new API, docs/llms.md is generated from go doc -all because gomarkdoc cannot parse a generic method, and CI builds every example module. CHANGELOG.md lists every removal with its replacement. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
v2/becomes the library. The v0.3.0 API is deleted, the module path staysgithub.com/veggiemonk/workflow(no/v2suffix), and the next tag is v0.4.0.The library is below v1.0.0, so SemVer allows the break in a minor release. Users who need the old API pin v0.3.0.
Changes
v2/*.gomoved to the root; every v0.3.0 source and test deleted.go.mod: module path without the/v2suffix, no dependency outside the standard library,go.sumgone. Thefrizbeetool directive is replaced bygo run …@latestin thepin-actionstarget.CHANGELOG.md: a v0.4.0 entry with every breaking change, every removal with its replacement, and a migration table.README.md,docs/architecture.md,docs/best-practices.mdand.github/copilot-instructions.mdrewritten for the new API.docs/llms.mdis generated fromgo doc -all:gomarkdoccannot parse a generic method.ParandThen,Fan/If/Seq, the middleware methods, andEachwith a customMiddleware.v2module.Checks
go vet,go test -race -shuffle=on,golangci-lint runandmake examplesall pass.🤖 Generated with Claude Code