Version Packages (alpha) - #5674
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/next
branch
from
August 23, 2026 03:49
a9ab989 to
06f6f55
Compare
github-actions
Bot
force-pushed
the
changeset-release/next
branch
from
August 23, 2026 03:50
06f6f55 to
0b3a884
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 next, this PR will be updated.
nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonnext.Releases
xstate@6.0.0-alpha.47
Minor Changes
72938f8: Guard and delay source functions are now contextually typed from
schemas— insetup({ ... }),.extend({ ... }), andcreateMachine({ ... })— so inline functions get typedcontextandeventwithout hand annotations:Guard sources receive the transition args object first (
{ context, event, self, parent, value, children }), followed by any caller-supplied params — matching how the runtime invokes referenced guards. Delay sources receive{ context, event, stateNode }.Additionally,
enq.stop(...),enq.listen(...), andenq.subscribeTo(...)now accept anyActorRef(such as values typed withActorRefFrom<typeof machine>), instead of requiring the full actor instance type returned byenq.spawn(...).Patch Changes
6ecc2df: Document durable timer semantics for event-journal hosts.
fc7454f: Restoring an externally migrated live snapshot now treats its
machineproperty as a runtime association rather than persisted version metadata. Persisted snapshots continue validating their nested{ id, version }identity and legacy top-levelversiontogether.getNextTransitions(snapshot)returns an empty array for completed or errored snapshots.Setup-created machines whose input schema accepts
undefinedno longer require a meaninglessinputproperty when other actor options are provided, including aftermachine.provide(...).Durable adapters can implement
enqueueRootEventwhen the host owns only the execution root's mailbox, without overriding delivery for co-located actors:Implement
sendEventonly when the host owns routing for every target; usedeliverEventfor co-located delivery. Durable replay guidance now explicitly covers inline entry and exit callbacks.