Mongoose 8.24.6

8.24.6
Fixed 5
  • Array indexOf() now compares dates by value so pull() removes them correctly
  • Cloning preserves circular arrays when using a seen map
  • Casting arrays to Int32 or Double is now rejected behavior changed · inferred, marked in the notes below
  • Query no longer has a path collision when excluding a subdocument with a select: false child
  • Casting a nested $ comparison now passes the schema through

1 change to check, marked in the notes below

From Mongoose

8.24.6 / 2026-10-20

  • fix(array): compare dates by value in indexOf() so pull() removes them #16590 #16535 mrityunjay-pandey
  • fix: preserve circular arrays when cloning with a seen map #16598 #16514 mrityunjay-pandey
  • fix(cast): reject arrays when casting to Int32 or Double #16597 #16446 mrityunjay-pandey behavior changed · inferred
  • fix(query): avoid path collision when excluding subdocument with select: false child #16604 #16409 #12798 mrityunjay-pandey
  • fix(query): pass schema through when casting a nested \ comparison #16605 #16496 mrityunjay-pandey
View original

Upgraded? How did it go?

Discussion