Skip to content

State Machine ​

0.2.7 ​

2026-09-25

  • The README's code examples still imported the unscoped vue-state-machine in five places instead of the real published name @macrulez/vue-state-machine — a leftover from before the package was moved under the scope.
  • The Wizards guide's CheckoutCtx example declared it with interface — TypeScript doesn't give an interface the implicit index signature Ctx (Record<string, unknown>) needs, so WizardStep<CheckoutCtx> never actually type-checked as written. Switched to a type alias, matching the pattern already used elsewhere in the same doc.

0.2.6 ​

2026-09-12

  • MachineStore.register() now warns in dev mode on an id collision instead of silently overwriting the prior entry.
  • useMachine() now auto-unregisters from the MachineStore/DevTools registry when its owning component unmounts.
  • useSharedMachine(config, options) now warns in dev mode when a later call for the same id passes different options (including persist).