github statelyai/xstate xstate@5.33.1

latest releases: xstate@6.0.0-alpha.56, xstate@5.33.2, xstate@6.0.0-alpha.55...
6 hours ago

Patch Changes

  • #5712 8614c4d Thanks @crishoj! - 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.

Don't miss a new xstate release

NewReleases is sending notifications on new releases.