Skip to content

Commit 870a900

Browse files
author
Cache Hamm
committed
Upgrade jsonpath-plus to fix inconsistent scalar results
1 parent ea76069 commit 870a900

4 files changed

Lines changed: 10 additions & 46 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### 5.0.3 / 2020-01-26
2+
* Upgrade jsonpath-plus dependency, to fix inconsistent scalar results (#175)
3+
14
#### 5.0.2 / 2020-01-18
25
* BUGFIX: Add missing `DEBUG` log for almanac.addRuntimeFact()
36

package-lock.json

Lines changed: 3 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"clone": "^2.1.2",
7272
"events": "^3.0.0",
7373
"hash-it": "^4.0.4",
74-
"jsonpath-plus": "^1.1.0",
74+
"jsonpath-plus": "^3.0.0",
7575
"lodash.isobjectlike": "^4.0.0"
7676
}
7777
}

test/engine-fact.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function eligibilityData (params, engine) {
2929
{ name: 'Jane', year: 2013 }
3030
],
3131
currentOccupants: [
32-
{ name: 'Larry', year: 2020 },
32+
{ name: 'Larry', year: 2020 }
3333
]
3434
}
3535
if (params.eligibilityId === 1) {
@@ -171,7 +171,7 @@ describe('Engine: fact evaluation', () => {
171171
expect(successSpy).to.not.have.been.called()
172172
})
173173

174-
describe.only('arrays', () => {
174+
describe('arrays', () => {
175175
it('can extract an array, allowing it to be used in concert with array operators', async () => {
176176
const complexCondition = conditions()
177177
complexCondition.any[0].path = '$.address.occupantHistory[*].year'
@@ -191,7 +191,7 @@ describe('Engine: fact evaluation', () => {
191191
await engine.run()
192192
expect(successSpy).to.have.been.calledWith(event)
193193
})
194-
});
194+
})
195195

196196
context('complex paths', () => {
197197
it('correctly interprets "path" when dynamic facts return objects', async () => {

0 commit comments

Comments
 (0)