Packages

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…

Other targets from 4.11.0Newest 4.x4.38.3Latest5.33.4
  1. 4.11.0yours
  2. 4.12.0target
0
changes to make
0
advisories fixed
3
new
3
fixes

Release by release

  1. 4.12.0

    17 Aug 20203 new · 3 fixes
    • New

      The Action type was simplified, and as a result, you should see better TypeScript performance.

    • New

      The invoke.src property now accepts an object that describes the invoke source with its type and other related metadata. This can be read from the services option in the meta.src argument:

    • New

      All TTypestate type 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 ServiceConfig type definition to use a specific event type to prevent compilation errors on strictly-typed MachineOptions.

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.