# What changed in @nestjs/mongoose

> 3 changes in @nestjs/mongoose 12 from its official release notes, upgrade guides and advisories: 3 breaking. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/@nestjs/mongoose/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @nestjs/mongoose 12

### Breaking changes

- The package is published as pure ESM; import its APIs from the package root. (12.0.0) — [release notes](https://github.com/nestjs/mongoose/releases/tag/12.0.0)
- Deep imports into build internals are no longer resolvable; import from the package root instead. (12.0.0) — [release notes](https://github.com/nestjs/mongoose/releases/tag/12.0.0)
- CommonJS loading through require(esm) requires Node.js 20.19+ or 22.12+; on older versions, load the package with dynamic import(). (12.0.0) — [release notes](https://github.com/nestjs/mongoose/releases/tag/12.0.0)
