Packages

mongoose

9.12.2 · 16 Nov 2026MIT9.4M / weekRepositoryHomepagenpmAtom feed

Your version

9.13.0

23 Nov 2026Where it was published

In short

2 new2 faster2 fixed1 internal

Release note

9.13.0 / 2026-11-23

  • Upgrade MongoDB driver to 7.9 #16724 oscarmaia

  • schema+model+query: Add defaultSort option to schemas, applies default sort to all queries unless sort explicitly specified #16676 #16577

  • documentArray: Avoid O(n*m) id() lookup when setting a documentarray to a plain array #16683 #16673

  • subdocument: Check isNew before isDirectModified() in markModified() #16743 g4lb

  • Make ducktyping more rigorous about inherited vs own properties, fix a few cases where user-specified $__ and $__isNested caused confusing errors #16723

  • types: Handle nested projections in typescript #16678

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.