npm xstate 4.3.3

latest releases: 4.33.0, 5.0.0-alpha.0, 4.32.1...
3 years ago
  • 💻 Multiple services now are invoked as expected thanks to @tivac - #367, #368
  • 📅 Event object type inference improved. #338
  • 🆕 New StateNode method: .resolveState(state) returns a resolved state (with resolved state .value, .nextEvents, etc.) in relation to state node (machine):
// partial state
const someState = State.from('red', undefined);
const resolvedState = lightMachine.resolveState(someState);

resolvedState.value;
// => `{ red: 'walk' }`
  • 📦 Initial work on adding Lerna was started. Expect more tools in the future!
  • 🏞 Environment checks fixed thanks to @Andarist #371
    • This creates dist/xstate.web.js for use in browsers.

Don't miss a new xstate release

NewReleases is sending notifications on new releases.