Releases: denodrivers/mongo
v0.29.1
v0.29.0
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
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
- @wafuwafu13 made their first contribution in #294
Full Changelog: v0.28.0...v0.28.1
v0.28.0
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
v0.26.0
- 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
v0.24.0
v0.23.1
fix: Use isMaster instead of hello to support older instances (#201)
v0.23.0
Now supports parsing the connection string of mongodb+srv
. And can connect to Mongo Altas