Skip to content

Prepare release 0.2.0 - #10

Merged
javaquasar merged 1 commit into
mainfrom
claude/release-0.2.0
Dec 2, 2026
Merged

javaquasar merged 1 commit into
mainfrom
claude/release-0.2.0

Conversation

@javaquasar

Copy link
Copy Markdown
Owner

Summary

Prepares the 0.2.0 release. Nothing is published yet: publishing to npm and tagging v0.2.0 happen after merge.

  • Versions. mutaflow, @mutaflow/devtools and @mutaflow/testkit go to 0.2.0. The devtools and testkit peer dependency becomes mutaflow ^0.2.0.
  • Changelog. "Unreleased" becomes ## 0.2.0, with a summary and an Upgrading from 0.1 list of breaking changes, followed by Added / Fixed / Examples and tooling.
  • examples/published-next-app moves to the 0.2 APIs. It follows examples/next-app and keeps its fast / slow / error scenarios:
    • a shared contract in lib/todo-contract.ts;
    • the action is wrapped in withFlowContract;
    • in error mode the action returns actionFailure, so the message is shown in production too;
    • a duplicate title comes back as a field error;
    • useFlowForm over Server Component data replaces the client resource store and StoreHydrator;
    • the data lives on globalThis behind unstable_cache with the todos.list tag;
    • dependencies move to ^0.2.0, and the README is updated.
  • RELEASING.md. It gets a 0.2.0 scope, a step that builds the demo from packed tarballs before publishing, and the v0.2.0 tag.

Known gap: examples/published-next-app/package-lock.json still points at 0.1.1. It can only be regenerated once 0.2.0 is on npm, so npm ci in that example fails until then. RELEASING.md lists this as an after-publish step. For the same reason, this example is not built in CI yet.

Test plan

  • From a clean state with no dist: npm run typecheck, npm test (62 tests) and node --test (5 tests).
  • npm pack of the three packages: every exports path exists in the tarballs, including dist/otel and dist/sentry.
  • A copy of published-next-app built from the tarballs: tsc --noEmit and next build pass.
  • In the browser on next start (production build), with no console errors:
    • an empty title is rejected on the client;
    • a fast run shows the item optimistically and it persists after a reload;
    • a duplicate title shows a field error and keeps the typed text;
    • error mode rolls back and shows the server message;
    • devtools show the run with its duration and tags.
  • CI passes on this PR.

🤖 Generated with Claude Code

Bump mutaflow, @mutaflow/devtools and @mutaflow/testkit to 0.2.0 and
move the devtools and testkit peer dependency to mutaflow ^0.2.0. The
changelog gets a 0.2.0 section with an "Upgrading from 0.1" list of
breaking changes.

examples/published-next-app now uses the 0.2 APIs: a flow contract
applied with withFlowContract, actionFailure for expected failures,
useFlowForm over Server Component data instead of the client resource
store and StoreHydrator. Its lockfile still points at 0.1.1 and is to
be refreshed after publishing, as RELEASING.md now says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@javaquasar
javaquasar merged commit ebb97f6 into main Dec 2, 2026
4 checks passed
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