Packages

@mikro-orm/core

7.2.11 · 20 Nov 2026MIT1.6M / weekRepositoryHomepagenpmAtom feed

Your version

5.1.2

10 Apr 2022Where it was published

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

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 #2974

  • core: propagate entity removal in em.transactional() to upper context (6e5166b), closes #2973

  • core: respect connectionType in populate queries (fe40a9f), closes #2994

  • core: support PopulateHint.INFER with pagination and joined strategy (56f8737), closes #2985

  • core: 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

  • mariadb: implement check constraint support + fix json column diffing (b513b16), closes #2151

  • schema: support mysql 8

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.