UNPKG

4.04 kBMarkdownView Raw
14.0.0 / 2019-08-22
2 * BREAKING CHANGES
3 * `engine.run()` now returns a hash of events and almanac: `{ events: [], almanac: Almanac instance }`. Previously in v3, the `run()` returned the `events` array.
4 * For example, `const events = await engine.run()` under v3 will need to be changed to `const { events } = await engine.run()` under v4.
5
6
73.1.0 / 2019-07-19
8 * Feature: `rule.setName()` and `ruleResult.name`
9
103.0.3 / 2019-07-15
11 * Fix "localStorage.debug" not working in browsers
12
133.0.2 / 2019-05-23
14 * Fix "process" not defined error in browsers lacking node.js global shims
15
163.0.0 / 2019-05-17
17 * BREAKING CHANGES
18 * Previously all conditions with undefined facts would resolve false. With this change, undefined facts values are treated as `undefined`.
19 * Greatly improved performance of `allowUndefinedfacts = true` engine option
20 * Reduce package bundle size by ~40%
21
222.3.5 / 2019-04-26
23 * Replace debug with vanilla console.log
24
252.3.4 / 2019-04-26
26 * Use Array.isArray instead of instanceof to test Array parameters to address edge cases
27
282.3.3 / 2019-04-23
29 * Fix rules cache not clearing after removeRule()
30
312.3.2 / 2018-12-28
32 * Upgrade all dependencies to latest
33
342.3.1 / 2018-12-03
35 * IE8 compatibility: replace Array.forEach with for loop (@knalbandianbrightgrove)
36
372.3.0 / 2018-05-03
38 * Engine.removeFact() - removes fact from the engine (@SaschaDeWaal)
39 * Engine.removeRule() - removes rule from the engine (@SaschaDeWaal)
40 * Engine.removeOperator() - removes operator from the engine (@SaschaDeWaal)
41
422.2.0 / 2018-04-19
43 * Performance: Constant facts now perform 18-26X better
44 * Performance: Removes await/async transpilation and json.stringify calls, significantly improving overall performance
45
462.1.0 / 2018-02-19
47 * Publish dist updates for 2.0.3
48
492.0.3 / 2018-01-29
50 * Add factResult and result to the JSON generated for Condition (@bjacobso)
51
522.0.2 / 2017-07-24
53 * Bugfix IE8 support
54
552.0.1 / 2017-07-05
56 * Bugfix rule result serialization
57
582.0.0 / 2017-04-21
59 * Publishing 2.0.0
60
612.0.0-beta2 / 2017-04-10
62==================
63 * Fix fact path object checking to work with objects that have prototypes (lodash isObjectLike instead of isPlainObject)
64
652.0.0-beta1 / 2017-04-09
66==================
67
68 * Add rule results
69 * Document fact .path ability to parse properties containing dots
70 * Bump dependencies
71 * BREAKING CHANGES
72 * `engine.on('failure', (rule, almanac))` is now `engine.on('failure', (event, almanac, ruleResult))`
73 * `engine.on(eventType, (eventParams, engine))` is now `engine.on(eventType, (eventParams, almanac, ruleResult))`
74
751.5.1 / 2017-03-19
76==================
77
78 * Bugfix almanac.factValue skipping interpreting condition "path" for cached facts
79
801.5.0 / 2017-03-12
81==================
82
83 * Add fact comparison conditions
84
851.4.0 / 2017-01-23
86==================
87
88 * Add `allowUndefinedFacts` engine option
89
901.3.1 / 2017-01-16
91==================
92
93 * Bump object-hash dependency to latest
94
951.3.0 / 2016-10-24
96==================
97
98 * Rule event emissions
99 * Rule chaining
100
1011.2.1 / 2016-10-22
102==================
103
104 * Use Array.indexOf instead of Array.includes for older node version compatibility
105
1061.2.0 / 2016-09-13
107==================
108
109 * Fact path support
110
1111.1.0 / 2016-09-11
112==================
113
114 * Custom operator support
115
1161.0.4 / 2016-06-18
117==================
118
119 * fix issue #6; runtime facts unique to each run()
120
1211.0.3 / 2016-06-15
122==================
123
124 * fix issue #5; dependency error babel-core/register
125
1261.0.0 / 2016-05-01
127==================
128
129 * api stable; releasing 1.0
130 * engine.run() now returns triggered events
131
1321.0.0-beta10 / 2016-04-16
133==================
134
135 * Completed the 'fact-dependecy' advanced example
136 * Updated addFact and addRule engine methods to return 'this' for easy chaining
137
1381.0.0-beta9 / 2016-04-11
139==================
140
141 * Completed the 'basic' example
142 * [BREAKING CHANGE] update engine.on('success') and engine.on('failure') to pass the current almanac instance as the second argument, rather than the engine