Skip to content

Releases: mikro-orm/mikro-orm

v6.2.8

21 May 20:50
Compare
Choose a tag to compare

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 lockTableAliases with explicit schema name in config (3fdb077), closes #5125 #5404
  • schema: use type as columnType when no matching mapping found (cd7f85c), closes #5587
  • sql: respect timezone when mapping joined properties to Date (7f9bb0b), closes #5577

v6.2.7

18 May 10:25
Compare
Choose a tag to compare

6.2.7 (2024-05-18)

Bug Fixes

  • core: fix ordering by joined embedded object properties (cbd7c3e), closes #5560
  • mongo: ensure JSON values are properly diffed (577166a), closes #5572
  • query-builder: improve handling of nested $and/$or queries (567d65a)
  • schema: revert the dbName after dropping the database (725f7e9), closes #5583

v6.2.6

14 May 19:48
Compare
Choose a tag to compare

6.2.6 (2024-05-14)

Bug Fixes

  • core: fix mapping of Date properties from bigint values (05c802b), closes #5540
  • core: quote column name for the returning statement when using convertToJSValueSQL (4783945), closes #5563
  • core: respect runtimeType override 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 DateTimeType properties (4001d2b), closes #5550

v6.2.5

05 May 19:25
Compare
Choose a tag to compare

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 DecimalType to number (5a3e30e)
  • core: limit depth in custom inspect methods 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 Date properties (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 runtimeType explicitly (e9c0c07)

v6.2.4

02 May 08:10
Compare
Choose a tag to compare

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 forceEntityConstructor and 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 onCreate with ScalarReference properties (09e5ca8), closes #5506

v6.2.3

24 Apr 21:43
Compare
Choose a tag to compare

6.2.3 (2024-04-24)

Bug Fixes

  • core: fix handling of first/last: 0 with cursor-based pagination (508389e), closes #5501
  • core: ignore upsert with inlined embedded properties (7d2bed6), closes #5500
  • migrations: fix reading migration snapshot (096dcee), closes #5497
  • query-builder: do not prune join branches when paginating and there are raw fragments in select clause (4d0fe15), closes #5490

v6.2.2

20 Apr 16:29
Compare
Choose a tag to compare

6.2.2 (2024-04-20)

Bug Fixes

  • core: do not enforce require() when running via ts-jest or on JSON imports (7e8409b), closes #5461
  • core: fix folder-based discovery for multiple entities in single file (#5464) (d64be7e)
  • core: ignore serialization options when using toPOJO() (#5481) (46d6eb4), closes #5479
  • migrator: store snapshot only after migration is generated (#5470) (65ec57c)
  • mssql: declare import types explicitly (02494bf), closes #5462
  • mysql: fix reading auto_increment_increment value (1da88af), closes #5460
  • postgres: support wildcard native enums (e183de3), closes #5456

Features

  • entity-generator: extend filtering options for EntityGenerator (#5473) (0894ac9), closes #5469
  • query-builder: allow returning promise from virtual entity expression (ee98412), closes #5475

v6.2.1

12 Apr 19:04
Compare
Choose a tag to compare

6.2.1 (2024-04-12)

Bug Fixes

  • core: skip 1:1 owner auto-joins for lazy properties (6442e57)
  • knex: rework postgres and mysql dialect imports to fix compilation errors (ffdca15)
  • mssql: support instance names in host (dc7dc4c), closes #5441
  • query-builder: do not ignore unmatching partial loading hints in qb.joinAndSelect (ccdf018), closes #5445
  • query-builder: fix partial loading via qb.joinAndSelect with explicit aliasing (da68503), closes #5445
  • query-builder: generate join on condition for subquery joins with known property name (3dfbbde), closes #5445
  • query-builder: respect collection property where conditions (declarative partial loading) (3b4fc41), closes #5445

v6.2.0

09 Apr 18:13
Compare
Choose a tag to compare

6.2.0 (2024-04-09)

https://mikro-orm.io/blog/mikro-orm-6-2-released

Bug Fixes

  • core: do not select 1:1 owning FK twice (fa69276)
  • core: fix querying by embedded properties inside relations (2e74699), closes #5391
  • core: fix support for custom repositories in @CreateRequestContext on type level (aacac83)
  • core: fix TypeError when ordering by embedded populating properties (2c472ab), closes #5389
  • core: ignore current context when creating repository instance (4c12fc5), closes #5395
  • core: prefer entity type inference from the first parameter of entity manager methods (523963b)
  • core: respect custom EntityManager type in em.fork() (bb1a3f9), closes #5415
  • core: support passing Configuration instance to MikroORM.init (54a37d0), closes #5413
  • entity-generator: allow arbitrary class and prop names as identifiers (#5359) (b0c0236)
  • mariadb: rework pagination mechanism to fix extra results (a57cb19)
  • mysql: support order by nulls first/last for raw query fragments in order by keys (a2a8f0d)
  • postgres: drop text enum check constraints only when necessary (#5414) (5162345), closes #4112
  • postgres: removed erroneous duplicates in FK discovery query (#5376) (eec2b38)
  • query-builder: fix serialization hint of nested qb.joinAndSelect() calls (c2843b9)
  • schema: improve detection of renamed columns (4d13c58)
  • schema: rework dropping columns to support custom schemas and merge drop column queries (255f425)

Features

  • core: add support for serialization groups (#5416) (818c290)
  • core: allow better type-safety for custom types via IType (#5383) (0e18346)
  • core: allow configuring driverOptions on replica level (05e81f8)
  • core: include all dirty collections to UoW.getCollectionUpdates() (e7bd66f)
  • core: make assign options configurable globally (bc9f6f5), closes #5410
  • libsql: add libSQL driver (#5417) (6c63e4b), closes #5283
  • mssql: add MS SQL Server driver (#1375) (eeaad45), closes #771
  • postgres: allow defining deferred FK constraints (#5384) (f42d171), closes #5306
  • query-builder: add limit 1 when executing query via getSingleResult() or execute('get') (c2b22e8), closes #5379
  • query-builder: add qb.getLoggerContext() and qb.setLoggerContext() (779fa15), closes #5358
  • schema: allow configuring updateRule and deleteRule for pivot tables (cc69c3c)
  • schema: improve orm.schema.execute() to support executing batches (3c5a347)
  • schema: support recreating the whole database via orm.schema.refreshDatabase() (2e4ab49)

Performance Improvements

  • core: optimize metadata discovery (c322f9b)
  • query-builder: remove unnecessary join branches when pagination is applied (d228976)

v6.1.12

24 Mar 11:35
Compare
Choose a tag to compare

6.1.12 (2024-03-24)

Bug Fixes

  • core: fix assignability of partially loaded entities (9de4965), closes #5374
  • core: fix inlining of $and conditions (8ddb3e4), closes #5368
  • entity-generator: try to resolve errors for foreign keys without indexes (f2094ab), closes #5364
  • postgres: fix query for loading all foreign keys from existing schema (2eb85d5), closes #5364
  • reflection: fallback to not proving path to tsconfig if not found (a24d80d)

Features

  • cli: add reason for failed connection check in debug command (d61e248)
  • core: allow passing EntityManager or EntityRepository to @CreateRequestContext decorator (184cdd4)
  • postgres: add ?, ?| and ?& json operators (#5366) (6418872), closes #4678

Performance Improvements

  • postgres: try to optimize loading of foreign keys (2dff96b), closes #5364