fig-tree-evaluator 2.8.5 → 2.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1691,6 +1691,7 @@ Please open an issue: https://github.com/CarlosNZ/fig-tree-evaluator/issues
1691
1691
 
1692
1692
  *Trivial upgrades (e.g. documentation, small re-factors, types, etc.) not included*
1693
1693
 
1694
+ - **v2.8.6**: Small bug fix where `options` object would be mutated instead of replaced
1694
1695
  - **v2.8.5**: Small bug fix in [COUNT](#count) operator
1695
1696
  - **v2.8.4**: Refactor types, better compliance with [ESLint](https://eslint.org/) rules, add more tests
1696
1697
  - **v2.8.0**:
@@ -111,8 +111,7 @@ const evaluateExpression = (expression, options) => new FigTreeEvaluator(options
111
111
  exports.evaluateExpression = evaluateExpression;
112
112
  const standardiseOptionNames = (options) => {
113
113
  if ('objects' in options) {
114
- options.data = options.objects;
115
- delete options.objects;
114
+ return Object.assign(Object.assign({}, options), { data: options.objects });
116
115
  }
117
116
  return options;
118
117
  };
@@ -1 +1 @@
1
- export declare const version = "2.8.5";
1
+ export declare const version = "2.8.6";
package/build/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '2.8.5';
4
+ exports.version = '2.8.6';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fig-tree-evaluator",
3
- "version": "2.8.5",
3
+ "version": "2.8.6",
4
4
  "description": "Module to evaluate JSON-structured expression trees",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",