Skip to content

Version Packages#725

Merged
ENvironmentSet merged 1 commit into
mainfrom
changeset-release/main
Jul 14, 2026
Merged

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

Conversation

@daangnbot

@daangnbot daangnbot commented Jul 11, 2026

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/core@3.0.0

Major Changes

  • f0fc1fb: Distinguish how a stack is initialized — created fresh (create) or restored from a snapshot (load) — and add the surface a snapshot round-trip needs: StackSnapshot, actions.captureSnapshot(), the provideSnapshot / onLoadError plugin hooks, and initInfo on onInit. Runtime behavior is unchanged when no snapshot is provided; the breaks are type-level only — the StackflowPluginHookStackflowPluginInitHook rename, plus new required members on StackflowActions and on the onInit / overrideInitialEvents hook signatures — hence the major.

    Added

    • StackSnapshot (with the SnapshotEvent / NavigationEvent unions) — a plain-data record of the events a stack recorded at runtime — plus SnapshotLoadError.
    • actions.captureSnapshot() to export that record, and the provideSnapshot / onLoadError plugin hooks to supply a snapshot at creation time and route a failed load.
    • initInfo: { kind: "create" | "load" } on onInit; overrideInitialEvents now runs on the load path too and receives the same initInfo.

    Changed

    • Renamed the StackflowPluginHook type to StackflowPluginInitHook.
    • StackflowActions now requires captureSnapshot, the onInit / overrideInitialEvents hook arguments now require initInfo, and overrideInitialEvents' parameter widens from (PushedEvent | StepPushedEvent)[] to SnapshotEvent[] — hand-written mocks and wrap-and-forward plugins must adopt these.
    • validateEvents now also rejects a Replaced that names an unregistered activity (does not fire in config-first usage).

@stackflow/plugin-history-sync@1.12.0

Minor Changes

  • fd33557: Pass initialContext to route defaultHistory callbacks so the initial stack can depend on request-specific context.

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/link@2.0.1

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/plugin-basic-ui@1.18.3

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0
    • @stackflow/react-ui-core@1.3.6

@stackflow/plugin-blocker@0.1.2

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/plugin-devtools@0.1.13

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/plugin-google-analytics-4@1.1.17

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/plugin-lifecycle@0.1.2

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/plugin-renderer-basic@1.1.15

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/plugin-renderer-web@1.1.15

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/plugin-sentry@0.1.2

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/plugin-stack-depth-change@1.1.7

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/react-ui-core@1.3.6

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/react@2.1.2

Patch Changes

  • Updated dependencies [f0fc1fb]
    • @stackflow/core@3.0.0

@stackflow/demo@1.4.2

Patch Changes

  • Updated dependencies [f0fc1fb]
  • Updated dependencies [fd33557]
    • @stackflow/core@3.0.0
    • @stackflow/plugin-history-sync@1.12.0
    • @stackflow/link@2.0.1
    • @stackflow/plugin-basic-ui@1.18.3
    • @stackflow/plugin-devtools@0.1.13
    • @stackflow/plugin-renderer-basic@1.1.15
    • @stackflow/plugin-stack-depth-change@1.1.7
    • @stackflow/react@2.1.2

@stackflow/docs@2.1.2

Patch Changes

  • Updated dependencies [f0fc1fb]
  • Updated dependencies [fd33557]
    • @stackflow/core@3.0.0
    • @stackflow/plugin-history-sync@1.12.0
    • @stackflow/demo@1.4.2
    • @stackflow/plugin-basic-ui@1.18.3
    • @stackflow/plugin-renderer-basic@1.1.15
    • @stackflow/react@2.1.2

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 11, 2026

Copy link
Copy Markdown

Deploying stackflow-demo with  Cloudflare Pages  Cloudflare Pages

Latest commit: f0db947
Status: ✅  Deploy successful!
Preview URL: https://094a1e36.stackflow-demo.pages.dev
Branch Preview URL: https://changeset-release-main.stackflow-demo.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 11, 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 f0db947 Commit Preview URL Jul 11 2026, 02:55 PM

@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Stack snapshot support added, including the ability to capture and provide snapshots during stack initialization.
    • Initial navigation history can now be derived from request-specific context via defaultHistory callbacks.
  • Major Changes
    • Updated stack initialization and plugin initialization behavior, with expanded initialization info provided to relevant lifecycle/override hooks.
  • Documentation
    • Added/updated changelog entries describing the new snapshot and history initialization behavior.
  • Release
    • Bumped packages to @stackflow/core@3.0.0, including @stackflow/plugin-history-sync@1.12.0 and related demo/docs/react integration updates.

Walkthrough

The release updates Stackflow core to 3.0.0, documents snapshot-related API changes and initialContext history behavior, and aligns dependent package versions, changelogs, and core dependency ranges.

Changes

Core release documentation

Layer / File(s) Summary
Document the core 3.0.0 API release
core/CHANGELOG.md, core/package.json, docs/components/ChangelogContent.mdx, docs/CHANGELOG.md, docs/package.json
Documents snapshot initialization, hook and type changes, and initialContext propagation; bumps core and docs package versions and dependencies.

History-sync release

Layer / File(s) Summary
Release history-sync initialContext support
extensions/plugin-history-sync/CHANGELOG.md, extensions/plugin-history-sync/package.json
Records initialContext support for defaultHistory, bumps the package to 1.12.0, and requires core 3.0.0.

Dependent package alignment

Layer / File(s) Summary
Align dependent package releases
demo/*, extensions/*, integrations/react/*
Updates package versions, changelogs, and core dependency or peer-dependency ranges across dependent packages.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

Suggested reviewers: orionmiz

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is too vague and generic to convey the main change in this release PR. Use a specific release title, e.g. "Release @stackflow/core 3.0.0 and plugin-history-sync 1.12.0".
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly matches an automated Changesets release PR and describes the package releases in this changeset.
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.

@pkg-pr-new

pkg-pr-new Bot commented Jul 11, 2026

Copy link
Copy Markdown
@stackflow/core

yarn add https://pkg.pr.new/@stackflow/core@725.tgz

@stackflow/link

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

@stackflow/plugin-basic-ui

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

@stackflow/plugin-blocker

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

@stackflow/plugin-devtools

yarn add https://pkg.pr.new/@stackflow/plugin-devtools@725.tgz

@stackflow/plugin-google-analytics-4

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

@stackflow/plugin-history-sync

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

@stackflow/plugin-lifecycle

yarn add https://pkg.pr.new/@stackflow/plugin-lifecycle@725.tgz

@stackflow/plugin-renderer-basic

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

@stackflow/plugin-renderer-web

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

@stackflow/plugin-sentry

yarn add https://pkg.pr.new/@stackflow/plugin-sentry@725.tgz

@stackflow/plugin-stack-depth-change

yarn add https://pkg.pr.new/@stackflow/plugin-stack-depth-change@725.tgz

@stackflow/react-ui-core

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

@stackflow/react

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

commit: f0db947

@daangnbot daangnbot force-pushed the changeset-release/main branch from 612e3c0 to f0db947 Compare July 11, 2026 14:51

@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 `@extensions/plugin-lifecycle/package.json`:
- Line 3: Update the .changeset entries driving this release to use minor or
major severity for extensions/plugin-lifecycle/package.json (line 3;
peerDependency line 64), extensions/plugin-renderer-basic/package.json (line 3;
peerDependency line 44), extensions/plugin-renderer-web/package.json (line 3;
peerDependency line 44), and extensions/plugin-sentry/package.json (line 3;
peerDependency line 35), then rerun the changesets bot to regenerate the
corresponding version bumps. The peerDependency declarations at those referenced
lines require no direct change. Re-level the 1.1.7 entry in
extensions/plugin-stack-depth-change/CHANGELOG.md (lines 3-9) to minor or major
if its peerDependency also changed to ^3.0.0.
🪄 Autofix (Beta)

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

Run ID: fa4ea82f-ee1d-45c0-952b-3ed9d953883e

📥 Commits

Reviewing files that changed from the base of the PR and between 612e3c0 and f0db947.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (34)
  • .changeset/tidy-bats-context.md
  • core/CHANGELOG.md
  • core/package.json
  • demo/CHANGELOG.md
  • demo/package.json
  • docs/CHANGELOG.md
  • docs/components/ChangelogContent.mdx
  • docs/package.json
  • extensions/link/CHANGELOG.md
  • extensions/link/package.json
  • extensions/plugin-basic-ui/CHANGELOG.md
  • extensions/plugin-basic-ui/package.json
  • extensions/plugin-blocker/CHANGELOG.md
  • extensions/plugin-blocker/package.json
  • extensions/plugin-devtools/CHANGELOG.md
  • extensions/plugin-devtools/package.json
  • extensions/plugin-google-analytics-4/CHANGELOG.md
  • extensions/plugin-google-analytics-4/package.json
  • extensions/plugin-history-sync/CHANGELOG.md
  • extensions/plugin-history-sync/package.json
  • extensions/plugin-lifecycle/CHANGELOG.md
  • extensions/plugin-lifecycle/package.json
  • extensions/plugin-renderer-basic/CHANGELOG.md
  • extensions/plugin-renderer-basic/package.json
  • extensions/plugin-renderer-web/CHANGELOG.md
  • extensions/plugin-renderer-web/package.json
  • extensions/plugin-sentry/CHANGELOG.md
  • extensions/plugin-sentry/package.json
  • extensions/plugin-stack-depth-change/CHANGELOG.md
  • extensions/plugin-stack-depth-change/package.json
  • extensions/react-ui-core/CHANGELOG.md
  • extensions/react-ui-core/package.json
  • integrations/react/CHANGELOG.md
  • integrations/react/package.json
💤 Files with no reviewable changes (1)
  • .changeset/tidy-bats-context.md
✅ Files skipped from review due to trivial changes (16)
  • extensions/plugin-devtools/CHANGELOG.md
  • extensions/plugin-renderer-basic/CHANGELOG.md
  • extensions/react-ui-core/CHANGELOG.md
  • extensions/plugin-sentry/CHANGELOG.md
  • core/package.json
  • core/CHANGELOG.md
  • extensions/link/CHANGELOG.md
  • extensions/plugin-basic-ui/CHANGELOG.md
  • extensions/plugin-blocker/CHANGELOG.md
  • extensions/plugin-lifecycle/CHANGELOG.md
  • integrations/react/CHANGELOG.md
  • extensions/plugin-google-analytics-4/CHANGELOG.md
  • demo/CHANGELOG.md
  • docs/components/ChangelogContent.mdx
  • extensions/plugin-renderer-web/CHANGELOG.md
  • extensions/plugin-history-sync/CHANGELOG.md

{
"name": "@stackflow/plugin-lifecycle",
"version": "0.1.1",
"version": "0.1.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

All plugin packages receive patch bumps despite a major peerDependency range change on @stackflow/core. The shared root cause is that the changesets driving this release assigned patch-level version bumps to packages whose @stackflow/core peerDependency moved from ^2.0.0 to ^3.0.0. A peerDependency range that drops support for a previously-supported major version is a breaking change for consumers — installing these plugins alongside @stackflow/core@2.x will produce peer dependency errors. Per semver, these packages should receive at least a minor (ideally major) version bump.

  • extensions/plugin-lifecycle/package.json#L3-L3: bump 0.1.2 to at least 0.2.0 (or 1.0.0) to reflect the breaking peerDependency change at L64.
  • extensions/plugin-lifecycle/package.json#L64-L64: peerDependency ^3.0.0 is correct; the package version at L3 needs to reflect this breaking change.
  • extensions/plugin-renderer-basic/package.json#L3-L3: bump 1.1.15 to at least 1.2.0 (or 2.0.0) to reflect the breaking peerDependency change at L44.
  • extensions/plugin-renderer-basic/package.json#L44-L44: peerDependency ^3.0.0 is correct; the package version at L3 needs to reflect this breaking change.
  • extensions/plugin-renderer-web/package.json#L3-L3: bump 1.1.15 to at least 1.2.0 (or 2.0.0) to reflect the breaking peerDependency change at L44.
  • extensions/plugin-renderer-web/package.json#L44-L44: peerDependency ^3.0.0 is correct; the package version at L3 needs to reflect this breaking change.
  • extensions/plugin-sentry/package.json#L3-L3: bump 0.1.2 to at least 0.2.0 (or 1.0.0) to reflect the breaking peerDependency change at L35.
  • extensions/plugin-sentry/package.json#L35-L35: peerDependency ^3.0.0 is correct; the package version at L3 needs to reflect this breaking change.
  • extensions/plugin-stack-depth-change/CHANGELOG.md#L3-L9: the 1.1.7 patch entry should be re-leveled to at least minor/major if the package's peerDependency range also changed to ^3.0.0.

To fix: update the changeset files (in .changeset/) that generated this release to use minor or major severity for these packages, then re-run the changesets bot to regenerate this PR with correct version bumps.

📍 Affects 5 files
  • extensions/plugin-lifecycle/package.json#L3-L3 (this comment)
  • extensions/plugin-lifecycle/package.json#L64-L64
  • extensions/plugin-renderer-basic/package.json#L3-L3
  • extensions/plugin-renderer-basic/package.json#L44-L44
  • extensions/plugin-renderer-web/package.json#L3-L3
  • extensions/plugin-renderer-web/package.json#L44-L44
  • extensions/plugin-sentry/package.json#L3-L3
  • extensions/plugin-sentry/package.json#L35-L35
  • extensions/plugin-stack-depth-change/CHANGELOG.md#L3-L9
🤖 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 `@extensions/plugin-lifecycle/package.json` at line 3, Update the .changeset
entries driving this release to use minor or major severity for
extensions/plugin-lifecycle/package.json (line 3; peerDependency line 64),
extensions/plugin-renderer-basic/package.json (line 3; peerDependency line 44),
extensions/plugin-renderer-web/package.json (line 3; peerDependency line 44),
and extensions/plugin-sentry/package.json (line 3; peerDependency line 35), then
rerun the changesets bot to regenerate the corresponding version bumps. The
peerDependency declarations at those referenced lines require no direct change.
Re-level the 1.1.7 entry in extensions/plugin-stack-depth-change/CHANGELOG.md
(lines 3-9) to minor or major if its peerDependency also changed to ^3.0.0.

@ENvironmentSet ENvironmentSet merged commit 5222fd7 into main Jul 14, 2026
9 checks passed
@ENvironmentSet ENvironmentSet deleted the changeset-release/main branch July 14, 2026 04:47
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