Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
v7.1.4
7.1.4 (2026-06-06)
Bug Fixes
- core: allow array return in onCreate/onUpdate on embedded/scalar arrays (#7848) (b7e5232), closes #7847
- core: avoid spurious updates for object embeddables with undeclared keys (#7823) (6b017d9), closes #7821 #7821
- core: avoid stack overflow in IdentityMap.keys()/values() for large maps (#7857) (8adf861)
- core: keep STI primary key NOT NULL when a child re-declares it (#7828) (31a12bb), closes #7826
- core: populate polymorphic embedded arrays loaded via a relation (#7846) (18f9b58), closes #7845
- core: use owner targetKey for inverse collection loads (#7844) (8d46fe9), closes #7842 #7842
- postgres: don't mis-detect JSON operator checks as enums (#7829) (dee3d3a), closes #7822
- postgres: introspect native enums with no members (#7830) (aab9970), closes #7825
- postgres: unwrap single-paren CHECK shell for bare boolean CASE bodies (#7827) (52ef9e9), closes #7824
- sql: emit column name for kysely on-create/on-update hook injection (#7837) (f4135f7), closes #7836
Features
v7.1.3
7.1.3 (2026-05-31)
Bug Fixes
- core: emit composite unique for OneToOne across 3+ STI variants (#7806) (ae89033), closes #7805
- core: support
mapToPkscalar typing with ES decorators (#7818) (9b8b4e4), closes #7817
Features
- core: support onReserveConnection across SQL drivers (#7815) (166c966)
- postgres: support adding and changing partitioning on existing tables (#7816) (db738bd)
- schema: add
ignoreRoutinesoption to leave routines unmanaged (#7810) (84e2ed3) - schema: add
ignoreTriggersoption and skip trigger drops in safe mode (#7809) (cc35d88)
v7.1.2
7.1.2 (2026-05-29)
Bug Fixes
- cli: allow
discovery:exportto generate an empty list of entities (#7795) (604f109) - core: avoid circular type in defineEntity index/unique
wherewith self-referencing relations (#7784) (82ad42a), closes #7440 - core: preserve sibling conditions next to
$and/$oron relation filters (#7790) (2b59672) - core: reload non-merged columns after upsert with a raw conflict target (#7800) (1366074)
- migrations: stop migrator.up() from churning a snapshot that matches the DB (#7804) (3f1297c), closes #7803 #7798 #7798
- sql: expose raw aliases in QueryBuilder execute() result type (#7785) (2944703)
- sql: handle scalar PK in joined mapping of composite-FK relations (#7802) (88fae8e), closes #7801
- sql: stabilize MySQL snapshot serialization for decimal/text/extra/comment (#7797) (184cfde), closes #7235 #7608 #7796
- sql: stop spurious Postgres schema diff on geometry typmod and truncated check names (#7803) (a972992), closes #7798 #7798
- sql: stop sqlite snapshot flip on table/column comments (#7799) (bac9210), closes #7798
Features
v7.1.1
7.1.1 (2026-05-22)
Bug Fixes
- cli: skip local-dependency check under Deno (#7767) (c27c211), closes #7766
- core: reload suppressed entities from partially-suppressed upsertMany (#7779) (36eaff3), closes #7775
- core: skip PK collapse when composite FK doesn't align with target PK (#7765) (fce1cc6), closes #7764
- migrations: preserve partial unique index
wherepredicate in snapshot (#7778) (5616c3d), closes #7773 - postgres: recast column default when changing array element type (#7769) (e122c20)
- schema: detect removed default on boolean columns (#7777) (c0faca0), closes #7774
- seeder: widen
Factory.modeltype toEntityName<T>(#7776) (878078c), closes #7768
v7.1.0
7.1.0 (2026-05-20)
https://mikro-orm.io/blog/mikro-orm-7-1-released
Bug Fixes
- core: coerce ISO date strings to
Dateinem.assign()(#7740) (0940a5f), closes #7737 - core: skip M:N inverse scrub for STI siblings that can't reference the entity (#7759) (6971c8a)
- core: treat inlined embeddables as loaded when their leaves are (#7758) (e89dab0)
- mongo: clean up inlined pivot on em.remove when owning side is populated (#7755) (4c5f03a), closes #7752
- mongo: create collections before ensuring indexes in
create()(#7745) (531bc6b) - mongo: throw on em.remove of inlined-pivot M:N target with uninitialized owning side (#7752) (231f84c), closes #7750
- sql: infer scalar array properties as columns in Kysely types (#7753) (111d69d), closes #7751
- sql: wrap raw subqueries with parens inside INSERT VALUES (#7754) (d379880), closes #7749
Features
- cli: add
discovery:exportcommand (#7335) (e38f5c4), closes #7323 #7323 - cli: add
migration:logandmigration:unlogcommands (#7347) (6cf1045), closes #5390 - cli: emit typed
EntityManageralias fromdiscovery:export(#7756) (fd06439) - core: accept enum references directly in
items(#7606) (3d67892) - core: add
discriminatoroption and column-name override (#7748) (5390ce8), closes #7121 - core: add
em.clone()andqb.insertFrom()for server-side row cloning (#7365) (13ca566), closes #5820 - core: add
em.countBy()for grouped counting (#7372) (c4d2e99) - core: add
fieldswhitelist option toserialize()(#7517) (6ea6d64), closes #7507 - core: add
initNullablePropertiesconfig option (#7554) (03a3122), closes #7551 - core: add
LazyRef<T>,Loadablemixin, andunref()escape hatch (#7587) (221c2fc) - core: add
whereoption for partial indexes and unique constraints (#7593) (78d00e3) - core: add a
chunkSizeoption to streams (#7520) (13c61fa) - core: add column-level
collationsupport for SQL drivers (#7615) (12e3a73), closes #4286 - core: add dataloader support for
Collection.loadCount()(#7373) (120189c), closes #7372 #6425 - core: add type-safe
usingoption for index hints (#7375) (3337b58), closes #7175 - core: auto-generated classes inherit from parent with defineEntity extends (#7404) (94450ef)
- core: expose query cancellation via
AbortSignal(#7629) (1a8379c) - core: per-parent limiting for populated collections (#7370) (6ff01e4), closes #1059
- core: support
arrayoption on scalar properties (#7378) (b54b756), closes #7363 - core: support stored procedures and functions (#7693) (9bbbb8b), closes #5253
- core: union-target polymorphic M:N relations (#7569) (dfbe1c2), closes #7564 #7564
- migrations: add migration:rollup command (#7468) (8de2c92), closes #3633
- migrations: support runtime schema context (#7597) (9b00229), closes #3319 #4928
- pglite: add PGlite driver (#7622) (01f18c5)
- postgresql: add support for table partitioning (#7497) (63d0977), closes #6944 #6944
- schema: add database trigger support (#7379) (da4010d), closes #5053
- sql: bind
getKysely()to the current transaction context (#7701) (344be12), closes #7679
v7.0.17
7.0.17 (2026-05-17)
Bug Fixes
- core: allow local
forceObject: falseto override global setting (#7739) (4f5b71d), closes #7738 - core: avoid duplicate queries when
:refpopulate overlaps withfields(#7720) (793f079) - core: carry user-declared STI discriminator through mergeData (#7736) (826ab28), closes #7735
- core: merge index
columnsoverrides with the full property list (#7733) (7aad84b) - core: populate partial inverse one-to-one refs (#7721) (a235b42)
- core: propagate pivot entity to STI root for inverse M:N (#7725) (8852875), closes #7724
- core: resolve TPT parent alias for custom-typed inherited columns (#7731) (202ab1c)
- core: scope auto-joined filter refs to fields shared by all polymorphic targets (#7723) (d67c2c5), closes #7722
- core: scope STI subclass discriminator when extends is a schema (#7727) (df74b4b), closes #7726
v7.0.16
7.0.16 (2026-05-14)
Bug Fixes
- core: do not propagate parent indexes to child TPT tables (#7715) (de68566), closes #7714
- core: pass entity instance to
beforeUpserthook and propagate mutations to SQL (#7716) (b84d48e) - core: reset stale collections on upserted entities (#7718) (bbc82c5)
- core: resolve polymorphic TPT-child filter columns to parent table (#7719) (2e5a91a), closes #7717
- core: respect partial
fieldsoption when populating inverse 1:1 relations (#7708) (721d6ff) - core: treat
LockMode.NONElikeundefinedinem.findOne()(#7704) (08d7ecf), closes #7702 - schema: centralize identifier-length truncation across platforms (#7706) (1987833)
Features
v7.0.15
7.0.15 (2026-05-09)
Bug Fixes
- core: apply array customType to scalar arrays defined via property chain (#7689) (26f8107), closes #7688
- core: apply filters to inverse 1:1 populate joins instead of duplicating them (#7684) (895c93e), closes #7680
- core: narrow inherited discriminator to literal value in
defineEntity(#7678) (571a91e), closes #7677 - migrations: log migration inside the runner's transaction (#7676) (59a96f4)
- mysql: default maxIdle when pool.idleTimeoutMillis is set (#7673) (b711997), closes #7672
- sql: apply customType SQL wrappers in getKysely (#7682) (89f9222), closes #7679
- sql: nest auto-joins inside a join cond's target to avoid forward references (#7683) (2ad53b3), closes #7681
v7.0.14
7.0.14 (2026-05-04)
Bug Fixes
- core: avoid crash on STI subclass with 1:M override (#7636) (34427ff), closes #7635
- core: drop entity from persist/remove stacks in
uow.unsetIdentity()(#7639) (0b90c31), closes #7638 - core: escape embedded quote characters in quoteIdentifier (#7653) (3fadd28)
- core: escape JSON path keys in getSearchJsonPropertyKey (#7656) (556d339)
- core: respect
hiddenflag withpopulate: ['*']inserialize()(#7637) (88ed196), closes #7634 - sql: avoid duplicate result cache write on
em.find()(#7645) (fa12c86), closes #6923 #7644
Features
v6.6.14
6.6.14 (2026-05-04)
Bug Fixes
- core: avoid crash on STI subclass @manytoone override targeting same hierarchy (#7646) (1df1632), closes #7599 #7598
- core: drop entity from persist/remove stacks in uow.unsetIdentity() (#7661) (8bc4c77), closes #7639
- core: escape embedded quote characters in quoteIdentifier (#7654) (a1f005b)
- core: escape JSON path keys in getSearchJsonPropertyKey (#7657) (1d0710c)
- core: merge nested fields paths into explicit populate (#7664) (f73568a), closes #7605
- core: recognize TypeScript's __esDecorate helper in decorator path lookup (#7665) (3b53296), closes #7584 #7583
- core: respect hidden flag with populate: ['*'] in serialize() (#7660) (752c108), closes #7637
- core: skip getter-only properties in assignDefaultValues (#7659) (ff65622), closes #7575
- postgres: schema-qualify generated drop index statements (#7662) (d588a02), closes #7603
- postgres: treat timetz / time with time zone as aliases in schema diff (#7663) (686d2f8), closes #7618
Previous Next