Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Mikro-ORM to v6 (major) #633

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 20, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@mikro-orm/cli (source) ^5.9.8 -> ^6.4.5 age adoption passing confidence
@mikro-orm/core (source) ^5.9.8 -> ^6.4.5 age adoption passing confidence
@mikro-orm/migrations (source) ^5.9.8 -> ^6.4.5 age adoption passing confidence
@mikro-orm/nestjs ^5.2.3 -> ^6.1.0 age adoption passing confidence
@mikro-orm/postgresql (source) ^5.9.8 -> ^6.4.5 age adoption passing confidence

Release Notes

mikro-orm/mikro-orm (@​mikro-orm/cli)

v6.4.5

Compare Source

Bug Fixes
  • core: allow querying by embedded instance with em.findAndCount (#​6370) (9e60817), closes #​6353
  • core: ensure populating Ref properties do not result in TypeError (7d34645)
  • core: fix creating new entities with composite props that share a column (68c79b2), closes #​6360
  • core: fix processing of queries for composite props that share a column (c01522d), closes #​6359
Features
  • migrations: allow returning promise from generateMigrationFile (af75d06), closes #​6364

v6.4.4

Compare Source

Bug Fixes
  • core: do not persist embeddables via em.create() (c6ed010)
  • core: fix multi insert when some values of a not-null column with default are missing (cd8f6e1)
  • core: ignore partial loading hint on JSON column when pruning relations (fbdea0a)
  • core: reduce chance of collisions of internal embedded properties (#​6354) (98ab6a2), closes #​6351
  • query-builder: process custom types in join conditions (3a6153f), closes #​6357
  • schema: fixed handling of check constraints on MariaDB before 10.5.10 (#​6352) (7d41e22), closes #​6350
Features

v6.4.3

Compare Source

Bug Fixes
  • entity-generator: output explicit referencedColumnNames when sharing a column in a composite foreign key (85db3c1), closes #​6323
  • entity-generator: skip bidirectional relation if target metadata doesn't exist (#​6328) (c7984fe)
  • query-builder: ignore lock mode in paginate subquery and keep it only on top level (3b7fdba)
  • schema: infer columnTypes when sharing a column in a composite foreign key (6781194), closes #​6323
  • schema: output deferrable FKs in sqlite create table statement (6bbec01)
  • schema: support unsigned for decimal and double types (d3ce313), closes #​6318
Features
  • migrations: allow configuring snapshot via env vars (59f0593), closes #​6327
  • mongo: include MikroORM version in MongoDB handshake (#​6326) (f501a91)

v6.4.2

Compare Source

Bug Fixes
  • core: correctly handle populate of mapToPk relations (#​6309) (61fb8f5), closes #​6265
  • core: fix cursor pagination with POJO cursor and relations (de1ae67), closes #​6308
  • core: prevent reinsertion of an entity referenced by a formula when it is removed from a collection (#​6265) (8f45243)
  • entity-generator: support multi-line comments (#​6290) (4fdb169), closes #​6286
  • query-builder: combine serialization hint from managed entities and QueryBuilder result (#​6307) (7d1a0dc)
  • query-builder: improve detection of to-many joins in qb.getCount() (4e5b18b), closes #​6291
  • reflection: fix source file detection after update to ts-morph v24 (d9716a6), closes #​6297
Features

v6.4.1

Compare Source

Bug Fixes
  • core: consider nested queries on JSON properties as scalars (920b019), closes #​6246
  • core: fix upserting properties with custom types (036b84d), closes #​6241
  • core: improve handling of reference wrapper inside constructor parameters (db7cb8a), closes #​6266
  • core: skip extra updates on properties with deferred constraints (85a649b), closes #​6266
  • core: support upserting entities with FK as PK when the target entity has composite PK (#​6275) (2ae9ae7), closes #​6252

v6.4.0

Compare Source

Bug Fixes
  • core: add missing getterName option (aa18e57), closes #​6127
  • core: allow upserting POJO with embeddded instances (159fd4a), closes #​6198
  • core: check that inverse side exists when mapping collection items via dataloader (#​6149) (f580598), closes #​6148
  • core: ensure decimal type that maps to number won't produce extra updates (cc67ca4)
  • core: fix double processing of custom types in em.nativeUpdate (1b39846), closes #​6206
  • core: fix explicit serialization typing via wrap().serialize and BaseEntity.serialize (d93b325)
  • core: ignore collection properties when entity constructors are enforced (78a5937)
  • core: improve comparison of decimal values (66e60cb), closes #​6194
  • core: improve error handling for comparing invalid dates (#​6120) (1aa940b)
  • core: pass correct values to constructor for props using custom types (58c8ce4)
  • core: rename tsNode option to preferTs (#​6214) (194f511)
  • core: revert workaround for Date properties in clone() helper (c1af3db), closes #​6118
  • core: use db value for identity map key of PKs with custom type (aa1dd3c), closes #​6150
  • entity-generator: output inverse sides for pure pivot tables when outputted (#​6196) (e4b048b), closes #​6192
  • mssql: map property names to field names when processing composite keys (cf687e8), closes #​6204
  • postgres: make upsert where conditions fully qualified (b4b3cab), closes #​6203
  • postgres: return all results for multi statement raw queries (adcef5f), closes #​6009
  • postgres: support raw fragments in qb.distinctOn() (f8580c8)
  • query-builder: fix detection of raw fragments in update queries with not matching field names (22b918f), closes #​6177
  • query-builder: fix serialization of nested relations (3850c1e), closes #​6194
Features
Performance Improvements

6.3.13 (2024-10-06)

Bug Fixes
  • core: add child SerializeOptions to custom serializer parameters (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 Collection access (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/$or arrays readonly (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)

6.3.12 (2024-10-01)

Bug Fixes
  • core: accept readonly arrays in operator where conditions (#​6085) (1ab24fe)
  • mongo: ensure Date properties are correctly cloned and persisted (8d81985), closes #​6078
  • mongo: fix persisting objects like ObjectID in JSON properties (#​6091) (c28f06f)
  • 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
Features
  • core: prevent conversion of many entities in oneToMany from extractConstructorParams (#​6093) (8ba8d7a), closes #​6092

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 TABLE DDL for tinyint/smallint/mediumint primary keys (#​6065) (e2738cc)
  • schema: ensure unsigned: false works for primary keys (#​6063) (f14a6b4), closes #​6057
  • schema: resolve missing auto_increment for PK in MySQL/MariaDB update DDL (#​6073) (984758f), closes #​6072
Features
Performance Improvements
  • core: reduce nesting of toPOJO() serializer (4b263f3)

6.3.10 (2024-09-15)

Bug Fixes
  • core: allow accessing PK props on Ref properties 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)

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 $in operator for raw values (59c627e)
  • core: fix hydration of datetime when provided a ISO string value via em.create() (2992046)
  • core: implement joined filters via populateFilter option, separately from populateWhere (#​6003) (9d0a022), closes #​5893
  • mongo: allow ordering by object embedded properties (2a9ffa3), closes #​6002
  • postgres: fix casting of JSON values when used with $in operator (840d3cd), closes #​6000
  • postgres: fix diffing vector columns without length (2f7a7fb), closes #​6008

6.3.8 (2024-09-04)

Bug Fixes

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 forceEntityConstructor enabled (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 forceConstructor option (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)

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 json columns to text (574390b), closes #​5936
  • schema: recreate FKs when changing column type (8797c64)

6.3.5 (2024-08-11)

Bug Fixes
  • core: track changes on non-scalar properties (a02c727), closes #​5750
  • entity-generator: ensure columnType is 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/$contained operators (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 timezone option and interpret timestamp columns in UTC by default (#​5916) (1da0722), closes #​5591
  • sql: support cursor-based pagination on virtual entities (b86799c), closes #​5922
Features
  • cli: detect bun when checking for TS support (e87ebc9)
  • core: add RequestContext.enter() which uses ALS.enterWith() (dc06f60)

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 number to string on 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 override keyword in TS migration files (d2f7b83), closes #​5634
  • mssql: convert tuple comparison queries to simple and/or conditions (#​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)

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 PoolConfig interface to match what knex supports (#​5892) (eb5d4a1)
  • knex: use nested join for populateWhere condition (#​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 outDir when finding the source file in production build (fe54d45), closes #​5536
Features

6.3.2 (2024-08-01)

Bug Fixes
  • core: fix cancelling orphan removal on m:1 relations (7b30844), closes #​5884
  • core: fix overriding not initialized 1:m collection without orphan removal (517108b), closes #​5883
  • reflection: fix type inference when intersecting with Opt or Hidden (951c805), closes #​5881

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.13

Compare Source

Bug Fixes
  • core: add child SerializeOptions to custom serializer parameters (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 Collection access (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/$or arrays readonly (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

Compare Source

Bug Fixes

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependencies Pull requests that update a dependency file major Major Dependency Bumps that contain tentitive breaking changes get marked with this label labels Dec 20, 2024
Copy link
Contributor Author

renovate bot commented Dec 20, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: api/package-lock.json
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: starter-api@undefined
npm error Found: @nestjs/[email protected]
npm error node_modules/@nestjs/common
npm error   @nestjs/common@"^9.4.3" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @nestjs/common@"^10.0.0 || ^11.0.5" from @mikro-orm/[email protected]
npm error node_modules/@mikro-orm/nestjs
npm error   @mikro-orm/nestjs@"^6.1.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2025-01-30T14_10_24_868Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2025-01-30T14_10_24_868Z-debug-0.log

@renovate renovate bot force-pushed the renovate/major-mikro-orm branch from 14ae5d0 to 2819a31 Compare December 22, 2024 14:35
@renovate renovate bot force-pushed the renovate/major-mikro-orm branch 2 times, most recently from aa36405 to 59bd007 Compare January 10, 2025 10:18
@renovate renovate bot force-pushed the renovate/major-mikro-orm branch 3 times, most recently from e59fc7d to 89a74c7 Compare January 28, 2025 20:32
@renovate renovate bot force-pushed the renovate/major-mikro-orm branch from 89a74c7 to e334f98 Compare January 30, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file major Major Dependency Bumps that contain tentitive breaking changes get marked with this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants