MongooseJS 4.9.10 和 4.10.0 发布了,使用 JavaScript 编程,连接 MongoDB 数据库的软件包,使 MongoDB 的文档数据模型变的优雅起来,方便对 MongoDB 文档型数据库的连接和增删改查等常规数据操作。 4.9.10 更新如下: fix(connection): ensure callback arg to openSet() is handled properly #5249 docs: remove dead plugins repo and add content links #5247 fix(model): skip index build if connecting after model init and autoIndex false #5176 下载地址 Source code (zip) Source code (tar.gz) 4.10.0 更新如下: fix(schema): update clone method to include indexes #5268 clozanosanchez feat(schema): support aliases #5184 rocketspacer feat(aggregate): add mongoose-specific aggregation cursor option #5145 refactor(model): make sharding into a plugin instead of core #5105 fix(document): make nested doc mongoose internals not enumerable again #5078 feat(model): pass params to pre hooks #5064 feat(timestamps): support already defined timestamp paths in schema #4868 feat(query): add runSettersOnQuery option #4569 fix(query): add strictQuery option that throws when not querying on field not in schema #4136 fix(update): more complete handling for overwrite option with update validators #3556 feat: support unique: true in arrays via the mongoose-unique-array plugin #3347 feat(validation): include failed paths in error message and inspect output #3064 #2135 fix(model): return saved docs when create() fails #2190 下载地址 Source code (zip) Source code (tar.gz) 点此查看完整更新内容 MongooseJS 4.9.10 和 4.10.0 发布,MongoDB 连接包下载地址