refactor(react): promote future API to default entry point#698
Conversation
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>
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
@stackflow/compat-await-push
@stackflow/link
@stackflow/plugin-basic-ui
@stackflow/plugin-blocker
@stackflow/plugin-google-analytics-4
@stackflow/plugin-history-sync
@stackflow/plugin-map-initial-activity
@stackflow/plugin-preload
@stackflow/plugin-renderer-basic
@stackflow/plugin-renderer-web
@stackflow/react-ui-core
@stackflow/react
commit: |
Deploying with
|
| 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>
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>
4e4a8d9
into
tony/future-to-stable-plan
Summary
src/future/contents tosrc/root, making the Future API the default@stackflow/reactentry pointsrc/stable/directory entirely (removesuseActions,useStepActions, stablestackflow)./stableand./futuresubpath exports frompackage.json@stackflow/react/future→@stackflow/react,useActions→useFlow,ActivityComponentType→ActivityComponentTypeByParamsfor params inferenceTest plan
yarn buildpassesyarn typecheckpassesyarn testpasses (167 tests)🤖 Generated with Claude Code