MikroORM v5.1.2 Release Notes

Release Date: 2022-04-10 // about 2 months ago
  • ๐Ÿ› Bug Fixes

    • core: allow converting custom types via em.nativeInsert() (#2979) (8d76852)
    • 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 (#2931) (24bf10e)
    • postgres: drop enum constraints only when the column was an enum (76fef39)
    • 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 (#2961) (acc960e)

Previous changes from v5.1.1

  • ๐Ÿ› Bug Fixes

    • core: fix custom pivot table entities for unidirectional relations (01bdbf6)
    • knex: order by with a formula field should not include as for sub-queries (#2929) (74751fb)
    • postgres: allow explicit schema name in prop.pivotTable (1860ff5), closes #2919
    • postgres: fix pagination with order by UUID PK (042626c), closes #2910
    • postgres: respect known schema when loading wild card entity relations (61d1e85), closes #2909
    • schema: respect disableForeignKeys in schema generator (f1b8e46), closes #2912

    ๐Ÿ”‹ Features

    • core: validate em.begin was called when using em.commit/rollback (67fa076), closes #2918