Skip to content

Releases: canjs/can-query-logic

null and undefined sorting

05 Nov 21:58
Compare
Choose a tag to compare

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

29 Oct 19:42
Compare
Choose a tag to compare

Documentation Updates

18 Oct 03:04
Compare
Choose a tag to compare
v1.1.3

1.1.3

Fixes hydration bug with {age:22} and {age: [22]}

20 Sep 21:03
Compare
Choose a tag to compare

Expose set methods and reduce some examples better

22 Jul 19:52
Compare
Choose a tag to compare

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

1.0.0

06 Jul 13:26
Compare
Choose a tag to compare

This is the first major release of can-query-logic.