Mongoose 5.2.10 发布,MongoDB 异步对象模型工具

达尔文
 达尔文
发布于 2018年08月28日
收藏 2

Mongoose 5.2.10 发布了,Mongoose 是在 Node.js 异步环境下对 MongoDB 进行便捷操作的对象模型工具。

更新内容如下:

  • fix: bump mongodb driver -> 3.1.4 #6920 #6903 #6884 #6799 #6741 [Fonger](https://github.com/Fonger)

  • fix(model): track `session` option for `save()` as the document's `$session()` #6909

  • fix(query): add Query.getOptions() helper #6907 [Fonger](https://github.com/Fonger)

  • fix(document): ensure array atomics get cleared after save() #6900

  • fix(aggregate): add missing redact and readConcern helpers #6895 [Fonger](https://github.com/Fonger)

  • fix: add global option `mongoose.set('useCreateIndex', true)` to avoid ensureIndex deprecation warning #6890

  • fix(query): use `projection` option to avoid deprecation warnings #6888 #6880 [Fonger](https://github.com/Fonger)

  • fix(query): use `findOneAndReplace()` internally if using `overwrite: true` with `findOneAndUpdate()` #6888 [Fonger](https://github.com/Fonger)

  • fix(document): ensure required cache gets cleared correctly between subsequent saves #6892

  • fix(aggregate): support session chaining correctly #6886 #6885 [Fonger](https://github.com/Fonger)

  • fix(query): use `projection` instead of `fields` internally for `find()` and `findOne()` to avoid deprecation warning #6880

  • fix(populate): add `getters` option to opt in to calling getters on populate #6844

下载地址:

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 开源中国社区 [http://www.oschina.net]
本文标题:Mongoose 5.2.10 发布,MongoDB 异步对象模型工具
加载中
返回顶部
顶部