XState @xstate/codemod@0.1.0-beta.2
This release updates the codemod package’s XState dependency to 6.0.0-beta.2, which changes serialized snapshot and descriptor field names to avoid `$` and `_` prefixes that some databases reject. Restore APIs continue to accept snapshots written with the old names, but new snapshots use the new names and schemas that validate persisted snapshots must be updated accordingly.
Users persisting or validating XState snapshots, system transition snapshots, or effect descriptors are affected by the serialized field-name changes.
Update persisted-snapshot validation schemas to use the new field names; no snapshot rewrite is required for restoration because the documented restore APIs accept both shapes.
- 01Update schemas that validate persisted snapshots (for example, schemas using `machineVersions`) to recognize the new field names. Existing snapshots with the old names remain readable by `restoreActor`, `restoreMachineSnapshot`, and `systemTransition`.
// 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.