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…
Release by release
- New
The types for the
send()andsendParent()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 castingstatetoneverif it didn't match the state value. This is now fixed by making theTypestateresolution 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
- New
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.