9.11.1
Fixed 10
- Call recursive toObject() when setting a path to a nested object
- Keep casting array filters after a path not in the schema
- Apply flattenDecimals when toObject() takes the shallow fast path
- Cast operators under $not inside $elemMatch on primitive arrays
- Use embedded discriminator schema when filter selects the key with $eq or $in
- Don't pass arrayPathIndex to subdocuments when initializing nested document arrays
- Await driver cleanup when destroying query cursors
- Reject getDriverCursor after initialization errors
- Treat Int32 paths as number in schema types
- Align UpdateOneModel and UpdateManyModel update typing with UpdateQuery
From Mongoose
9.11.1 / 2026-10-07
- fix(document): call recursive toObject() when setting a path to a nested object #16571
- fix(update): keep casting array filters after a path not in the schema #16558 giaBaoJS
- fix(document): apply flattenDecimals when toObject() takes the shallow fast path #16569 #16568 jeremyml
- fix(query): cast operators under $not inside $elemMatch on primitive arrays #16542 #13880 breken-ai
- fix(query): use embedded discriminator schema when filter selects the key with $eq or $in #16543 breken-ai
- fix(documentarray): don't pass arrayPathIndex to subdocuments when initializing nested document arrays #16546 Mohamed-Elshesheny
- fix(cursor): await driver cleanup when destroying query cursors #16562 #16560 IbrahimHafez1
- fix(cursor): reject getDriverCursor after initialization errors #16563 #16561 IbrahimHafez1
- types(schema): treat Int32 paths as number #16565 #16564 lazerg
- types(models): align UpdateOneModel and UpdateManyModel update typing with UpdateQuery #16559 #16545 aipd506