Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
v6.3.13
6.3.13 (2024-10-06)
Bug Fixes
- core: add child
SerializeOptionsto customserializerparameters (dbfddce), closes #5968 - core: fix partial loading on to-many relations (224613f), closes #6097
- core: fix same-second dates diffing (#6094) (cd7ce82)
- core: fix validation for not discovered entity trigger from
Collectionaccess (4834920) - core: ignore non-persisted properties on embeddables (#6107) (e688694), closes #6105
- core: respect joined filters on
em.count()(#6115) (4f0bde5) - core: revert making the
$and/$orarraysreadonly(0e0667c), closes #6085 - postgres: improve schema diffing for native enums with explicit schema (#6114) (fa537b1), closes #6101
- query-builder: fix support for update/delete with nested where conditions (3a451e1), closes #6103
- query-builder: improve intellisense on several QB methods (32113b0)
- query-builder: use the correct PK field name for inserts without explicit values (8706f04)
Features
- core: improve error message when only abstract entities are discovered (3835e40)
Performance Improvements
- core: simplify lookup of returned values from batch updates (6caa82a)
v6.3.12
6.3.12 (2024-10-01)
Bug Fixes
- core: accept
readonlyarrays in operator where conditions (#6085) (1ab24fe) - core: prevent conversion of
manyentities inoneToManyfromextractConstructorParams(#6093) (8ba8d7a), closes #6092 - mongo: ensure
Dateproperties are correctly cloned and persisted (8d81985), closes #6078 - mongo: fix persisting objects like
ObjectIDin JSON properties (#6091) (c28f06f), closes (#6050) - mongo: fix populating lazy M:N owning sides (f7e90cb), closes #6079
- query-builder: ensure cached
execute('get')returns a single result instead of an array (#6084) (d2da8d0), closes #6083 - query-builder: ensure correct return type for
qb.execute()(f48e544), closes #6089
v6.3.11
6.3.11 (2024-09-26)
Bug Fixes
- core: fix diffing of object properties (55df57f), closes #6050
- core: fix partial loading with
*on joined strategy (1f0dbd4), closes #6045 - core: properly detect when Windows imports need patching (#6035) (a6c4dea)
- core: skip extra query when loading inverse side of 1:1 relation with a filter (ccf099f)
- core: support atomic updates on properties with custom types (951284b), closes #6030
- core: support multi update on mixed STI entities (e1deb0d), closes #6069
- migrations: use ORM logger and respect
loggerFactory(e845c26), closes #6039 - postgres: improve timezone handling for negative timezone offsets (52a503c)
- postgres: set max identifier length to 63 characters (5b866fa), closes #6042
- schema: ensure
CREATE TABLEDDL fortinyint/smallint/mediumintprimary keys (#6065) (e2738cc) - schema: ensure
unsigned: falseworks for primary keys (#6063) (f14a6b4), closes #6057 - schema: resolve missing auto_increment for PK in
MySQL/MariaDBupdate DDL (#6073) (984758f), closes #6072
Features
- core: load root entities via
em.populate()(b7c3f69), closes #6032 - mongo: improve error logging for
ensureIndexes(faa2a00), closes #4486
Performance Improvements
- core: reduce nesting of
toPOJO()serializer (4b263f3)
v6.3.10
6.3.10 (2024-09-15)
Bug Fixes
- core: allow accessing PK props on
Refproperties with partial loading (32d588d) - core: fix dynamic imports on Windows (#6020) (e697ec2)
- core: fix mapping of version properties from batch updates (ec521c9), closes #6016 #6022
- core: respect context name in
@EnsureRequestContext()(4574831) - core: support dynamic discovery via
EntitySchema(3fde7d4), closes #6026 - migrations: support multiline strings in
addSql()(#6017) (bc14925), closes #6015 - mongo: support partial loading of M:N owning sides (#6027) (e53a7d9)
v6.3.9
6.3.9 (2024-09-09)
Bug Fixes
- core: allow proper select with embedded many to many (#5997) (8b30ae2), closes #5992
- core: fix expansion of array conditions to
$inoperator for raw values (59c627e) - core: fix hydration of datetime when provided a ISO string value via
em.create()(2992046) - core: implement joined filters via
populateFilteroption, separately frompopulateWhere(#6003) (9d0a022), closes #5893 - mongo: allow ordering by object embedded properties (2a9ffa3), closes #6002
- postgres: fix casting of JSON values when used with
$inoperator (840d3cd), closes #6000 - postgres: fix diffing vector columns without length (2f7a7fb), closes #6008
v6.3.8
6.3.8 (2024-09-04)
Bug Fixes
- core: check proptotype chain while cloning (#5979) (d5eeee5)
- core: fix populating lazy scalar properties inside embeddables (ffcd0e0), closes #5956
- core: improve support for embeddables in
em.upsert()(78dbeed), closes #5969 - core: infer runtime type based on
new Date()property initializer (ed0560b) - core: support collection operators with non-standard primary keys (171793f), closes #5989
- postgres: fix parsing of
timestamptzvalues with negative timezone (8ccc925) - schema: change default of
disableForeignKeysto false (#5993) (8a8aa2d)
v6.3.7
6.3.7 (2024-08-28)
Bug Fixes
- core: don't double encode JSON properties inside object/array embeddables (f3321f9), closes #5963
- core: fix hydration of collections with
forceEntityConstructorenabled (d4d8506), closes #5972 - core: provide entity instance in object constructor params for m:1/1:1 properties (fe2d129)
- core: respect context in EM transaction methods (8912185)
- core: respect entity level
forceConstructoroption (c642a49) - query-builder: ensure the correct order of parameters when handing nested joins (10a858d), closes #5955
- sql: correct cursor conditions application on virtual entities (#5973) (fc782d3)
v6.3.6
6.3.6 (2024-08-14)
Bug Fixes
- core: ensure other conditions do not override collection operator conditions (97cdc9d)
- core: fix hydration of polymorphic embeddables with overlapping property names (ab5c595), closes #5935
- postgres: do not cast
jsoncolumns totext(574390b), closes #5936 - schema: recreate FKs when changing column type (8797c64)
v6.3.5
6.3.5 (2024-08-11)
Bug Fixes
- core: track changes on non-scalar properties (a02c727), closes #5750
- entity-generator: ensure
columnTypeis emitted correctly and when necessary (#5930) (72333ad), closes #5928 - entity-generator: fix the search for FK indexes to only match exact columns, not "at least" (#5924) (05a8808), closes #5912
- entity-generator: unknown type defaults always use default/defaultRaw, never runtime (#5927) (dcc8227)
- postgres: allow string value for
$overlap/$contains/$containedoperators (6c1b12a) - postgres: detect native enums with same name but different schema (31735e5), closes #5905
- postgres: do not produce extra updates for fulltext properties (d18e5ed), closes #5908
- postgres: respect
timezoneoption and interprettimestampcolumns in UTC by default (#5916) (1da0722), closes #5591 - sql: support cursor-based pagination on virtual entities (b86799c), closes #5922
Features
v6.3.4
6.3.4 (2024-08-06)
Bug Fixes
- core: adjust collection owner's serialization context when lazy-loading (#5903) (57f234b), closes #5559
- core: do not convert bigints with mapping to
numbertostringon serialization (ee24f1f), closes #5839 - core: fix populating lazy properties inside inlined embeddables (8d1e925), closes #5848
- core: merge enum items from STI entities with the same name (06fffbd), closes #5807
- migrations: use
overridekeyword in TS migration files (d2f7b83), closes #5634 - mssql: convert tuple comparison queries to simple
and/orconditions (#5906) (c3c3519) - query-builder: do not return itself from
qb.applyFilters()(6be2603) - schema: respect check constraints from base entities (22b7e97)
- sqlite: allow tuple comparison (3caa50a)