Comparing version 0.7.0 to 0.8.0
0.8.0 / 2014-05-15 | ||
================== | ||
* added; support for maxTimeMS #44 [yoitsro](https://github.com/yoitsro) | ||
* updated; devDependency (driver to 1.4.4) | ||
0.7.0 / 2014-05-02 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -152,2 +152,3 @@ 'use strict'; | ||
* - [maxScan](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24maxScan) * | ||
* - [maxTime](http://docs.mongodb.org/manual/reference/operator/meta/maxTimeMS/#op._S_maxTimeMS) * | ||
* - [batchSize](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7BbatchSize%28%29%7D%7D) * | ||
@@ -1335,2 +1336,22 @@ * - [comment](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24comment) * | ||
/** | ||
* Specifies the maxTimeMS option. | ||
* | ||
* ####Example | ||
* | ||
* query.maxTime(100) | ||
* | ||
* @method maxTime | ||
* @memberOf Query | ||
* @param {Number} val | ||
* @see mongodb http://docs.mongodb.org/manual/reference/operator/meta/maxTimeMS/#op._S_maxTimeMS | ||
* @api public | ||
*/ | ||
Query.prototype.maxTime = function (v) { | ||
this._validate('maxTime'); | ||
this.options.maxTimeMS = v; | ||
return this; | ||
}; | ||
/** | ||
* Specifies this query as a `snapshot` query. | ||
@@ -1337,0 +1358,0 @@ * |
{ | ||
"name": "mquery", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Expressive query building for MongoDB", | ||
"main": "index.js", | ||
"main": "lib/mquery.js", | ||
"scripts": { | ||
@@ -19,3 +19,3 @@ "test": "make test" | ||
"devDependencies": { | ||
"mongodb": "1.3.23", | ||
"mongodb": "1.4.4", | ||
"mocha": "1.9.x" | ||
@@ -22,0 +22,0 @@ }, |
@@ -91,2 +91,3 @@ #mquery | ||
- [maxScan](#maxscan) | ||
- [maxTime](#maxtime) | ||
- [skip](#skip) | ||
@@ -854,2 +855,13 @@ - [sort](#sort) | ||
###maxTime() | ||
Specifies the maxTimeMS option. | ||
```js | ||
query.maxTime(100) | ||
``` | ||
[MongoDB documentation](http://docs.mongodb.org/manual/reference/method/cursor.maxTimeMS/) | ||
###skip() | ||
@@ -1020,3 +1032,4 @@ | ||
- [skip](#skip) * | ||
- [maxScan](#maxScan) * | ||
- [maxScan](#maxscan) * | ||
- [maxTime](#maxtime) * | ||
- [batchSize](#batchSize) * | ||
@@ -1023,0 +1036,0 @@ - [comment](#comment) * |
Sorry, the diff of this file is too big to display
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
195508
5163
1129