Skip to content

Releases: mikro-orm/mikro-orm

v5.7.9

22 May 23:22

Choose a tag to compare

5.7.9 (2023-05-22)

Bug Fixes

  • core: fix mapping of results from partial loading (541c449), closes #4377

Performance Improvements

  • core: don't double clone when merging data to exiting entity (c175652), closes #4376

v5.7.8

21 May 15:35

Choose a tag to compare

5.7.8 (2023-05-21)

Bug Fixes

  • core: ensure em.upsert returns initialized entity (#4370) (bad0b37), closes #4242
  • core: ensure correct number of results is logged in SQL drivers (e3cd184)
  • core: ensure strict type-checking of enum queries (8f8464a)
  • query-builder: qb.clone() shouldn't ignore groupBy and having clauses (7127ff6)

Features

  • query-builder: add qb.returning() (b5ab66b)
  • query-builder: allow partial loading via qb.(left/inner)JoinAndSelect() (22c8c84), closes #4364

v5.7.7

14 May 21:12

Choose a tag to compare

5.7.7 (2023-05-14)

Bug Fixes

  • core: deprecate @Subscriber() decorator (033b71d)
  • core: revert the const enums as they break projects with isolatedModules (8b23674), closes #4350
  • knex: remove constraints from knex's peer dependencies (ce81071)
  • query-builder: do not enable query pagination when explicit groupBy is set (921251a), closes #4353

Features

  • core: add options argument to filter callback (c57ee5e), closes #4352
  • query-builder: validate unknown alias when explicitly joining (8d4a83a), closes #4353

v5.7.6

13 May 14:14

Choose a tag to compare

5.7.6 (2023-05-13)

Bug Fixes

  • core: allow em.populate() on lazy formula properties (5c6bb13)
  • core: ensure database values are used in the identity map keys (46b5e3a), closes #4335
  • core: fix re-populating relations with refresh: true (74b6a98), closes #4339

Features

  • core: add wrap(entity).populate([...]) shortcut (6b519c4)
  • core: log number of results (261b3d9)

Performance Improvements

  • core: define some enums as const enums, so they get inlined (3cb43ba)

v5.7.5

09 May 20:33

Choose a tag to compare

5.7.5 (2023-05-09)

Bug Fixes

  • core: deprecate wrappedReference and IdentifiedReference (ab79832)
  • core: detect early deletes for compound unique constraints (f9530e4), closes #4305
  • core: fix extra updates caused by bigint type (2acd25e), closes #4249
  • core: fix extra updates caused by property initializers when forceEntityConstructor is enabled (7ee883d), closes #4323
  • core: respect schema name when checking duplicate table names (5b89b00), closes #4332
  • mongo: sorting with UnderscoreNamingStrategy (#4314) (a5b0f94), closes #4313
  • postgres: improve enum/check constraint inspection in schema diffing (6c44b42), closes #4312

v5.7.4

01 May 21:54

Choose a tag to compare

5.7.4 (2023-05-01)

Bug Fixes

  • core: expand PK conditions inside top level operators (305ce5d), closes #4222
  • core: fix extra updates when caching inlined embedded entities (3dc3b32), closes #4295
  • core: fix object merging in assign helper when current value is scalar (c012f95), closes #4290
  • core: only consider valid query as tuple comparison (7212a53), closes #4220
  • migrations: respect custom migration name in migration class names (#4294) (c402a99)

v5.7.3

28 Apr 09:49

Choose a tag to compare

5.7.3 (2023-04-28)

Bug Fixes

  • core: merge returned values to the initial entity snapshot (e123076), closes #4284
  • postgres: do not convert date column type to Date object automatically (a7d1d09), closes #4194 #4276

Features

  • core: add beforeUpsert and afterUpsert events (db9ff09), closes #4282
  • core: allow creating DELETE changesets via uow.computeChangeSet() (61479b6), closes #4280
  • core: allow disabling validation for duplicate tableName (dfb87bf)

v5.7.2

25 Apr 20:19

Choose a tag to compare

5.7.2 (2023-04-25)

Bug Fixes

  • cli: await the yargs.parse call in esm.ts (#4272) (dcdf70a)
  • core: don't skip updates from propagation triggered via em.create() (30778c3), closes #4209
  • core: quote JSON property paths if they contain special characters (a94bbce), closes #4264
  • core: respect forceUndefined in the original entity data (d2d9cc0), closes #4262 #4266
  • core: respect serialize() skipNull option inside embeddables (4cf7669), closes #4263
  • migrations: allow generating named initial migration (01d6a39), closes #4271

v5.7.1

25 Apr 10:05

Choose a tag to compare

5.7.1 (2023-04-25)

Bug Fixes

v5.7.0

23 Apr 23:08

Choose a tag to compare

5.7.0 (2023-04-23)

Bug Fixes

  • core: clean up bidirectional references after removal of entity (bfd3840), closes #4234
  • core: detect JsonType based on columnType (#4252) (2e01622), closes #4229
  • core: do not try to propagate changes to mapToPk relations (7028890), closes #4254
  • core: fix mapping of joined relations with buffer PKs (8e9e7ee), closes #4219
  • core: merge env vars with explicit configuration recursively (392a623), closes #4235
  • core: prevent tuple type properties from being converted to array when serializing entities (#4205) (04ad72e)
  • core: propagate changes from extra updates back to the original changeset (77f5c14), closes #4245
  • core: rework JSON value processing (#4194) (5594c46), closes #4193
  • mariadb: use json_extract when querying JSON fields (ca96acc)
  • query-builder: fix pagination when PK uses BigIntType (b789031), closes #4227
  • query-builder: support onConflict().ignore() without parameters (3a3b0bd), closes #4224
  • schema: fix comparing default value of JSON properties (41277a1), closes #4212

Features

  • core: allow disabling transactions (#4260) (8e8bc38), closes #3747 #3992
  • core: deprecate persist/flush/remove methods from EntityRepository (#4259) (eba4563), closes #3989
  • core: validate repository type in repo.populate() and repo.assign() (301bdf8), closes #3989
  • core: validate unique tableName (0693029), closes #4149
  • migrations: add support for custom migration names (#4250) (fb2879e)
  • mongo: allow setting weights on index (299b188), closes #4172

Performance Improvements

  • core: fix eager loading of multiple properties causing cycles (ecbecfc), closes #4213