Packages

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…

Other targets from 4.10.0Newest 4.x4.38.3Latest5.33.4
  1. 4.10.0yours
  2. 4.11.0target
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

  1. 4.11.0

    Migration needed2 Jul 20201 new
    • Breaking

      Improved type inference for InvokeConfig['data']. This has required renaming data property on StateNode instances to doneData. 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 of always:

    • New

      The resolved value of the invoke.data property is now available in the "invoke meta" object, which is passed as the 3rd argument to the service creator in options.services. This will work for all types of invoked services now, including promises, observables, and callbacks.

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.