xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
5.33.4 is the newest release of 5.x.
In short
1 fixed
Release note
Patch Changes
AnyStateNodeandAnyStateNodeDefinitionnow widen theTStateMetaandTTransitionMetaparameters that were added toStateNodeandStateNodeDefinitionin 5.33.0. Those parameters default toMetaObject, while the nodes of anAnyStateMachinehave them asany, so tooling that tracksany(such as@typescript-eslint'sno-unsafe-argumentandno-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);
AnyTransitionDefinitionwas 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.