2.0.0 / 2017-04-21
- Publishing 2.0.0
- Fix fact path object checking to work with objects that have prototypes (lodash isObjectLike instead of isPlainObject)
- Add rule results
- Document fact .path ability to parse properties containing dots
- Bump dependencies
- BREAKING CHANGES
engine.on('failure', (rule, almanac))is nowengine.on('failure', (event, almanac, ruleResult))engine.on(eventType, (eventParams, engine))is nowengine.on(eventType, (eventParams, almanac, ruleResult))
- Bugfix almanac.factValue skipping interpreting condition "path" for cached facts
- Add fact comparison conditions
- Add
allowUndefinedFactsengine option
- Bump object-hash dependency to latest
- Rule event emissions
- Rule chaining
- Use Array.indexOf instead of Array.includes for older node version compatibility
- Fact path support
- Custom operator support
- fix issue #6; runtime facts unique to each run()
- fix issue #5; dependency error babel-core/register
- api stable; releasing 1.0
- engine.run() now returns triggered events
- Completed the 'fact-dependecy' advanced example
- Updated addFact and addRule engine methods to return 'this' for easy chaining
- Completed the 'basic' example
- [BREAKING CHANGE] update engine.on('success') and engine.on('failure') to pass the current almanac instance as the second argument, rather than the engine