Releases: Automattic/mongoose
Releases · Automattic/mongoose
6.1.0
6.1.0 / 2021-12-07
- feat(populate): support ref on subdocuments #10856
- feat(document): add
ownerDocument()method to top-level document for consistency with subdocs #10884 IslandRhythms - fix: upgrade to mongodb driver 4.2.1 #11032 #10985 lorand-horvath has-n
- feat(schema): support
timeseriesoption for MongoDB 5 time series collections support #10611 - feat(mongoose): add global
strictPopulateoption #10694 IslandRhythms - feat(mongoose+connection): add global
mongoose.syncIndexes()andConnection.prototype.syncIndexes()#10893 IslandRhythms - feat(query): support removing fields from projections #10630 canac
- feat(aggregate): add unionWith method to aggregate #10961 saeidasadi
- fix(index.d.ts): types for aggregation pipeline stages #10971 jeremyben
6.0.12
6.0.12 / 2021-10-21
- fix(cursor): remove the logic for emitting close, rely on autoDestroy option for Node 12 support #10906 iovanom
- fix(map): support passing flattenMaps: false to Map toJSON(), make
toJSON()flatten maps by default in TypeScript #10872 - fix: upgrade to mongodb driver 4.1.3 #10911 orgads
- fix(index.d.ts): correct TS function signature for
SchemaType.prototype.set()#10799 - fix(index.d.ts): support implicit $in in FilterQuery #10826
- fix(index.d.ts): More precise type for Schema.clone() #10899 coyotte508
- fix(index.d.ts): add caster property to schema arrays and document arrays #10865
- docs: update
updateMany()anddeleteMany()docs to reflect newmatchedCount,modifiedCount,deletedCountproperties #10908 IslandRhythms - docs: fix broken links to populate virtuals #10870 IslandRhythms
- docs: updated docs to have returnOriginal, removed new and returnDocument #10887 IslandRhythms