All notable changes to this project will be documented in this file.
3.0.4 (2024-01-31)
- ensure "exists" js interpreter returns value depends on parent field existance for nested fields (ec1c7d6)
3.0.4 (2024-01-31)
- ensure "exists" js interpreter returns value depends on parent field existance for nested fields (ec1c7d6)
3.0.3 (2023-02-15)
3.0.2 (2021-07-15)
3.0.1 (2021-01-10)
- marks packages as commonjs by default with a separate ESM entry (a3f4896)
3.0.0 (2020-10-17)
- api: removes deprecated
equal
option for interpreter (9b086b5)
-
api: removes deprecated
equal
option. It's complitely replaced bycompare
functionBefore
import { createJsInterpreter, allInterpreters } from '@ucast/js'; const interpret = createJsInterpreter(allInterpreters, { equal: (a, b) => /* custom equality check */ });
After
import { createJsInterpreter, allInterpreters, compare } from '@ucast/js'; const interpret = createJsInterpreter(allInterpreters, { compare: (a, b) => { if (/* custom equality check */) { return 0; } return compare(a, b); } });
2.2.3 (2020-10-17)
- get: replaces reduce with for loop in hot function (e54d86a)
2.2.2 (2020-08-26)
2.2.1 (2020-08-24)
- get: ensure
get
returns flat array for deeply nested object of arrays of object arrays (#13) (2efeb91)
2.2.0 (2020-08-20)
- esm: adds ESM support via dual loading in package.json for latest Node.js version (c730f95), closes #10
2.1.3 (2020-08-20)
- operator: ensure
exists
can check existance of array item (3196ec7)
2.1.2 (2020-08-20)
- get: ensures that
getObjectField
properly works with numeric fields in path (ee501a2)
2.1.1 (2020-08-14)
2.1.0 (2020-08-11)
- comparing: adds
compare
option to interpreter (576d128)
2.0.1 (2020-08-08)
- docs: removes
$
sign from README (1a7e96b)
2.0.0 (2020-08-08)
- interpreters: removes
$
prefix from names of operator interpreters (04ea7ac)
- build: adds es6cjs format which works few times faster then umd in node env (4adba3b)
- interpreters: removes
$
prefix from names of operator interpreters. Also renames$in
towithin
becausein
is a reserved word in JS. This ensures we can safely import/re-export symbols from this package and other parsers/interpreters inside/from single file:
Before:
import { $in, $and } from '@ucast/js'
After:
import { within, and } from '@ucast/js'
1.0.2 (2020-07-23)
- license: changes mistakenly set MIT license to the correct one - Apache 2.0 (197363c)
1.0.1 (2020-07-10)
1.0.1 (2020-07-10)
- mongo: stabilize mongo package (7d77768)
- mongo: updates mongo parser to support ValueParsingInstruction (b918c34)
- package: reverts root package.json to fix CI (277deb5)