@mikro-orm/core
7.2.11 · 20 Nov 2026MIT1.6M / weekRepositoryHomepagenpmAtom feed
5.9.8 is the newest release of 5.x.
In short
2 new16 fixed
Security
2 advisories affect 5.1.2; 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: allow converting custom types via
em.nativeInsert()core: do not clean up UoW before each "flush step" (3ae732d), closes #2934
core: do not quote knex.raw() instances returned from custom types (8a4c836), closes #1841
core: fix eager loading of nested embeddable m:1 properties (4867db9), closes #2975
core: fix eager loading when multiple relations target same entity (21922ce), closes #2990
core: fix mapping of inserted PKs with custom field names from batch insert (080d8e0), closes #2977
core: never reassign the same entity via
em.assign()(cdfbabd), closes #2974core: propagate entity removal in
em.transactional()to upper context (6e5166b), closes #2973core: respect
connectionTypein populate queries (fe40a9f), closes #2994core: support
PopulateHint.INFERwith pagination and joined strategy (56f8737), closes #2985core: use correct path for relations inside embeddables with populate: true (4735dba), closes #2948
postgres: do not ignore custom PK constraint names
postgres: drop enum constraints only when the column was an enum
postgres: ensure correct column order in compound index/uniques (321be79), closes #2932
postgres: fix pagination with order by bool column (d5476cd), closes #2910
postgres: fix schema diffing on enums with case-sensitive names (050875b), closes #2938 #2932
schema: do not create FK index for 1:1 properties (they are unique already) (473795c), closes #2942
Features
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.