Releases: Automattic/mongoose
Releases · Automattic/mongoose
Release list
9.7.3
9.7.2
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
- 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
7.8.10 / 2026-06-22
9.7.1
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
$infilter 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.txtgeneration #16326 #16327 #16329
9.7.0
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
9.6.3 / 2026-05-27
- fix(clone): isolate cloned arrays from source documents #16281 AbdelrahmanHafez
- fix(update): preserve user-provided
$setOnInsert.createdAtwithoverwriteImmutable: true#16278 #15781 AbdelrahmanHafez - fix(schema): always pass raw string value to error validators, only trim to 30 chars for maxlength validator #16238 #16236 #15550 #15571
- types: add
$percentileto TypeScript aggregation expression types #16290 #16288 - docs: update default pool sizes on createConnection() #16295 torbiak-samdesk
- docs: improve code block copy button behavior and sidebar scrolling #16294 DraXx-Van
- docs: remove broken link to deleted schema example #16297 kaseken
8.24.0
9.6.2
9.6.1
9.6.1 / 2026-04-29
- types(objectid): fix
_idgetter helper on ObjectId #16251 noseworthy