MongooseJS 5.0.0 rc0 发布了,MongooseJS 是使用 JavaScript 编程,连接 MongoDB 数据库的软件包,使 MongoDB 的文档数据模型变的优雅起来,方便对 MongoDB 文档型数据库的连接和增删改查等常规数据操作。
主要更新内容:
BREAKING CHANGE: always use mongoose aggregation cursor when using .aggregate().cursor() #5941
BREAKING CHANGE: attach query middleware when compiling model #5939
BREAKING CHANGE: emitIndexErrors is on by default, failing index build will throw uncaught error if not handled #5910
BREAKING CHANGE: remove precompiled browser bundle #5895
feat: add mongoose.pluralize() function #5877
BREAKING CHANGE: remove passRawResult option for findOneAndUpdate, use rawResult #5869
BREAKING CHANGE: implicit async validators (based on number of function args) are removed, return a promise instead #5824
软件详情:https://github.com/Automattic/mongoose/blob/master/History.md
下载地址:https://github.com/Automattic/mongoose/archive/5.0.0-rc0.zip
来自:开源中国社区

