Skip to content

Releases: Automattic/mongoose

8.15.1

26 May 18:52
Compare
Choose a tag to compare

8.15.1 / 2025-05-26

8.15.0

16 May 16:58
Compare
Choose a tag to compare

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

13 May 15:21
Compare
Choose a tag to compare

8.14.3 / 2025-05-13

8.14.2

08 May 19:14
Compare
Choose a tag to compare

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

30 Apr 15:33
Compare
Choose a tag to compare

7.8.7 / 2025-04-30

8.14.1

29 Apr 21:39
Compare
Choose a tag to compare

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

25 Apr 17:40
Compare
Choose a tag to compare

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

24 Apr 20:36
Compare
Choose a tag to compare

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

8.13.2

03 Apr 23:42
Compare
Choose a tag to compare

8.13.2 / 2025-04-03

  • fix: avoid double calling validators on paths in document arrays underneath subdocuments #15338 #15335

8.13.1

28 Mar 19:35
Compare
Choose a tag to compare

8.13.1 / 2025-03-28

  • fix(populate): handle virtual populate on array of UUIDs #15329 #15315
  • types: allow default function returning undefined with DocType override #15328