Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Your version

4.14.0

5 Nov 2020Where it was published

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 be Actor<State<TContext, TEvent>, TEvent>, which is a supertype of Interpreter<...>.

  • Exit actions will now be properly called when an invoked machine reaches its final state. See #1109 for more details.

  • The state.children property now properly shows all spawned and invoked actors. See #795 for more details.

  • Added status property on the Interpreter - this can be used to differentiate not started, running and stopped interpreters. This property is best compared to values on the new InterpreterStatus export.

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.