Skip to content

v0.29.0

Compare
Choose a tag to compare
@erfanium erfanium released this 18 Dec 12:33
· 92 commits to main since this release
60823bd

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