Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
v5.7.9
v5.7.8
5.7.8 (2023-05-21)
Bug Fixes
- core: ensure
em.upsertreturns 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 ignoregroupByandhavingclauses (7127ff6)
Features
v5.7.7
5.7.7 (2023-05-14)
Bug Fixes
- core: deprecate
@Subscriber()decorator (033b71d) - core: revert the
const enumsas they break projects withisolatedModules(8b23674), closes #4350 - knex: remove constraints from knex's peer dependencies (ce81071)
- query-builder: do not enable query pagination when explicit
groupByis set (921251a), closes #4353
Features
v5.7.6
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
Performance Improvements
- core: define some enums as const enums, so they get inlined (3cb43ba)
v5.7.5
5.7.5 (2023-05-09)
Bug Fixes
- core: deprecate
wrappedReferenceandIdentifiedReference(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
forceEntityConstructoris 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
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
assignhelper 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
v5.7.2
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
forceUndefinedin the original entity data (d2d9cc0), closes #4262 #4266 - core: respect
serialize()skipNulloption inside embeddables (4cf7669), closes #4263 - migrations: allow generating named initial migration (01d6a39), closes #4271
v5.7.1
v5.7.0
5.7.0 (2023-04-23)
Bug Fixes
- core: clean up bidirectional references after removal of entity (bfd3840), closes #4234
- core: detect
JsonTypebased oncolumnType(#4252) (2e01622), closes #4229 - core: do not try to propagate changes to
mapToPkrelations (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_extractwhen 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/removemethods fromEntityRepository(#4259) (eba4563), closes #3989 - core: validate repository type in
repo.populate()andrepo.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