npm / @nestjs/typeorm
@nestjs/typeorm
What changed in @nestjs/typeorm 11 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
5 breaking1 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@nestjs/typeorm 127 changes
Breaking changes 4
Throws when an EntitySchema has no target or name, making the missing repository token information explicit.
Deep imports into build internals are no longer resolvable; import from the package root instead.
Node.js >=20.19.0 is now required to run the package.
@nestjs/typeorm is published as pure ESM behind an exports map; import from the package root.
Behavior and default changes 1
CommonJS applications still work through Node's require(esm) support; converting an app to ESM is not required.
Fixes and other changes 2
Resolves the named data source on shutdown for async registrations.
Adds a default condition to package exports so CJS can resolve the package.
@nestjs/typeorm 111 changes
Breaking changes 1
The deprecated keepConnectionAlive option was removed.