xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Upgrading xstate From 4.20.0 to 4.20.1
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 0
- new
- 3
- fixes
Before you upgrade
Tick each one off as you go- Deprecated4.20.1
Release by release
- Deprecated
The
SpawnedActorRefTypeScript interface has been deprecated in favor of a unifiedActorRefinterface, which contains the following: - Fixed
When using a model type in
createMachine<typeof someModel>(...), TypeScript will no longer compile machines that are missing thecontextproperty in the machine configuration: - Fixed
The typing for
InvokeCallbackhave been improved for better event constraints when using thesendBackparameter of invoked callbacks: - Fixed
The
state.metavalue is now calculated directly fromstate.configuration. This is most useful when starting a service from a persisted state:
- 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.