Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
v6.6.2
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
BigIntinDatehydration (#7003) (236b429), closes #7002
Features
- core: use upsert when adding items to not initialized M:N collections (#7019) (268f378), closes #6625
Performance Improvements
v6.6.1
6.6.1 (2025-11-25)
Bug Fixes
- core: try to infer property types regardless of
inferDefaultValuesoption (98eef5e) - mongo: fix processing of nested lazy scalar properties (94927c6), closes #6994
- mongo: respect property
fieldNameon 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
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
rawhelper that supportsQueryBuilderandKnex.QueryBuilder(#6955) (897cc7f), closes #6751 #6782 - postgres: skip left joined relations from pessimistic locks automatically (ffb71a1), closes #6412
v6.5.9
6.5.9 (2025-10-23)
Bug Fixes
- core: add some missing options to
defineEntityrelation 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
defineEntityrelation property builders (8a03eca) - core: update
extendstype indefineEntityandEntitySchema(#6936) (589d0f3) - postgres: do not create non-autoincrement simple PKs twice (89e139e)
Performance Improvements
v6.5.8
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 defaultref: trueindefineEntityhelper (#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
onConflictFieldson JSON properties (4eab82e), closes #6900 - query-builder: do not ignore nested joins inside nested joins (a37d6fa)
- schema: fix down migrations with
createForeignKeyConstraintproperty option (23e898b), closes #6903 - schema: support raw fragments in check constraint expressions (ff360b0), closes #6914
Features
v6.5.7
6.5.7 (2025-10-06)
Bug Fixes
- core: enhance branded type definitions for
Opt,Hidden,ConfigandRequiredNullable(#6884) (6ce418d) - core: ensure nullable ScalarReference properties are loaded as initialized ScalarReference instances (#6902) (51feb3b), closes #6885
- core: mark
autoincrementproperties withOpttype indefineEntityhelper (#6910) (e2a8ed4) - core: prefer
idproperty overuuidproperty 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
Performance Improvements
v6.5.6
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
defineEntityhelper (#6873) (42e7df1) - core: ensure
em.refreshwill 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
v6.5.5
6.5.5 (2025-09-21)
Bug Fixes
- core: add missing
IncludeCounttype argument torepo.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
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
6.5.3 (2025-09-13)
Bug Fixes
- core: align implementation of filters in
em.findandem.count(ead5074), closes #6823 - core: export
RequiredNullablefrom@mikro-orm/core(#6836) (961ee74) - core: fix propagation from
em.transactionalwith 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