Skip to content

Releases: mikro-orm/mikro-orm

v6.6.2

07 Dec 22:11

Choose a tag to compare

6.6.2 (2025-12-07)

Bug Fixes

  • core: deprecate some EM and MikroORM methods (551b1df)
  • core: fix joining embedded entity with virtual property (2a76b1d), closes #7023
  • core: handle BigInt in Date hydration (#7003) (236b429), closes #7002

Features

  • core: use upsert when adding items to not initialized M:N collections (#7019) (268f378), closes #6625

Performance Improvements

  • core: store subscribers in Set to deduplicate them by identity (#7010) (a41c498), closes #7009

v6.6.1

25 Nov 08:39

Choose a tag to compare

6.6.1 (2025-11-25)

Bug Fixes

  • core: try to infer property types regardless of inferDefaultValues option (98eef5e)
  • mongo: fix processing of nested lazy scalar properties (94927c6), closes #6994
  • mongo: respect property fieldName on index creation (#6979) (44998c0), closes #6978
  • mysql: ensure raw values are rehydrated after flush (9a86383), closes #6968
  • query-builder: do not require transaction when for LockMode.NONE (6c2a4b6), closes #6969

Performance Improvements

  • core: simplify processing of scalars that use simple ORM provided type classes (15d7e74)

v6.6.0

11 Nov 16:37

Choose a tag to compare

6.6.0 (2025-11-11)

Bug Fixes

  • core: do not ignore updating the whole inlined embedded property to null (d0913f1), closes #6966
  • core: ensure base properties in STI entities won't be ignored when overridden in one child (b31ffec), closes #6957
  • core: ensure original entity data are in correct shape after merging (7a30cca), closes #6951
  • core: rehydrate nullable to-one properties that were discarded via filters with select-in strategy (3d58538), closes #6460
  • core: support falsy values in scalar references (#6942) (a02c2a8)
  • core: support type detection on classes with dots in their names like Temporal.Instant (8cca4a8), closes #6953
  • postgres: allow executing schema queries via knex in migrations (5196f24), closes #6949
  • reflection: support string literal properties (#6960) (148ac75)

Features

  • core: allow control over relation filters in entity definition (#6959) (28a7e44), closes #6457
  • core: allow defining filters on nullable relations as strict (#6952) (1dae6cf), closes #6784 #6943 #6784
  • core: allow disabling filters on relations (7798e57), closes #6457
  • core: support private properties with get/set accessors (#6967) (659ca93), closes #6932
  • entity-generator: allow generating enums as type or JS dictionary (#6956) (ccf24df), closes #6457
  • entity-generator: support generating defineEntity() definitions (#6954) (d523f13)
  • entity-generator: support native postgres enums (#6958) (746e4bf)
  • knex: reexport raw helper that supports QueryBuilder and Knex.QueryBuilder (#6955) (897cc7f), closes #6751 #6782
  • postgres: skip left joined relations from pessimistic locks automatically (ffb71a1), closes #6412

v6.5.9

23 Oct 07:02

Choose a tag to compare

6.5.9 (2025-10-23)

Bug Fixes

  • core: add some missing options to defineEntity relation builders (#6922) (3bedcca)
  • core: ensure correct state of custom typed data after merging to existing results (5907da0), closes #6926
  • core: fix extra updates caused by em.refresh (3d12a8b), closes #6940
  • core: support auto-discovery of relation targets with defineEntity (a93f2e0)
  • core: support custom classes in defineEntity relation property builders (8a03eca)
  • core: update extends type in defineEntity and EntitySchema (#6936) (589d0f3)
  • postgres: do not create non-autoincrement simple PKs twice (89e139e)

Performance Improvements

  • core: improve performance of defineEntity (#6922) (db6b10a)

v6.5.8

13 Oct 08:38

Choose a tag to compare

6.5.8 (2025-10-13)

Bug Fixes

  • core: don't skip diffing of non-hydrated properties (4a46bd8), closes #6918
  • core: enhance mapToPk() and remove default ref: true in defineEntity helper (#6919) (f0d4e8e)
  • core: improve auto flush detection for STI base classes (da5e993)
  • core: rework support for partial loading of embedded properties (29091aa), closes #6907
  • core: support class-based entity definitions with defineEntity (#6920) (aa7295e), closes 6865
  • mongo: support indexes on JSON properties (a9edc05), closes #6899
  • mongo: support upsert with nested onConflictFields on JSON properties (4eab82e), closes #6900
  • query-builder: do not ignore nested joins inside nested joins (a37d6fa)
  • schema: fix down migrations with createForeignKeyConstraint property option (23e898b), closes #6903
  • schema: support raw fragments in check constraint expressions (ff360b0), closes #6914

Features

  • core: improve type-level support for composite keys with defineEntity helper (#6912) (2d39dd0)

v6.5.7

06 Oct 19:05

Choose a tag to compare

6.5.7 (2025-10-06)

Bug Fixes

  • core: enhance branded type definitions for Opt, Hidden, Config and RequiredNullable (#6884) (6ce418d)
  • core: ensure nullable ScalarReference properties are loaded as initialized ScalarReference instances (#6902) (51feb3b), closes #6885
  • core: mark autoincrement properties with Opt type in defineEntity helper (#6910) (e2a8ed4)
  • core: prefer id property over uuid property for default PK inference (7a9c834), closes #6865
  • core: skip entity validation when propagating to upper context in em.transactional (a3941a1), closes #6895
  • query-builder: expand embeddable fields on select (#6896) (6b76f60)
  • query-builder: support embedded fields in join conditions (#6897) (409e0ef), closes #6883

Features

  • mongo: implement optimistic locking support for version properties (#6887) (591fb43), closes #3612

Performance Improvements

v6.5.6

25 Sep 06:58

Choose a tag to compare

6.5.6 (2025-09-25)

Bug Fixes

  • core: account for nullability when applying default value (#6880) (9763275), closes #6879
  • core: enhance type of bigint, array, decimal properties when using defineEntity helper (#6873) (42e7df1)
  • core: ensure em.refresh will refresh detached entities too (c156e30), closes #6867
  • core: prevent stack overflow errors when populating relations on lots of entities with select-in strategy (#6874) (d5c23c7)

Features

  • core: allow sha256 hashing in FileCacheAdapter (#6866) (21d364d)
  • schema: add skipTables and skipColumns options to schema generator (#6870) (5937ab6), closes #5346

v6.5.5

21 Sep 08:42

Choose a tag to compare

6.5.5 (2025-09-21)

Bug Fixes

  • core: add missing IncludeCount type argument to repo.findByCursor() (34c9630)
  • core: correctly diff nullable properties between undefined and null (#6864) (c30d1c9)
  • core: skip mapping undeclared columns that match a different property name (#6860) (b29527e), closes #6861
  • schema: improve diffing of generated columns (9a59ba6), closes #6858

v6.5.4

17 Sep 20:39

Choose a tag to compare

6.5.4 (2025-09-17)

Bug Fixes

  • core: initialize collection properties after flushing an entity reference (83ca9c1), closes #6855
  • core: support inference of default value from property initializer with ref() (56e441d), closes #6853
  • query-builder: fix aliasing of 1:1 inverse side when used in a filter nested inside M:N relation (61969f6), closes #6851

v6.5.3

13 Sep 09:00

Choose a tag to compare

6.5.3 (2025-09-13)

Bug Fixes

  • core: align implementation of filters in em.find and em.count (ead5074), closes #6823
  • core: export RequiredNullable from @mikro-orm/core (#6836) (961ee74)
  • core: fix propagation from em.transactional with composite custom type PK (0b82f43), closes #6825
  • core: include hidden properties when refreshing via em.refresh() (9a7bbc3), closes #6828
  • query-builder: properly wrap composite keys in join conditions (#6831) (b720ca5), closes #6830
  • query-builder: skip branching on to-one joins (#6826) (65812c4), closes #6824