xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Upgrading xstate From 4.11.0 to 4.12.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
The
Actiontype was simplified, and as a result, you should see better TypeScript performance. - New
The
invoke.srcproperty now accepts an object that describes the invoke source with itstypeand other related metadata. This can be read from theservicesoption in themeta.srcargument: - New
All
TTypestatetype parameters default to{ value: any; context: TContext }now and the parametrized type is passed correctly between various types which results in more accurate types involving typestates. - Fixed
Fixed an issue with initial state of invoked machines being read without custom data passed to them which could lead to a crash when evaluating transient transitions for the initial state.
- Fixed
The "Attempted to spawn an Actor [...] outside of a service. This will have no effect." warnings are now silenced for "lazily spawned" actors, which are actors that aren't immediately active until the function that creates them are called:
- Fixed
Narrowed the
ServiceConfigtype definition to use a specific event type to prevent compilation errors on strictly-typedMachineOptions.
- 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.