Version Packages - #752
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
stackflow-docs | 8025d14 | Commit Preview URL | Aug 10 2026, 05:48 AM |
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe PR releases ChangesLink URL resolver release
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
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
⛔ Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (6)
.changeset/fep-2677-link-url-resolver.mddemo/CHANGELOG.mddemo/package.jsondocs/components/ChangelogContent.mdxextensions/link/CHANGELOG.mdextensions/link/package.json
💤 Files with no reviewable changes (1)
- .changeset/fep-2677-link-url-resolver.md
| "@stackflow/config": "^2.0.0", | ||
| "@stackflow/core": "^3.0.0", | ||
| "@stackflow/link": "^2.0.1", | ||
| "@stackflow/link": "^3.0.0", |
There was a problem hiding this comment.
🩺 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.tsxRepository: 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.tsxRepository: 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.tsxRepository: 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.
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
LinkUrlResolverProvider. This removes Link's direct dependency on@stackflow/plugin-history-syncand keeps generated URLs consistent with theconfigured routing plugin.
@stackflow/demo@1.4.3
Patch Changes