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 byuseMachine
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