XState @xstate/test@2.0.0-beta.1
Serialized snapshot and effect-descriptor fields that began with `$` or `_` have been renamed to storage-compatible names, addressing restrictions in databases such as Convex and MongoDB. Restore functions continue to accept snapshots with the old field names, but newly serialized snapshots use the new names and omit private counter fields from `snapshot.toJSON()`.
Users persisting or consuming serialized snapshots, systemTransition snapshots, effect descriptors, or @xstate/test traces are affected; restore functions continue to read both old and new snapshot shapes.
Update persisted-snapshot validation schemas and any consumers that depend on the renamed serialized fields.
- 01Update schemas that validate persisted snapshots (for example, with `machineVersions`) to use the new 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.