Releases: canjs/can-query-logic
Releases · canjs/can-query-logic
null and undefined sorting
Issue: #24
This fixes a bug where sorting a "Schema"ed property that had a null
or undefined
value was erring. Something like the following was breaking:
var results = todoQueryLogic.filterMembers({
sort: "due"
}, [
{
id: 1,
due: null
},
{
id: 2,
due: new Date(2001,0,1).toString()
},
{
id: 3,
due: new Date(2000,0,1).toString()
},
{
id: 4,
due: null
}
]);
Undefined and null values will come first now.
IE 11 Compatibility
Documentation Updates
v1.1.3 1.1.3
Fixes hydration bug with {age:22} and {age: [22]}
Expose set methods and reduce some examples better
Commit: 7547e48
import {QueryLogic} from "can-query-logic";
var gt1 = new QueryLogic.GreaterThan(1);
var lte1 = new QueryLogic.LessThanEqual(1);
QueryLogic.intersection(gt1, lte1) //-> QueryLogic.EMPTY