Rules Js Versions Save

A simple rule-engine for javascript

1.0.0

5 years ago

Updated dependencies. No further changes.

0.2.0

5 years ago

Chaining rules with AND/OR

v0.1.0

6 years ago
  • Make closures work both sync or async. Closure invokers (Rule, RuleFlow, ClosureReducer) won't create a Promise and execute on the then if the called closure returned a sync result. Engine will always return promises, so high level API hasn't change.
  • Totally remove co dependency
  • Fix unit tests! There were a lot of false positives on tests due the removal of co-mocha from dependencies.

v0.0.11

6 years ago

Reimplemented through native Promises

v0.0.8

6 years ago

It was replaced by plain old co library.

v0.0.7

6 years ago

This internal issue might cause huge delays on fact processing. By changing the clone algorithm from JSON.parse/stringify to Object.assign we achieved a 5x performance boost.

v0.0.6

6 years ago

v0.0.5

6 years ago

Added support for #6 and #7

Disabled required parameters validation at bind time (since it was broken)

v0.0.4

6 years ago

Now closures implemented thorugh a class must define a do method instead of a process method (although, overwriting process is still an option`.

do method accepts non promise return values.

v0.0.3

6 years ago

Major changes. Closure syntax consolidated. Reduced to minimum interfaces.