thekashey / faste Goto Github PK
View Code? Open in Web Editor NEWTable based π¦ Finite State Machine π€
License: MIT License
Table based π¦ Finite State Machine π€
License: MIT License
To return internal machine implementation to the called.
faste.trap(['stateKey'],['phase'], callback)
- allmost useEffect
, but trap
.
faste.trap(['count'],['active'], (state, transitTo) => state.count>3 && transitTo('overflow');
Each machine instance consist of Phase, state, hooks temporary state and timers. This information could be extracted out of class instance to make faste usable in form of reducer both for redux and react.
As seen at redux-progress
And make them more react hooks friendly
Machine configuration should be serializable to enable visual schema generation and virtual table representation.
Introduce .withAllowedStates
to reduce possible states to some subset.
π¨ Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! π ππ¨ π
Find out how to migrate to Snyk at greenkeeper.io
1.11.2
to 1.12.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
tslib is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
This release adds the __createBinding
helper function which is used by non-ECMAScript module emit in TypeScript 3.9.
The new version differs by 6 commits.
3a21810
Update version to '1.12.0'.
ae43189
Merge pull request #101 from alan-agius4/patch-1
21f15b1
fix: add missing semi colons after method names
b6c0020
Remove links to spec from README
f283e5c
Add :void
6975099
Update helpers for TS 3.9 (#99)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
π¨ Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! π ππ¨ π
Find out how to migrate to Snyk at greenkeeper.io
3.6.5
to 3.7.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
codecov is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 11 commits.
54d6e92
lcov.info file have been removed
eae03d5
.borwerrc file has been removed
2f35de8
Version 3.7
0d7b9b0
Remove 'x-amz-acl': 'public-read'
header (#178)
eeff4e1
Bump acorn from 5.7.3 to 5.7.4 (#174)
eb8a527
Merge pull request #172 from RoboCafaz/bugfix/codebuild-pr-parser
55d69cd
Merge pull request #159 from SaferNodeJS/master
ef348ec
Verify source version before parsing PR
e138efe
Merge lastest changes
36bbef4
Merge branch 'master' of https://github.com/codecov/codecov-node
5885958
Fixing windows test and security
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
magic method to catch errors.
contains(name, MachineDef, [states], [conditions])
to define submachineson('@attach')
event, triggered on machine creationon('@detach')
event, triggered on machine destruction.children[name]
to access child machinescontains(name)
to check containtent existance.signalFrom(nameMachine, event, [states])
- to respont to signals.const clockMachine = faste()
.on('@init',({setState, attrs, trigger}) => setState({
interval: setInterval(() => emit('next'), attrs.duration)
}))
.on('@destroy', ({state}) => clearInterval(state.interval));
const light = faste()
// simple machine
.contains('clock', clockMachine)
// with dynamic constructor
.contains('clock', ({attrs}) => ({faste: clockMachine, attrs: { duration: attrs.duration || 10}})))
.signalFrom('clock', 'tick', ({emit}) => trigger('switch'))
.on('tick',['on'], ({transitTo}) => transitTo('off'))
.on('tick',['off'], ({transitTo}) => transitTo('on'))
allow more that state to be set on one time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.