Skip to content

v3.0.0

Compare
Choose a tag to compare
@mathieudutour mathieudutour released this 06 Jul 10:55
· 228 commits to master since this release
  • remove Mongoskin dependency
  • new documentation using gitbook
  • add opts arg to Collection.count and collection.distinct
  • deprecate Collection.removeById, Collection.findById, Collection.updateById in favor of using remove, findOne and update directly
  • deprecate collection.id and manager.id in favor of monk.id
  • monk('localhost') can be used as a promise which resolves when the connection opens and rejects when it throws an error (fix #24, fix #10)
  • deprecate Collection.findAndModify in favor of Collection.findOneAndDelete and Collection.findOneAndUpdate (fix #74)
  • add Manager.create (fix #50)
  • add option rawCursor to Collection.find to return the raw cursor (fix #103)