Packages

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…

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

  1. 4.20.1

    Deprecation25 Jun 20213 fixes
    • Deprecated

      The SpawnedActorRef TypeScript interface has been deprecated in favor of a unified ActorRef interface, which contains the following:

    • Fixed

      When using a model type in createMachine<typeof someModel>(...), TypeScript will no longer compile machines that are missing the context property in the machine configuration:

    • Fixed

      The typing for InvokeCallback have been improved for better event constraints when using the sendBack parameter of invoked callbacks:

    • Fixed

      The state.meta value is now calculated directly from state.configuration. This is most useful when starting a service from a persisted state:

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.