Skip to content

xstate@6.0.0-beta.7

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 30 Nov 14:51
0a8dbb1

Patch Changes

  • 733da5d: Run callback cleanup before starting its replacement when a sendBack event makes the parent reenter the invoking state. Preserve the order of outgoing events and completion notifications.

  • bdd5b7c: Preserve a restored durable timer's absolute deadline when the host clock is behind the recorded scheduling time.

  • 5adbadf: Fix machineFromJSON transitions using @xstate.assign so they preserve context updates from exit actions and other parallel regions.

  • 36ae907: Partial wildcard descriptors now include the bare prefix event in their types, matching runtime behavior. 'feedback.*' matches feedback as well as feedback.good, so on: { 'feedback.*': ... } handlers, assertEvent(event, 'feedback.*') and ExtractEvent<TEvent, 'feedback.*'> keep the feedback event.

    Accessing a payload that only feedback.good carries now requires narrowing event.type first.

  • 022cf02: Targeting the machine root from a descendant resets its children and keeps the root active. The root's initial transition still supplies input to its children. Set reenter: true to exit and reenter the root explicitly. Targeting a history state uses its selected default without rerunning its parent's initial transition.