Packages

mongoose

9.12.0 · 4 Nov 2026MIT8.8M / weekRepositoryHomepagenpmAtom feed

Your version

Where each line stands

Plan an upgrade
  • 9.x9.12.0Safe from 9.7.2Latest line
  • 8.x8.24.8Safe from 8.24.1To 9.12.0
  • 7.x7.8.13Safe from 7.8.10To 9.12.0
  • 6.x6.13.12Safe from 6.13.10To 9.12.0
  • 5.x and older5.13.2339 open advisories, worst critical · last release Dec 2024, no longer updatedTo 9.12.0

Latest releases

All 1018 releases
  1. 9.x · latest line
  2. 9.12.0

    4 Nov 2026
    • Upgrade to mongodb driver 7.8 #16772 #16667

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

    • Make recompileSchema recompute derived caches and delay _preCompile() until an actual model is compiled (not subdocs or doc arrays) #16595

  3. 9.11.4

    23 Oct 2026
    • Avoid walking into inherited properties like toString when hydrating documents, setting dotted paths, and merging updates

    • Only use own properties when looking up discriminators by key

    • schema: Disallow setting special properties via virtual()

  4. 9.11.3

    21 Oct 2026

Dependency tracking · free for 3 projects

Know when your own dependencies move

mongoose had 2 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

  • Advisories reach you

    An email when a critical or high advisory affects a project, before the next install.

  • Upgrades checked first

    Peer ranges, Node, ESM-only and types changes read before you bump.

  • Only what matters

    Majors and breaking notes stay; patches and sibling bumps fold into one line.

How dependency tracking works

Registry facts last checked 6 Nov 2026. Releases and advisories last read 6 Nov 2026.