js-data-rethinkdb
Advanced tools
Comparing version 1.0.0-alpha.4 to 1.0.0-alpha.5
@@ -0,1 +1,6 @@ | ||
##### 1.0.0-alpha.5 - 28 November 2014 | ||
###### Backwards compatible API changes | ||
- Added isectEmpty, isectNotEmpty, |isectEmpty, and |isectNotEmpty filter operators. | ||
##### 1.0.0-alpha.4 - 23 November 2014 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "js-data-rethinkdb", | ||
"description": "RethinkDB adapter for js-data.", | ||
"version": "1.0.0-alpha.4", | ||
"version": "1.0.0-alpha.5", | ||
"homepage": "http://www.js-data.io/docs/dsrethinkdbadapter", | ||
@@ -45,3 +45,3 @@ "repository": { | ||
"dependencies": { | ||
"js-data": "^1.0.0-alpha.5-1", | ||
"js-data": "^1.0.0-alpha.5-4", | ||
"mout": "0.11.0", | ||
@@ -48,0 +48,0 @@ "rethinkdbdash": "^1.15.x" |
@@ -80,2 +80,6 @@ var rethinkdbdash = require('rethinkdbdash'); | ||
subQuery = subQuery ? subQuery.and(row(field).default(null).le(v)) : row(field).default(null).le(v); | ||
} else if (op === 'isectEmpty') { | ||
subQuery = subQuery ? subQuery.and(row(field).default([]).setIntersection(r.expr(v).default([])).count().eq(0)) : row(field).default([]).setIntersection(r.expr(v).default([])).count().eq(0); | ||
} else if (op === 'isectNotEmpty') { | ||
subQuery = subQuery ? subQuery.and(row(field).default([]).setIntersection(r.expr(v).default([])).count().ne(0)) : row(field).default([]).setIntersection(r.expr(v).default([])).count().ne(0); | ||
} else if (op === 'in') { | ||
@@ -97,2 +101,6 @@ subQuery = subQuery ? subQuery.and(r.expr(v).default(r.expr([])).contains(row(field).default(null))) : r.expr(v).default(r.expr([])).contains(row(field).default(null)); | ||
subQuery = subQuery ? subQuery.or(row(field).default(null).le(v)) : row(field).default(null).le(v); | ||
} else if (op === '|isectEmpty') { | ||
subQuery = subQuery ? subQuery.or(row(field).default([]).setIntersection(r.expr(v).default([])).count().eq(0)) : row(field).default([]).setIntersection(r.expr(v).default([])).count().eq(0); | ||
} else if (op === '|isectNotEmpty') { | ||
subQuery = subQuery ? subQuery.or(row(field).default([]).setIntersection(r.expr(v).default([])).count().ne(0)) : row(field).default([]).setIntersection(r.expr(v).default([])).count().ne(0); | ||
} else if (op === '|in') { | ||
@@ -99,0 +107,0 @@ subQuery = subQuery ? subQuery.or(r.expr(v).default(r.expr([])).contains(row(field).default(null))) : r.expr(v).default(r.expr([])).contains(row(field).default(null)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30647
579
Updatedjs-data@^1.0.0-alpha.5-4