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 main, this PR will be updated.
Releases
@xstate/[email protected]
Major Changes
#5175
38aa9f518ee2f9a5f481306a1dc68c0ad47d28d5
Thanks @davidkpiano! - ThecreateStore
function now only accepts a single configuration object argument. This is a breaking change that simplifies the API and aligns with the configuration pattern used throughout XState.#5175
38aa9f518ee2f9a5f481306a1dc68c0ad47d28d5
Thanks @davidkpiano! - You can now enqueue effects in state transitions.#5175
38aa9f518ee2f9a5f481306a1dc68c0ad47d28d5
Thanks @davidkpiano! - ThefromStore(config)
function now only supports a single config object argument.#5175
38aa9f518ee2f9a5f481306a1dc68c0ad47d28d5
Thanks @davidkpiano! - ThecreateStoreWithProducer(…)
function now only accepts two arguments: aproducer
and a config ({ context, on }
) object.#5175
38aa9f518ee2f9a5f481306a1dc68c0ad47d28d5
Thanks @davidkpiano! - Only complete assigner functions that replace thecontext
fully are supported. This is a breaking change that simplifies the API and provides more type safety.#5175
38aa9f518ee2f9a5f481306a1dc68c0ad47d28d5
Thanks @davidkpiano! - Emitted event types are now specified in functions on theemits
property of the store definition:Minor Changes
#5175
38aa9f518ee2f9a5f481306a1dc68c0ad47d28d5
Thanks @davidkpiano! - Addedstore.trigger
API for sending events with a fluent interface:The
trigger
API provides full type safety for event names and payloads, making it easier and safer to send events to the store.