midwayjs / midway

🍔 A Node.js Serverless Framework for front-end/full-stack developers. Build the application for next decade. Works on AWS, Alibaba Cloud, Tencent Cloud and traditional VM/Container. Super easy integrate with React and Vue. 🌈
https://www.midwayjs.org/
MIT License
7.37k stars 574 forks source link

chore(deps): update mikro-orm monorepo to v6.3.0 #3957

Closed renovate[bot] closed 3 months ago

renovate[bot] commented 3 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@mikro-orm/core (source) 6.2.9 -> 6.3.0 age adoption passing confidence
@mikro-orm/entity-generator (source) 6.2.9 -> 6.3.0 age adoption passing confidence
@mikro-orm/sqlite (source) 6.2.9 -> 6.3.0 age adoption passing confidence

Release Notes

mikro-orm/mikro-orm (@​mikro-orm/core) ### [`v6.3.0`](https://togithub.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#630-2024-07-18) [Compare Source](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.9...v6.3.0) ##### Bug Fixes - **cli:** enforce `moduleResolution: 'nodenext'` for CLI context ([d5d7f38](https://togithub.com/mikro-orm/mikro-orm/commit/d5d7f381363ab776b3c3af04a925a5547dbcdb65)), closes [#​5514](https://togithub.com/mikro-orm/mikro-orm/issues/5514) - **core:** allow `em.transactional` handler to be synchronous ([#​5696](https://togithub.com/mikro-orm/mikro-orm/issues/5696)) ([fd56714](https://togithub.com/mikro-orm/mikro-orm/commit/fd56714e06e39c2724a3193b8b07279b8fb6c91f)), closes [/mikro-orm.io/docs/transactions#approach-2](https://togithub.com//mikro-orm.io/docs/transactions/issues/approach-2) - **core:** allow passing `null` to optional properties in `em.create()` ([df0db99](https://togithub.com/mikro-orm/mikro-orm/commit/df0db996aad03a1ad98bf4c45dbb4832cd50a1d8)), closes [#​5827](https://togithub.com/mikro-orm/mikro-orm/issues/5827) - **core:** ensure correct identity when upserting without primary key ([cdbab12](https://togithub.com/mikro-orm/mikro-orm/commit/cdbab12977cd9b6709442bb4b0838326b2501e98)), closes [#​5702](https://togithub.com/mikro-orm/mikro-orm/issues/5702) - **core:** ensure correct mapping of related columns to owning entity fields for complex relations ([#​5630](https://togithub.com/mikro-orm/mikro-orm/issues/5630)) ([302600e](https://togithub.com/mikro-orm/mikro-orm/commit/302600e1fe670b562fa926c7239451a510808b24)), closes [#​5629](https://togithub.com/mikro-orm/mikro-orm/issues/5629) - **core:** ensure correct mapping to native bigint in sqlite and mysql ([a16b801](https://togithub.com/mikro-orm/mikro-orm/commit/a16b801f1f4ed8bfa01cf236a25c391c70a3cbba)), closes [#​5737](https://togithub.com/mikro-orm/mikro-orm/issues/5737) - **core:** fix auto flush mode for `em.count()` ([62db127](https://togithub.com/mikro-orm/mikro-orm/commit/62db127f343f366d7aca5293aa718ca63d265369)) - **core:** fix auto flush mode for `em.findAndCount()` ([a572869](https://togithub.com/mikro-orm/mikro-orm/commit/a572869316660d26645d04f748cdf653b0989924)) - **core:** fix batch update of nullable embedded arrays ([c1ea284](https://togithub.com/mikro-orm/mikro-orm/commit/c1ea284bb78f16b56278cd4a4b219516fc9681e7)), closes [#​5723](https://togithub.com/mikro-orm/mikro-orm/issues/5723) - **core:** fix detection of constructor parameters with default object value ([58e8c2a](https://togithub.com/mikro-orm/mikro-orm/commit/58e8c2afea24dbd45428b83343e6a344a6ae302d)), closes [#​5710](https://togithub.com/mikro-orm/mikro-orm/issues/5710) - **core:** fix handling of pivot entities with M:N relations ([fa89731](https://togithub.com/mikro-orm/mikro-orm/commit/fa8973166373b45ceeebeb9279786498ce24362e)), closes [#​5774](https://togithub.com/mikro-orm/mikro-orm/issues/5774) - **core:** fix handling of raw query key of where condition with `[]` on right side ([1e76509](https://togithub.com/mikro-orm/mikro-orm/commit/1e76509792d4f1b0172c77b2d6204b283d101cc2)), closes [#​5825](https://togithub.com/mikro-orm/mikro-orm/issues/5825) - **core:** fix populating entity graph with cycles ([6505510](https://togithub.com/mikro-orm/mikro-orm/commit/6505510f56cab1b2f09edb02e488782ef160ebd7)) - **core:** fix processing of nullable embedded arrays ([01612a1](https://togithub.com/mikro-orm/mikro-orm/commit/01612a15b3dee19fc603c8fcc7f65d4c4948e5a2)), closes [#​5715](https://togithub.com/mikro-orm/mikro-orm/issues/5715) - **core:** ignore existing contexts in `@CreateRequestContext()` ([1bb4e22](https://togithub.com/mikro-orm/mikro-orm/commit/1bb4e22e17537600ef7f10f02aa638c3b9ce609e)), closes [#​5801](https://togithub.com/mikro-orm/mikro-orm/issues/5801) - **core:** improve handling of JSON properties to support numeric strings in all drivers ([#​5780](https://togithub.com/mikro-orm/mikro-orm/issues/5780)) ([fc50c5f](https://togithub.com/mikro-orm/mikro-orm/commit/fc50c5f5f28f0764115631900edac24bc734afa4)), closes [#​5773](https://togithub.com/mikro-orm/mikro-orm/issues/5773) - **core:** make `raw()` accept readonly params ([#​5832](https://togithub.com/mikro-orm/mikro-orm/issues/5832)) ([7f9daf7](https://togithub.com/mikro-orm/mikro-orm/commit/7f9daf76907b1832a52caf9b909516746bfe9c4d)) - **core:** respect `populate` option in `Reference.load` for loaded relations ([04fb826](https://togithub.com/mikro-orm/mikro-orm/commit/04fb826ba96426eb700284d923887594f3f7f09e)), closes [#​5711](https://togithub.com/mikro-orm/mikro-orm/issues/5711) - **core:** respect `populateOrderBy` with `select-in` strategy ([3b83d29](https://togithub.com/mikro-orm/mikro-orm/commit/3b83d29783266e86e711440ad8f9725710ca205d)), closes [#​5693](https://togithub.com/mikro-orm/mikro-orm/issues/5693) - **core:** respect nullability of wrapped types for ScalarReference's ([#​5722](https://togithub.com/mikro-orm/mikro-orm/issues/5722)) ([a1b8f07](https://togithub.com/mikro-orm/mikro-orm/commit/a1b8f075e6c71d45e764cc9342058d3bfd2d2406)) - **core:** respect parent property prefix when child has `prefix: false` ([94367b8](https://togithub.com/mikro-orm/mikro-orm/commit/94367b80543a0efdd8225b897a2255f976bbe2cc)), closes [#​5642](https://togithub.com/mikro-orm/mikro-orm/issues/5642) - **core:** support for TS 5.5 ([2fd7359](https://togithub.com/mikro-orm/mikro-orm/commit/2fd7359467ed2e5d8409b342a4bc2b2d52a1bb7c)) - **core:** support overloading embedded properties ([#​5784](https://togithub.com/mikro-orm/mikro-orm/issues/5784)) ([c57b528](https://togithub.com/mikro-orm/mikro-orm/commit/c57b528645042876d71d5816156679a31bdbf215)), closes [#​2987](https://togithub.com/mikro-orm/mikro-orm/issues/2987) - **core:** use `NonNullable` instead of the internal `Defined` type ([8ef28c4](https://togithub.com/mikro-orm/mikro-orm/commit/8ef28c4f34eacce23a5958be9e04d6f3bdcb1029)) - **core:** use the same transaction context in `em.refresh()` ([dd17706](https://togithub.com/mikro-orm/mikro-orm/commit/dd177066d61f9d2ca6c9a7fc9611d8a5477487dc)), closes [#​5753](https://togithub.com/mikro-orm/mikro-orm/issues/5753) - **core:** using EntityData\ now works with IType ([#​5810](https://togithub.com/mikro-orm/mikro-orm/issues/5810)) ([f339ef5](https://togithub.com/mikro-orm/mikro-orm/commit/f339ef561285576a032bb12c1236bbe77888bce0)) - **entity-generator:** correctly serialize string prefixes in embedded references ([#​5826](https://togithub.com/mikro-orm/mikro-orm/issues/5826)) ([7882bca](https://togithub.com/mikro-orm/mikro-orm/commit/7882bca1f029f331ea4af4e52e7f76c02ede0c84)) - **entity-generator:** fix handling of primary keys that are foreign keys or enums ([#​5673](https://togithub.com/mikro-orm/mikro-orm/issues/5673)) ([b10413f](https://togithub.com/mikro-orm/mikro-orm/commit/b10413f3b1b5548118b02aa90e39bb69d8473d4f)) - **entity-generator:** fixed default values for enums ([#​5765](https://togithub.com/mikro-orm/mikro-orm/issues/5765)) ([58d914d](https://togithub.com/mikro-orm/mikro-orm/commit/58d914db32c8a06727fd9087bbcc4fda1117d086)) - **entity-generator:** generate all bidirectional relations in case of conflicts ([#​5779](https://togithub.com/mikro-orm/mikro-orm/issues/5779)) ([af845f1](https://togithub.com/mikro-orm/mikro-orm/commit/af845f1aee8b8925498b2bb53fbf74e522efc2cc)), closes [#​5738](https://togithub.com/mikro-orm/mikro-orm/issues/5738) - **entity-generator:** include all entity options in EntitySchema definitions ([#​5674](https://togithub.com/mikro-orm/mikro-orm/issues/5674)) ([94ef44e](https://togithub.com/mikro-orm/mikro-orm/commit/94ef44e28aa3420e0ba2f83d9f6830dcb3e56302)) - **entity-generator:** output all DB related info even for virtual properties ([#​5817](https://togithub.com/mikro-orm/mikro-orm/issues/5817)) ([845b75c](https://togithub.com/mikro-orm/mikro-orm/commit/845b75ce3b23fc9957edd4db0a19774ca648fdf5)) - **entity-generator:** output entity and prop comments ([#​5699](https://togithub.com/mikro-orm/mikro-orm/issues/5699)) ([4ef21c4](https://togithub.com/mikro-orm/mikro-orm/commit/4ef21c4388c488fdb4db1f159f0d8250fd620fc6)) - **entity-generator:** support complex enum names and values ([#​5670](https://togithub.com/mikro-orm/mikro-orm/issues/5670)) ([7dcb7be](https://togithub.com/mikro-orm/mikro-orm/commit/7dcb7beff1a74606831f073549b530ba0e1bb7a1)) - **entity-generator:** when using esmImport, FKs are now wrapped with Rel ([#​5771](https://togithub.com/mikro-orm/mikro-orm/issues/5771)) ([c28ab16](https://togithub.com/mikro-orm/mikro-orm/commit/c28ab16810bb62aa6dd20dd8442eef902cd68a4d)) - **mssql:** add proper support for MSSQL's native "varchar" type ([#​5685](https://togithub.com/mikro-orm/mikro-orm/issues/5685)) ([0b514ce](https://togithub.com/mikro-orm/mikro-orm/commit/0b514ce7378df21ef414027f993267f2ecbe681a)) - **mssql:** fix handling of non-UTC timezones ([e78696c](https://togithub.com/mikro-orm/mikro-orm/commit/e78696c548e14be3e00ba5595697816db4c9dd52)), closes [#​5695](https://togithub.com/mikro-orm/mikro-orm/issues/5695) - **mssql:** only escape strings and unicode strings when necessary ([#​5786](https://togithub.com/mikro-orm/mikro-orm/issues/5786)) ([b4e0914](https://togithub.com/mikro-orm/mikro-orm/commit/b4e0914772356285bcbb9362a4df2044438b4cd7)), closes [#​5811](https://togithub.com/mikro-orm/mikro-orm/issues/5811) - **mysql:** fix support for older MySQL versions than v8.0.13 when reading indexes ([#​5654](https://togithub.com/mikro-orm/mikro-orm/issues/5654)) ([3c4f665](https://togithub.com/mikro-orm/mikro-orm/commit/3c4f6658d05d2b71c79ba672e1f20c44f43da1f2)), closes [#​5653](https://togithub.com/mikro-orm/mikro-orm/issues/5653) - **postgres:** implement diffing support for `vector` type ([9eadac1](https://togithub.com/mikro-orm/mikro-orm/commit/9eadac187eb92d6ef098a0552e2c94967ebf2a60)), closes [#​5739](https://togithub.com/mikro-orm/mikro-orm/issues/5739) - **postgres:** put new native enum values into the correct position ([f79e3bc](https://togithub.com/mikro-orm/mikro-orm/commit/f79e3bc9063ce34e6fc5ad1c3a9abc3630c1cabe)), closes [#​5791](https://togithub.com/mikro-orm/mikro-orm/issues/5791) - **postgresql:** ignore tables that use inheritance during schema diffing ([#​5648](https://togithub.com/mikro-orm/mikro-orm/issues/5648)) ([55f452a](https://togithub.com/mikro-orm/mikro-orm/commit/55f452a7d9061d04244178f87b21df3e0d32f6f4)) - **postgres:** respect empty string in enum items ([c02f12e](https://togithub.com/mikro-orm/mikro-orm/commit/c02f12e3d835101041fe62a92fd32908d346b789)), closes [#​5751](https://togithub.com/mikro-orm/mikro-orm/issues/5751) - **postgres:** support enum arrays with special characters ([54b30cb](https://togithub.com/mikro-orm/mikro-orm/commit/54b30cb8e043cd9cc5d960a609363cc7d5c4ba5a)), closes [#​5781](https://togithub.com/mikro-orm/mikro-orm/issues/5781) - **query-builder:** don't use alias in more complex queries when not needed ([#​5679](https://togithub.com/mikro-orm/mikro-orm/issues/5679)) ([ad347e7](https://togithub.com/mikro-orm/mikro-orm/commit/ad347e797a48aef8f91c66ddf67dcf9b3332ed75)), closes [#​5676](https://togithub.com/mikro-orm/mikro-orm/issues/5676) - **query-builder:** interpolate raw query params early to ensure the correct binding position ([9bd0fe9](https://togithub.com/mikro-orm/mikro-orm/commit/9bd0fe90c0649d0342de5eca7c19fc48de9ba65f)), closes [#​5706](https://togithub.com/mikro-orm/mikro-orm/issues/5706) - **query-builder:** process raw query fragments under operator value ([98510a3](https://togithub.com/mikro-orm/mikro-orm/commit/98510a357590c734e185be939d0e0a30c8e2a41c)), closes [#​5724](https://togithub.com/mikro-orm/mikro-orm/issues/5724) - **query-builder:** quote alias in formulas when joining virtual relations ([68b64ec](https://togithub.com/mikro-orm/mikro-orm/commit/68b64ece8f61acbe33bee347c06108bc959b1caa)), closes [#​5705](https://togithub.com/mikro-orm/mikro-orm/issues/5705) - **query-builder:** skip inner select for properties that map to a raw query fragment during pagination ([1c5154a](https://togithub.com/mikro-orm/mikro-orm/commit/1c5154ab389ff9daff38f61f9e407969a5de6f83)), closes [#​5709](https://togithub.com/mikro-orm/mikro-orm/issues/5709) - **schema:** always prefer index/unique expression ([96dff53](https://togithub.com/mikro-orm/mikro-orm/commit/96dff537486359d968bb4da5e0e8d73ccdd89ad9)), closes [#​5668](https://togithub.com/mikro-orm/mikro-orm/issues/5668) - **schema:** do not drop FKs in down migrations when they are disabled ([0dcfa80](https://togithub.com/mikro-orm/mikro-orm/commit/0dcfa800528700799bb07971e25b09063a1563eb)), closes [#​4993](https://togithub.com/mikro-orm/mikro-orm/issues/4993) - **schema:** skip implicit FK index when defined explicitly by user on entity level ([ff6bfdc](https://togithub.com/mikro-orm/mikro-orm/commit/ff6bfdcf6e89b68875cf7f5c6a02a915344f6de5)), closes [#​5725](https://togithub.com/mikro-orm/mikro-orm/issues/5725) - **sql:** fix ordering by m:1 and 1:1 relations with joined strategy ([28119c6](https://togithub.com/mikro-orm/mikro-orm/commit/28119c649c61f070fbe396c4a879f9d071d9aabd)) - **sql:** ignore generated columns when computing changesets ([55dfbf9](https://togithub.com/mikro-orm/mikro-orm/commit/55dfbf900911f32068096e412191d2d25415ed80)), closes [#​5660](https://togithub.com/mikro-orm/mikro-orm/issues/5660) - **sqlite:** fix altering tables via malformed temp table ([#​5683](https://togithub.com/mikro-orm/mikro-orm/issues/5683)) ([1b9087c](https://togithub.com/mikro-orm/mikro-orm/commit/1b9087ce3a0002d41a6722e22ad789cc67f9d362)), closes [#​5672](https://togithub.com/mikro-orm/mikro-orm/issues/5672) - **sql:** rework detection of problematic batch updates and split more aggressively ([b045033](https://togithub.com/mikro-orm/mikro-orm/commit/b0450338f16bda43f986f07715d2e51516ac580b)), closes [#​5656](https://togithub.com/mikro-orm/mikro-orm/issues/5656) ##### Features - **cli:** always check TS files regardless of `useTsNode` ([#​5650](https://togithub.com/mikro-orm/mikro-orm/issues/5650)) ([7c34416](https://togithub.com/mikro-orm/mikro-orm/commit/7c34416d61d5c2d3e63dbb7725774e04e6de604d)) - **core:** addz `Platform.getDefaultVarcharLength` and optional `Type.getDefaultLength` ([#​5749](https://togithub.com/mikro-orm/mikro-orm/issues/5749)) ([29dcdeb](https://togithub.com/mikro-orm/mikro-orm/commit/29dcdeb5e4c3f84e43c154fe3eb81a113c6d1470)) - **core:** allow passing `raw()` into `onConflictFields` of upsert methods ([#​5691](https://togithub.com/mikro-orm/mikro-orm/issues/5691)) ([bff90f2](https://togithub.com/mikro-orm/mikro-orm/commit/bff90f2353a411a7cb0c6d838da12118147cef21)), closes [#​5668](https://togithub.com/mikro-orm/mikro-orm/issues/5668) - **core:** allow upserting without a unique value ([#​5726](https://togithub.com/mikro-orm/mikro-orm/issues/5726)) ([75a4706](https://togithub.com/mikro-orm/mikro-orm/commit/75a470629c9eb7aaa25415cd54dc1b4148f2ac97)) - **core:** check for ORM extensions dynamically ([#​5651](https://togithub.com/mikro-orm/mikro-orm/issues/5651)) ([68a3c1f](https://togithub.com/mikro-orm/mikro-orm/commit/68a3c1fe0b84cf1646501025b948de58911293f6)) - **core:** implement "character" type (DB type "char") ([#​5684](https://togithub.com/mikro-orm/mikro-orm/issues/5684)) ([9fa5fad](https://togithub.com/mikro-orm/mikro-orm/commit/9fa5fad5e3955cdcdee89aa12c8b3dd4841b2045)) - **entity-generator:** add a coreImportsPrefix option ([#​5669](https://togithub.com/mikro-orm/mikro-orm/issues/5669)) ([b9ab69a](https://togithub.com/mikro-orm/mikro-orm/commit/b9ab69a5e86ce118cb209d2fdc5a76f2c4b80620)) - **entity-generator:** added option to output pure pivot tables ([#​5809](https://togithub.com/mikro-orm/mikro-orm/issues/5809)) ([832a626](https://togithub.com/mikro-orm/mikro-orm/commit/832a62612d6cf3cc8a44f0c0c7ad6b1cec1bf402)) - **entity-generator:** added the ability to add extra names to be imported ([#​5797](https://togithub.com/mikro-orm/mikro-orm/issues/5797)) ([82696b3](https://togithub.com/mikro-orm/mikro-orm/commit/82696b30c2a14cd68879c421ab4a8b182c3093ab)) - **entity-generator:** allow custom types for scalar relations ([#​5435](https://togithub.com/mikro-orm/mikro-orm/issues/5435)) ([a8a9126](https://togithub.com/mikro-orm/mikro-orm/commit/a8a9126ebdfb57cce14d1931b5cce5dfb1ade27f)) - **entity-generator:** enable the generator to dictate import specs via `extraImport` ([#​5772](https://togithub.com/mikro-orm/mikro-orm/issues/5772)) ([effd9fb](https://togithub.com/mikro-orm/mikro-orm/commit/effd9fbc9426bc49a2acb3bed1b982eed4f38b3e)) - **entity-generator:** repository class reference can be added from hooks ([#​5785](https://togithub.com/mikro-orm/mikro-orm/issues/5785)) ([44a49a9](https://togithub.com/mikro-orm/mikro-orm/commit/44a49a9aad455db59e08e48ef2ce58f112671f97)) - **entity-generator:** support adding groups through metadata hooks ([#​5793](https://togithub.com/mikro-orm/mikro-orm/issues/5793)) ([a756271](https://togithub.com/mikro-orm/mikro-orm/commit/a756271a94af3806a38111d301fd907f870dd057)) - **libsql:** support connecting to remote turso database ([#​5764](https://togithub.com/mikro-orm/mikro-orm/issues/5764)) ([6255a33](https://togithub.com/mikro-orm/mikro-orm/commit/6255a3302890a02c501357426937d29e393c02f9)) - **migrations:** allow initial migration to be blank if no entities are defined ([#​5802](https://togithub.com/mikro-orm/mikro-orm/issues/5802)) ([a8f6864](https://togithub.com/mikro-orm/mikro-orm/commit/a8f68645727103b7af0cfe59c33ac199fa28e1de)) - **migrations:** make `--blank` also generate a `down` migration ([#​5657](https://togithub.com/mikro-orm/mikro-orm/issues/5657)) ([056d336](https://togithub.com/mikro-orm/mikro-orm/commit/056d3360e8c338b8a5431533fd9e12a5e5206fef)) - **postgres:** allow specifying deferred mode on unique constraints ([#​5537](https://togithub.com/mikro-orm/mikro-orm/issues/5537)) ([7672b56](https://togithub.com/mikro-orm/mikro-orm/commit/7672b56b0efaed26d87651e256866c8ac8ca72ed)) - **postgres:** support `on delete set null/default` with subset of columns ([5353e6a](https://togithub.com/mikro-orm/mikro-orm/commit/5353e6a97cdea224ce19fe3b5745951411a12282)), closes [#​5568](https://togithub.com/mikro-orm/mikro-orm/issues/5568) - **postresql:** add support for varchar with unlimited length ([#​5707](https://togithub.com/mikro-orm/mikro-orm/issues/5707)) ([c22e971](https://togithub.com/mikro-orm/mikro-orm/commit/c22e97147877d0081b7310452b19acbd4609b2a2)) - **query-builder:** infer `Loaded` hint based on `joinAndSelect` calls ([#​5482](https://togithub.com/mikro-orm/mikro-orm/issues/5482)) ([d18da6b](https://togithub.com/mikro-orm/mikro-orm/commit/d18da6b8cfce84ffaf480a27b869b79efbc70fb6)) ##### Performance Improvements - **core:** improve serialization speed ([136f704](https://togithub.com/mikro-orm/mikro-orm/commit/136f70455c7965a4363a69d95092300cfd906cce)) - **core:** rework `EntityKey` type to improve tsserver performance ([#​5762](https://togithub.com/mikro-orm/mikro-orm/issues/5762)) ([dabe734](https://togithub.com/mikro-orm/mikro-orm/commit/dabe734274b5e2663bf45482e5e81897b0a8a456)), closes [#​5708](https://togithub.com/mikro-orm/mikro-orm/issues/5708) #### [6.2.9](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.8...v6.2.9) (2024-05-31) ##### Bug Fixes - **cli:** use `module: 'nodenext'` when registering ts-node ([#​5514](https://togithub.com/mikro-orm/mikro-orm/issues/5514)) ([8695524](https://togithub.com/mikro-orm/mikro-orm/commit/869552411c65e5a42362277555f71549a64fccc7)), closes [#​5427](https://togithub.com/mikro-orm/mikro-orm/issues/5427) - **core:** detect path from decorator for each class only once ([#​5545](https://togithub.com/mikro-orm/mikro-orm/issues/5545)) ([9af0e38](https://togithub.com/mikro-orm/mikro-orm/commit/9af0e3815c9e8200ace3e6a09e5ebd23c6f768f8)) - **core:** improve support for `clientUrl` with additional query parameters ([1472705](https://togithub.com/mikro-orm/mikro-orm/commit/1472705bc1e974b09aa00a495b79f07cb776f5b8)), closes [#​5608](https://togithub.com/mikro-orm/mikro-orm/issues/5608) - **core:** improve support for sharing columns in composite PK and FK ([#​5623](https://togithub.com/mikro-orm/mikro-orm/issues/5623)) ([7190879](https://togithub.com/mikro-orm/mikro-orm/commit/7190879bdf64e51d31b61b275b98df84de02004e)), closes [#​5622](https://togithub.com/mikro-orm/mikro-orm/issues/5622) - **core:** improve validation for missing `dbName` when `clientUrl` is provided ([c21359e](https://togithub.com/mikro-orm/mikro-orm/commit/c21359efe92c7abb22f706b00ac1aa1da38cffdf)) - **core:** respect `ignoreNestedTransactions` from upper context ([eab4df6](https://togithub.com/mikro-orm/mikro-orm/commit/eab4df67b22d636c0a76703c6f48dc0c76cc2433)), closes [#​5585](https://togithub.com/mikro-orm/mikro-orm/issues/5585) - **core:** use explicit `NoInfer` type helper to support TS<5.4 ([c38b366](https://togithub.com/mikro-orm/mikro-orm/commit/c38b36609a5264a2b2a49a87a89091003fcf6f42)), closes [#​5613](https://togithub.com/mikro-orm/mikro-orm/issues/5613) - **knex:** explicitly declare all the extended drivers as optional peer dependencies ([#​5647](https://togithub.com/mikro-orm/mikro-orm/issues/5647)) ([64045ad](https://togithub.com/mikro-orm/mikro-orm/commit/64045adadae9f6c98e205927210de62ebb095adb)) - **mssql:** account for quotes in table names ([#​5637](https://togithub.com/mikro-orm/mikro-orm/issues/5637)) ([0343609](https://togithub.com/mikro-orm/mikro-orm/commit/0343609c3e99d1fe5e4024a7afe0aaa2b2d6d980)) - **mssql:** fix creating migrations due to a missing helper method ([#​5644](https://togithub.com/mikro-orm/mikro-orm/issues/5644)) ([90e27c2](https://togithub.com/mikro-orm/mikro-orm/commit/90e27c275d7db46269ee721e049dcfe09b274abe)), closes [#​5633](https://togithub.com/mikro-orm/mikro-orm/issues/5633) - **mssql:** fix creating schema for migrations table ([fe1be6f](https://togithub.com/mikro-orm/mikro-orm/commit/fe1be6f099888ad9e289f091d53428a4498f4b0d)), closes [#​5644](https://togithub.com/mikro-orm/mikro-orm/issues/5644) - **mssql:** fix ensuring the database exists on older SQL Server versions ([f0a5790](https://togithub.com/mikro-orm/mikro-orm/commit/f0a5790de0b08978983a3af82122e0f5045531dc)), closes [#​5638](https://togithub.com/mikro-orm/mikro-orm/issues/5638) - **postgres:** respect `deferMode` option in 1:1 relations ([#​5641](https://togithub.com/mikro-orm/mikro-orm/issues/5641)) ([101c0a8](https://togithub.com/mikro-orm/mikro-orm/commit/101c0a85cacfd20e7d4857646d7c7242e4ec1cd1)) - **reflection:** detect complex runtime types and don't use them as column types ([0c8a587](https://togithub.com/mikro-orm/mikro-orm/commit/0c8a58726c0a69f91c1494570029e36c89d1a64a)), closes [#​5601](https://togithub.com/mikro-orm/mikro-orm/issues/5601) - **reflection:** support entities compiled by babel ([#​5628](https://togithub.com/mikro-orm/mikro-orm/issues/5628)) ([26f627e](https://togithub.com/mikro-orm/mikro-orm/commit/26f627e3df2b66782e446de2419c350cf17c74ac)), closes [#​5610](https://togithub.com/mikro-orm/mikro-orm/issues/5610) - **schema:** fix diffing renamed indexes and columns when the names are not lowercase ([4019dc3](https://togithub.com/mikro-orm/mikro-orm/commit/4019dc336f24bd79daeb8fd7997c06d055d23933)), closes [#​5617](https://togithub.com/mikro-orm/mikro-orm/issues/5617) - **sql:** implement batching of M:N collection update queries ([d97979b](https://togithub.com/mikro-orm/mikro-orm/commit/d97979b236b8a7e40f64848e88602c531b8ebb84)), closes [#​5627](https://togithub.com/mikro-orm/mikro-orm/issues/5627) ##### Features - **core:** allow overriding the `--config` argument name ([8b304ab](https://togithub.com/mikro-orm/mikro-orm/commit/8b304abecad740ac6b7f7820dafc6e7f8d6f5e6f)) ##### Performance Improvements - **sql:** optimize diffing M:N collection state ([f46e7c8](https://togithub.com/mikro-orm/mikro-orm/commit/f46e7c86e29727b57f3220901ac5b14a6f1719c1)), closes [#​5627](https://togithub.com/mikro-orm/mikro-orm/issues/5627) #### [6.2.8](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.7...v6.2.8) (2024-05-21) ##### Bug Fixes - **cli:** disable eager connection when creating the ORM instance ([ef5d14a](https://togithub.com/mikro-orm/mikro-orm/commit/ef5d14ad0f0ccf153c373991e2545851d10566cf)), closes [#​5030](https://togithub.com/mikro-orm/mikro-orm/issues/5030) - **core:** allow hydration of non persistent embedded properties ([#​5579](https://togithub.com/mikro-orm/mikro-orm/issues/5579)) ([e8c0c3f](https://togithub.com/mikro-orm/mikro-orm/commit/e8c0c3fe1d539d363f254ba039182eca4f15d39c)), closes [#​5578](https://togithub.com/mikro-orm/mikro-orm/issues/5578) - **core:** always use root entity when computing M:N field names with STI ([568e57f](https://togithub.com/mikro-orm/mikro-orm/commit/568e57f7b513c2af774d74492474a6d5183d7658)), closes [#​5586](https://togithub.com/mikro-orm/mikro-orm/issues/5586) - **core:** map embedded constructor parameters ([24f3ee6](https://togithub.com/mikro-orm/mikro-orm/commit/24f3ee6acfd7636102f1d438c19472374d5c6ca7)) - **postgres:** support `lockTableAliases` with explicit schema name in config ([3fdb077](https://togithub.com/mikro-orm/mikro-orm/commit/3fdb077893144111cf4d8b2ea5a22271d0f405df)), closes [#​5125](https://togithub.com/mikro-orm/mikro-orm/issues/5125) [#​5404](https://togithub.com/mikro-orm/mikro-orm/issues/5404) - **schema:** use `type` as `columnType` when no matching mapping found ([cd7f85c](https://togithub.com/mikro-orm/mikro-orm/commit/cd7f85c576f3424479bb161972a7152b84dbf2f8)), closes [#​5587](https://togithub.com/mikro-orm/mikro-orm/issues/5587) - **sql:** respect `timezone` when mapping joined properties to `Date` ([7f9bb0b](https://togithub.com/mikro-orm/mikro-orm/commit/7f9bb0be291088b0098b839753bc7ca65fed1e99)), closes [#​5577](https://togithub.com/mikro-orm/mikro-orm/issues/5577) #### [6.2.7](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.6...v6.2.7) (2024-05-18) ##### Bug Fixes - **core:** fix ordering by joined embedded object properties ([cbd7c3e](https://togithub.com/mikro-orm/mikro-orm/commit/cbd7c3eaac520fdd9eda61fcb7321fea87bb9bdf)), closes [#​5560](https://togithub.com/mikro-orm/mikro-orm/issues/5560) - **mongo:** ensure JSON values are properly diffed ([577166a](https://togithub.com/mikro-orm/mikro-orm/commit/577166abb18ed1e6bc11c973fc774cc1e7a95fd7)), closes [#​5572](https://togithub.com/mikro-orm/mikro-orm/issues/5572) - **query-builder:** improve handling of nested `$and/$or` queries ([567d65a](https://togithub.com/mikro-orm/mikro-orm/commit/567d65ae27ea3627518d8d06119ac4b412d6e622)) - **schema:** revert the `dbName` after dropping the database ([725f7e9](https://togithub.com/mikro-orm/mikro-orm/commit/725f7e9e0940bfd60a6cd9992f567b21fb7c96fa)), closes [#​5583](https://togithub.com/mikro-orm/mikro-orm/issues/5583) #### [6.2.6](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.5...v6.2.6) (2024-05-14) ##### Bug Fixes - **core:** fix mapping of `Date` properties from `bigint` values ([05c802b](https://togithub.com/mikro-orm/mikro-orm/commit/05c802b5c33ed87cf57c119208dd34294c09c8b5)), closes [#​5540](https://togithub.com/mikro-orm/mikro-orm/issues/5540) - **core:** quote column name for the returning statement when using `convertToJSValueSQL` ([4783945](https://togithub.com/mikro-orm/mikro-orm/commit/4783945b22ab3acb0893df52e4534963269444cf)), closes [#​5563](https://togithub.com/mikro-orm/mikro-orm/issues/5563) - **core:** respect `runtimeType` override with reflect-metadata provider ([f1c9740](https://togithub.com/mikro-orm/mikro-orm/commit/f1c9740d940af0f2c09af1464fa8f6e7caef0ba3)) - **query-builder:** don't remove joins used by other joins during pagination ([#​5566](https://togithub.com/mikro-orm/mikro-orm/issues/5566)) ([b05c434](https://togithub.com/mikro-orm/mikro-orm/commit/b05c434485d3a85dd775d6c084faafb8899ac6c3)), closes [#​5565](https://togithub.com/mikro-orm/mikro-orm/issues/5565) - **reflection:** allow inference of `Ref & Opt` ([534f088](https://togithub.com/mikro-orm/mikro-orm/commit/534f0883667a126fd06e7c9ba4da44883f1996a6)), closes [#​5557](https://togithub.com/mikro-orm/mikro-orm/issues/5557) - **sqlite:** fix mapping of joined results with `DateTimeType` properties ([4001d2b](https://togithub.com/mikro-orm/mikro-orm/commit/4001d2b4e50efe9ecdcb95c114ddd5c1bb9ccb9c)), closes [#​5550](https://togithub.com/mikro-orm/mikro-orm/issues/5550) #### [6.2.5](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.4...v6.2.5) (2024-05-05) ##### Bug Fixes - **core:** fix extra updates on embedded array properties ([48fde11](https://togithub.com/mikro-orm/mikro-orm/commit/48fde11a78f9566885881c0f55fb4085896bfb26)), closes [#​5530](https://togithub.com/mikro-orm/mikro-orm/issues/5530) - **core:** fix hydration of relations with custom types via joined strategy ([07f10c8](https://togithub.com/mikro-orm/mikro-orm/commit/07f10c83606e71ff59f94884a8d1402d17ff8efd)), closes [#​5518](https://togithub.com/mikro-orm/mikro-orm/issues/5518) - **core:** improve support for mapping `DecimalType` to `number` ([5a3e30e](https://togithub.com/mikro-orm/mikro-orm/commit/5a3e30e526f66d8ee7ae6ba323c6737050661bae)) - **core:** limit depth in custom `inspect` methods to get around debugging issues in vscode ([f706c06](https://togithub.com/mikro-orm/mikro-orm/commit/f706c06ff0219093644d90934d0b342ec4cbd075)), closes [#​5525](https://togithub.com/mikro-orm/mikro-orm/issues/5525) - **core:** support path detection from decorators in bun ([6683bcc](https://togithub.com/mikro-orm/mikro-orm/commit/6683bcc13561f009189e78325b9e9e476f452524)), closes [#​5496](https://togithub.com/mikro-orm/mikro-orm/issues/5496) - **mongo:** support cursor pagination on `Date` properties ([4281320](https://togithub.com/mikro-orm/mikro-orm/commit/4281320f233efb56d012da4fe60d380e8aa701a3)), closes [#​5496](https://togithub.com/mikro-orm/mikro-orm/issues/5496) - **mysql:** infer unsigned value for FKs based on the target PK ([b7ae145](https://togithub.com/mikro-orm/mikro-orm/commit/b7ae1450121b4e6a024ce4069f4f378e36064016)), closes [#​5485](https://togithub.com/mikro-orm/mikro-orm/issues/5485) - **query-builder:** do not reset join conditions when paginating ([0b851e5](https://togithub.com/mikro-orm/mikro-orm/commit/0b851e50b1fa64c76ead91c046aa5d3e231cfab4)), closes [#​5538](https://togithub.com/mikro-orm/mikro-orm/issues/5538) - **schema:** skip extra columns in nested pivot entities ([f34e4d7](https://togithub.com/mikro-orm/mikro-orm/commit/f34e4d77fa75e842b898ee1a554d1bc6fd960aac)), closes [#​5276](https://togithub.com/mikro-orm/mikro-orm/issues/5276) ##### Features - **core:** allow specifying the `runtimeType` explicitly ([e9c0c07](https://togithub.com/mikro-orm/mikro-orm/commit/e9c0c0758dd20c7674ed5df421bc3795212068a8)) #### [6.2.4](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.3...v6.2.4) (2024-05-02) ##### Bug Fixes - **core:** do not issue extra updates when there are no matching changesets ([03934d0](https://togithub.com/mikro-orm/mikro-orm/commit/03934d072d545f4f6b01754eec9120b55dfbfc0a)), closes [#​5510](https://togithub.com/mikro-orm/mikro-orm/issues/5510) - **core:** fix extra updates with `forceEntityConstructor` and JSON properties ([5ef57b6](https://togithub.com/mikro-orm/mikro-orm/commit/5ef57b684bf19c5ed7abed66e2a07cab1e5e655a)), closes [#​5499](https://togithub.com/mikro-orm/mikro-orm/issues/5499) - **core:** keep transaction context when forking for `disableIdentityMap` ([ed88a02](https://togithub.com/mikro-orm/mikro-orm/commit/ed88a02470f3da101db4abfae125b318da8bc8c2)), closes [#​5527](https://togithub.com/mikro-orm/mikro-orm/issues/5527) - **core:** keep transaction context when forking for `disableIdentityMap` ([8d4fe98](https://togithub.com/mikro-orm/mikro-orm/commit/8d4fe985bdd2aa331415fa0e9fa0c62295b41921)), closes [#​5528](https://togithub.com/mikro-orm/mikro-orm/issues/5528) - **core:** support `onCreate` with `ScalarReference` properties ([09e5ca8](https://togithub.com/mikro-orm/mikro-orm/commit/09e5ca89e7eeedfed3f4d155bf4844ee99f1d2a8)), closes [#​5506](https://togithub.com/mikro-orm/mikro-orm/issues/5506) #### [6.2.3](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.2...v6.2.3) (2024-04-24) ##### Bug Fixes - **core:** fix handling of `first/last: 0` with cursor-based pagination ([508389e](https://togithub.com/mikro-orm/mikro-orm/commit/508389ea71cf63f4965d42b74a993572f388092b)), closes [#​5501](https://togithub.com/mikro-orm/mikro-orm/issues/5501) - **core:** ignore upsert with inlined embedded properties ([7d2bed6](https://togithub.com/mikro-orm/mikro-orm/commit/7d2bed627ef0ed65206b59c4d5143eff9fe0326b)), closes [#​5500](https://togithub.com/mikro-orm/mikro-orm/issues/5500) - **migrations:** fix reading migration snapshot ([096dcee](https://togithub.com/mikro-orm/mikro-orm/commit/096dcee04994d9c53f7e1bef6a6edf16589dddd4)), closes [#​5497](https://togithub.com/mikro-orm/mikro-orm/issues/5497) - **query-builder:** do not prune join branches when paginating and there are raw fragments in select clause ([4d0fe15](https://togithub.com/mikro-orm/mikro-orm/commit/4d0fe152c1ca9479668b6a8bf9a5019575388917)), closes [#​5490](https://togithub.com/mikro-orm/mikro-orm/issues/5490) #### [6.2.2](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.1...v6.2.2) (2024-04-20) ##### Bug Fixes - **core:** do not enforce `require()` when running via ts-jest or on JSON imports ([7e8409b](https://togithub.com/mikro-orm/mikro-orm/commit/7e8409bb86ca6a35c755700b77e17b425c5ab186)), closes [#​5461](https://togithub.com/mikro-orm/mikro-orm/issues/5461) - **core:** fix folder-based discovery for multiple entities in single file ([#​5464](https://togithub.com/mikro-orm/mikro-orm/issues/5464)) ([d64be7e](https://togithub.com/mikro-orm/mikro-orm/commit/d64be7ef5ba7c2a655ea014992905d8afde3c231)) - **core:** ignore serialization options when using `toPOJO()` ([#​5481](https://togithub.com/mikro-orm/mikro-orm/issues/5481)) ([46d6eb4](https://togithub.com/mikro-orm/mikro-orm/commit/46d6eb4248903f6729b6263dbafd171b8782178c)), closes [#​5479](https://togithub.com/mikro-orm/mikro-orm/issues/5479) - **migrator:** store snapshot only after migration is generated ([#​5470](https://togithub.com/mikro-orm/mikro-orm/issues/5470)) ([65ec57c](https://togithub.com/mikro-orm/mikro-orm/commit/65ec57cb441820c3db468869ab2ed9ce84aa9c5d)) - **mssql:** declare `import` types explicitly ([02494bf](https://togithub.com/mikro-orm/mikro-orm/commit/02494bf129e15261ba17218288a840120fedb089)), closes [#​5462](https://togithub.com/mikro-orm/mikro-orm/issues/5462) - **mysql:** fix reading `auto_increment_increment` value ([1da88af](https://togithub.com/mikro-orm/mikro-orm/commit/1da88af065d17e7550d12b67bfac715a7041e9f9)), closes [#​5460](https://togithub.com/mikro-orm/mikro-orm/issues/5460) - **postgres:** support wildcard native enums ([e183de3](https://togithub.com/mikro-orm/mikro-orm/commit/e183de3588437db2c41c9fb9d18940116f591a25)), closes [#​5456](https://togithub.com/mikro-orm/mikro-orm/issues/5456) ##### Features - **entity-generator:** extend filtering options for EntityGenerator ([#​5473](https://togithub.com/mikro-orm/mikro-orm/issues/5473)) ([0894ac9](https://togithub.com/mikro-orm/mikro-orm/commit/0894ac963bc3886e7a52596b4627c08627877afd)), closes [#​5469](https://togithub.com/mikro-orm/mikro-orm/issues/5469) - **query-builder:** allow returning promise from virtual entity `expression` ([ee98412](https://togithub.com/mikro-orm/mikro-orm/commit/ee9841287c2fe312ef342e16d1396f620e575d3e)), closes [#​5475](https://togithub.com/mikro-orm/mikro-orm/issues/5475) #### [6.2.1](https://togithub.com/mikro-orm/mikro-orm/compare/v6.2.0...v6.2.1) (2024-04-12) ##### Bug Fixes - **core:** skip 1:1 owner auto-joins for lazy properties ([6442e57](https://togithub.com/mikro-orm/mikro-orm/commit/6442e5739fb8e3ed8284ec3bba64c7ee14808b97)) - **knex:** rework postgres and mysql dialect imports to fix compilation errors ([ffdca15](https://togithub.com/mikro-orm/mikro-orm/commit/ffdca15b5aa897f07988eb2218be893301636a5f)) - **mssql:** support instance names in `host` ([dc7dc4c](https://togithub.com/mikro-orm/mikro-orm/commit/dc7dc4cecfc8e3c426ce8c679365c8efa7705370)), closes [#​5441](https://togithub.com/mikro-orm/mikro-orm/issues/5441) - **query-builder:** do not ignore unmatching partial loading hints in `qb.joinAndSelect` ([ccdf018](https://togithub.com/mikro-orm/mikro-orm/commit/ccdf018efd879419729b3fab4d08b2d4c6b29140)), closes [#​5445](https://togithub.com/mikro-orm/mikro-orm/issues/5445) - **query-builder:** fix partial loading via `qb.joinAndSelect` with explicit aliasing ([da68503](https://togithub.com/mikro-orm/mikro-orm/commit/da6850329b93a5e6104acd2aa3ab946a805f045c)), closes [#​5445](https://togithub.com/mikro-orm/mikro-orm/issues/5445) - **query-builder:** generate join on condition for subquery joins with known property name ([3dfbbde](https://togithub.com/mikro-orm/mikro-orm/commit/3dfbbde23b576aec2a0c8ed455627e2ee5e78749)), closes [#​5445](https://togithub.com/mikro-orm/mikro-orm/issues/5445) - **query-builder:** respect collection property where conditions (declarative partial loading) ([3b4fc41](https://togithub.com/mikro-orm/mikro-orm/commit/3b4fc417c9f85f7309d78faddcf11985667c5c20)), closes [#​5445](https://togithub.com/mikro-orm/mikro-orm/issues/5445) #### [6.2.0](https://togithub.com/mikro-orm/mikro-orm/compare/v6.1.12...v6.2.0) (2024-04-09) ##### Bug Fixes - **core:** do not select 1:1 owning FK twice ([fa69276](https://togithub.com/mikro-orm/mikro-orm/commit/fa6927617f490c272ba2c7fe30d8bac688c6b613)) - **core:** fix querying by embedded properties inside relations ([2e74699](https://togithub.com/mikro-orm/mikro-orm/commit/2e746991f964072d3afcad621b10424485e8466e)), closes [#​5391](https://togithub.com/mikro-orm/mikro-orm/issues/5391) - **core:** fix support for custom repositories in `@CreateRequestContext` on type level ([aacac83](https://togithub.com/mikro-orm/mikro-orm/commit/aacac830e7185fb923ad287bfd485fcc04fe0c4a)) - **core:** fix TypeError when ordering by embedded populating properties ([2c472ab](https://togithub.com/mikro-orm/mikro-orm/commit/2c472abaeb033347bca2cddd8820d0c97201a91d)), closes [#​5389](https://togithub.com/mikro-orm/mikro-orm/issues/5389) - **core:** ignore current context when creating repository instance ([4c12fc5](https://togithub.com/mikro-orm/mikro-orm/commit/4c12fc5bd3b8d3dbad6711eaeaf839cf3470dcc8)), closes [#​5395](https://togithub.com/mikro-orm/mikro-orm/issues/5395) - **core:** prefer entity type inference from the first parameter of entity manager methods ([523963b](https://togithub.com/mikro-orm/mikro-orm/commit/523963b459c0f5af4d9d0d78c03be9487efc9e9a)) - **core:** respect custom `EntityManager` type in `em.fork()` ([bb1a3f9](https://togithub.com/mikro-orm/mikro-orm/commit/bb1a3f917d9ed56aa274c9f3baf4d69aa893051e)), closes [#​5415](https://togithub.com/mikro-orm/mikro-orm/issues/5415) - **core:** support passing `Configuration` instance to `MikroORM.init` ([54a37d0](https://togithub.com/mikro-orm/mikro-orm/commit/54a37d016755f989545145e43abb56771b1e19ba)), closes [#​5413](https://togithub.com/mikro-orm/mikro-orm/issues/5413) - **entity-generator:** allow arbitrary class and prop names as identifiers ([#​5359](https://togithub.com/mikro-orm/mikro-orm/issues/5359)) ([b0c0236](https://togithub.com/mikro-orm/mikro-orm/commit/b0c0236ac8a2154e7181ac737baccbe95782f337)) - **mariadb:** rework pagination mechanism to fix extra results ([a57cb19](https://togithub.com/mikro-orm/mikro-orm/commit/a57cb198654c541968e0c90d89d7186e7bb71b1a)) - **mysql:** support `order by nulls first/last` for raw query fragments in order by keys ([a2a8f0d](https://togithub.com/mikro-orm/mikro-orm/commit/a2a8f0df09c5e6f5420ecc352d1d034d84816a37)) - **postgres:** drop text enum check constraints only when necessary ([#​5414](https://togithub.com/mikro-orm/mikro-orm/issues/5414)) ([5162345](https://togithub.com/mikro-orm/mikro-orm/commit/516234542373b6d62135b88e45df17d4e41cdf08)), closes [#​4112](https://togithub.com/mikro-orm/mikro-orm/issues/4112) - **postgres:** removed erroneous duplicates in FK discovery query ([#​5376](https://togithub.com/mikro-orm/mikro-orm/issues/5376)) ([eec2b38](https://togithub.com/mikro-orm/mikro-orm/commit/eec2b387f165b5390185887b695e219c09bd9b60)) - **query-builder:** fix serialization hint of nested `qb.joinAndSelect()` calls ([c2843b9](https://togithub.com/mikro-orm/mikro-orm/commit/c2843b9fc5598b5f3af57cbf9f6105a35b0d3536)) - **schema:** improve detection of renamed columns ([4d13c58](https://togithub.com/mikro-orm/mikro-orm/commit/4d13c585e0b0ea5552eba606897370c8aeab4b57)) - **schema:** rework dropping columns to support custom schemas and merge drop column queries ([255f425](https://togithub.com/mikro-orm/mikro-orm/commit/255f42594652453ba39676ff22af88dbb5f1990d)) ##### Features - **core:** add support for serialization groups ([#​5416](https://togithub.com/mikro-orm/mikro-orm/issues/5416)) ([818c290](https://togithub.com/mikro-orm/mikro-orm/commit/818c29001a448e3d06fdc88e71f6a65ce9ff8b45)) - **core:** allow better type-safety for custom types via `IType` ([#​5383](https://togithub.com/mikro-orm/mikro-orm/issues/5383)) ([0e18346](https://togithub.com/mikro-orm/mikro-orm/commit/0e183461026efb6d20c71623f366e7baa8041c40)) - **core:** allow configuring `driverOptions` on replica level ([05e81f8](https://togithub.com/mikro-orm/mikro-orm/commit/05e81f893a32b990d8bc0bebd22d86603242f156)) - **core:** include all dirty collections to `UoW.getCollectionUpdates()` ([e7bd66f](https://togithub.com/mikro-orm/mikro-orm/commit/e7bd66f523f6a12d89e16b4480a76321018c7e8b)) - **core:** make `assign` options configurable globally ([bc9f6f5](https://togithub.com/mikro-orm/mikro-orm/commit/bc9f6f5bbecac302f0beb227703a9654f71d967b)), closes [#​5410](https://togithub.com/mikro-orm/mikro-orm/issues/5410) - **libsql:** add libSQL driver ([#​5417](https://togithub.com/mikro-orm/mikro-orm/issues/5417)) ([6c63e4b](https://togithub.com/mikro-orm/mikro-orm/commit/6c63e4bd45c81b3a09b668f13dc0ce240e85107c)), closes [#​5283](https://togithub.com/mikro-orm/mikro-orm/issues/5283) - **mssql:** add MS SQL Server driver ([#​1375](https://togithub.com/mikro-orm/mikro-orm/issues/1375)) ([eeaad45](https://togithub.com/mikro-orm/mikro-orm/commit/eeaad45a60b3ef4732d5ba9eafc8719998e52181)), closes [#​771](https://togithub.com/mikro-orm/mikro-orm/issues/771) - **postgres:** allow defining deferred FK constraints ([#​5384](https://togithub.com/mikro-orm/mikro-orm/issues/5384)) ([f42d171](https://togithub.com/mikro-orm/mikro-orm/commit/f42d171f8bc7604c7b36f15f680f37402990bf9e)), closes [#​5306](https://togithub.com/mikro-orm/mikro-orm/issues/5306) - **query-builder:** add `limit 1` when executing query via `getSingleResult()` or `execute('get')` ([c2b22e8](https://togithub.com/mikro-orm/mikro-orm/commit/c2b22e80c47eabd2284dca41cedd7c871a78eac4)), closes [#​5379](https://togithub.com/mikro-orm/mikro-orm/issues/5379) - **query-builder:** add `qb.getLoggerContext()` and `qb.setLoggerContext()` ([779fa15](https://togithub.com/mikro-orm/mikro-orm/commit/779fa15ac762a9bae843a8b2f009e1861527469f)), closes [#​5358](https://togithub.com/mikro-orm/mikro-orm/issues/5358) - **schema:** allow configuring `updateRule` and `deleteRule` for pivot tables ([cc69c3c](https://togithub.com/mikro-orm/mikro-orm/commit/cc69c3c391259c6160b3522c89b0852b3366921a)) - **schema:** improve `orm.schema.execute()` to support executing batches ([3c5a347](https://togithub.com/mikro-orm/mikro-orm/commit/3c5a347d0ce277dc8b33ed6f3dd6e6e4315aa4eb)) - **schema:** support recreating the whole database via `orm.schema.refreshDatabase()` ([2e4ab49](https://togithub.com/mikro-orm/mikro-orm/commit/2e4ab49e5abbb3ee6a6f19fd028cbce6d93e4aa0)) ##### Performance Improvements - **core:** optimize metadata discovery ([c322f9b](https://togithub.com/mikro-orm/mikro-orm/commit/c322f9bcca087180a77c5ed006b1624dd4879790)) - **query-builder:** remove unnecessary join branches when pagination is applied ([d228976](https://togithub.com/mikro-orm/mikro-orm/commit/d228976d9ca4b8a2e69361ad31f63ef88977ee9e)) #### [6.1.12](https://togithub.com/mikro-orm/mikro-orm/compare/v6.1.11...v6.1.12) (2024-03-24) ##### Bug Fixes - **core:** fix assignability of partially loaded entities ([9de4965](https://togithub.com/mikro-orm/mikro-orm/commit/9de4965dc1ec952b3addc2d902ee5587c2f38f05)), closes [#​5374](https://togithub.com/mikro-orm/mikro-orm/issues/5374) - **core:** fix inlining of `$and` conditions ([8ddb3e4](https://togithub.com/mikro-orm/mikro-orm/commit/8ddb3e4f5166a0e425c4a895fde003e80e0c6bdb)), closes [#​5368](https://togithub.com/mikro-orm/mikro-orm/issues/5368) - **entity-generator:** try to resolve errors for foreign keys without indexes ([f2094ab](https://togithub.com/mikro-orm/mikro-orm/commit/f2094ab3383bc7de9da892b8d259c67b1144c741)), closes [#​5364](https://togithub.com/mikro-orm/mikro-orm/issues/5364) - **postgres:** fix query for loading all foreign keys from existing schema ([2eb85d5](https://togithub.com/mikro-orm/mikro-orm/commit/2eb85d501727601ee86eba8c2c1a11d994cce8cf)), closes [#​5364](https://togithub.com/mikro-orm/mikro-orm/issues/5364) - **reflection:** fallback to not proving path to tsconfig if not found ([a24d80d](https://togithub.com/mikro-orm/mikro-orm/commit/a24d80dc3353a6a84c9c6f1ac26b3c7e3e824901)) ##### Features - **cli:** add reason for failed connection check in `debug` command ([d61e248](https://togithub.com/mikro-orm/mikro-orm/commit/d61e248688676a875cdd16c9d780fe8485687c09)) - **core:** allow passing `EntityManager` or `EntityRepository` to `@CreateRequestContext` decorator ([184cdd4](https://togithub.com/mikro-orm/mikro-orm/commit/184cdd43ce4dcee5288b3297719914e9f25e50cb)) - **postgres:** add `?`, `?|` and `?&` json operators ([#​5366](https://togithub.com/mikro-orm/mikro-orm/issues/5366)) ([6418872](https://togithub.com/mikro-orm/mikro-orm/commit/641887245abbded5df2d984fc24c6fe3cea80c9b)), closes [#​4678](https://togithub.com/mikro-orm/mikro-orm/issues/4678) ##### Performance Improvements - **postgres:** try to optimize loading of foreign keys ([2dff96b](https://togithub.com/mikro-orm/mikro-orm/commit/2dff96bc48c6a84bc1fc213e8044b0ac722d4792)), closes [#​5364](https://togithub.com/mikro-orm/mikro-orm/issues/5364) #### [6.1.11](https://togithub.com/mikro-orm/mikro-orm/compare/v6.1.10...v6.1.11) (2024-03-18) ##### Bug Fixes - **core:** improve serialization of lazily partially loaded entities ([1c7b446](https://togithub.com/mikro-orm/mikro-orm/commit/1c7b44652100aa4e940787b3ee7ca4e208039984)), closes [#​5139](https://togithub.com/mikro-orm/mikro-orm/issues/5139) - **core:** support unsetting composite FKs via flush ([64f2afd](https://togithub.com/mikro-orm/mikro-orm/commit/64f2afd1a899b86e54eef6e58d6f475b28f67c6f)) - **migrator:** type mismatch between Migration interface and class ([#​5343](https://togithub.com/mikro-orm/mikro-orm/issues/5343)) ([2fba5ee](https://togithub.com/mikro-orm/mikro-orm/commit/2fba5eebbc118c98a890b3083d521b52b263ba30)), closes [#​5340](https://togithub.com/mikro-orm/mikro-orm/issues/5340) - **query-builder:** fix aliasing of FK when used in deeply nested and/or conditions ([ebb966c](https://togithub.com/mikro-orm/mikro-orm/commit/ebb966caae9f06a8c4a9fec7a642e678ddfebb66)), closes [#​5086](https://togithub.com/mikro-orm/mikro-orm/issues/5086) - **reflection:** respect custom tsconfig options ([e8cfdc0](https://togithub.com/mikro-orm/mikro-orm/commit/e8cfdc04cb5beed30f3ce144d7d57ee6d95e0c60)) - **sql:** fix aliasing of nested composite FK queries ([60b2c91](https://togithub.com/mikro-orm/mikro-orm/commit/60b2c9197249c8f982423ef320463cc8357b6542)) #### [6.1.10](https://togithub.com/mikro-orm/mikro-orm/compare/v6.1.9...v6.1.10) (2024-03-14) ##### Bug Fixes - **core:** detect `ts-node` when using esm loader ([#​5332](https://togithub.com/mikro-orm/mikro-orm/issues/5332)) ([23cc880](https://togithub.com/mikro-orm/mikro-orm/commit/23cc8803d22d90868e3411e77d5c81b04e7bc651)) - **core:** don't alias formulas in update/delete queries ([9e35642](https://togithub.com/mikro-orm/mikro-orm/commit/9e3564234ba80546df162b628bfebadad6b5c036)), closes [#​5334](https://togithub.com/mikro-orm/mikro-orm/issues/5334) - **core:** fix populating references for 1:m collections ([9b9027d](https://togithub.com/mikro-orm/mikro-orm/commit/9b9027d65a3dff6822b3463871e6571b3aa22a76)), closes [#​5336](https://togithub.com/mikro-orm/mikro-orm/issues/5336) - **core:** fix value of `hasPrev[/Next]Page` when paginating backwards ([#​5320](https://togithub.com/mikro-orm/mikro-orm/issues/5320)) ([00239eb](https://togithub.com/mikro-orm/mikro-orm/commit/00239ebe97d65aef520c39fdc6121fc138ebb8ce)) - **postgres:** fix diffing of native enums (create/remove via `schema:update`) ([7c8be79](https://togithub.com/mikro-orm/mikro-orm/commit/7c8be795e5c5b365dbb03ecadc7709cc42794b12)), closes [#​5322](https://togithub.com/mikro-orm/mikro-orm/issues/5322) - **query-builder:** allow joining object/array properties ([fd90bae](https://togithub.com/mikro-orm/mikro-orm/commit/fd90bae88e02cda9f1f8fcb6246c723464209a00)), closes [#​5325](https://togithub.com/mikro-orm/mikro-orm/issues/5325) - **query-builder:** fix `join on` conditions where `or` operator ([92936ef](https://togithub.com/mikro-orm/mikro-orm/commit/92936efd8ba5aa97c5c204127116f48133d63f90)) - **schema:** support compound index over JSON property and a regular column ([319df49](https://togithub.com/mikro-orm/mikro-orm/commit/319df499742475c68df3581f4863be649aa564d7)), closes [#​5333](https://togithub.com/mikro-orm/mikro-orm/issues/5333) - **sql:** allow creating query builder from a global context ([9217bb3](https://togithub.com/mikro-orm/mikro-orm/commit/9217bb3fefe3bfa4570160b46f8475f2148bde97)) - **sql:** override FK value when it's disallowed by query condition ([0d20847](https://togithub.com/mikro-orm/mikro-orm/commit/0d20847ad10ba29f8bcab1c033400f6a2bf7b43a)) ##### Features - **core:** add `onlyOwnProperties` option to `assign` helper ([#​5330](https://togithub.com/mikro-orm/mikro-orm/issues/5330)) ([a081bea](https://togithub.com/mikro-orm/mikro-orm/commit/a081bea80d17c01213c26a9cf7ad4b89e05ab33a)), closes [#​5327](https://togithub.com/mikro-orm/mikro-orm/issues/5327) - **postgres:** provide more details in driver exceptions ([e782d06](https://togithub.com/mikro-orm/mikro-orm/commit/e782d0686e45ddfd1e91e613ed83b0b5a046dc6f)) ##### Performance Improvements - **core:** disable change tracking on scalars when `flushMode: auto` ([fc30bfe](https://togithub.com/mikro-orm/mikro-orm/commit/fc30bfe13888293a9ac9b91d8bbc874eb3c98e31)) #### [6.1.9](https://togithub.com/mikro-orm/mikro-orm/compare/v6.1.8...v6.1.9) (2024-03-10) ##### Bug Fixes - **core:** don't propagate changes from `em.transactional()` to upper context if its global ([7ac9a19](https://togithub.com/mikro-orm/mikro-orm/commit/7ac9a1945469264ea32727c2e63fd89d9f2d7ec8)), closes [#​5309](https://togithub.com/mikro-orm/mikro-orm/issues/5309) - **core:** ignore filters on relations inside embedded properties ([1e4b2ce](https://togithub.com/mikro-orm/mikro-orm/commit/1e4b2ce41d66e1686aac0d28bf8b6a06b2cbf9b4)), closes [#​5310](https://togithub.com/mikro-orm/mikro-orm/issues/5310) - **core:** improve checks for generated columns ([0396e1e](https://togithub.com/mikro-orm/mikro-orm/commit/0396e1e8c0cd65f1dcd4ea4d29419ed2b5e7446a)) - **core:** map virtual relations with `persist: false` as formulas to preserve aliasing ([20a4cfb](https://togithub.com/mikro-orm/mikro-orm/commit/20a4cfb005fed168786d0da806d1c89e29b6f4ab)) - **entity-generator:** emit missing imports in `EntitySchema` generated files ([#​5311](https://togithub.com/mikro-orm/mikro-orm/issues/5311)) ([f680d66](https://togithub.com/mikro-orm/mikro-orm/commit/f680d66d8da08f0c6c898c3dd300bf1e920439b4)) - **entity-generator:** output type import statements for type only core imports ([#​5317](https://togithub.com/mikro-orm/mikro-orm/issues/5317)) ([bd3f160](https://togithub.com/mikro-orm/mikro-orm/commit/bd3f160988ac48c9d1a0b591f5674f9b8f5e16e7)) - **migrator:** allow `up` and `down` methods to be synchronous ([#​5316](https://togithub.com/mikro-orm/mikro-orm/issues/5316)) ([dd6daf9](https://togithub.com/mikro-orm/mikro-orm/commit/dd6daf9fb212c643bb1cc7679e47ed027847b656)) ##### Features - **postgres:** add support for native enum arrays ([c2e362b](https://togithub.com/mikro-orm/mikro-orm/commit/c2e362bc6fe19ec792d13f475a11cf2290b94fde)), closes [#​5322](https://togithub.com/mikro-orm/mikro-orm/issues/5322) #### [6.1.8](https://togithub.com/mikro-orm/mikro-orm/compare/v6.1.7...v6.1.8) (2024-03-06) ##### Bug Fixes - **core:** allow setting values to `null` on unloaded references ([1cbead6](https://togithub.com/mikro-orm/mikro-orm/commit/1cbead6eec839777e5f8f00e9fcdfe7a9a8088bf)), closes [#​5274](https://togithub.com/mikro-orm/mikro-orm/issues/5274) - **core:** fix bulk-inserting entities with nullable embedded arrays ([f16551e](https://togithub.com/mikro-orm/mikro-orm/commit/f16551ec37e4a12b29c7ada2427a29b81d15996e)) - **core:** skip STI discriminator condition when bulk-deleting entities ([fa712ca](https://togithub.com/mikro-orm/mikro-orm/commit/fa712ca134d16334aaba275779df14970ed8bfb8)), closes [#​5303](https://togithub.com/mikro-orm/mikro-orm/issues/5303) - **query-builder:** fix `qb.getResultAndCount()` when pagination is triggered ([67444c0](https://togithub.com/mikro-orm/mikro-orm/commit/67444c08a27af1a2d6d65ee061a4e54f1dac0734)) #### [6.1.7](https://togithub.com/mikro-orm/mikro-orm/compare/v6.1.6...v6.1.7) (2024-03-04) ##### Bug Fixes - **core:** add `em.addFilter()` fallback signature that allows more than 3 types ([b6efd44](https://togithub.com/mikro-orm/mikro-orm/commit/b6efd4470e9c060c3611c1e3395bd9f500cd0376)) - **core:** fix aliasing of queries with collection operators ([0435faf](https://togithub.com/mikro-orm/mikro-orm/commit/0435faf712783c89ed8b9de456c8da1c4f551c91)), closes [#​5301](https://togithub.com/mikro-orm/mikro-orm/issues/5301) - **core:** ignore collection operators in `populateWhere` conditions ([7b6b363](https://togithub.com/mikro-orm/mikro-orm/commit/7b6b3634301469cd39fa18f39e6761f01a0d94bb)) - **query-builder:** check for duplicate selects when wrapping pagination query ([e005cc2](https://togithub.com/mikro-orm/mikro-orm/commit/e005cc22ef4e247f9741bdcaf1af012337977b7e)) - **query-builder:** fix cloning of alias map ([50d8fb9](https://togithub.com/mikro-orm/mikro-orm/commit/50d8fb9b1b3f9b59768badd70138c4b83e516bf1)) ##### Features - **core:** validate wrong placement of collection operators ([c35e705](https://togithub.com/mikro-orm/mikro-orm/commit/c35e705714f2f88b8da8a0264b5517d6f991274f)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.



This PR has been generated by Mend Renovate. View repository job log here.