Skip to content

chore: merge main release history into next - #5785

Merged
davidkpiano merged 13 commits into
nextfrom
feature/resolve-pr-5543-20261009-final
Oct 12, 2026
Merged

davidkpiano merged 13 commits into
nextfrom
feature/resolve-pr-5543-20261009-final

Conversation

@davidkpiano

@davidkpiano davidkpiano commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • record current main release history as merged into next
  • preserve the exact next tree because the intervening main commits are release/version commits and backports from next
  • unblock the next → main XState v6 PR without replacing v6 code with v5 conflict hunks

Validation

  • git diff --exit-code origin/next HEAD (identical trees)
  • declaration emit regression: 14 tests passed
  • Store projects: 399 tests passed

Merge note

Use a merge commit, not squash or rebase; preserving main as the second parent is what clears #5543's ancestry conflict.

davidkpiano and others added 13 commits August 24, 2026 07:31
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Changesets v3 invokes pnpm pack with --out, which pnpm 9 does not support. Upgrade the repository pin and refresh the pnpm 10 patch hash so frozen installs continue to work.
* Add distinct state and transition meta types

* Use meta for state metadata typing

* Update packages/core/src/setup.ts

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* Preserve invoke transition metadata types

---------

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…odeDefinition` (#5712)

* fix(core): widen the meta parameters of AnyStateNode and AnyStateNodeDefinition

`StateNode` and `StateNodeDefinition` gained `TStateMeta` and `TTransitionMeta`
in #5700. Both default to `MetaObject` rather than widening, so the aliases meant
to stand for "a node of any machine" stopped covering the nodes of an
`AnyStateMachine`, which have those parameters as `any`.

Assignability hides this — `any` assigns in both directions — but tooling that
tracks `any` does not: `@typescript-eslint`'s `no-unsafe-argument` and
`no-unsafe-return` report every node read off an untyped machine.

`AnyTransitionDefinition` was widened along with the new parameters in that same
change; these two were missed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(core): widen the graph module's AnyStateNode too, and cover the transition slot

`graph/types.ts` declared a second `AnyStateNode` with the same defect, which
`toDirectedGraph` and `getStateNodes` consume and `graph/index.ts` re-exports.
It now re-exports the core alias rather than restating it, so the two cannot
drift apart again.

The test asserted only the state metadata parameter. `TTransitionMeta` defaults
to `TStateMeta`, so dropping it would be harmless, but writing `MetaObject` into
that slot explicitly would not have been caught.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
)

* fix(core): preserve arbitrary metadata in generic node containers

* docs(core): clarify history value metadata documentation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… fixes from next (#5760)

* @xstate/store 4.x: declare xstate as an optional peer; backport store fixes from next

Backports store-only fixes from #5697 (69b6663) and the useStore inspect option from #5683 (c57f80e).

* Address review: drain flushStorage, restart event history on clear, commit-phase inspector

* @xstate/store: preserve cleared history across pure transitions and pending effects (#5764)

* Fix clearStorage history reset across pure transitions and pending effects

* Invalidate pre-clear snapshot effects and stale rehydrate reads
* feat(store): add source atoms with shared subscription lifecycle

* fix(store): recover source activation and async delivery errors
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6e65606

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

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d2789b8d-3571-476e-9f57-90fc53e9864d

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@davidkpiano
davidkpiano marked this pull request as ready for review October 9, 2026 07:27

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@davidkpiano
davidkpiano merged commit c202e00 into next Oct 12, 2026
4 checks passed
@davidkpiano
davidkpiano deleted the feature/resolve-pr-5543-20261009-final branch October 12, 2026 17:01
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