Skip to content

Commit 07ee3d6

Browse files
author
Cache Hamm
committed
Document path resolver doc link in changelog
1 parent 4b6d987 commit 07ee3d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
#### 6.0. / 2020-12-XX
22
* BREAKING CHANGES
3-
* `path` support using `selectn` should use the `pathResolver` feature. Read more [here](). To continue using selectn, add the following to the engine constructor:
3+
* `path` support using `selectn` should use the `pathResolver` feature. Read more [here](./docs/rules.md#condition-helpers-custom-path-resolver). To continue using `selectn`, add the following to the engine constructor:
44
```js
55
const pathResolver = (object, path) => {
66
return selectn(path)(object)
77
}
88
const engine = new Engine(rules, { pathResolver })
99
```
10+
(fixes #205)
1011
* Engine and Rule events `on('success')`, `on('failure')`, and Rule callbacks `onSuccess` and `onFailure` now honor returned promises; any event handler that returns a promise will be waited upon to resolve before engine execution continues. (fixes #235)
1112
* Private `rule.event` property renamed. Use `rule.getEvent()` to avoid breaking changes in the future.
1213
* The 'success-events' fact used to store successful events has been converted to an internal data structure and will no longer appear in the almanac's facts. (fixes #187)
14+
* NEW FEATURES
15+
* Engine constructor now accepts a `pathResolver` option for resolving condition `path` properties. Read more [here](./docs/rules.md#condition-helpers-custom-path-resolver). (fixes #210)
16+
1317
1418
#### 5.3.0 / 2020-12-02
1519
* Allow facts to have a value of `undefined`

0 commit comments

Comments
 (0)