UNPKG

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