Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Your version

201 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 5.33.4

    7 Nov 2026

    Summary· from the note as AI read it

    Read before upgrading: 1 change to make.

  2. 5.33.3

    17 Oct 2026
    • Fixed child actors not being stopped when a machine errors because of an unhandled error from an invoked actor. The remaining invoked and spawned actors are now stopped (and their cleanup functions are called) before the machine settles in the error state, instead of being left running as orphans.

  3. 5.33.2

    15 Sep 2026
    • Fixed metadata types in generic history values, snapshot nodes, and directed graph results. These containers now accept arbitrary state and transition metadata consistently with AnyStateNode and AnyTransitionDefinition, avoiding unsafe-type warnings when inspecting machines through generic APIs.

  4. 5.33.1

    15 Sep 2026
    • AnyStateNode and AnyStateNodeDefinition now widen the TStateMeta and TTransitionMeta parameters that were added to StateNode and StateNodeDefinition in 5.33.0. Those parameters default to MetaObject, while the nodes of an AnyStateMachine have them as any, so tooling that tracks any (such as @typescript-eslint's no-unsafe-argument and no-unsafe-return) reported every node read off an untyped machine as unsafe:

      declare const machine: AnyStateMachine;
      
      // StateNode<any, any, any, any> passed to StateNode<any, any, MetaObject, MetaObject>
      takesStateNode(machine.root);

      AnyTransitionDefinition was widened along with the new parameters; these two were missed.

  5. 5.33.0

    12 Sep 2026
    • State and transition metadata can now use separate types:

      const machine = setup({
        types: {
          meta: {} as { label: string },
          transitionMeta: {} as { trackingId: number }
        }
      }).createMachine({
        meta: { label: 'Root' },
        on: {
          NEXT: { meta: { trackingId: 42 } }
        }
      });

      When transitionMeta is omitted, types.meta continues to apply its type to
      both state and transition metadata.

  6. 5.32.6

    25 Aug 2026
    • Machine snapshots now retain their machine-specific methods when initialization fails, so methods such as snapshot.matches(...) remain available on error snapshots.

  7. 5.32.5

    14 Jul 2026

    Reading the note…

  8. 5.32.4

    2 Jul 2026

    Reading the note…

  9. 5.32.3

    1 Jul 2026

    Reading the note…

  10. 5.32.2

    23 Jun 2026

    Reading the note…

  11. 5.32.1

    12 Jun 2026

    Reading the note…

  12. 5.32.0

    27 May 2026

    Reading the note…

  13. 5.31.1

    10 May 2026

    Reading the note…

  14. 5.31.0

    27 Apr 2026

    Reading the note…

  15. 5.30.0

    28 Mar 2026

    Reading the note…

  16. 5.29.0

    24 Mar 2026

    Reading the note…

  17. 5.28.0

    12 Feb 2026

    Reading the note…

  18. 5.27.0

    11 Feb 2026

    Reading the note…

  19. 5.26.0

    26 Jan 2026

    Reading the note…

  20. 5.25.1

    15 Jan 2026

    Reading the note…

  21. 5.25.0

    10 Dec 2025

    Reading the note…

  22. 5.24.0

    3 Nov 2025

    Reading the note…

  23. 5.23.0

    11 Oct 2025

    Reading the note…

  24. 5.22.1

    2 Oct 2025

    Reading the note…

  25. 5.22.0

    18 Sep 2025

    Reading the note…

  26. 5.21.0

    30 Aug 2025

    Reading the note…

  27. 5.20.2

    6 Aug 2025

    Reading the note…

  28. 5.20.1

    6 Jul 2025

    Reading the note…

  29. 5.20.0

    19 Jun 2025

    Reading the note…

  30. 5.19.4

    31 May 2025

    Reading the note…

  31. 5.19.3

    12 May 2025

    Reading the note…

  32. 5.19.2

    12 Jan 2025

    Reading the note…

  33. 5.19.1

    24 Dec 2024

    Reading the note…

  34. 5.19.0

    12 Nov 2024

    Reading the note…

  35. 5.18.2

    21 Sep 2024

    Reading the note…

  36. 5.18.1

    6 Sep 2024

    Reading the note…

  37. 5.18.0

    30 Aug 2024

    Reading the note…

  38. 5.17.4

    15 Aug 2024

    Reading the note…

  39. 5.17.3

    13 Aug 2024

    Reading the note…

  40. 5.17.2

    13 Aug 2024

    Reading the note…

  41. 5.17.1

    31 Jul 2024

    Reading the note…

  42. 5.17.0

    30 Jul 2024

    Reading the note…

  43. 5.16.0

    26 Jul 2024

    Reading the note…

  44. 5.15.0

    13 Jul 2024

    Reading the note…

  45. 5.14.0

    22 Jun 2024

    Reading the note…

  46. 5.13.2

    11 Jun 2024

    Reading the note…

  47. 5.13.1

    1 Jun 2024

    Reading the note…

  48. 5.13.0

    4 May 2024

    Reading the note…

  49. 5.12.0

    24 Apr 2024

    Reading the note…

  50. 5.11.0

    16 Apr 2024

    Reading the note…

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.