github statelyai/xstate xstate@5.0.0-beta.14

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

Major Changes

  • #4018 c59bb6a72 Thanks @Andarist! - machine.initialState has been removed, you can use machine.getInitialState(...) instead

  • #4018 c59bb6a72 Thanks @Andarist! - machine.transition(...) and machine.getInitialState(...) require now an actorContext argument

  • #4063 e1f633ac9 Thanks @Andarist! - Removed State['transitions'].

  • #4018 c59bb6a72 Thanks @Andarist! - machine.transition no longer accepts state values. You have to resolve the state value to a State before passing it to machine.transition

  • #4041 50fe8cdd4 Thanks @davidkpiano! - Instances of "behavior" in the codebase have been replaced with "actor logic".

  • #4055 eb7c8b387 Thanks @davidkpiano! - The system can now be accessed in all available actor logic creator functions:

    fromPromise(({ system }) => { ... });
    
    fromTransition((state, event, { system }) => { ... });
    
    fromObservable(({ system }) => { ... });
    
    fromEventObservable(({ system }) => { ... });
    
    fromCallback((sendBack, receive, { system }) => { ... });
  • #4062 28603a07f Thanks @Andarist! - Removed State['event'].

  • #4059 bbea3bc4d Thanks @Andarist! - Removed State['actions']. Actions are considered to be a side-effect of a transition, things that happen in the moment and are not meant to be persisted beyond that.

Don't miss a new xstate release

NewReleases is sending notifications on new releases.