Javascript State Machine 3.0
Sat, Jun 10, 2017Earlier this year, the javascript-state-machine libary underwent a major rewrite for version 3.0 in order to support more advanced use cases - as well as tidy up some of the existing ones. It has been available as a pre-release candidate for the last few months and has now been formally released as v3.0.1
Installing
You can install using npm:
npm install javascript-state-machine
Highlights
- Improved Construction.
- Arbitrary Data and Methods.
- Observable Transitions
- Conditional Transitions
- Promise-based Asynchronous Transitions
- Improved Transition Lifecycle Events
- Goto State
- State History
- Visualization
- Webpack build system
Documentation
Additional documentation is available on github:
- States and Transitions
- Data and Methods
- Lifecycle Events
- Asynchronous Transitions
- Initialization
- Error Handling
- State History
- Visualization
- State Machine Factory
Licensing
Please note that v3.0 is dual licensed under LGPLv3 for open source projects, while a commercial license is also available.