@nestjs/typeorm breaking changes
@nestjs/typeorm 12.0.3 (November 6, 2026) is its newest release with breaking changes, 10 of them. The first: Signature changed getDataSourceName. Every breaking API change we have recorded in @nestjs/typeorm on npm: 21 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 12.0.3, released November 6, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 11.0.2 to 12.0.3: 15 breaking changes in 3 versions.
- From 10.0.1 to 12.0.3: 20 breaking changes in 6 versions.
@nestjs/typeorm 12.0.3 breaking changes
- Signature changed
getDataSourceName
Was function getDataSourceName(options: {name?: string;}): string; now function getDataSourceName(dataSource?: DataSourceRef | {name?: string;}): string. npmjs.com - Signature changed
getDataSourcePrefix
Was function getDataSourcePrefix(dataSource?: DataSource | DataSourceOptions | string): string; now function getDataSourcePrefix(dataSource?: DataSourceRef): string. npmjs.com - Signature changed
getDataSourceToken
Was function getDataSourceToken(dataSource?: DataSource | DataSourceOptions | string): string | Function | Type<DataSource>; now function getDataSourceToken(dataSource?: DataSourceRef): string | Function | Type<DataSource>. npmjs.com - Signature changed
getEntityManagerToken
Was function getEntityManagerToken(dataSource?: DataSource | DataSourceOptions | string): string | Function; now function getEntityManagerToken(dataSource?: DataSourceRef): string | Function. npmjs.com - Signature changed
getRepositoryToken
Was function getRepositoryToken(entity: EntityClassOrSchema, dataSource?: DataSource | DataSourceOptions | string): Function | string; now function getRepositoryToken(entity: EntityClassOrSchema, dataSource?: DataSourceRef): Function |... npmjs.com - Signature changed
InjectConnection
Was const InjectConnection: (dataSource?: DataSource | DataSourceOptions | string) => ReturnType<typeof Inject>; now const InjectConnection: (dataSource?: DataSourceRef) => ReturnType<typeof Inject>. npmjs.com - Signature changed
InjectDataSource
Was const InjectDataSource: (dataSource?: DataSource | DataSourceOptions | string) => ReturnType<typeof Inject>; now const InjectDataSource: (dataSource?: DataSourceRef) => ReturnType<typeof Inject>. npmjs.com - Signature changed
InjectEntityManager
Was const InjectEntityManager: (dataSource?: DataSource | DataSourceOptions | string) => ReturnType<typeof Inject>; now const InjectEntityManager: (dataSource?: DataSourceRef) => ReturnType<typeof Inject>. npmjs.com - Signature changed
InjectRepository
Was const InjectRepository: (entity: EntityClassOrSchema, dataSource?: string) => ReturnType<typeof Inject>; now const InjectRepository: (entity: EntityClassOrSchema, dataSource?: DataSourceRef) => ReturnType<typeof Inject>. npmjs.com - Signature changed
TypeOrmModule.forFeature
Was static forFeature(entities?: EntityClassOrSchema[], dataSource?: DataSource | DataSourceOptions | string): DynamicModule; now static forFeature(entities?: EntityClassOrSchema[], dataSource?: DataSourceRef): DynamicModule. npmjs.com
@nestjs/typeorm 12.0.2 breaking changes
- Behavior changed
getRepositoryToken
getRepositoryToken now throws for an EntitySchema that lacks both a target and a name. Code that relied on such schemas being accepted must provide a target or name. github.com
@nestjs/typeorm 12.0.0 breaking changes
- Removed
Imports that reach into the package's build internals will fail. Import everything from the package root. github.com - Removed
The root index.js and index.d.ts shim files no longer exist. Code that loads those files directly must import from the package root instead. github.com - Behavior changed
The package is published as a native ES module with an exports map. Code that relies on the CommonJS build may need to switch to ESM imports or use require(esm) on a supported Node.js version. github.com - Behavior changed
The package now requires Node.js 20.19.0 or later. Users on older Node.js versions must upgrade before installing this release. github.com
@nestjs/typeorm 11.0.2 breaking changes
- Signature changed
TypeOrmModule.forRoot
Was static forRoot(options?: TypeOrmModuleOptions): DynamicModule; now static forRoot(options?: TypeOrmModuleOptions, name?: string): DynamicModule. npmjs.com
@nestjs/typeorm 11.0.1 breaking changes
- Signature changed
getDataSourceName
Was function getDataSourceName(options: DataSourceOptions): string; now function getDataSourceName(options: {name?: string;}): string. npmjs.com - Signature changed
TypeOrmModuleOptions
Was type TypeOrmModuleOptions = {retryAttempts?: number; retryDelay?: number; toRetry?: (err: any) => boolean; autoLoadEntities?: boolean; verboseRetryLog?: boolean; manualInitialization?: boolean;} & Partial<DataSourceOptions>; now type... npmjs.com
@nestjs/typeorm 11.0.0 breaking changes
- Removed
keepConnectionAlive
The deprecated keepConnectionAlive option was removed in this release. Code that passes it should stop doing so. github.com - Signature changed
TypeOrmModuleOptions
Was type TypeOrmModuleOptions = {retryAttempts?: number; retryDelay?: number; toRetry?: (err: any) => boolean; autoLoadEntities?: boolean; keepConnectionAlive?: boolean; verboseRetryLog?: boolean; manualInitialization?: boolean;} &... npmjs.com
Older versions
1 older version.
Show 1 older version
@nestjs/typeorm 10.0.1 breaking changes
- Signature changed
TypeOrmModuleOptions
Was type TypeOrmModuleOptions = {retryAttempts?: number; retryDelay?: number; toRetry?: (err: any) => boolean; autoLoadEntities?: boolean; keepConnectionAlive?: boolean; verboseRetryLog?: boolean;} & Partial<DataSourceOptions>; now type... npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.