github statelyai/xstate xstate@5.0.0-beta.28

pre-release12 months ago

Major Changes

  • #4270 c8de2ce65 Thanks @Andarist! - All events automatically generated by XState will now be prefixed by xstate.. Naming scheme changed slightly as well, for example done.invoke.* events became xstate.done.actor.* events.

Minor Changes

  • #4269 2c916b835 Thanks @davidkpiano! - Actor types are now exported from xstate:

    import {
      type CallbackActorLogic,
      type ObservableActorLogic,
      type PromiseActorLogic,
      type TransitionActorLogic
    } from 'xstate';
  • #4222 41822f05e Thanks @Andarist! - spawn can now benefit from the actor types. Its arguments are strongly-typed based on them.

Patch Changes

  • #4271 b8118bf4c Thanks @Andarist! - Improved type safety of spawned inline actors when the actor types are not provided explicitly. It fixes an issue with an incompatible actor being assignable to a location accepting a different actor type (like a context property).

Don't miss a new xstate release

NewReleases is sending notifications on new releases.