Skip to content

xstate@6.0.0-alpha.36

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 12 Aug 15:46
· 0 commits to main since this release
dcf6786

Minor Changes

  • af31f22: Add machineVersions().adaptEvents() for adapting complete event histories
    between machine versions. Exact retained-version adapters infer source and
    target event types, while an async '*' adapter can handle unknown histories.

    const events = await versions.adaptEvents(storedEvents, {
      from: { id: 'checkout', version: '1' },
      to: '2',
      adapters: {
        '1': (events) => events.map(toV2Event)
      }
    });