Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 969 Bytes

changelog.md

File metadata and controls

43 lines (30 loc) · 969 Bytes

@mixmaxhq

1.0.0

  • Add async expression support
  • Remove some edge cases
  • Remove browser builds
  • Switch from yarn to npm

Former package

8.0.0

  • DEPRECATED indexOf in favor of array.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 use array.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}]

7.0.0

  • Remove global *.use() function.
  • converted to ES6

3.3.x

  • $in now uses toString() when evaluating objects. Fixes #116.

2.x

  • use() now uses a different format:
sift.use({
  $operator: function(a) {
    return function(b) {
      // compare here
    };
  },
});
  • all operators are traversable now
  • fix #58.