Download Latest Version xstate@5.22.1 source code.tar.gz (6.7 MB)
Email in envelope

Get an email when there's a new version of XState

Home / xstate@5.21.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-08-30 828 Bytes
xstate@5.21.0 source code.tar.gz 2025-08-30 6.7 MB
xstate@5.21.0 source code.zip 2025-08-30 7.2 MB
Totals: 3 Items   13.9 MB 0

Minor Changes

  • #5364 15e15b5 Thanks @davidkpiano! - Added .createStateConfig(…) to the setup API. This makes it possible to create state configs that are strongly typed and modular.

    ```ts const lightMachineSetup = setup({ // ... });

    const green = lightMachineSetup.createStateConfig({ //... });

    const yellow = lightMachineSetup.createStateConfig({ //... });

    const red = lightMachineSetup.createStateConfig({ //... });

    const machine = lightMachineSetup.createMachine({ initial: 'green', states: { green, yellow, red } }); ```

Source: README.md, updated 2025-08-30