Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 16 Apr 13:40
· 3346 commits to main since this release
8330bb5

Minor Changes

  • d0939ec6 #2046 Thanks @SimeonC! - Allow machines to communicate with the inspector even in production builds.

  • e37fffef #2079 Thanks @davidkpiano! - There is now support for "combinatorial machines" (state machines that only have one state):

    const testMachine = createMachine({
      context: { value: 42 },
      on: {
        INC: {
          actions: assign({ value: ctx => ctx.value + 1 })
        }
      }
    });

    These machines omit the initial and state properties, as the entire machine is treated as a single state.

Patch Changes

  • 6a9247d4 #2102 Thanks @VanTanev! - Provide a convenience type for getting the Interpreter type based on the StateMachine type by transferring all generic parameters onto it. It can be used like this: InterpreterFrom<typeof machine>