# What changed in @nestjs/typeorm

> 8 changes in @nestjs/typeorm 11 to 12 from its official release notes, upgrade guides and advisories: 5 breaking. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/@nestjs/typeorm/

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

## @nestjs/typeorm 12

### Breaking changes

- Throws when an EntitySchema has no target or name, making the missing repository token information explicit. (12.0.2) — [release notes](https://github.com/nestjs/typeorm/releases/tag/12.0.2)
- Deep imports into build internals are no longer resolvable; import from the package root instead. (12.0.0) — [release notes](https://github.com/nestjs/typeorm/releases/tag/12.0.0)
- Node.js >=20.19.0 is now required to run the package. (12.0.0) — [release notes](https://github.com/nestjs/typeorm/releases/tag/12.0.0)
- @nestjs/typeorm is published as pure ESM behind an exports map; import from the package root. (12.0.0) — [release notes](https://github.com/nestjs/typeorm/releases/tag/12.0.0)

### Behavior and default changes

- CommonJS applications still work through Node's require(esm) support; converting an app to ESM is not required. (12.0.0) — [release notes](https://github.com/nestjs/typeorm/releases/tag/12.0.0)

### Fixes and other changes

- Resolves the named data source on shutdown for async registrations. (12.0.2) — [release notes](https://github.com/nestjs/typeorm/releases/tag/12.0.2)
- Adds a default condition to package exports so CJS can resolve the package. (12.0.1) — [release notes](https://github.com/nestjs/typeorm/releases/tag/12.0.1)

## @nestjs/typeorm 11

### Breaking changes

- The deprecated keepConnectionAlive option was removed. (11.0.0) — [release notes](https://github.com/nestjs/typeorm/releases/tag/11.0.0)
