Changelog
3.3.1
- Bug: Fixed bug with computed properties not being reactive after hot reload
3.3.0
- Feature: Added global computed properties to machine instance that can be used in any state
- Feature: Added global actions to machine instance that can be used in any state
3.2.0
- Feature: Added
debugflag to machine schema - Chore: Updated dependencies
3.1.1
-- Bug: Hooks don't execute when initializing machine
3.1.0
-- Docs: Created new documentation site -- Deprecated useLocalStorage has been deprecated -- Code: Rewritten core to objective modules architecture
3.0.2
-- Docs: Improved README.md and documentation
3.0.1
- Bug: Exclude tests declarations files from generating
3.0.0
- Feature: Added
useLocalStorageflag for preserving state and reactive object in LocalStorage - Feature: Added unit test to te repository
Breaking changes:
- Reactive object definition
- Way of defining reactive state has changed from
state: () => ({ ... })toreactive: { ... }
- Executing actions
- Executing actions from machine instance no longer uses
.from()method. Instead actions are directly called from the state key like this:machine.INITIAL.increment(1)
- Action context has been changed
this.$statetothis.$reactivethis.changeStatetothis.$changeStatethis.resetStatetothis.$resetReactive
- Machine instance method has been changed
this.$statetothis.reactivethis.$changeStatetothis.changeStatethis.$resetStatetothis.resetReactive
- onEnter and onLeave hooks has been renamed
onEnterhook has been renamed to$onEnteronLeavehook has been renamed to$onLeave
- Initial state key is required while defining machine
- adding
initial: stringkey to machine is now required.
2.0.3
- Bug: Fixed bug in the documentation: changed
defineMachinetocreateMachine - Feature: Added { initial: "" } key to state machine