Comparing version 1.11.0 to 2.0.0
@@ -0,1 +1,9 @@ | ||
2.0.0 / 2016-09-25 | ||
================== | ||
* added; support for mongodb driver 2.0 streams | ||
1.12.0 / 2016-09-25 | ||
=================== | ||
* added; `retainKeyOrder` option re: Automattic/mongoose#4542 | ||
1.11.0 / 2016-06-04 | ||
@@ -2,0 +10,0 @@ =================== |
@@ -87,3 +87,3 @@ 'use strict'; | ||
NodeCollection.prototype.findStream = function(match, findOptions, streamOptions) { | ||
return this.collection.find(match, findOptions).stream(streamOptions); | ||
return this.collection.find(match, findOptions); | ||
} | ||
@@ -90,0 +90,0 @@ |
{ | ||
"name": "mquery", | ||
"version": "1.11.0", | ||
"version": "2.0.0", | ||
"description": "Expressive query building for MongoDB", | ||
@@ -20,3 +20,3 @@ "main": "lib/mquery.js", | ||
"devDependencies": { | ||
"mongodb": "1.4.38", | ||
"mongodb": "~2.2", | ||
"mocha": "1.9.x", | ||
@@ -23,0 +23,0 @@ "istanbul": "0.3.2" |
#mquery | ||
=========== | ||
@@ -4,0 +3,0 @@ `mquery` is a fluent mongodb query builder designed to run in multiple environments. As of v0.1, `mquery` runs on `Node.js` only with support for the MongoDB shell and browser environments planned for upcoming releases. |
@@ -11,3 +11,3 @@ | ||
exports.getCollection = function (cb) { | ||
mongo.Db.connect(uri, function (err, db_) { | ||
mongo.MongoClient.connect(uri, function (err, db_) { | ||
assert.ifError(err); | ||
@@ -17,3 +17,2 @@ db = db_; | ||
var collection = db.collection('stuff'); | ||
collection.opts.safe = true; | ||
@@ -20,0 +19,0 @@ // clean test db before starting |
Sorry, the diff of this file is too big to display
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
214839
5595
1220