xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Upgrading xstate From 4.10.0 to 4.11.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 2
- changes to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking4.11.0
- Deprecated4.11.0
Release by release
- Breaking
Improved type inference for
InvokeConfig['data']. This has required renamingdataproperty onStateNodeinstances todoneData. This property was never meant to be a part of the public API, so we don't consider this to be a breaking change. - Deprecated
New property introduced for eventless (transient) transitions:
always, which indicates a transition that is always taken when in that state. Empty string transition configs for transient transitions are deprecated in favor ofalways: - New
The resolved value of the
invoke.dataproperty is now available in the "invoke meta" object, which is passed as the 3rd argument to the service creator inoptions.services. This will work for all types of invoked services now, including promises, observables, and callbacks.
- Breaking
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.