xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Upgrading xstate From 4.2.4 to 4.38.3
94 releases in betweennotes for 76
Reading releases, release notes and advisories…
- 6+
- changes to make
- 0
- advisories fixed
- 58+
- new
- 135+
- fixes
Counted from 76 of 94 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking4.11.0
- Deprecated4.36.0
- Deprecated4.33.6
- Deprecated4.30.0
- Deprecated4.20.1
- Deprecated4.11.0
Release by release
- Fixed
Fixed an issue with
exitactions sometimes being called twice when a machine reaches its final state and leads its parent to stopping it at the same time.
- Fixed
- Fixed
The
cancelaction was added to the main export:
- Fixed
- Fixed
The
pure(...)action creator is now properly typed so that it allows function actions:
- Fixed
- New
The
log,pure,choose, andstopactions were added to the main export:
- New
- Fixed
The "Some implementations missing" type-level error will now mention what implementations are missing.
- Fixed
- Fixed
Fixed
forwardTo,escalateandsendUpdateto be compatible with required action types
- Fixed
- New
The new
TagsFromhelper type extracts the type oftagsfrom a state machine when typegen is enabled: - Fixed
Fixed event type narrowing in some of the builtin actions.
- New
- 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
3 other lines we could not sort, mostly version bumps
- 4.9.0
Cloned state machine returned by
.withConfig. - 4.9.0
.stategetter defined for services. - 4.9.0
startmethod of services.
8 internal lines (docs, tests, tooling) left out.
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.