xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
4.38.3 is the newest release of 4.x.
In short
2 new3 fixed
Release note
Minor Changes
Expressions can now be used in the
stop()action creator:// ... actions: stop(context => context.someActor);
Patch Changes
The return type of
spawn(machine)will now beActor<State<TContext, TEvent>, TEvent>, which is a supertype ofInterpreter<...>.Exit actions will now be properly called when an invoked machine reaches its final state. See #1109 for more details.
The
state.childrenproperty now properly shows all spawned and invoked actors. See #795 for more details.Added
statusproperty on theInterpreter- this can be used to differentiate not started, running and stopped interpreters. This property is best compared to values on the newInterpreterStatusexport.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.