v0.29.0
版本发布时间: 2021-12-18 20:33:04
denodrivers/mongo最新发布版本:v0.33.0(2024-03-26 07:16:35)
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 https://github.com/denodrivers/deno_mongo/pull/315
- chore(deps): use web_bson for bson library by @erfanium in https://github.com/denodrivers/deno_mongo/pull/317
A huge thanks to @lucsoft for taking the lead in building web_bson
Full Changelog: https://github.com/denodrivers/deno_mongo/compare/v0.28.1...v0.29.0