Packages

mongoose

9.11.4 · 23 Oct 2026MIT5.8M / weekRepositoryHomepagenpmAtom feed

Upgrading mongoose from 6.7.2 to 6.13.10

46 releases in betweennotes for 18

Other targets from 6.7.2Newest 6.x6.13.12Latest9.11.4
1+
change to make
5
advisories fixed
15+
new
60+
fixes

Counted from 18 of 46 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • deprecated6.8.0

Security

Release by release

  1. 6.13.10no release note

  2. 6.13.9

    4 Feb 20261 new · 1 fix
    • new

      types(aggregate): add $firstN, $lastN, $bottom, $bottomN, $minN and $maxN operators #15303 #15299

    • fixed

      Handle other top-level query operators in sanitizeFilter

  3. 6.13.7 – 6.13.82 releases, nothing new or fixed in the notes

  4. 6.13.6

    13 Jan 20251 fix
    • fixed

      Disallow nested $where in populate match

  5. 6.10.2 – 6.13.527 releases, no release note

  6. 6.10.1

    3 Mar 20233 fixes
    • fixed

      Avoid removing empty query filters in $and and $or #13086 #12898

    • fixed

      schematype: Fixed validation for required UUID field #13018 lpizzinidev

    • fixed

      types: Add missing Paths generic param to Model.populate() #13070

  7. 6.10.0

    22 Feb 20233 new
    • new

      Upgrade to mongodb driver 4.14.0 #13036

    • new

      Added Schema.prototype.omit() function #12939 #12931 lpizzinidev

    • new

      index: Added createInitialConnection option to Mongoose constructor #13021 #12965 lpizzinidev

  8. 6.9.3

    22 Feb 20235 fixes
    • fixed

      connection: Delay calculating autoCreate and autoIndex until after initial connection established #13007 #12940 lpizzinidev

    • fixed

      discriminator: Allows update doc with discriminatorKey #13056 #13055 abarriel

    • fixed

      query: Avoid sending unnecessary empty projection to MongoDB server #13059 #13050

    • fixed

      model: Avoid sending null session option with document operations #13053 #13052 lpizzinidev

    • fixed

      types: Use MergeTypes for type overrides in HydratedDocument #13066 #13040

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