github statelyai/xstate @xstate/svelte@2.0.0

24 months ago

Major Changes

  • #3254 c0b787d2a Thanks @Andarist! - The major version of this package had to be bumped to allow integrating with the typegen. This package will now require TS version 4.0 or greater.

    When using hooks from @xstate/svelte it's recommended to skip providing explicit generics to them. Note that that generics list has changed since v1 and we now only accept a single generic, TMachine.

Patch Changes

  • #3172 390a115cd Thanks @Andarist! - Fixed an issue with the internal interpreter created by useMachine being unsubscribed when its subscribers' count went to zero. The lifetime of this interpreter should be bound to the lifetime of the component that has created it.

  • #3209 8520e203b Thanks @schibrikov! - Added ESM build to fix some bundling issues, more information can be found here

Don't miss a new xstate release

NewReleases is sending notifications on new releases.