Skip to content

feat!: promote v2 to the main API, release v0.4.0 - #7

Merged
veggiemonk merged 3 commits into
mainfrom
v2-promote
Sep 21, 2026
Merged

veggiemonk merged 3 commits into
mainfrom
v2-promote

Conversation

@veggiemonk

Copy link
Copy Markdown
Owner

What

v2/ becomes the library. The v0.3.0 API is deleted, the module path stays github.com/veggiemonk/workflow (no /v2 suffix), 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/*.go moved to the root; every v0.3.0 source and test deleted.
  • go.mod: module path without the /v2 suffix, no dependency outside the standard library, go.sum gone. The frizbee tool directive is replaced by go run …@latest in the pin-actions target.
  • 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.md and .github/copilot-instructions.md rewritten for the new API.
  • docs/llms.md is generated from go doc -all: gomarkdoc cannot parse a generic method.
  • The four examples are rewritten. Each one shows a different part of the API: Par and Then, Fan/If/Seq, the middleware methods, and Each with a custom Middleware.
  • CI builds and tests each example module instead of the deleted v2 module.

Checks

go vet, go test -race -shuffle=on, golangci-lint run and make examples all pass.

🤖 Generated with Claude Code

veggiemonk and others added 3 commits September 21, 2026 16:17
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>
@veggiemonk
veggiemonk merged commit 3886c3a into main Sep 21, 2026
5 checks passed
@veggiemonk
veggiemonk deleted the v2-promote branch September 21, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant