- Enable support for object literals.
- Updates style spec version to
13.21.0
and removes block list predicated on object support. - Fix handling of the
literal
expression, which now supports any literal value (arrays, objects, strings, etc), in accordance with the style spec.
- Fix handling of nested arrays that are not expressions (e.g. in `["match", ["get", "rank"], [1, 2], "a", [3, 4], "b", "c"]) by only treated arrays as expressions if they start with a whitelisted expression operator.
- Treat
!
as a prefix operator instead of an infix operator when transforming expressions to formulas, since!
has only one operand.
- [BREAKING] Reject unquoted literal strings as passed in as formulas to
formulaToExpression
.
- Fix handling of symbolic decision operators, like
<=
and!
.
- Fix handling of the
literal
expression, whose argument can be an array whose items are primitives and arrays of primitives.
- Fix handling of
^
(exponentiation) and%
(remainder) expression operators. - Fix handling of empty input to
formulaToExpression
. It now returnsundefined
. - Fix handling of hyphenated expression operators.
- [BREAKING] Export 2 functions:
expressionToFormula
andformulaToExpression
, so the transformation can go both ways.
- Initial release.