github statelyai/xstate xstate@5.20.0

2 months ago

Minor Changes

  • #5287 e07a7cd8462473188a0fb646a965e61be1ce6ae3 Thanks @davidkpiano! - The graph and model-based testing utilities from @xstate/graph (and @xstate/test previously) were moved to the core xstate package.

    import { createMachine } from 'xstate';
    import { getShortestPaths } from 'xstate/graph';
    
    const machine = createMachine({
      // ...
    });
    
    const paths = getShortestPaths(machine, {
      fromState: 'a',
      toState: 'b'
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.