From 9cd82a002bd63c07b5e5b70bf2ef2922527a6a28 Mon Sep 17 00:00:00 2001 From: Holger Frank Date: Thu, 1 Feb 2018 16:04:55 +0100 Subject: [PATCH 1/2] Replace Cursor.nextObject because it was removed from node-mongodb-native library --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index a892c55..48a8c76 100644 --- a/lib/index.js +++ b/lib/index.js @@ -140,7 +140,7 @@ Grid.prototype.findOne = function (options, callback) { collection.find(find, function(err, cursor) { if (err) { return callback(err); } if (!cursor) { return callback(new Error('Collection not found')); } - cursor.nextObject(callback); + cursor.next(callback); }); } From d093105327ed94d8151ae26ca9ae4542245d118a Mon Sep 17 00:00:00 2001 From: Holger Frank Date: Tue, 14 Aug 2018 15:01:11 +0200 Subject: [PATCH 2/2] Migrate to mongodb version 3.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 07e2371..98e4dbf 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "mocha": "*", - "mongodb": "2.0.15", + "mongodb": "3.1.1", "checksum": "~0.1.1" }, "optionalDependencies": {},