Skip to content

Releases: mikro-orm/mikro-orm

v5.8.4

27 Sep 19:48

Choose a tag to compare

5.8.4 (2023-09-27)

Bug Fixes

  • core: fix recomputing of changesets when entity has unique properties (d03afad), closes #4749
  • query-builder: fix mapping of complex joined results with cycles (a9846dd), closes #4741

Features

  • core: add EntityRepository.getEntityName() method (#4745) (47bfedd)
  • core: allow setting default schema on EntityManager (#4717) (f7c1ef2)
  • core: deprecate UseRequestContext decorator (#4744) (280733f)

v5.8.3

24 Sep 15:55

Choose a tag to compare

5.8.3 (2023-09-24)

Bug Fixes

  • core: do not skip cjs/mjs/cts/mts extensions during folder-based discovery (ce574a4), closes #4727
  • core: ensure no duplicates exist in checks/indexes/hooks (fb523c8), closes #4733
  • core: fix updating complex composite key entities via UoW (#4739) (898dcda), closes #4720
  • knex: allow using knex query builder as virtual entity expression (#4740) (427cc88), closes #4628
  • knex: hydrate nullable relations with joined strategy (8ddaa93), closes #4675
  • mongo-migrations: fix logging of executed migrations (8ae7eeb), closes #4698

v5.8.2

20 Sep 18:14

Choose a tag to compare

5.8.2 (2023-09-20)

Bug Fixes

  • core: fix query processing when PK is falsy (#4713) (3624cb7)
  • mongo-migrations: fix logging of executed migrations (2d9fc86), closes #4698
  • query-builder: fix aliasing of joined embedded properties (24c4ece), closes #4711

Features

  • core: allow to use .ts files as configuration without ts-node (#4702) (bda7eca), closes #4701
  • entity-generator: generate PrimaryKeyProp and PrimaryKeyType symbols (605446a)

v5.8.1

12 Sep 16:29

Choose a tag to compare

5.8.1 (2023-09-12)

Bug Fixes

  • core: ensure entity is not in persist stack after em.insert/Many() is called (94eed5e), closes #4692
  • core: ensure merging of data to already loaded entities won't fail in some cases (f6e8204), closes #4688
  • core: fix merging of collections loaded via joined strategy (b4a0260), closes #4694
  • core: try to fix merging of large collections loaded via joined strategy (faae84e), closes #4694

v5.8.0

10 Sep 10:39

Choose a tag to compare

5.8.0 (2023-09-10)

https://mikro-orm.io/blog/mikro-orm-5-8-released

Bug Fixes

  • core: default baseUrl value to '.' when registering ts-node (#4680) (cc0fc5f), closes #4679
  • core: ensure partial loading respects advanced mapped type methods (72554fd), closes #4622
  • core: fix assigning collection items with updateNestedEntities: false (e1bfd20)
  • core: fix metadata cache for @Check() with callback signature (44d973e), closes #4505
  • core: fix removing entity that has an inverse relation with M:1 owner property (fbed4a6), closes #4578
  • core: ignore null values of unknown properties in assign() (a600f55), closes #4566
  • core: map property names to column names in qb.onConflict() (e38d126), closes #4483
  • core: remove old items from 1:m collections via set() even if not initialized (b03e165)
  • core: respect explicit schema name of pivot tables (af74491), closes #4516
  • core: respect filters with joined loading strategy (#4683) (847c35a), closes #704 #2440
  • core: support calling em.findAndCount() on virtual entities with orderBy (7f328ac), closes #4628
  • core: support calling em.insertMany() with empty array (2f65bc8), closes #4640
  • core: use join on conditions for populateWhere (#4682) (99177cc), closes #3871
  • entity-generator: respect precision and scale in numeric column type (3a52c39)
  • mysql: fix extra updates on entities with non-primary autoincrement property (5d6ebe3), closes #4577
  • query-builder: apply join condition to the target entity in M:N relations (c78d812), closes #4644
  • query-builder: make QBFilterQuery type more strict (755ef67)
  • schema: respect columnType on enum properties (#4601) (0eae590)

Features

  • cli: add --drop-db flag to migration:fresh and schema:fresh (cf1db80), closes #4569
  • core: add clear option to em.transactional() (01d1ad7)
  • core: add Collection.isEmpty() method (#4599) (2d8d506)
  • core: add Collection.slice() method (#4608) (7c99c37)
  • core: add Collection helpers map/filter/reduce/exists/findFirst/indexBy (3ba33ac), closes #4592
  • core: allow disabling duplicate entities discovery validation (#4618) (3ff0dda)
  • core: allow enabling result cache globally (5876c99), closes #4656
  • core: allow fine-grained control over em.upsert() (#4669) (ab0ddee), closes #4325 #4602
  • core: allow global config option for disableIdentityMap (ef32b14), closes #4653
  • core: respect batchSize in em.upsertMany() (4a21c33), closes #4421
  • entity-generator: allow skipping some tables or columns (e603108), closes #4584
  • migrations: add Migration.getEntityManager() helper (79af75c), closes #4605
  • mongo: support indexes on embedded properties (040896e), closes #2129
  • sql: add readOnly option to em.begin() and em.transactional() (86bb7d4)
  • sql: allow specifying query comments (06d4d20)

v5.7.14

27 Jul 08:26

Choose a tag to compare

5.7.14 (2023-07-27)

Bug Fixes

  • core: ensure JSON arrays are correctly handled (5327bcc), closes #4555
  • core: inferring JSON type based on columnType when mapping to array (96d87ba), closes #4548
  • entity-generator: use ref instead of wrappedReference (#4559) (be02aa4)
  • mongo: do not create collections for embeddable entities (0759df0), closes #4495
  • seeder: allow run method to return without promise (#4541) (8012507)

v5.7.13

16 Jul 19:08

Choose a tag to compare

5.7.13 (2023-07-16)

Bug Fixes

  • core: deprecate wrappedReference on m:1 decorator options (d7f362e)
  • core: do not fail when detecting mapped type for enum columns (b94048b), closes #2323
  • core: fix handling shared columns in composite foreign keys (fbb6958)
  • core: fix multiple ? in fulltext fields updates (9c9915e), closes #4484
  • core: fix updating composite key entities via flush (733cb80), closes #4533
  • core: respect persist: false on relations (a127fff), closes #4504
  • migrations: support reverting migrations that had extenion in the database (72df9ad), closes #4528
  • mongo: drop migrations table when requested (278ba3a), closes #4513
  • postgres: fix hydration of 1:1 properties when entity has version fields (474eb73), closes #4497
  • sqlite: allow using clientUrl without a host (#4447) (9a01bbd)
  • sqlite: fix processing queries with large parameters (48ee8c2), closes #4526
  • sql: schema not inherited in query with relations (#4477) (b680477), closes #4472

v5.7.12

10 Jun 22:14

Choose a tag to compare

5.7.12 (2023-06-10)

Bug Fixes

  • core: allow async filter callbacks in em.addFilter() on type level (308c45b)
  • core: fallback to direct property access (320c52f), closes #4434 #4216
  • core: fix extra updates when forceEntityConstructor enabled (41874eb), closes #4426
  • core: fix returning clause for upsert with embeddables (#4427) (b9682f0)
  • core: respect undefined when assigning to object properties (217ff8f), closes #4428
  • core: respect falsy values in em.upsert (ef22b21), closes #4420
  • mongo: allow saving self-references inside M:N properties in one flush (c1b5fc4), closes #4431

Features

v5.7.11

01 Jun 16:59

Choose a tag to compare

5.7.11 (2023-06-01)

Bug Fixes

  • cli: expose missing migration:check command (#4388) (79e128e)
  • core: fix change tracking of optional properties with forceUndefined (9303c3f), closes #4412
  • core: fix populating relations in parallel via Promise.all (#4415) (f4127a7), closes #4213 #4343

v5.7.10

23 May 19:46

Choose a tag to compare

5.7.10 (2023-05-23)

Bug Fixes

  • core: exclude collections from returning clause from em.upsert (e342449), closes #4382
  • core: re-export Reference class as Ref (50eea37), closes #4161
  • core: respect skipNull when serializing object properties/embeddables (f27ee9a), closes #4383

Features

  • core: add meta to EventArgs to the upsert events (ed431ea)

Performance Improvements

  • core: set Collection._property early for managed entities (23ca682), closes #4376