- Add async expression support
- Remove some edge cases
- Remove browser builds
- Switch from yarn to npm
- DEPRECATED
indexOf
in favor ofarray.findIndex(sift(query))
- second param is now
options
instead of select function. E.g:sift(query, { expressions: customExpressions, select: selectValue })
- DEPRECATED
sift(query, array)
. You must now usearray.filter(sift(query))
- Queries now expect exact object shape (based on crcn#117). E.g:
[{a: 1, b: 1}, {a: 1}]].filter(sift({ a: 1 })) === [{a: 1}]
- Remove global
*.use()
function. - converted to ES6
$in
now usestoString()
when evaluating objects. Fixes #116.
use()
now uses a different format:
sift.use({
$operator: function(a) {
return function(b) {
// compare here
};
},
});
- all operators are traversable now
- fix #58.