json-rules-engine
Advanced tools
Comparing version 5.0.4 to 5.1.0-rc1
@@ -0,1 +1,4 @@ | ||
#### 5.1.0 / 2020-11-27 | ||
* Allow facts to have values of `undefined` | ||
#### 5.0.4 / 2020-09-26 | ||
@@ -2,0 +5,0 @@ * Upgrade dependencies to latest |
@@ -43,5 +43,2 @@ 'use strict'; | ||
if (!this.id) throw new Error('factId required'); | ||
if (typeof this.value === 'undefined' && typeof this.calculationMethod === 'undefined') { | ||
throw new Error('facts must have a value or method'); | ||
} | ||
@@ -48,0 +45,0 @@ this.priority = parseInt(options.priority || 1, 10); |
{ | ||
"name": "json-rules-engine", | ||
"version": "5.0.4", | ||
"version": "5.1.0-rc1", | ||
"description": "Rules Engine expressed in simple json", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
74174
1332
1