github statelyai/xstate xstate@5.0.0-beta.15

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

Patch Changes

  • #4080 94526df03 Thanks @davidkpiano! - The machine.options property has been renamed to machine.implementations

  • #4078 43fcdecf2 Thanks @Andarist! - Fixed spawned actors cleanup when multiple actors were spawned without explicit IDs assigned to them.

  • #4083 163528529 Thanks @Andarist! - Remove State['changed']. A new instance of State is being created if there are matching transitions for the received event. If there are no matching transitions then the current state is being returned.

  • #4064 047897265 Thanks @davidkpiano! - Guard objects can now reference other guard objects:

    const machine = createMachine(
      {
        initial: 'home',
        states: {
          home: {
            on: {
              NEXT: {
                target: 'success',
                guard: 'hasSelection'
              }
            }
          },
          success: {}
        }
      },
      {
        guards: {
          // `hasSelection` is a guard object that references the `stateIn` guard
          hasSelection: stateIn('selected')
        }
      }
    );

Don't miss a new xstate release

NewReleases is sending notifications on new releases.