github statelyai/xstate @xstate/graph@2.0.0-alpha.1

latest releases: @xstate/svelte@3.0.5, @xstate/vue@3.1.4, @xstate/store@2.6.0...
pre-release18 months ago

Patch Changes

  • #3864 59f3a8e Thanks @davidkpiano! - Event cases are now specified as an array of event objects, instead of an object with event types as keys and event object payloads as values:

    const shortestPaths = getShortestPaths(someMachine, {
    - eventCases: {
    -   click: [{ x: 10, y: 10 }, { x: 20, y: 20 }]
    - }
    + events: [
    +   { type: 'click', x: 10, y: 10 },
    +   { type: 'click', x: 20, y: 20 }
    + ]
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.