Mongoose v5.11.6 Release Notes

Release Date: 2020-12-09 // over 3 years ago
    • fix(middleware): ensure sync errors in pre hooks always bubble up to the calling code #9659
    • fix(index.d.ts): allow passing ObjectId properties as strings to create() and findOneAndReplace() #9676
    • fix(index.d.ts): allow calling mongoose.model() and Connection#model() with model as generic param #9685 #9678 sahasayan
    • fix(index.d.ts): Fix return type of Model#aggregate() #9680 orgads
    • fix(index.d.ts): optional next() parameter for post middleware #9683 isengartz
    • fix(index.d.ts): allow array of validators in SchemaTypeOptions #9686 cjroebuck