7.4.3 / 2023-08-11
- fix: avoid applying map property getters when saving #13704 #13657
- fix(query): allow deselecting discriminator key #13722 #13679
- types(models+query): return lean type when passing QueryOptions with lean: true to relevant model functions like find() and findOne() #13721 #13705
- types(schema): correct return type for Schema.prototype.indexes() #13718 #13702
- types: allow accessing options from pre middleware #13708 #13633
- types: add UpdateQueryKnownOnly type for stricter UpdateQuery type checking #13699 #13630
- types(schema): support required: { isRequired: true } syntax in schema definition #13680
- docs(middleware): clarify that doc.deleteOne() doesn't run query middleware currently #13707 #13669