Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
v4.5.0
4.5.0 (2021-03-21)
Bug Fixes
- core: apply filters when populating M:N relations (cd8330a), closes #1232
- core: do not process knex.ref() via custom types (ba2ee70), closes #1538
- core: do not update entity state when cascade merging (6c74109), closes #1523
- core: expose filters in some repository methods (a1e1553), closes #1236
- core: fix auto-joining with
$not
operator (8071fd0), closes #1537 - core: support operators in json property queries (cb5e715), closes #1487
- sqlite: ensure booleans are hydrated as booleans (4e36df2), closes #1553
- sqlite: fix calling
em.find()
from hooks (fec3285), closes #1503
Features
- cli: allow mikro-orm config to return Promise (#1495) (629aae9)
- core: add
Collection.matching()
method to allow pagination (#1502) (1ad3448), closes #334 - core: add close method to
CacheAdapter
interface (2795b5a), closes #1509 - core: allow updating nested 1:1 and m:1 references with EntityAssigner (#1535) (c1dd048)
- core: infer configuration from environment variables (#1498) (1ff07a7), closes #1472
- core: support custom types in embeddables (53305d3), closes #1519
- core: support embeddable arrays (#1496) (57b605c), closes #1369
- reflection: support enum arrays and custom types (dc65527), closes #1497
- validation: validate correct reference types (381b5b9), closes #1568
v4.4.4
4.4.4 (2021-02-21)
Bug Fixes
- cli: fix debug command with file globs (5ec60e2), closes #1465
- core: allow extending existing custom types (cc34d7e), closes #1442
- core: do not define dynamic id property if not needed (e13188f), closes #1444
- core: improve quoting of advanced custom types (cda3638)
Performance Improvements
v4.4.3
4.4.3 (2021-02-14)
Bug Fixes
- core: handle
convertToJSValueSQL
at QB level too (fbb2825), closes #1432 - core: ignore falsy values in
Collection.remove()
(3447039), closes #1408 - core: propagate custom join columns to inverse side (m:n) (3f0a7b2), closes #1429
- core: quote custom type aliases (#1415) (6f6d1ec)
- core: respect
mergeObjects
only for POJOs in assign helper (c5bbcee), closes #1406 - core: use generic comparison for object properties (e9073cf), closes #1395
v4.4.2
v4.4.1
4.4.1 (2021-02-01)
Bug Fixes
- core: alias pivot fields when loading m:n relations (56682be), closes #1346 #1349
- core: allow assigning null to embeddable property (#1356) (f3a091e)
- core: fix
eager
relations with joined loading strategy (ba94e28), closes #1352 - migrations: fix generation of empty migrations (#1362) (7ec9f30)
- sti: respect child types when querying for STI entity (df298a1), closes #1252
- typing: improve handling of array properties (9d82ffb), closes #1077
v4.4.0
4.4.0 (2021-01-24)
Bug Fixes
- core:
em.create()
should not mutate the input object (b83b211), closes #1294 - core: allow using
lazy
flag with formulas (4b2b5ce), closes #1229 - core: always make new entity snapshot (1dacf1e), closes #1334
- core: apply discriminator condition when loading STI entities (9c62370), closes #1252
- core: clear inverse references to removed entities (3a1d927), closes #1278
- core: fix creating entity graph from deeply nested structures (833d246), closes #1326
- core: fix custom types with joined loading strategy (f64e657), closes #1237
- core: fix nullable embeddables in object mode (bb8dbce), closes #1296
- core: fix pessimistic locking via
em.findOne()
(a0419a4), closes #1291 - core: improve custom sql expression detection (cf8c5cd), closes #1261
- core: make PK property of
Reference
required (5e1cf23) - core: respect context when working with filter params (97ed314), closes #1312
- core: support FK as PK in
Collection.getIdentifiers()
(#1225) (f8024c9), closes #1224 - entity-generator: emit collection name in decorator (#1338) (33574e8), closes #1328
- mongo: fix using custom field name on relations (44becca), closes #1279
- mysql: enforce 64 character limit for identifier names in SQL (#1297) (9c83b6d), closes #1271
- schema: fix index name with explicit schema (b62d9ec), closes #1215
- schema: fix renaming of multiple columns at the same time (677a2b7), closes #1262
- sql: sort fetch-joined properties on their orderBy (#1336) (f18cd88), closes #1331
Features
- core: add support for nested embedddables (#1311) (aee2abd), closes #1017
- core: add support for nested partial loading (#1306) (3878e6b), closes #221
- core: allow disabling identity map and change set tracking (#1307) (03da184), closes #1267
- core: allow using native private properties (fc35c22), closes #1226
- core: implement transaction lifecycle hooks (#1213) (0f81ff1), closes #1175
- core: support handling
Set
as array-like input (#1277) (2945b8c) - mysql: allow specifying collation globally (cd95572), closes #1012
- query-builder: add support for
onConflict()
(b97ecb5), closes #1240
Performance Improvements
- core: make
IdentityMap
iterable (e13757a)
Reverts
v4.3.4
4.3.4 (2020-12-11)
Bug Fixes
- core: hydrate embeddable scalar properties (#1192) (eb73093)
- core: validate overridden properties by embeddables (#1172) (6629a08), closes #1169
- knex: reject in
commit()
method if commit statement fails (#1177) (f3beb7f), closes #1176 - mariadb: fix transforming of raw results in
run
mode (417a4c9) - sql: ensure correct order of results when fetch joining (7453816), closes #1171
- sql: use
__
when aliasing fetch-joined properties (1479366), closes #1171
Features
- core: auto-discover base entities (33bda07)
v4.3.3
4.3.3 (2020-12-04)
Bug Fixes
- cli: print both
entities
andentitiesTs
in debug command (90b85e4), closes #1139 - core: fix em.create() with nested relations (dde119f), closes #1150
- core: fix populating 1:m where the owner uses
mapToPk
(85a7c9d), closes #1128 - core: fix propagating of changes to 1:m with
mapToPk
(b38df3e), closes #1128 - core: fix snapshotting of composite properties (b5f19f2), closes #1079
- schema: allow using const enums (e02ffea), closes #1096
- schema: fix diffing tables in other than default schema (429d832), closes #1142 #1143
- sql: allow no results in
em.count()
(bc3cdf6), closes #1135 - sqlite: fix querying by 1:1 relation with composite PK (0da6347), closes #1157
v4.3.2
4.3.2 (2020-11-24)
Bug Fixes
- core: disable propagation when
mapToPk
is used (6f6a204), closes #1124 - core: do not use custom toJSON when storing result cache (86ec3b3)
- core: fix comparison of object properties and bigints (2119a65), closes #1117
- core: fix computing changesets with reference as PK (5504436), closes #1111
- core: fix serialization of properties with same name (d4d9c48), closes #1115
- sql: allow using raw value for JSON prop with custom type (2a17c59), closes #1112
v4.3.1
4.3.1 (2020-11-20)
Bug Fixes
- core: assign embedded properties from class objects (#1087) (c2b4972), closes #1083
- core: do not interpolate escaped question marks (c54c2a2)
- core: rework unique property extra updates (bd19d03), closes #1025 #1084
- postgres: use
->>
to search in object embeddables (78c9373), closes #1091 - ts-morph: fix discovery of
IdentifiedReference
with ts-morph (d94bd91), closes #1088