Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Upgrading xstate From 4.20.2 to 4.22.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.20.2Newest 4.x4.38.3Latest5.33.4
  1. 4.20.2yours
  2. 4.22.0target
0
changes to make
0
advisories fixed
3
new
0
fixes

Release by release

  1. 4.22.0

    6 Jul 20213 new
    • New

      The model created from createModel(...) now provides a .createMachine(...) method that does not require passing any generic type parameters:

    • New

      Actors can now be invoked/spawned from reducers using the fromReducer(...) behavior creator:

    • New

      Actors can now be spawned directly in the initial machine.context using lazy initialization, avoiding the need for intermediate states and unsafe typings for immediately spawned actors:

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.