Skip to content

Releases: denodrivers/mongo

v0.29.1

21 Jan 12:11
a0e09f6
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.29.0...v0.29.1

v0.29.0

18 Dec 12:33
60823bd
Compare
Choose a tag to compare

What's Changed

deno_mongo now uses web_bson as its bson library. that's a Deno/Web native library that not depends on node.js stuff (like Buffer). it makes driver even faster and smaller. also makes bson types more readable when using console.log
console.log(objectId) before:

ObjectId2 {
      [Symbol(id)]: Buffer(12) [
         96,  13, 192, 57,  4,
        221,  93, 235, 42, 89,
         41, 169
      ]
 }

console.log(objectId) now:

 new ObjectId("600dc03904dd5deb2a5929a9")

Breaking Changes

web_bson doesn't supports deprecated bson APIs. also some methods are different than before. but most of time you don't need to change anything, these changes are very small

Notable commits

  • fix: nin type when used on arrays by @c0per in #315
  • chore(deps): use web_bson for bson library by @erfanium in #317

A huge thanks to @lucsoft for taking the lead in building web_bson

Full Changelog: v0.28.1...v0.29.0

v0.28.1

04 Dec 22:17
f844774
Compare
Choose a tag to compare

What's Changed

no new features or breaking changes, just some refactoring and performance improvements

Notable commits

  • refactor: remove use of Deno.close by @lucacasonato in #293
  • feat: support mongodb v5 by @erfanium in #291
  • Update cluster.ts, certFile is deprecated in Deno. Now is caCerts. by @hviana in #300
  • chore(deps): drop std/hash dependency by @erfanium in #301
  • chore(deps): use pinned url for bson by @erfanium in #306
  • chore(protocol): fix a performance issue by @erfanium in #307 (makes driver 4-5 times faster on some benchmarks!)

New Contributors

Full Changelog: v0.28.0...v0.28.1

v0.28.0

22 Oct 16:18
8adce47
Compare
Choose a tag to compare

doc: Added simple examples for GridFS usage (#264)
fix: Using globalThis instead of window(Compatible with webworker)
fix: uri parser authSource and dbName bug(#265). (BREAKING: the default database is changed from admin to test)
fix: use a fixed version for bson dependency (#268)
fix: check update document to only contains atomic operators (#267)
fix: use new ObjectId() to generate FileId in uploadFromStream()
chore: remove unstable flag from ci (#273). 🚀 driver don’t need unstable flags now!
feat: implement replaceOne (#281)

v0.27.0

15 Sep 16:41
95bf3f8
Compare
Choose a tag to compare
  • feat: Add GridFS Basic API (#252)
  • fix: Update dependencies to fix type errors performed in the latest version of deno

v0.26.0

12 Sep 04:49
f449d9a
Compare
Choose a tag to compare
  • opt: made info in MongoError class accessible (#241)
  • chore: remove Bson.ObjectID export (#242)
  • opt: document types improvements (#239)
  • fix: unallowed argument in listCollections command: batchSize (#245)
  • feat: cache build info in connection (#246)
  • fix: fix failed features in mongo-4.4 (#247)
  • chore: deprecate collection.insert method (#251)

v0.25.0

19 Aug 01:56
1dc29e1
Compare
Choose a tag to compare
  • feat: add countDocuments and estimatedDocumentCount methods and deprecate count method #222
  • fix(client): use connection db option as default database name #223
  • opt: Add authentication using authSource #225

v0.24.0

21 Jul 02:26
a05e014
Compare
Choose a tag to compare

implement dropIndexes (#214)
implement findAndModify (#211)
fix: add a optional generic to collection aggregate type (#213)
added export of Database and Collection class (#202)

v0.23.1

23 May 06:44
6c9a465
Compare
Choose a tag to compare
fix: Use isMaster instead of hello to support older instances (#201)

v0.23.0

19 May 15:32
fc3f3e6
Compare
Choose a tag to compare

Now supports parsing the connection string of mongodb+srv. And can connect to Mongo Altas