github statelyai/xstate @xstate/svelte@3.0.0

latest releases: @xstate/svelte@3.0.5, @xstate/vue@3.1.4, @xstate/store@2.6.0...
9 months ago

Major Changes

  • #4507 9ea542c34 Thanks @Andarist! - The useMachine(machine) hook now returns { snapshot, send, actorRef } instead of { state, send, service }:

    const {
    - state,
    + snapshot,
      send,
    - service
    + actorRef
    } = useMachine(machine);
  • #4265 1153b3f9a Thanks @davidkpiano! - FSM-related functions have been removed.

Minor Changes

  • #3727 5fb3c683d Thanks @Andarist! - exports field has been added to the package.json manifest. It limits what files can be imported from a package - it's no longer possible to import from files that are not considered to be a part of the public API.
  • #4507 9ea542c34 Thanks @Andarist! - The useActorRef(logic) and useActor(logic) hooks have been added.

Don't miss a new xstate release

NewReleases is sending notifications on new releases.