XState @xstate/effect@1.0.0-beta.1
Serialized snapshots and effect-related descriptors now use field names without `$` or `_` prefixes, improving compatibility with persistence stores that reject those names. The release also exports `sendAndAwait` from the main entrypoint and updates effect actor observer ordering and stop behavior to align with `createActor`.
Users persisting or validating XState snapshots and consumers of serialized effect descriptors are affected by the renamed fields; restore functions continue to accept snapshots with the old names.
Update snapshot-validation schemas to the new field names before relying on newly serialized snapshots.
- 01Update schemas that validate persisted snapshots (for example, schemas using `machineVersions`) to use the new serialized field names.
// Before
{ $actor: 'order/worker', incarnation: 'a:1' }
// After
{ '@actor': 'order/worker', incarnation: 'a:1' }# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.