Packages

mongoose

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

Upgrading mongoose From 9.11.4 to 9.12.2

3 releases in betweenevery note read

Other targets from 9.11.4Newest 9.x9.13.0
0
changes to make
0
advisories fixed
5
new
15
fixes

Release by release

  1. 9.12.2

    16 Nov 20268 fixes
    • Fixed

      query: Make sanitizeFilter catch any fields that start with $ in top-level filter to avoid bypass using $_internalSchemaXor and other MongoDB internal expressions

    • Fixed

      query: Hardening for sanitizeProjection

    • Fixed

      array: Avoid converting BigInts to numbers in addToSet() #16693 luantaraschi

    • Fixed

      cursor: Propagate error passed to destroy() without re-emitting if error already emitted #16686 #16610 #16609 IbrahimHafez1

  2. 9.12.1

    9 Nov 20263 new · 6 fixes
    • New

      update: Avoid quadratic ancestor lookup in update validators and validate nested array subdocs once #16586 github.com/Re-cool

    • New

      Keep lib/ source within Latin-1 #16681 orgads

    • New

      map: Avoid quadratic concat() when creating a MongooseMap from an object #16677 ptweezy

    • Fixed

      array: Keep earlier pushed values when push() is called again with $each #16619 #16618 maxymlyskov

  3. 9.12.0

    4 Nov 20262 new · 1 fix
    • New

      Upgrade to mongodb driver 7.8 #16772 #16667

    • New

      Improve for document arrays: cache paths with defaults and schemas with select paths; avoid unnecessary $isModified() lookup #16595

    • Fixed

      array: Compare UUIDs by value in indexOf() so pull() and addToSet() work #16606 luantaraschi

3 internal lines (docs, tests, tooling) left out.

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.