Skip to content

Prepare release 0.2.1 - #13

Open
javaquasar wants to merge 1 commit into
mainfrom
claude/release-0.2.1
Open

javaquasar wants to merge 1 commit into
mainfrom
claude/release-0.2.1

Conversation

@javaquasar

Copy link
Copy Markdown
Owner

Summary

Prepares the 0.2.1 release. It ships the Next.js 16 fix from #12 to npm: with mutaflow@0.2.0, passing Next.js 16's revalidateTag to withFlowContract is a type error, and every call logs a deprecation warning.

  • Only mutaflow goes to 0.2.1, along with the root package.json and the lockfile.
  • CHANGELOG.md: Unreleased becomes ## 0.2.1.
  • examples/published-next-app/next.config.mjs sets outputFileTracingRoot with path.join(import.meta.dirname, "../.."), as examples/next-app does.
    • The old new URL("../../", import.meta.url).pathname gives /C:/... on Windows.
    • Turbopack in Next.js 16 rejects that path, so next build fails.
    • Next.js 15 builds with either form.

The example stays on Next.js 15 and mutaflow@0.2.0 from npm until 0.2.1 is published. Moving it to Next.js 16 is the follow-up.

Test plan

  • npm pack --workspace mutaflow: version 0.2.1, 119 files, no stale files.
  • A copy of published-next-app on Next.js 16.5, with the 0.2.1 tarball and updateTag added to the action. This is exactly the setup that fails with 0.2.0.
    • tsc --noEmit and next build pass.
    • In the browser on next start: creating a todo works, and the error scenario rolls back and shows the server message.
    • The server log has no revalidateTag deprecation warning, and there are no console errors.
  • examples/published-next-app still builds on Next.js 15 with the new next.config.mjs.
  • From a clean state: npm run typecheck and npm test pass (63 tests, plus 5 node:test tests).
  • CI passes on this PR.

After merge: publish mutaflow 0.2.1, tag v0.2.1, then move examples/published-next-app to Next.js 16.

🤖 Generated with Claude Code

Release only mutaflow 0.2.1, with Next.js 16 support in
mutaflow/next/server. @mutaflow/devtools and @mutaflow/testkit stay at
0.2.0: only their build scripts changed, and their mutaflow ^0.2.0 peer
dependency accepts 0.2.1.

examples/published-next-app sets outputFileTracingRoot with
path.join(import.meta.dirname, ...). new URL(...).pathname gave /C:/...
on Windows, which Turbopack in Next.js 16 rejects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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