Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Releases: mikro-orm/mikro-orm

v7.1.4

06 Jun 13:54

Choose a tag to compare

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

  • cli: added searchConfiguration() to analyze config file for context (#7834) (8a1066b)
  • pglite: support named databases inside a cluster (#7854) (2038f07), closes #7852

v7.1.3

31 May 11:06

Choose a tag to compare

7.1.3 (2026-05-31)

Bug Fixes

  • core: emit composite unique for OneToOne across 3+ STI variants (#7806) (ae89033), closes #7805
  • core: support mapToPk scalar 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 ignoreRoutines option to leave routines unmanaged (#7810) (84e2ed3)
  • schema: add ignoreTriggers option and skip trigger drops in safe mode (#7809) (cc35d88)

v7.1.2

29 May 13:18

Choose a tag to compare

7.1.2 (2026-05-29)

Bug Fixes

  • cli: allow discovery:export to generate an empty list of entities (#7795) (604f109)
  • core: avoid circular type in defineEntity index/unique where with self-referencing relations (#7784) (82ad42a), closes #7440
  • core: preserve sibling conditions next to $and/$or on 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

22 May 12:00

Choose a tag to compare

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 where predicate 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.model type to EntityName<T> (#7776) (878078c), closes #7768

v7.1.0

20 May 07:43

Choose a tag to compare

7.1.0 (2026-05-20)

https://mikro-orm.io/blog/mikro-orm-7-1-released

Bug Fixes

  • core: coerce ISO date strings to Date in em.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

v7.0.17

17 May 17:12

Choose a tag to compare

7.0.17 (2026-05-17)

Bug Fixes

  • core: allow local forceObject: false to override global setting (#7739) (4f5b71d), closes #7738
  • core: avoid duplicate queries when :ref populate overlaps with fields (#7720) (793f079)
  • core: carry user-declared STI discriminator through mergeData (#7736) (826ab28), closes #7735
  • core: merge index columns overrides 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

14 May 09:51

Choose a tag to compare

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 beforeUpsert hook 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 fields option when populating inverse 1:1 relations (#7708) (721d6ff)
  • core: treat LockMode.NONE like undefined in em.findOne() (#7704) (08d7ecf), closes #7702
  • schema: centralize identifier-length truncation across platforms (#7706) (1987833)

Features

  • core: expose embedded sub-columns to check constraint callbacks (#7713) (b15f957), closes #7712
  • postgres: support driverOptions.onPoolCreated hook for pg.Pool (#7711) (72bac1b)

v7.0.15

09 May 09:41

Choose a tag to compare

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

04 May 09:59

Choose a tag to compare

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 hidden flag with populate: ['*'] in serialize() (#7637) (88ed196), closes #7634
  • sql: avoid duplicate result cache write on em.find() (#7645) (fa12c86), closes #6923 #7644

Features

  • sql: add MikroORM and defineConfig variants in @mikro-orm/sql (#7647) (ce31ff4)

v6.6.14

04 May 10:11

Choose a tag to compare

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.