I'm that broken record at work that always says "this should be a state machine", so always delighted to see xstate iterate.
XState v5 is finally here 🚀
→ Express any logic, from promises to state machines
→ Much simpler API
→ Massively improved TypeScript experience
→ Smaller bundle size, zero deps
→ Advanced statechart features
→ New docs, examples
npm i xstate