yarn @mikro-orm/core 5.8.0
v5.8.0

latest releases: 6.3.11-dev.16, 6.3.11-dev.15, 6.3.11-dev.14...
12 months ago

5.8.0 (2023-09-10)

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)

Don't miss a new core release

NewReleases is sending notifications on new releases.