Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Upgrading xstate From 4.9.1 to 4.10.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

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

Release by release

  1. 4.10.0

    20 May 20203 new · 5 fixes
    • New

      The types for the send() and sendParent() action creators have been changed to fix the issue of only being able to send events that the machine can receive. In reality, a machine can and should send events to other actors that it might not be able to receive itself. See #711 for more information.

    • New

      Previously, state.matches(...) was problematic because it was casting state to never if it didn't match the state value. This is now fixed by making the Typestate resolution more granular.

    • New

      Actions from a restored state provided as a custom initial state to interpret(machine).start(initialState) are now executed properly. See #1174 for more information.

    • Fixed

      Fix passing state schema into State generic

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.