github statelyai/xstate xstate@5.0.0-beta.25

pre-release12 months ago

Minor Changes

  • #4213 243d36fa8 Thanks @Andarist! - You can now define strict tags for machines:

    createMachine({
      types: {} as {
        tags: 'pending' | 'success' | 'error';
      }
      // ...
    });
  • #4209 e658a37f4 Thanks @Andarist! - Allow the TGuard type to flow into actions. Thanks to that choose can benefit from strongly-typed guards.

  • #4182 d34f8b102 Thanks @davidkpiano! - You can now specify delay types for machines:

    createMachine({
      types: {} as {
        delays: 'one second' | 'one minute';
      }
      // ...
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.