Skip to content

Version Packages - #752

Merged
ENvironmentSet merged 1 commit into
mainfrom
changeset-release/main
Aug 10, 2026
Merged

Version Packages#752
ENvironmentSet merged 1 commit into
mainfrom
changeset-release/main

Conversation

@daangnbot

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@stackflow/link@3.0.0

Major Changes

  • 8566b5e: Require Link consumers to provide a URL resolver through
    LinkUrlResolverProvider. This removes Link's direct dependency on
    @stackflow/plugin-history-sync and keeps generated URLs consistent with the
    configured routing plugin.

@stackflow/demo@1.4.3

Patch Changes

  • Updated dependencies [8566b5e]
    • @stackflow/link@3.0.0

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 10, 2026

Copy link
Copy Markdown

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 8025d14 Commit Preview URL Aug 10 2026, 05:48 AM

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Released @stackflow/link 3.0.0.
    • Link-generated URLs now follow the routing plugin configured by your application.
  • Breaking Changes
    • Link integrations must provide URL resolution through LinkUrlResolverProvider.
    • Applications no longer rely on Link’s built-in integration with the history synchronization plugin.
  • Updates
    • Updated the demo application to use the new Link release.
    • Added release documentation and changelog entries.

Walkthrough

The PR releases @stackflow/link 3.0.0, requires LinkUrlResolverProvider for URL resolution, removes the direct history-sync dependency, and updates the demo package to use the new release.

Changes

Link URL resolver release

Layer / File(s) Summary
Link release contract
extensions/link/package.json, extensions/link/CHANGELOG.md, docs/components/ChangelogContent.mdx
The package version changes to 3.0.0. Release notes require LinkUrlResolverProvider and document URL resolution through the configured routing plugin.
Demo release adoption
demo/package.json, demo/CHANGELOG.md
The demo version changes to 1.4.3 and updates its @stackflow/link dependency to ^3.0.0.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: tonyfromundefined

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately identifies the package version updates in this release pull request.
Description check ✅ Passed The description clearly explains the package releases, version changes, and purpose of the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch changeset-release/main

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.

@ENvironmentSet
ENvironmentSet enabled auto-merge (squash) August 10, 2026 05:45
@ENvironmentSet
ENvironmentSet merged commit 097f76e into main Aug 10, 2026
5 of 7 checks passed
@ENvironmentSet
ENvironmentSet deleted the changeset-release/main branch August 10, 2026 05:46

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@demo/package.json`:
- Line 37: Update the root demo composition around App’s Stack rendering to wrap
Stack with LinkUrlResolverProvider, providing a URL resolver compatible with
historySyncPlugin. Ensure the provider encloses the Suspense/Stack path used by
ArticleCard’s Link without changing Stack behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f93a3cda-c975-452f-90c7-db9a0f159225

📥 Commits

Reviewing files that changed from the base of the PR and between 8566b5e and 8025d14.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (6)
  • .changeset/fep-2677-link-url-resolver.md
  • demo/CHANGELOG.md
  • demo/package.json
  • docs/components/ChangelogContent.mdx
  • extensions/link/CHANGELOG.md
  • extensions/link/package.json
💤 Files with no reviewable changes (1)
  • .changeset/fep-2677-link-url-resolver.md

Comment thread demo/package.json
"@stackflow/config": "^2.0.0",
"@stackflow/core": "^3.0.0",
"@stackflow/link": "^2.0.1",
"@stackflow/link": "^3.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 8 \
  'LinkUrlResolverProvider|LinkUrlResolver|plugin-history-sync|<Link\b' \
  demo --glob '*.ts' --glob '*.tsx'

Repository: daangn/stackflow

Length of output: 2085


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== demo package files =="
fd -a '^(package(-lock)?\.json)$' demo | sed 's#^\./##'

echo "== demo entry/source files =="
fd -a '\.(tsx|ts|css)$' demo/src demo | sed 's#^\./##' | sort

echo "== Stack.tsx =="
cat -n demo/src/stackflow/Stack.tsx

echo "== article card =="
cat -n demo/src/components/ArticleCard.tsx

echo "== app/main files =="
fd -a '^(main|index|app)\.(ts|tsx)$' demo/src demo | xargs -r -I{} sh -c 'echo "--- {}"; cat -n "{}"'

echo "== all Link/LinkUrlResolver/plugin-history-sync occurrences =="
rg -n -C 4 \
  'LinkUrlResolverProvider|LinkUrlResolver|plugin-history-sync|<Link\b|historySyncPlugin|config' \
  demo --glob '*\.(ts|tsx|json|lock)'

Repository: daangn/stackflow

Length of output: 13245


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== package files =="
fd -a '^(package(-lock)?\.json)$' demo | sed 's#^\./##'

echo "== relevant files =="
fd -a '\.(tsx|ts|css)$' demo/src demo | sed 's#^\./##' | sort | sed -n '1,120p'

echo "== Stack.tsx =="
cat -n demo/src/stackflow/Stack.tsx

echo "== ArticleCard.tsx =="
cat -n demo/src/components/ArticleCard.tsx

echo "== entrypoints/main/app =="
fd -a '^(main|index|app)\.(tsx|ts|js|jsx)$' demo/src demo | while read -r f; do
  echo "--- $f"
  cat -n "$f"
done

echo "== focused matches with file counts =="
rg -n -C 4 \
  'LinkUrlResolverProvider|LinkUrlResolver|plugin-history-sync|<Link\b|historySyncPlugin|config' \
  demo --glob '*\.(ts|tsx|json|lock)'

Repository: daangn/stackflow

Length of output: 13216


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== demo package deps =="
cat -n demo/package.json | sed -n '1,120p'

echo "== link-related component usages =="
rg -n -C 6 --glob '*.tsx' --glob '*.ts' 'ArticleCard|<ArticleCard|Link\n|<Link\b|useLinkUrlResolver|LinkUrlResolverProvider' demo/src demo

echo "== article files =="
cat -n demo/src/activities/Article/Article.tsx
cat -n demo/src/activities/Article/Article.layout.tsx
cat -n demo/src/components/Layout.tsx

Repository: daangn/stackflow

Length of output: 3099


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== link-related component usages =="
rg -n -C 6 --glob '*.tsx' --glob '*.ts' 'ArticleCard|<ArticleCard|'<Link\b|useLinkUrlResolver|LinkUrlResolverProvider' demo/src demo

echo "== Stack wrapper refs =="
rg -n -C 8 --glob '*.tsx' 'Stack\s|LinkUrlResolverProvider|LinkUrlResolver|ArticleCard|<ArticleCard|useLinkUrlResolver' demo/src demo

echo "== Article and Layout files =="
cat -n demo/src/activities/Article/Article.tsx
cat -n demo/src/activities/Article/Article.layout.tsx
cat -n demo/src/components/Layout.tsx

Repository: daangn/stackflow

Length of output: 250


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== all relevant component usages =="
rg -n -C 6 --glob '*.tsx' --glob '*.ts' 'ArticleCard|<ArticleCard|<Link\b|useLinkUrlResolver|LinkUrlResolverProvider|useStackflow|useRouter|historySyncPlugin' demo/src demo

echo "== Stack wrapper refs =="
rg -n -C 8 --glob '*.tsx' 'Stack\s|LinkUrlResolverProvider|LinkUrlResolver|useLinkUrlResolver' demo/src demo

echo "== Article and Layout files =="
cat -n demo/src/activities/Article/Article.tsx
cat -n demo/src/activities/Article/Article.layout.tsx
cat -n demo/src/components/Layout.tsx

Repository: daangn/stackflow

Length of output: 13573


Wrap Stack with LinkUrlResolverProvider.

demo/src/components/ArticleCard.tsx renders Link, and demo/src/activities/Article/Article.content.tsx is mounted as Stack content. demo/src/App.tsx renders <Stack /> inside a Suspense boundary, but there is no LinkUrlResolverProvider around it. Add the provider at the root and pass a resolver compatible with historySyncPlugin.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@demo/package.json` at line 37, Update the root demo composition around App’s
Stack rendering to wrap Stack with LinkUrlResolverProvider, providing a URL
resolver compatible with historySyncPlugin. Ensure the provider encloses the
Suspense/Stack path used by ArticleCard’s Link without changing Stack behavior.

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.

2 participants