皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

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

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

更新内容如下:

  • fix(document): ensure doc array defaults get casted #7337
  • fix(document): make save() not crash if nested doc has a property ‘get’ #7316
  • fix(schema): allow using Schema.Types.Map as well as Map to declare a map type #7305
  • fix(map): make set after init mark correct path as modified #7321
  • fix(mongoose): don’t recompile model if same collection and schema passed in to mongoose.model() #5767
  • fix(schema): improve error message when type is invalid #7303
  • fix(schema): add populated to reserved property names #7317
  • fix(model): don’t run built-in middleware on custom methods and ensure timestamp hooks don’t run if children don’t have timestamps set #7342
  • docs(schematypes): clarify that you can add arbitrary options to a SchemaType #7340
  • docs(mongoose): clarify that passing same name+schema to mongoose.model() returns the model #5767
  • docs(index): add useNewUrlParser to example #7368 JIBIN-P
  • docs(connection): add useNewUrlParser to examples #7362 JIBIN-P
  • docs(discriminators): add back missing example from ‘recursive embedded discriminators section’ #7349
  • docs(schema): improve docs for string and boolean cast() #7351

发行地址

转自 https://www.oschina.net/news/104170/mongoose-5-4-9-released