mongo-oplog icon indicating copy to clipboard operation
mongo-oplog copied to clipboard

Use Cursor.next instead of Cursor.nextObject

Open aslafy-z opened this issue 7 years ago • 4 comments

Breaking change in mongodb package prevent passing an mongodb instance from version >=3.0.

Cursor.nextObject is deprecated since 2.0 and removed from api since 3.0

Similar: https://github.com/aheckmann/gridfs-stream/issues/125

aslafy-z avatar Jun 21 '18 15:06 aslafy-z

Hmm, is this module still being actively maintained? We just went through the 3.x compatibility process for other things, so this is a little worrisome.

boutell avatar Aug 25 '18 15:08 boutell

Thanks for the workaround, but my concern was more about long term maintenance of the module etc. In any case I ultimately decided that given the way MongoDB hosting is priced relative to S3 and relatives, I can't really justify keeping files in it due to their size, even if it's one less separate cost and separate service to manage. But maybe that will be worth it to some client at some point...

boutell avatar Aug 27 '18 12:08 boutell

Hi guys, thanks for contributing to the project, I will review this tomorrow morning, I am jam with bunch of work.

cayasso avatar Aug 27 '18 16:08 cayasso

@cayasso Could you please include this fix in the next release ? Thank you.

aslafy-z avatar Sep 17 '18 16:09 aslafy-z