Update CW 31

Skip to first unread message

Alan Darmasaputra

Aug 4, 2023, 4:19:01 AM8/4/23
to devel...@actyx.io

Hi everyone!

This week we have released:

New features available in machine-runner include:

  • Zod support - Application code now can use Zod to define events. Zod-enabled event types will be tested against the structure of incoming events from Actyx, which prevents TypeError in transitions arising from accessing the payload e.g. of an earlier version of the event definition.
  • State equality check after transition - State change detection now uses deepEqual from the fast-equal package.
  • State Type Refinement - A MachineRunner instance now has a new method available: refineStateType. When called, an aliasing instance will be returned. The state payload produced from the new aliasing instance is typed as the union of all possible types previously defined. This is useful to be used in combination with TypeScript’s type-narrowing capability.

machine-check 0.2.2 bumped its machine-runner dependency to 0.4.4

Have a nice weekend!


Reply all
Reply to author
0 new messages