@mikro-orm/core breaking changes
Updated December 4, 2026
On this page
Latest version 7.2.13, released November 27, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 6.6.20 to 7.2.13: 1,016 breaking changes in 35 versions.
- From 6.6.11 to 7.2.13: 1,023 breaking changes in 40 versions.
@mikro-orm/core 7.2.13 breaking changes
- Behavior changed
Find and count calls that pass a non-object having option now throw an error instead of silently accepting it. Pass having as an object. github.com - Signature changed
getWhereCondition
Was function getWhereCondition<T extends object>(meta: EntityMetadata<T>, onConflictFields: (keyof T)[] | Raw | undefined, data: EntityData<T>, where: FilterQuery<T>): {where: FilterQuery<T>; propIndex: number | false;}; now function... npmjs.com
@mikro-orm/core 7.2.12 breaking changes
- Removed
dataloader:DataloaderUtils.getColFilter
DataloaderUtils.getColFilter was removed in @mikro-orm/core 7.2.12 npmjs.com - Removed
Hydrator.isRunning
Hydrator.isRunning was removed in @mikro-orm/core 7.2.12 npmjs.com - Removed
Hydrator.running
Hydrator.running was removed in @mikro-orm/core 7.2.12 npmjs.com - Signature changed
Collection.hydrate
Was hydrate(items: T[], forcePropagate?: boolean, partial?: boolean, readonly?: boolean, count?: boolean): void; now hydrate(items: T[], forcePropagate?: boolean, partial?: boolean, readonly?: boolean, count?: boolean, hydration?... npmjs.com - Signature changed
Collection.propagate
Was protected propagate(item: T, method: 'add' | 'remove' | 'takeSnapshot'): void; now protected propagate(item: T, method: 'add' | 'remove' | 'takeSnapshot', hydration?: boolean): void. npmjs.com - Signature changed
Collection.propagateToOwningSide
Was protected propagateToOwningSide(item: T, method: 'add' | 'remove' | 'takeSnapshot'): void; now protected propagateToOwningSide(item: T, method: 'add' | 'remove' | 'takeSnapshot', hydration?: boolean): void. npmjs.com - Signature changed
EntityHelper.defineReferenceProperty
Was static defineReferenceProperty<T extends object>(meta: EntityMetadata<T>, prop: EntityProperty<T>, ref: T, hydrator: IHydrator): void; now static defineReferenceProperty<T extends object>(meta: EntityMetadata<T>, prop... npmjs.com - Signature changed
WrappedEntity.constructor
Was constructor(entity: Entity, hydrator: IHydrator, pkGetter?: (e: Entity) => Primary<Entity>, pkSerializer?: (e: Entity) => string, pkGetterConverted?: (e: Entity) => Primary<Entity>); now constructor(entity: Entity, pkGetter?: (e... npmjs.com
@mikro-orm/core 7.2.11 breaking changes
- Signature changed
Collection.removeWithoutPropagation
Was removeWithoutPropagation(entity: T): void; now removeWithoutPropagation(entity: T, reindex?: boolean): boolean. npmjs.com
@mikro-orm/core 7.2.10 breaking changes
- Signature changed
Collection.hydrate
Was hydrate(items: T[], forcePropagate?: boolean, partial?: boolean, readonly?: boolean): void; now hydrate(items: T[], forcePropagate?: boolean, partial?: boolean, readonly?: boolean, count?: boolean): void. npmjs.com
@mikro-orm/core 7.2.9 breaking changes
- Behavior changed
assign
Date strings that cannot be parsed are rejected with a ValidationError in assign() instead of being silently accepted. Validate date input before assigning. github.com - Behavior changed
orderBy
Non-string order directions passed to orderBy now throw instead of being accepted. Use string directions such as 'asc' or 'desc'. github.com - Default changed
The default request timeout for the MSSQL driver is now 60s. Code that relies on the previous default timeout should set it explicitly. github.com - Signature changed
EntityManager.find
Was find<Entity extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never, Using extends string = never>(entityName: EntityName<Entity>, where: [Using] extends [never] ?... npmjs.com - Signature changed
EntityManager.findAll
Was findAll<Entity extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never, Using extends string = never>(entityName: EntityName<Entity>, options?... npmjs.com - Signature changed
EntityManager.findAndCount
Was findAndCount<Entity extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never, Using extends string = never>(entityName: EntityName<Entity>, where: [Using] extends [never] ?... npmjs.com - Signature changed
EntityManager.findByCursor
Was findByCursor<Entity extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never, IncludeCount extends boolean = true, Using extends string = never>(entityName: EntityName<Entity>... npmjs.com - Signature changed
EntityManager.findOne
Was findOne<Entity extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never, Using extends string = never>(entityName: EntityName<Entity>, where: [Using] extends [never] ?... npmjs.com - Signature changed
EntityManager.findOneOrFail
Was findOneOrFail<Entity extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never, Using extends string = never>(entityName: EntityName<Entity>, where: [Using] extends [never] ?... npmjs.com - Signature changed
EntityManager.stream
Was stream<Entity extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never, Using extends string = never>(entityName: EntityName<Entity>, options?... npmjs.com
And 1 more in this version. Sign up to see every change
@mikro-orm/core 7.2.7 breaking changes
- Signature changed
ExpandProperty
Was type ExpandProperty<T> = T extends LazyRef.Brand<infer U> ? NonNullable<U> : T extends ReferenceShape<infer U> ? NonNullable<U> : T extends CollectionShape<infer U> ? NonNullable<U> : T extends (infer U)[] ? NonNullable<U>... npmjs.com - Signature changed
FilterObject
Was type FilterObject<T> = {-readonly [K in EntityKey<T>]?: ExpandQuery<ExpandProperty<FilterObjectProp<T, K>>> | ExpandQueryMerged<ExpandProperty<FilterObjectProp<T, K>>> | FilterValue<ExpandProperty<FilterObjectProp<T, K>>> |... npmjs.com - Signature changed
IndexFilterQuery
Was type IndexFilterQuery<T, Using extends string> = [Using] extends [never] ? FilterQuery<T> : (OperatorMap<T> & {-readonly [K in Extract<EntityKey<T>, IndexColumns<T, Using>>]?: ExpandQuery<ExpandProperty<FilterObjectProp<T, K>>> |... npmjs.com
Older versions
35 older versions, each with its first changes. Sign up to see every change
Show 35 older versions
@mikro-orm/core 7.2.6 breaking changes
- Behavior changed
Query comments with forbidden sequences are now refused with an error instead of being accepted. Remove such sequences from comments. github.com - Behavior changed
A commit that PostgreSQL answered with ROLLBACK is now rejected with an error. Code that relied on such a commit completing silently must handle the error. github.com
And 4 more in this version.
@mikro-orm/core 7.2.4 breaking changes
- Signature changed
EntityMetadataWithProperties.concurrencyCheckKeys
Was concurrencyCheckKeys?: Set<AllKeys<TProperties, TBase>>; now concurrencyCheckKeys?: Set<NoInfer<AllKeys<TProperties, TBase>>>. npmjs.com - Signature changed
EntityMetadataWithProperties.indexes
Was indexes?: {properties?: NoInfer<AllKeys<TProperties, TBase>> | NoInfer<AllKeys<TProperties, TBase>>[]; name?: string; type?: string; options?: Dictionary; expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK... npmjs.com
And 4 more in this version.
@mikro-orm/core 7.2.2 breaking changes
- Signature changed
EntityManager.tryCache
Was tryCache<T extends object, R>(entityName: EntityName<T>, config: boolean | number | [string, number] | undefined, key: unknown, refresh?: boolean, merge?: boolean): Promise<{data?: R | null; key: string;} | undefined>; now tryCache<T... npmjs.com - Signature changed
getOnConflictReturningFields
Was function getOnConflictReturningFields<T, P extends string>(meta: EntityMetadata<T> | undefined, data: EntityData<T>, uniqueFields: (keyof T)[] | Raw, options: UpsertOptions<T, P>): (keyof T)[] | '*'; now function... npmjs.com
@mikro-orm/core 7.2.1 breaking changes
- Signature changed
EntityManager.withSessionContext
Was withSessionContext<T>(ctx: Transaction | undefined, cb: (ctx?: Transaction) => Promise<T>): Promise<T>; now withSessionContext<T>(ctx: Transaction | undefined, cb: (ctx?: Transaction) => Promise<T>, connection?: Connection): Promise<T>. npmjs.com
@mikro-orm/core 7.2.0 breaking changes
- Behavior changed
Cursor pagination orders null values the way the database platform does, so result order for nullable sort columns can differ from earlier versions. Check paginated queries that sort by nullable columns. github.com - Signature changed
Connection.begin
Was begin(options?: {isolationLevel?: IsolationLevel | `${IsolationLevel}`; readOnly?: boolean; ctx?: Transaction; eventBroadcaster?: TransactionEventBroadcaster; loggerContext?: LogContext;}): Promise<Transaction>; now begin(options?... npmjs.com
And 23 more in this version.
@mikro-orm/core 7.1.15 breaking changes
- Signature changed
PropertyChain.serializer
Was serializer(serializer: (value: Value, options?: SerializeOptions<any>) => any): PropertyChain<Value, Options>; now serializer(serializer: (value: SerializerValue<Value, Options>, options?: SerializeOptions<any>) => any)... npmjs.com
@mikro-orm/core 7.1.14 breaking changes
- Signature changed
defineEntity
Was function defineEntity<const TName extends string, const TTableName extends string, const TProperties extends Record<string, any>, const TPK extends (keyof TProperties)[] | undefined = undefined, const TBase = never, const TRepository =... npmjs.com - Signature changed
EntityMetadataWithProperties
Was interface EntityMetadataWithProperties<TName extends string, TTableName extends string, TProperties extends Record<string, any>, TPK extends (keyof TProperties)[] | undefined = undefined, TBase = never, TRepository = never... npmjs.com
And 4 more in this version.
@mikro-orm/core 7.1.13 breaking changes
- Behavior changed
em.countBy
em.countBy() now uses the connectionType option when counting, so queries may hit a different connection than before. Check code that relied on the previous connection choice. github.com - Behavior changed
upsert
Upserts no longer overwrite existing rows with onCreate generated values. Code that relied on the old overwrite behavior may see different stored data. github.com
And 1 more in this version.
@mikro-orm/core 7.1.12 breaking changes
- Signature changed
EntityManager.prepareOptions
Was protected prepareOptions(options: (FindOptions<any, any, any, any> | FindOneOptions<any, any, any, any> | CountOptions<any, any> | CountByOptions<any>) & AbortQueryOptions): void; now protected prepareOptions<Options extends... npmjs.com
@mikro-orm/core 7.1.11 breaking changes
- Signature changed
CacheAdapter.get
Was get<T = any>(name: string): T | Promise<T | undefined> | undefined; now get<T = any>(name: string, origin?: string): T | Promise<T | undefined> | undefined. npmjs.com - Signature changed
fs-utils:FileCacheAdapter.get
Was get(name: string): any; now get(name: string, origin?: string): any. npmjs.com
And 3 more in this version.
@mikro-orm/core 7.1.8 breaking changes
- Signature changed
UnitOfWork.tryGetById
Was tryGetById<T extends object>(entityName: EntityName<T>, where: FilterQuery<T>, schema?: string, strict?: boolean): T | null; now tryGetById<T extends object>(entityName: EntityName<T>, where: FilterQuery<T>, schema?: string, strict?... npmjs.com
@mikro-orm/core 7.1.6 breaking changes
- Signature changed
defineEntity.properties
Was var properties: PropertyBuilders; now const propertyBuilders: PropertyBuilders. npmjs.com - Signature changed
EntityManager.findByCursor
Was findByCursor<Entity extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never, IncludeCount extends boolean = true, Using extends string = never>(entityName: EntityName<Entity>... npmjs.com
And 5 more in this version.
@mikro-orm/core 7.1.5 breaking changes
- Signature changed
CreateContextOptions
Was interface CreateContextOptions; now interface CreateContextOptions extends Omit<ForkOptions, 'useContext' | 'disableContextResolution' | 'keepTransactionContext' | 'clear'>. npmjs.com - Signature changed
CreateContextOptions.loggerContext
Was loggerContext?: LoggingOptions; now loggerContext?: Dictionary. npmjs.com
@mikro-orm/core 7.1.4 breaking changes
- Signature changed
PropertyChain.onCreate
Was onCreate(onCreate: (entity: any, em: EntityManager) => Value): PropertyChain<Value, Options & {onCreate: (...args: any[]) => any;}>; now onCreate(onCreate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>)... npmjs.com - Signature changed
PropertyChain.onUpdate
Was onUpdate(onUpdate: (entity: any, em: EntityManager) => Value): PropertyChain<Value, Options>; now onUpdate(onUpdate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): PropertyChain<Value, Options>. npmjs.com
And 2 more in this version.
@mikro-orm/core 7.1.3 breaking changes
- Signature changed
Options.schemaGenerator
Was schemaGenerator: {disableForeignKeys?: boolean; disableForeignKeysForClear?: boolean; createForeignKeyConstraints?: boolean; ignoreSchema?: string[]; skipTables?: (string | RegExp)[]; skipViews?: (string | RegExp)[]; skipColumns?... npmjs.com
@mikro-orm/core 7.1.2 breaking changes
- Signature changed
EntityMetadataWithProperties.indexes
Was indexes?: {properties?: NoInfer<AllKeys<TProperties, TBase>> | NoInfer<AllKeys<TProperties, TBase>>[]; name?: string; type?: string; options?: Dictionary; expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK... npmjs.com - Signature changed
EntityMetadataWithProperties.uniques
Was uniques?: {properties?: NoInfer<AllKeys<TProperties, TBase>> | NoInfer<AllKeys<TProperties, TBase>>[]; name?: string; options?: Dictionary; expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK, TBase>>... npmjs.com
@mikro-orm/core 7.1.0 breaking changes
- Behavior changed
em.remove
On MongoDB, em.remove of an M:N target whose owning side is uninitialized now throws instead of proceeding. Code that removes such entities may need to initialize the owning side first. github.com - Signature changed
BaseEntity.serialize
Was serialize<Entity extends this = this, Naked extends FromEntityType<Entity> = FromEntityType<Entity>, Hint extends string = never, Exclude extends string = never>(options?: SerializeOptions<Naked, Hint, Exclude>): SerializeDTO<Naked... npmjs.com
And 76 more in this version.
@mikro-orm/core 7.0.16 breaking changes
- Behavior changed
beforeUpsert
The beforeUpsert hook is passed the entity instance instead of the previous input, and changes made to it are written to the SQL statement. Review existing beforeUpsert hooks that mutate data. github.com - Signature changed
AutoPath
Was type AutoPath<O, P extends string | boolean, E extends string = never, D extends Prev[number] = 9> = P extends boolean ? P : [D] extends [never] ? never : P extends any ? P extends string ? P extends `${infer A}.${infer B}` ? A extends... npmjs.com
And 59 more in this version.
@mikro-orm/core 7.0.15 breaking changes
- Signature changed
defineEntity
Was function defineEntity<const TName extends string, const TTableName extends string, const TProperties extends Record<string, any>, const TPK extends (keyof TProperties)[] | undefined = undefined, const TBase = never, const TRepository =... npmjs.com - Signature changed
EntityMetadataWithProperties
Was interface EntityMetadataWithProperties<TName extends string, TTableName extends string, TProperties extends Record<string, any>, TPK extends (keyof TProperties)[] | undefined = undefined, TBase = never, TRepository = never... npmjs.com
And 9 more in this version.
@mikro-orm/core 7.0.11 breaking changes
- Signature changed
EntityData
Was type EntityData<T, C extends boolean = false> = {[K in EntityKey<T>]?: EntityDataItem<T[K] & {}, C>;}; now type EntityData<T, C extends boolean = false> = {[K in EntityKey<T>]?: RestoreOptUnknown<T[K]> | EntityDataItem<T[K] & {}, C>;}. npmjs.com - Signature changed
EntityDTOProp
Was type EntityDTOProp<E, T, C extends TypeConfig = never, Flat extends boolean = false> = T extends Scalar ? T : T extends ScalarReference<infer U> ? U : T extends {__serialized?: infer U;} ? IsUnknown<U> extends false ? U : T : T extends... npmjs.com
And 1 more in this version.
@mikro-orm/core 7.0.10 breaking changes
- Signature changed
EntityManager.map
Was map<Entity extends object>(entityName: EntityName<Entity>, result: EntityDictionary<Entity>, options?: {schema?: string;}): Entity; now map<Entity extends object>(entityName: EntityName<Entity>, result: EntityDictionary<Entity>... npmjs.com
@mikro-orm/core 7.0.8 breaking changes
- Signature changed
EntityMetadataWithProperties.primaryKeys
Was primaryKeys?: TPK & InferPrimaryKey<TProperties>[]; now primaryKeys?: TPK & InferPrimaryKeyConstraint<TProperties>[]. npmjs.com
@mikro-orm/core 7.0.7 breaking changes
- Signature changed
EntityMetadataWithProperties
Was interface EntityMetadataWithProperties<TName extends string, TTableName extends string, TProperties extends Record<string, any>, TPK extends (keyof TProperties)[] | undefined = undefined, TBase = never, TRepository = never... npmjs.com - Signature changed
EntityMetadataWithProperties.filters
Was filters: Dictionary<FilterDef>; now filters?: Dictionary<{name: string; cond: | Dictionary | ((args: Dictionary, type: 'read' | 'update' | 'delete', em: any, options?: FindOptions<any, any, any, any> | FindOneOptions<any, any, any... npmjs.com
And 1 more in this version.
@mikro-orm/core 7.0.6 breaking changes
- Behavior changed
Queries that were previously accepted may now be rejected by validation. Check existing query construction code for inputs that no longer pass. github.com - Signature changed
PropertyBuilders
Was type PropertyBuilders = {[K in Exclude<keyof typeof types, PropertyBuildersOverrideKeys>]: () => UniversalPropertyOptionsBuilder<InferPropertyValueType<(typeof types)[K]>, EmptyOptions, IncludeKeysForProperty>;} & {bigint: <Mode... npmjs.com
And 2 more in this version.
@mikro-orm/core 7.0.5 breaking changes
- Signature changed
EntitySchema.REGISTRY
Was static REGISTRY: Map<AnyEntity, EntitySchema>; now readonly static REGISTRY: Map<AnyEntity, EntitySchema>. npmjs.com
@mikro-orm/core 7.0.4 breaking changes
- Signature changed
EnumArrayType.constructor
Was constructor(owner: string, items?: T[] | undefined, hydrate?: (i: string) => T); now constructor(owner: string, items?: readonly T[] | undefined, hydrate?: (i: string) => T). npmjs.com - Signature changed
EnumOptions.items
Was items?: (number | string)[] | (() => Dictionary); now items?: readonly (number | string)[] | (() => Dictionary). npmjs.com
@mikro-orm/core 7.0.3 breaking changes
- Signature changed
BaseEntity.init
Was init<Entity extends this = this, Hint extends string = never, Fields extends string = '*', Excludes extends string = never>(options?: FindOneOptions<Entity, Hint, Fields, Excludes>): Promise<Loaded<Entity, Hint, Fields, Excludes> |... npmjs.com - Signature changed
Cursor
Was class Cursor<Entity extends object, Hint extends string = never, Fields extends string = '*', Excludes extends string = never, IncludeCount extends boolean = true>; now class Cursor<Entity extends object, Hint extends string = never... npmjs.com
And 45 more in this version.
@mikro-orm/core 7.0.2 breaking changes
- Signature changed
AutoPath
Was type AutoPath<O, P extends string | boolean, E extends string = never, D extends Prev[number] = 9> = P extends boolean ? P : [D] extends [never] ? never : P extends any ? P extends string ? P extends `${infer A}.${infer B}` ? A extends... npmjs.com - Signature changed
BaseEntity.assign
Was assign<Entity extends this, Naked extends FromEntityType<Entity> = FromEntityType<Entity>, Convert extends boolean = false, Data extends EntityData<Naked, Convert> | Partial<EntityDTO<Naked>> = EntityData<Naked, Convert> |... npmjs.com
And 54 more in this version.
@mikro-orm/core 7.0.0 breaking changes
- Removed
Node.js 22.17 or later is now required. Upgrade Node.js before moving to v7. mikro-orm.io - Removed
TypeScript 5.8 or later is now required, unless the project is ESM. mikro-orm.io
And 647 more in this version.
@mikro-orm/core 6.6.20 breaking changes
- Behavior changed
Find and count calls now throw when the having option is not an object. Pass an object for having. github.com - Signature changed
getWhereCondition
Was function getWhereCondition<T extends object>(meta: EntityMetadata<T>, onConflictFields: (keyof T)[] | RawQueryFragment | undefined, data: EntityData<T>, where: FilterQuery<T>): {where: FilterQuery<T>; propIndex: number | false;}; now... npmjs.com
@mikro-orm/core 6.6.19 breaking changes
- Behavior changed
Queries that contain more placeholders than supplied parameters are now rejected instead of running. Check queries that pass extra parameters. github.com
@mikro-orm/core 6.6.18 breaking changes
- Behavior changed
orderBy
The query builder's orderBy now throws when an array is passed as the order direction. Pass a single direction value such as 'asc' or 'desc' instead. github.com
@mikro-orm/core 6.6.16 breaking changes
- Behavior changed
Order by directions are now checked against known values, so code passing other direction values may now fail where it previously ran. Use only the supported direction values. github.com
@mikro-orm/core 6.6.12 breaking changes
- Behavior changed
Nested inline embeddable columns are now set to null recursively when the parent embeddable is null, which changes stored values for such entities. github.com - Behavior changed
Orphan removal no longer nullifies a foreign key that is part of the primary key, changing how such rows are handled on removal. github.com
@mikro-orm/core 6.6.11 breaking changes
- Signature changed
raw
Was function raw<T extends object = any, R = any>(sql: EntityKey<T> | EntityKey<T>[] | AnyString | ((alias: string) => string) | RawQueryFragment, params?: readonly unknown[] | Dictionary<unknown>): NoInfer<R>; now function raw<T extends... npmjs.com - Signature changed
sql.ref
Was var ref: <T extends object>(...keys: string[]) => NoInfer<RawQueryFragment>; now var ref: <T extends object>(...keys: string[]) => RawQueryFragment. npmjs.com
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.