npm xstate 4.3.3

latest releases: 5.18.2, 5.18.1, 5.18.0...
5 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.