Releases: stalniy/ucast
Releases · stalniy/ucast
@ucast/mongo@2.3.3
@ucast/mongo@2.3.2
@ucast/mongo2js@1.3.1
@ucast/js@3.0.0
3.0.0 (2020-10-17)
Bug Fixes
- api: removes deprecated
equal
option for interpreter (9b086b5)
BREAKING CHANGES
-
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); } });