@mikro-orm/core
7.2.11 · 20 Nov 2026MIT1.6M / weekRepositoryHomepagenpmAtom feed
4.5.10 is the newest release of 4.x.
In short
8 new1 faster19 fixed1 internal
Security
2 advisories affect 4.4.0; 6.6.10 fixes them
- CriticalMikroORM is vulnerable to SQL Injection via specially crafted objectGHSA-gwhv-j974-6fxm · 29 Mar 2026Fixed in 6.6.10
- HighMikroORM has Prototype Pollution in Utils.mergeGHSA-qpfv-44f3-qqx6 · 29 Mar 2026Fixed in 6.6.10
Release note
Bug Fixes
core:
em.create()should not mutate the input object (b83b211), closes #1294core: allow using
lazyflag with formulas (4b2b5ce), closes #1229core: always make new entity snapshot (1dacf1e), closes #1334
core: apply discriminator condition when loading STI entities (9c62370), closes #1252
core: clear inverse references to removed entities (3a1d927), closes #1278
core: fix creating entity graph from deeply nested structures (833d246), closes #1326
core: fix custom types with joined loading strategy (f64e657), closes #1237
core: fix nullable embeddables in object mode (bb8dbce), closes #1296
core: fix pessimistic locking via
em.findOne()(a0419a4), closes #1291core: improve custom sql expression detection (cf8c5cd), closes #1261
core: make PK property of
Referencerequiredcore: respect context when working with filter params (97ed314), closes #1312
core: support FK as PK in
Collection.getIdentifiers()(#1225) (f8024c9), closes #1224entity-generator: emit collection name in decorator (#1338) (33574e8), closes #1328
mongo: fix using custom field name on relations (44becca), closes #1279
mysql: enforce 64 character limit for identifier names in SQL (#1297) (9c83b6d), closes #1271
schema: fix index name with explicit schema (b62d9ec), closes #1215
schema: fix renaming of multiple columns at the same time (677a2b7), closes #1262
sql: sort fetch-joined properties on their orderBy (#1336) (f18cd88), closes #1331
Features
core: add support for nested embedddables (#1311) (aee2abd), closes #1017
core: add support for nested partial loading (#1306) (3878e6b), closes #221
core: allow disabling identity map and change set tracking (#1307) (03da184), closes #1267
core: allow using native private properties (fc35c22), closes #1226
core: implement transaction lifecycle hooks (#1213) (0f81ff1), closes #1175
core: support handling
Setas array-like inputmysql: allow specifying collation globally (cd95572), closes #1012
query-builder: add support for
onConflict()(b97ecb5), closes #1240
Performance Improvements
core: make
IdentityMapiterable
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.