Skip to content

refactor(react): promote future API to default entry point#698

Merged
tonyfromundefined merged 4 commits intotony/future-to-stable-planfrom
tony/react-promote-future
Apr 10, 2026
Merged

refactor(react): promote future API to default entry point#698
tonyfromundefined merged 4 commits intotony/future-to-stable-planfrom
tony/react-promote-future

Conversation

@tonyfromundefined
Copy link
Copy Markdown
Member

Summary

  • Move src/future/ contents to src/ root, making the Future API the default @stackflow/react entry point
  • Delete src/stable/ directory entirely (removes useActions, useStepActions, stable stackflow)
  • Remove ./stable and ./future subpath exports from package.json
  • Update all downstream packages: @stackflow/react/future@stackflow/react, useActionsuseFlow, ActivityComponentTypeActivityComponentTypeByParams for params inference

Test plan

  • yarn build passes
  • yarn typecheck passes
  • yarn test passes (167 tests)

🤖 Generated with Claude Code

tonyfromundefined and others added 2 commits April 10, 2026 11:50
Move all shared infrastructure from __internal__/ into future/.
Update stable/ imports to reference future/ (temporary until stable removal).
Rename base type files to avoid conflicts with future/ wrappers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move future/ contents to src/ root, delete stable/ directory, and remove
./stable and ./future subpath exports. Update all downstream packages to
use @stackflow/react instead of @stackflow/react/future, replace
useActions with useFlow, and use ActivityComponentTypeByParams for
params-based type inference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 10, 2026

⚠️ No Changeset found

Latest commit: 2a6f7e3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 383ed778-1b2b-45ed-b229-e3cefce2bf2e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tony/react-promote-future

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 10, 2026

@stackflow/compat-await-push

yarn add https://pkg.pr.new/@stackflow/compat-await-push@698.tgz

@stackflow/link

yarn add https://pkg.pr.new/@stackflow/link@698.tgz

@stackflow/plugin-basic-ui

yarn add https://pkg.pr.new/@stackflow/plugin-basic-ui@698.tgz

@stackflow/plugin-blocker

yarn add https://pkg.pr.new/@stackflow/plugin-blocker@698.tgz

@stackflow/plugin-google-analytics-4

yarn add https://pkg.pr.new/@stackflow/plugin-google-analytics-4@698.tgz

@stackflow/plugin-history-sync

yarn add https://pkg.pr.new/@stackflow/plugin-history-sync@698.tgz

@stackflow/plugin-map-initial-activity

yarn add https://pkg.pr.new/@stackflow/plugin-map-initial-activity@698.tgz

@stackflow/plugin-preload

yarn add https://pkg.pr.new/@stackflow/plugin-preload@698.tgz

@stackflow/plugin-renderer-basic

yarn add https://pkg.pr.new/@stackflow/plugin-renderer-basic@698.tgz

@stackflow/plugin-renderer-web

yarn add https://pkg.pr.new/@stackflow/plugin-renderer-web@698.tgz

@stackflow/react-ui-core

yarn add https://pkg.pr.new/@stackflow/react-ui-core@698.tgz

@stackflow/react

yarn add https://pkg.pr.new/@stackflow/react@698.tgz

commit: ab6f59e

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 10, 2026

Deploying stackflow-demo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2a6f7e3
Status:⚡️  Build in progress...

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 10, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
stackflow-docs 2a6f7e3 Commit Preview URL Apr 10 2026, 08:57 AM

Update code examples and API documentation to match the new default
entry point after the future API promotion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Base automatically changed from tony/react-rm-internal to tony/future-to-stable-plan April 10, 2026 08:39
Resolve conflicts:
- Keep promoted future API imports in stackflow.tsx and loader/useLoaderData.ts
- Drop usePreloader from stable/Link.tsx (plugin-preload deleted upstream)
- Keep stable/ and future/ deletions from HEAD
- Accept plugin-preload file deletions from upstream

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tonyfromundefined tonyfromundefined merged commit 4e4a8d9 into tony/future-to-stable-plan Apr 10, 2026
5 of 8 checks passed
@tonyfromundefined tonyfromundefined deleted the tony/react-promote-future branch April 10, 2026 08:55
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