Releases: Automattic/mongoose
Releases · Automattic/mongoose
Release list
8.24.4
9.9.3
9.9.3 / 2026-08-17
- perf(document): cache projection metadata and avoid scanning all projected paths for flat projections #16439 #16407 #16373 yogesh968
- fix(cast): reject arrays when casting to Int32 or Double #16446 rajanpanth
- docs: document new/returnOriginal deprecation from 9.2.0 #16449 #16008 #15972 alimughal95
- docs(schematypes): clarify that array default applies to the level it is declared on #16441 #9232
9.9.2
9.9.2 / 2026-08-10
- fix(query): apply sanitizeFilter on countDocuments and cursor()
- fix(document): support map wildcards in optimistic concurrency paths option #16436 #16383
- fix(model): set document session in bulkSave() so transaction retries restore document state #16438 #16432 yogesh968
- fix(connection): restore delete state across transaction retries #16435 #16433 snowyukitty
- fix(schema): put enum on array elements and support the object enum form in toJSONSchema #16444 #16443 Jaybhade
- perf(document): inline the type checks in $__hasOnlyPrimitiveValues() #14394 yogesh968
- types(document): respect schema toObject and toJSON options #16431 #15594 samuelmbabhazi
- types: import BSON from mongodb instead of bson #16434
#16434 orgads - docs(populate): document that skip needs sort to paginate reliably #16442 #7579
- docs: remove unused jobs.pug #16437 #16430
8.24.3
7.8.12
7.8.12 / 2026-08-10
- fix(query): apply sanitizeFilter in countDocuments and cursor
6.13.11
6.13.11 / 2026-08-10
- fix(query): apply sanitizeFilter in countDocuments and cursor
9.9.1
9.9.0
9.9.0 / 2026-07-30
- perf(document): improve toObject perf with faster string checks and avoiding unnecessary isSelected on paths with no getters #16407 #16373 #16385
- perf(model): improve insertMany() performance and general change tracking performance #16370
- perf(timestamps): avoid adding $setOnInsert for createdAt unless upsert set #16411
- perf: improve toObject() performance #16408 #16405 #16378 #14394 BIGSUS24
- types: add discriminator key to each member of embedded discriminator enum- #16412 #16045
9.8.1
9.8.1 / 2026-07-27
- perf(document): avoid rebuilding modified paths during required path validation #16379 xianjianlf2
- perf(document): avoid clearing the required paths cache on every document instantiation #16404 #16377
- fix(query): reject update modifiers without paths #16387 AbdelrahmanHafez
- perf: cache
toString()results inarray.uniqueto avoid redundant allocations #16390 vivek180905 - types: respect the
_idoption when inferring StandardSchema types #16402 - types(model): keep
Model.schematyped whenTSchemais omitted samuelmbabhazi - docs(guide): clarify
strictQueryhandling of filter paths not in the schema #16397 MuhammadFarhantahir
8.24.2
8.24.2 / 2026-07-27
- fix(subdocument): don't minimize empty document array elements to null #16393 WaleedAshraf
- types: correct Model.validate() return type to Promise #16340
#16340 chatman-media