@xstate/svelte@6.0.0-alpha.3
Pre-release
Pre-release
·
9 commits
to main
since this release
Patch Changes
- 73fa80b:
useActor,useActorRefanduseMachinenow requireinputfor machines that declare a required input schema, matchingcreateActor. Passing a persistedsnapshotinstead ofinputis allowed. - aa49aee: Publish
@xstate/svelteas an ES module soimportresolves to real ESM instead of a CommonJS wrapper. This fixes Vitest and other ESM tooling failing withrequire('svelte/store')errors against Svelte's ESM-only builds.require('@xstate/svelte')still works on Node versions that supportrequire(esm).