MikroORM v5.5.0 Release Notes

Release Date: 2022-10-23 // over 1 year ago
  • ๐Ÿ› Bug Fixes

    • cli: fix using npx --workspace with mikro-orm-esm (#3560) (64777af)
    • cli: improve success message of schema:update/drop commands (11d0fd9)
    • core: always compare boolean properties as booleans (c30c680), closes #3576
    • core: do not ignore default option in version properties (1572008)
    • core: do not ignore falsy version values like 0 (754d672)
    • core: fix assigning objects to collections (#3628) (82a9708)
    • core: fix changing 1:1 relations value (7b6e6f7), closes #3614
    • core: fix removing entities with complex composite keys (6d6e9f4), closes #3543
    • core: fix validation of EM param in assign (6572a59), closes #3571
    • core: hydrate mapToPk properties with the PK value (559ae28)
    • core: improve entity path detection with SWC 1.3.4+ (#3568) (9a2cb8c)
    • core: merge entity automatically via em.create(E, {}, { managed: true }) (24d206f), closes #3571
    • core: propagate entity removal to collection properties (25c1c06)
    • core: rework handling of orphan removal for 1:m collections (925c798), closes #3564
    • core: serialize embedded JSON properties correctly when used in inline embeddable (feef8b3), closes #3519
    • mongo: fix populating 1:1 owners from inverse side (25ee03a)
    • ๐Ÿ— query-builder: support top level $not operator in join condition (#3609) (047504f)

    ๐Ÿ”‹ Features

    • core: add defineConfig helper (#3500) (67d3c68)
    • core: add em.refresh(entity) method (#3522) (dbe8aa4)
    • core: add em.upsert() method (#3525) (3285cdb), closes #3515
    • core: add MikroORM and Options exports to each driver package (#3499) (b68ed47)
    • core: add the offset into FindOneOptions (#3574) (9d5d457)
    • core: automatically detect src/dist/build folders and adjust configuration (#3497) (a8c8baf)
    • core: enable persistOnCreate by default (8424976)
    • core: maintain identity for the Reference wrapper (da1a0ef), closes #3582
    • core: provide meta and prop on custom mapped type instance (c1251d0), closes #3538
    • core: track changes on entity references (#3521) (0fb17bb)
    • core: validate missing items in enum definition (659c2de)
    • core: validate missing types in EntitySchema definition (0716566), closes #3603
    • migrations: allow configuring snapshot name (4bbe355), closes #3562
    • mongo: do not expand array queries to $in operator when nested inside $eq (e25d28e)
    • postgres: add qb.distinctOn() support (307d3a1)
    • ๐Ÿ— query-builder: validate modification of finalized QB (b23f015), closes #3534
    • schema: add ability to ignore specific column changes (#3503) (05fb1ce), closes #1904 #1904
    • schema: try to infer runtime default values automatically (#3529) (d035781)
    • sqlite: enable returning statements in both SQLite drivers (eaf83c8)

    ๐ŸŽ Performance Improvements

    • core: don't propagate serialization context to hidden relations (#3592) (e706ba2)
    • core: improve support for large collections (#3573) (ea3f6fd)
    • schema: improve schema inspection speed in SQL drivers (#3549) (74dc3b1)