Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
atoledo committed Aug 9, 2024
1 parent 6ca67aa commit d418df9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# illogical changelog

## 1.6.1

- Bugfix on Arithmetic evaluate. Returns false when ContextValue is not present in the Context.

## 1.6.0

- Added support for Arithmetic expressions within other Comparison expressions. This allows for
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@briza/illogical",
"version": "1.6.0",
"version": "1.6.1",
"description": "A micro conditional javascript engine used to parse the raw logical and comparison expressions, evaluate the expression in the given data context, and provide access to a text form of the given expressions.",
"main": "lib/illogical.js",
"module": "lib/illogical.esm.js",
Expand Down
10 changes: 10 additions & 0 deletions types/expression/arithmetic/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ export declare abstract class Arithmetic implements Evaluable {
* @param {Operand[]} operands Operands.
*/
constructor(operator: string, operatorSymbol: symbol, operands: Operand[]);
/**
* Helper function to assist with arithmetic evaluation. Ensures that all
* operands are present and are numbers. Throws error if any operand is not a
* number.
*
* @param {Result[]} results
* @returns {number[] | false} false if any operand is missing, otherwise the
* array of numbers
*/
protected getResultValues(results: Result[]): number[] | false;
/**
* Performs the arithmetic operation on the operands evaluated values.
* @param {Result[]} results Operand result values.
Expand Down

0 comments on commit d418df9

Please sign in to comment.