Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
v6.3.3
6.3.3 (2024-08-03)
Bug Fixes
- core: ensure
@CreateRequestContext()works when invoked from explicit transaction (de0b515) - core: fix unnecessary populate query when partial loading via joined strategy (33da574), closes #5889
- knex: update
PoolConfiginterface to match what knex supports (#5892) (eb5d4a1) - knex: use nested join for
populateWherecondition (#5893) (24e82c7), closes #5872 - query-builder: fix processing of nested condition when there is a collection in embedded field names (6bf635b), closes #5894
- reflection: respect
outDirwhen finding the source file in production build (fe54d45), closes #5536
Features
v6.3.2
v6.3.1
6.3.1 (2024-07-25)
Bug Fixes
- core: always check TS config files if TS support is detected (eb100fe), closes #5852
- core: discover base entities first to fix detection of STI when root entity not explicitly listed (7c1976f)
- core: fix CreateRequestContext not working with callback returning EntityManager (#5873) (3de546d), closes 1#L132
- mssql: do not escape charecters that don't need escaping (#5860) (6730978), closes mikro-orm#5811
- mssql: do not escape new line character (97919ce), closes #5811
- schema: skip db default inference only for polymorphic embeddables (925c69e), closes #5847
Features
v6.3.0
6.3.0 (2024-07-18)
https://mikro-orm.io/blog/mikro-orm-6-3-released
Bug Fixes
- cli: enforce
moduleResolution: 'nodenext'for CLI context (d5d7f38), closes #5514 - core: allow
em.transactionalhandler to be synchronous (#5696) (fd56714) - core: allow passing
nullto optional properties inem.create()(df0db99), closes #5827 - core: ensure correct identity when upserting without primary key (cdbab12), closes #5702
- core: ensure correct mapping of related columns to owning entity fields for complex relations (#5630) (302600e), closes #5629
- core: ensure correct mapping to native bigint in sqlite and mysql (a16b801), closes #5737
- core: fix auto flush mode for
em.count()(62db127) - core: fix auto flush mode for
em.findAndCount()(a572869) - core: fix batch update of nullable embedded arrays (c1ea284), closes #5723
- core: fix detection of constructor parameters with default object value (58e8c2a), closes #5710
- core: fix handling of pivot entities with M:N relations (fa89731), closes #5774
- core: fix handling of raw query key of where condition with
[]on right side (1e76509), closes #5825 - core: fix populating entity graph with cycles (6505510)
- core: fix processing of nullable embedded arrays (01612a1), closes #5715
- core: ignore existing contexts in
@CreateRequestContext()(1bb4e22), closes #5801 - core: improve handling of JSON properties to support numeric strings in all drivers (#5780) (fc50c5f), closes #5773
- core: make
raw()accept readonly params (#5832) (7f9daf7) - core: respect
populateoption inReference.loadfor loaded relations (04fb826), closes #5711 - core: respect
populateOrderBywithselect-instrategy (3b83d29), closes #5693 - core: respect nullability of wrapped types for ScalarReference's (#5722) (a1b8f07)
- core: respect parent property prefix when child has
prefix: false(94367b8), closes #5642 - core: support for TS 5.5 (2fd7359)
- core: support overloading embedded properties (#5784) (c57b528), closes #2987
- core: use
NonNullableinstead of the internalDefinedtype (8ef28c4) - core: use the same transaction context in
em.refresh()(dd17706), closes #5753 - core: using EntityData<Entity, true> now works with IType (#5810) (f339ef5)
- entity-generator: correctly serialize string prefixes in embedded references (#5826) (7882bca)
- entity-generator: fix handling of primary keys that are foreign keys or enums (#5673) (b10413f)
- entity-generator: fixed default values for enums (#5765) (58d914d)
- entity-generator: generate all bidirectional relations in case of conflicts (#5779) (af845f1), closes #5738
- entity-generator: include all entity options in EntitySchema definitions (#5674) (94ef44e)
- entity-generator: output all DB related info even for virtual properties (#5817) (845b75c)
- entity-generator: output entity and prop comments (#5699) (4ef21c4)
- entity-generator: support complex enum names and values (#5670) (7dcb7be)
- entity-generator: when using esmImport, FKs are now wrapped with Rel (#5771) (c28ab16)
- mssql: add proper support for MSSQL's native "varchar" type (#5685) (0b514ce)
- mssql: fix handling of non-UTC timezones (e78696c), closes #5695
- mssql: only escape strings and unicode strings when necessary (#5786) (b4e0914), closes #5811
- mysql: fix support for older MySQL versions than v8.0.13 when reading indexes (#5654) (3c4f665), closes #5653
- postgres: implement diffing support for
vectortype (9eadac1), closes #5739 - postgres: put new native enum values into the correct position (f79e3bc), closes #5791
- postgresql: ignore tables that use inheritance during schema diffing (#5648) ([55f452a](55...
v6.2.9
6.2.9 (2024-05-31)
Bug Fixes
- cli: use
module: 'nodenext'when registering ts-node (#5514) (8695524), closes #5427 - core: detect path from decorator for each class only once (#5545) (9af0e38)
- core: improve support for
clientUrlwith additional query parameters (1472705), closes #5608 - core: improve support for sharing columns in composite PK and FK (#5623) (7190879), closes #5622
- core: improve validation for missing
dbNamewhenclientUrlis provided (c21359e) - core: respect
ignoreNestedTransactionsfrom upper context (eab4df6), closes #5585 - core: use explicit
NoInfertype helper to support TS<5.4 (c38b366), closes #5613 - knex: explicitly declare all the extended drivers as optional peer dependencies (#5647) (64045ad)
- mssql: account for quotes in table names (#5637) (0343609)
- mssql: fix creating migrations due to a missing helper method (#5644) (90e27c2), closes #5633
- mssql: fix creating schema for migrations table (fe1be6f), closes #5644
- mssql: fix ensuring the database exists on older SQL Server versions (f0a5790), closes #5638
- postgres: respect
deferModeoption in 1:1 relations (#5641) (101c0a8) - reflection: detect complex runtime types and don't use them as column types (0c8a587), closes #5601
- reflection: support entities compiled by babel (#5628) (26f627e), closes #5610
- schema: fix diffing renamed indexes and columns when the names are not lowercase (4019dc3), closes #5617
- sql: implement batching of M:N collection update queries (d97979b), closes #5627
Features
- core: allow overriding the
--configargument name (8b304ab)
Performance Improvements
v6.2.8
6.2.8 (2024-05-21)
Bug Fixes
- cli: disable eager connection when creating the ORM instance (ef5d14a), closes #5030
- core: allow hydration of non persistent embedded properties (#5579) (e8c0c3f), closes #5578
- core: always use root entity when computing M:N field names with STI (568e57f), closes #5586
- core: map embedded constructor parameters (24f3ee6)
- postgres: support
lockTableAliaseswith explicit schema name in config (3fdb077), closes #5125 #5404 - schema: use
typeascolumnTypewhen no matching mapping found (cd7f85c), closes #5587 - sql: respect
timezonewhen mapping joined properties toDate(7f9bb0b), closes #5577
v6.2.7
6.2.7 (2024-05-18)
Bug Fixes
v6.2.6
6.2.6 (2024-05-14)
Bug Fixes
- core: fix mapping of
Dateproperties frombigintvalues (05c802b), closes #5540 - core: quote column name for the returning statement when using
convertToJSValueSQL(4783945), closes #5563 - core: respect
runtimeTypeoverride with reflect-metadata provider (f1c9740) - query-builder: don't remove joins used by other joins during pagination (#5566) (b05c434), closes #5565
- reflection: allow inference of
Ref<boolean> & Opt(534f088), closes #5557 - sqlite: fix mapping of joined results with
DateTimeTypeproperties (4001d2b), closes #5550
v6.2.5
6.2.5 (2024-05-05)
Bug Fixes
- core: fix extra updates on embedded array properties (48fde11), closes #5530
- core: fix hydration of relations with custom types via joined strategy (07f10c8), closes #5518
- core: improve support for mapping
DecimalTypetonumber(5a3e30e) - core: limit depth in custom
inspectmethods to get around debugging issues in vscode (f706c06), closes #5525 - core: support path detection from decorators in bun (6683bcc), closes #5496
- mongo: support cursor pagination on
Dateproperties (4281320), closes #5496 - mysql: infer unsigned value for FKs based on the target PK (b7ae145), closes #5485
- query-builder: do not reset join conditions when paginating (0b851e5), closes #5538
- schema: skip extra columns in nested pivot entities (f34e4d7), closes #5276
Features
- core: allow specifying the
runtimeTypeexplicitly (e9c0c07)
v6.2.4
6.2.4 (2024-05-02)
Bug Fixes
- core: do not issue extra updates when there are no matching changesets (03934d0), closes #5510
- core: fix extra updates with
forceEntityConstructorand JSON properties (5ef57b6), closes #5499 - core: keep transaction context when forking for
disableIdentityMap(ed88a02), closes #5527 - core: keep transaction context when forking for
disableIdentityMap(8d4fe98), closes #5528 - core: support
onCreatewithScalarReferenceproperties (09e5ca8), closes #5506