Skip to content

Releases: Automattic/mongoose

9.7.3

Choose a tag to compare

@mongoose-pro-bot mongoose-pro-bot released this 26 Jun 20:07

9.7.3 / 2026-06-26

  • types(model): correct Model.validate() return type to Promise #16340 #16338
  • types: use @standard-schema/spec for StandardSchema types rather than inlining #16341 #16339

9.7.2

Choose a tag to compare

@vkarpov15 vkarpov15 released this 22 Jun 18:53

9.7.2 / 2026-06-22

  • fix(documentarray): reindex subdocs after array reordering and removal so subsequent nested changes save using the correct path #16282 AbdelrahmanHafez
  • fix(document): avoid accessing special properties in Document.prototype.get()
  • fix(schema): only return own properties in schematype lookups and disallow setting schema paths under special properties
  • docs: update homepage sponsor layout

8.24.1

Choose a tag to compare

@vkarpov15 vkarpov15 released this 22 Jun 19:49
  • fix(documentarray): reindex subdocs after array reordering and removal so subsequent nested changes save using the correct path #16282 AbdelrahmanHafez
  • fix(document): avoid accessing special properties in Document.prototype.get()
  • fix(schema): avoid returning inherited properties from schema path lookups, including paths underneath maps of subdocuments
  • fix(clone): isolate cloned arrays from source documents #16281 AbdelrahmanHafez
  • types: enable exactOptionalPropertyTypes in TypeScript tests #16287

7.8.10

Choose a tag to compare

@vkarpov15 vkarpov15 released this 22 Jun 20:13

7.8.10 / 2026-06-22

  • fix(document): add additional defensive checks for special properties in Document.prototype.get()
  • fix(schema): avoid returning inherited properties from schema path lookups
  • docs(schema): add instanceof/typeof checks to default getter examples for populated docs and nullish values #16272 #16250

9.7.1

Choose a tag to compare

@vkarpov15 vkarpov15 released this 17 Jun 19:56

9.7.1 / 2026-06-17

  • perf(document+model): improve save performance by avoiding unnecessary promise allocations and reducing path/default/dirty-state overhead #16331
  • fix(schema): include ObjectId regex pattern in toJSONSchema() output #16335 #16334 AbdelrahmanHafez
  • fix(populate): split populate into separate queries per document if the resulting $in filter has more than 50k elements to reduce risk of BSON size errors #16333 #5890
  • docs: add assistant sidebar with MongoDB Knowledge integration #16311 #16283
  • docs: update docs copy buttons, edit links, homepage alignment, and llms.txt generation #16326 #16327 #16329

9.7.0

Choose a tag to compare

@vkarpov15 vkarpov15 released this 09 Jun 19:34

9.7.0 / 2026-06-09

  • feat: add Node.js TracingChannel support for APM instrumentation #16275 #16105 logaretm
  • feat(model): add standard schema adapter for models #16308 #16280
  • fix(cursor): avoid waiting on buffering to run aggregation middleware #16289 #16284
  • fix(document): throw error if overwriting array selected with $slice #16313 #2432
  • fix(schema): remove validateSync() union fallback #16310 #16291 AbdelrahmanHafez
  • types: cast primitive types within unions when applying create casting #16320 #16316
  • docs: add llms.txt #16312 #15687
  • docs: rewrite documents docs #16298
  • docs(model): clarify some details on model.validate() casting #16308 #16280
  • docs(findOneAndUpdate): clarify update handling of undefined #16299
  • docs(model): fix link to be absolute #16321 hasezoey

9.6.3

Choose a tag to compare

@mongoose-pro-bot mongoose-pro-bot released this 27 May 16:54

9.6.3 / 2026-05-27

8.24.0

Choose a tag to compare

@vkarpov15 vkarpov15 released this 14 May 16:13

8.24.0 / 2026-05-14

  • feat(aggregate): add pipelineForUnionWith() helper to allow reusing pipelines with $unionWith in TypeScript #16247 #16041 #16033
  • fix(connection): handle calling watch() on disconnected connection #16246 #16034
  • types: handle compiling with exactOptionalPropertyTypes #16286 #16273

9.6.2

Choose a tag to compare

@mongoose-pro-bot mongoose-pro-bot released this 08 May 17:22

9.6.2 / 2026-05-08

  • fix(document): correctly handle modified subpaths when parent path is unset after modifying #16271 #16252
  • types: handle compiling with exactOptionalPropertyTypes #16277 #16273
  • chore: align Node version docs and types #16270 AbdelrahmanHafez

9.6.1

Choose a tag to compare

@mongoose-pro-bot mongoose-pro-bot released this 29 Apr 19:19

9.6.1 / 2026-04-29