1 | #### 5.0.1 / 2020-01-18
|
2 | * BUGFIX: `DEBUG` envs works with cookies disables
|
3 |
|
4 | #### 5.0.0 / 2019-11-29
|
5 | * BREAKING CHANGES
|
6 | * Rule conditions' `path` property is now interpreted using [json-path](https://goessner.net/articles/JsonPath/)
|
7 | * To continue using the old syntax (provided via [selectn](https://github.com/wilmoore/selectn.js)), `npm install selectn` as a direct dependency, and `json-rules-engine` will continue to interpret legacy paths this way.
|
8 | * Any path starting with `$` will be assumed to use `json-path` syntax
|
9 |
|
10 | #### 4.1.0 / 2019-09-27
|
11 | * Export Typescript definitions (@brianphillips)
|
12 |
|
13 | #### 4.0.0 / 2019-08-22
|
14 | * BREAKING CHANGES
|
15 | * `engine.run()` now returns a hash of events and almanac: `{ events: [], almanac: Almanac instance }`. Previously in v3, the `run()` returned the `events` array.
|
16 | * For example, `const events = await engine.run()` under v3 will need to be changed to `const { events } = await engine.run()` under v4.
|
17 |
|
18 | #### 3.1.0 / 2019-07-19
|
19 | * Feature: `rule.setName()` and `ruleResult.name`
|
20 |
|
21 | #### 3.0.3 / 2019-07-15
|
22 | * Fix "localStorage.debug" not working in browsers
|
23 |
|
24 | #### 3.0.2 / 2019-05-23
|
25 | * Fix "process" not defined error in browsers lacking node.js global shims
|
26 |
|
27 | #### 3.0.0 / 2019-05-17
|
28 | * BREAKING CHANGES
|
29 | * Previously all conditions with undefined facts would resolve false. With this change, undefined facts values are treated as `undefined`.
|
30 | * Greatly improved performance of `allowUndefinedfacts = true` engine option
|
31 | * Reduce package bundle size by ~40%
|
32 |
|
33 | #### 2.3.5 / 2019-04-26
|
34 | * Replace debug with vanilla console.log
|
35 |
|
36 | #### 2.3.4 / 2019-04-26
|
37 | * Use Array.isArray instead of instanceof to test Array parameters to address edge cases
|
38 |
|
39 | #### 2.3.3 / 2019-04-23
|
40 | * Fix rules cache not clearing after removeRule()
|
41 |
|
42 | #### 2.3.2 / 2018-12-28
|
43 | * Upgrade all dependencies to latest
|
44 |
|
45 | #### 2.3.1 / 2018-12-03
|
46 | * IE8 compatibility: replace Array.forEach with for loop (@knalbandianbrightgrove)
|
47 |
|
48 | #### 2.3.0 / 2018-05-03
|
49 | * Engine.removeFact() - removes fact from the engine (@SaschaDeWaal)
|
50 | * Engine.removeRule() - removes rule from the engine (@SaschaDeWaal)
|
51 | * Engine.removeOperator() - removes operator from the engine (@SaschaDeWaal)
|
52 |
|
53 | #### 2.2.0 / 2018-04-19
|
54 | * Performance: Constant facts now perform 18-26X better
|
55 | * Performance: Removes await/async transpilation and json.stringify calls, significantly improving overall performance
|
56 |
|
57 | #### 2.1.0 / 2018-02-19
|
58 | * Publish dist updates for 2.0.3
|
59 |
|
60 | #### 2.0.3 / 2018-01-29
|
61 | * Add factResult and result to the JSON generated for Condition (@bjacobso)
|
62 |
|
63 | #### 2.0.2 / 2017-07-24
|
64 | * Bugfix IE8 support
|
65 |
|
66 | #### 2.0.1 / 2017-07-05
|
67 | * Bugfix rule result serialization
|
68 |
|
69 | #### 2.0.0 / 2017-04-21
|
70 | * Publishing 2.0.0
|
71 |
|
72 | #### 2.0.0-beta2 / 2017-04-10
|
73 | * Fix fact path object checking to work with objects that have prototypes (lodash isObjectLike instead of isPlainObject)
|
74 |
|
75 | #### 2.0.0-beta1 / 2017-04-09
|
76 | * Add rule results
|
77 | * Document fact .path ability to parse properties containing dots
|
78 | * Bump dependencies
|
79 | * BREAKING CHANGES
|
80 | * `engine.on('failure', (rule, almanac))` is now `engine.on('failure', (event, almanac, ruleResult))`
|
81 | * `engine.on(eventType, (eventParams, engine))` is now `engine.on(eventType, (eventParams, almanac, ruleResult))`
|
82 |
|
83 | #### 1.5.1 / 2017-03-19
|
84 | * Bugfix almanac.factValue skipping interpreting condition "path" for cached facts
|
85 |
|
86 | #### 1.5.0 / 2017-03-12
|
87 | * Add fact comparison conditions
|
88 |
|
89 | #### 1.4.0 / 2017-01-23
|
90 | * Add `allowUndefinedFacts` engine option
|
91 |
|
92 | #### 1.3.1 / 2017-01-16
|
93 | * Bump object-hash dependency to latest
|
94 |
|
95 | #### 1.3.0 / 2016-10-24
|
96 | * Rule event emissions
|
97 | * Rule chaining
|
98 |
|
99 | #### 1.2.1 / 2016-10-22
|
100 | * Use Array.indexOf instead of Array.includes for older node version compatibility
|
101 |
|
102 | #### 1.2.0 / 2016-09-13
|
103 | * Fact path support
|
104 |
|
105 | #### 1.1.0 / 2016-09-11
|
106 | * Custom operator support
|
107 |
|
108 | #### 1.0.4 / 2016-06-18
|
109 | * fix issue #6; runtime facts unique to each run()
|
110 |
|
111 | #### 1.0.3 / 2016-06-15
|
112 | * fix issue #5; dependency error babel-core/register
|
113 |
|
114 | #### 1.0.0 / 2016-05-01
|
115 | * api stable; releasing 1.0
|
116 | * engine.run() now returns triggered events
|
117 |
|
118 | #### 1.0.0-beta10 / 2016-04-16
|
119 | * Completed the 'fact-dependecy' advanced example
|
120 | * Updated addFact and addRule engine methods to return 'this' for easy chaining
|
121 |
|
122 | #### 1.0.0-beta9 / 2016-04-11
|
123 | * Completed the 'basic' example
|
124 | * [BREAKING CHANGE] update engine.on('success') and engine.on('failure') to pass the current almanac instance as the second argument, rather than the engine
|