xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Upgrading xstate From 4.35.4 to 4.36.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 2
- fixes
Before you upgrade
Tick each one off as you go- Deprecated4.36.0
Release by release
- Deprecated
Deprecated
send()action creator. Instead of that, you can usesendTo()to send events to other actors andraise()to send events to the "self" actor. - New
All actions received a new generic:
TExpressionEvent. To type things more correctly and allow TS to infer things better we need to distinguish between all events accepted by a machine (TEvent) and the event type that actions are "called" with (TExpressionEvent). - Fixed
Fixed a class of inference problems for our builtin actions (
assign,sendTo, etc). - Fixed
Fixed inference for
assignusingPropertyAssigner, like here:
- Deprecated
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.