github statelyai/xstate xstate@5.0.0-alpha.6

latest releases: @xstate/vue@4.0.0, @xstate/store@2.6.1, @xstate/svelte@4.0.0...
pre-release19 months ago

Major Changes

  • #3952 ec300837e Thanks @davidkpiano! - The output data on final states is now specified as .output instead of .data:

    const machine = createMachine({
      // ...
      states: {
        // ...
        success: {
    -     data: { message: 'Success!' }
    +     output: { message: 'Success!' }
        }
      }
    })
  • #2881 2f45343c5 Thanks @davidkpiano! - Target resolution improvements: targeting sibling nodes from the root is no longer valid, since the root node has no siblings:

    createMachine({
      id: 'direction',
      initial: 'left',
      states: {
        left: {},
        right: {}
      },
      on: {
    -   LEFT_CLICK: 'left',
    +   LEFT_CLICK: '.left'
      }
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.