@mikro-orm/core
7.2.11 · 20 Nov 2026MIT1.6M / weekRepositoryHomepagenpmAtom feed
4.5.10 is the newest release of 4.x.
In short
9 new21 fixed2 internal
Security
2 advisories affect 4.3.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
cli: add missing peer dependencies
core: always check remove stack when cascade persisting (a9a1bee), closes #1003
core: do not override child class properties
core: ensure correct grouping and commit order for STI (8b77525), closes #845
core: ensure correct handling of empty arrays
core: ensure correct handling of empty arrays
core: ensure we store the right value for bigint PKs (7d7a1c9), closes #1038
core: fix cascading when assigning collections (d40fcfa), closes #1048
discovery: allow using absolute paths in
entities(584854c), closes #1073mongo: do not create collections for embeddables (a0cc877), closes #1040
schema: do not add unique constraint to PKs (a7da03d), closes #1064
schema: ensure we do not ignore some columns (5d7dfc1), closes #1009
schema: fix diffing FKs in MySQL 8
schema: pass entity name to
joinKeyColumnName()(fe4b7bd), closes #1026sql: allow using dot inside custom order by expression (11e8c56), closes #1067
sql: convert custom types at query builder level
sql: do not batch update unique properties (87b722a), closes #1025
sql: fix populating M:N via joined strategy with conditions (7113827), closes #1043
sql: implement diffing of simple scalar indexes (dc81ef0), closes #957
sql: inline array parameters when formatting queries (a21735f), closes #1021
sql: take snapshots of collections populated via joined strategy (5f3288a), closes #1041
validation: don't validate inherited STI props (#998) (63d1f57), closes #997
Features
core: allow calling
Collection.set()on not initialized collections (1d0bb85), closes #1048core: allow extending embeddables (#1051) (89d3250), closes #1049
core: allow mapping
nulltoundefinedoptionally (55de84e), closes #1019core: allow using multiple ORM instances with RequestContext (e11040d), closes #872
core: maintain transaction context automatically
count: initial implementation of loadCount (#955) (3371415), closes #949
query-builder: allow mapping of complex joined results (#988) (60dd2d8), closes #932
release: add automatic nightly releases (7f8a10c), closes #339
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.