Changelog
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
6.2.6 (2024-05-14)
Bug Fixes
- core: quote column name for the returning statement when using
convertToJSValueSQL
(4783945), closes #5563 - query-builder: don't remove joins used by other joins during pagination (#5566) (b05c434), closes #5565
- sqlite: fix mapping of joined results with
DateTimeType
properties (4001d2b), closes #5550
6.2.5 (2024-05-05)
Bug Fixes
- core: fix extra updates on embedded array properties (48fde11), closes #5530
- core: limit depth in custom
inspect
methods to get around debugging issues in vscode (f706c06), closes #5525 - query-builder: do not reset join conditions when paginating (0b851e5), closes #5538
- schema: skip extra columns in nested pivot entities (f34e4d7), closes #5276
6.2.4 (2024-05-02)
Note: Version bump only for package @mikro-orm/knex
6.2.3 (2024-04-24)
Bug Fixes
- core: ignore upsert with inlined embedded properties (7d2bed6), closes #5500
- query-builder: do not prune join branches when paginating and there are raw fragments in select clause (4d0fe15), closes #5490
6.2.2 (2024-04-20)
Bug Fixes
Features
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)
- 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
6.2.0 (2024-04-09)
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 TypeError when ordering by embedded populating properties (2c472ab), closes #5389
- 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: allow configuring
driverOptions
on replica level (05e81f8) - 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 viagetSingleResult()
orexecute('get')
(c2b22e8), closes #5379 - query-builder: add
qb.getLoggerContext()
andqb.setLoggerContext()
(779fa15), closes #5358 - schema: improve
orm.schema.execute()
to support executing batches (3c5a347) - schema: support recreating the whole database via
orm.schema.refreshDatabase()
(2e4ab49)
Performance Improvements
- query-builder: remove unnecessary join branches when pagination is applied (d228976)
6.1.12 (2024-03-24)
Bug Fixes
- core: fix inlining of
$and
conditions (8ddb3e4), closes #5368 - entity-generator: try to resolve errors for foreign keys without indexes (f2094ab), closes #5364