github-actions
released this
07 Mar 13:04
·
1511 commits
to main
since this release
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 } + ] });