Skip to content

Releases: bluealba/rules-js

Going live!

25 Mar 01:36
Compare
Choose a tag to compare

Updated dependencies. No further changes.

0.2.0

12 Dec 19:58
Compare
Choose a tag to compare

Chaining rules with AND/OR

0.1.0

18 Dec 17:21
1e14ef4
Compare
Choose a tag to compare
  • 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.

Remove dependency to co

09 Oct 23:41
Compare
Choose a tag to compare

Reimplemented through native Promises

Remove dependency to async-class-co

09 Oct 20:09
Compare
Choose a tag to compare

It was replaced by plain old co library.

Fix performance issue with Context.bindParameters

09 Oct 19:40
Compare
Choose a tag to compare

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.

Add matchOnce option for RuleFlows

09 Oct 18:58
Compare
Choose a tag to compare
v0.0.6

add matchOnce option for rule flows

Add support to register closures classes

02 Oct 18:13
Compare
Choose a tag to compare

Added support for #6 and #7

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

Introduce template method for object closures

02 Oct 15:12
Compare
Choose a tag to compare

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.

0.0.3

02 Oct 14:23
Compare
Choose a tag to compare

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