Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Your version

5.33.1

15 Sep 2026Where it was published

5.33.4 is the newest release of 5.x.

In short

1 fixed

Release note

Patch Changes

  • 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:

    declare const machine: AnyStateMachine;
    
    // StateNode<any, any, any, any> passed to StateNode<any, any, MetaObject, MetaObject>
    takesStateNode(machine.root);

    AnyTransitionDefinition was widened along with the new parameters; these two were missed.

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.