Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Upgrading xstate From 5.32.6 to 5.33.4

5 releases in betweenevery note read

Reading releases, release notes and advisories…

0
changes to make
0
advisories fixed
1
new
4
fixes

Release by release

  1. 5.33.4

    7 Nov 20261 fix
    • Fixed

      core: Fix assertEvent narrowing when the event type is behind a generic type parameter

  2. 5.33.3

    17 Oct 20261 fix
    • Fixed

      Fixed child actors not being stopped when a machine errors because of an unhandled error from an invoked actor. The remaining invoked and spawned actors are now stopped (and their cleanup functions are called) before the machine settles in the error state, instead of being left running as orphans.

  3. 5.33.2

    15 Sep 20261 fix
    • Fixed

      Fixed metadata types in generic history values, snapshot nodes, and directed graph results. These containers now accept arbitrary state and transition metadata consistently with AnyStateNode and AnyTransitionDefinition, avoiding unsafe-type warnings when inspecting machines through generic APIs.

  4. 5.33.1

    15 Sep 20261 fix
    • Fixed

      AnyStateNode and AnyStateNodeDefinition now widen the TStateMeta and TTransitionMeta parameters that were added to StateNode and StateNodeDefinition in 5.33.0. Those parameters default to MetaObject, while the nodes of an AnyStateMachine have them as any, so tooling that tracks any (such as @typescript-eslint's no-unsafe-argument and no-unsafe-return) reported every node read off an untyped machine as unsafe:

  5. 5.33.0

    12 Sep 20261 new
    • New

      State and transition metadata can now use separate types:

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.