Releases: Automattic/mongoose
Releases · Automattic/mongoose
8.15.1
8.15.0
8.15.0 / 2025-05-16
- feat: CSFLE support #15390 baileympearson
- feat: add strictFilter option to findOneAndUpdate (#14913) #15402 #14913 muazahmed-dev
- feat(error): set cause to MongoDB error reason on ServerSelection errors #15420 #15416
- fix(model): make bulkSave() rely on document.validateSync() to validate docs and skip bulkWrite casting #15415 #15410
- types: stricter projection typing with 1-level deep nesting #15418 #15327 #13840 pshaddel
- docs: emphasize automatic type inference in TypeScript intro and statics/methods, remove duplicated statics.md #15421
8.14.3
8.14.2
8.14.2 / 2025-05-08
- fix(query): handle casting array filter paths underneath array filter paths with embedded discriminators #15388 #15386
- docs(typescript): correct schema and model generic params in TS virtuals docs #15391
- docs+types(schema): add alternative optimisticConcurrency syntaxes to docs + types #15405 #10591
- chore: add Node 24 to CI matrix #15408 stscoundrel
7.8.7
8.14.1
8.14.1 / 2025-04-29
- fix: correct change tracking with maps of arrays of primitives and maps of maps #15374 #15350
- fix(populate): consistently convert Buffer representation of UUID to hex string to avoid confusing populate assignment #15383 #15382
- docs: add TypeScript Query guide with info on lean() + transform() #15377 #15311
8.14.0
8.14.0 / 2025-04-25
- feat: upgrade MongoDB driver -> 6.16 #15371
- feat: implement Query findById methods #15337 sderrow
- feat(subdocument): support schematype-level minimize option to disable minimizing empty subdocuments #15336 #15313
- feat: add skipOriginalStackTraces option to avoid stack trace performance overhead #15345 #15194
- fix(model): disallow Model.findOneAndUpdate(update) and fix TypeScript types re: findOneAndUpdate #15365 #15363
- types: correctly recurse in InferRawDocType #15357 #14954 JavaScriptBach
- types: include virtuals in toJSON and toObject output if virtuals: true set #15346 #15316
- types: make init hooks types accurately reflect runtime behavior #15331 #15301
8.13.3
8.13.3 / 2025-04-24
- fix: export MongooseBulkSaveIncompleteError #15370 #15369
- fix: clone POJOs and arrays when casting query filter to avoid mutating objects #15367 #15364
- types(connection): add Connection.prototype.bulkWrite() to types #15368 #15359
- docs: add version requirements to v7 migration docs #15361 SethFalco
- docs: update links in deleteOne & deleteMany API def #15360 Elliot67
- docs: adds Model#count to list of fns callback removed from #15349 SethFalco