Skip to content

fix(deps): update mikro-orm monorepo to v7 (major)#61

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/major-mikro-orm-monorepo
Open

fix(deps): update mikro-orm monorepo to v7 (major)#61
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/major-mikro-orm-monorepo

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Jan 10, 2024

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@mikro-orm/cli (source) ^5.7.14^7.0.0 age confidence
@mikro-orm/migrations (source) ^5.7.14^7.0.0 age confidence
@mikro-orm/postgresql (source) ^5.7.14^7.0.0 age confidence
@mikro-orm/reflection (source) ^5.7.14^7.0.0 age confidence
@mikro-orm/seeder (source) ^5.7.14^7.0.0 age confidence

Release Notes

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

v7.0.6

Compare Source

Bug Fixes
  • core: allow readonly enum builder items in defineEntity() (#​7406) (ebf87e6), closes #​7352
  • core: apply onCreate hooks in em.upsert and em.upsertMany (#​7400) (5bc0e92), closes #​7399
  • core: preserve explicit entity name in defineEntity + setClass during discovery (fca6e6b), closes #​7391
  • core: prevent prototype pollution in Utils.merge (954bdba)
  • core: tighten query construction validation (f7e59a5)
  • decorators: handle esbuild ES decorator stack frames in path lookup (e6ea9fc)
  • reflection: resolve inherited property types with ES decorators in TsMorphMetadataProvider (8296a0e), closes #​7389
  • schema: escape single quotes in enum CHECK constraints (#​7396) (3656519), closes #​7395

v7.0.5

Compare Source

Bug Fixes

v7.0.4

Compare Source

Bug Fixes
Features

v7.0.3

Compare Source

Bug Fixes
Features

v7.0.2

Compare Source

Bug Fixes
  • core: apply property default values when creating new entity instances (#​7301) (b4d1e7f), closes #​7284
  • core: handle CJS entity files in folder-based discovery (#​7287) (314626b)
  • core: preserve nullability in Opt/Hidden branded types for defineEntity (#​7295) (2b74802), closes #​7291
  • core: use branded types for built-in type detection in CJS/ESM dual-package hazard (#​7293) (65ae903)
  • core: use EntitySchema.is() instead of instanceof for CJS/ESM dual-package hazard (#​7289) (355301f)
  • decorators: skip @​oxc-project/runtime frames in decorator path lookup (199ccd1)
  • entity-generator: emit enum definitions before entity class (bbb38c7)
  • schema: handle multiline view expressions in SQLite schema diffing (#​7294) (2a2ed10), closes #​7292

v7.0.1

Compare Source

Bug Fixes
  • update lockfile for v7 peer dependencies (d59eaea)
  • update peer dependency constraints to v7 and pin on release (fbeace5)

v7.0.0

Compare Source

Bug Fixes
  • core: allow using property accessor on to-one relations (621d10a), closes #​7211
  • core: always check the database when querying by PK with filters (8bd62b2), closes #​7084
  • core: do not convert custom types in em.refresh (3f8abdf), closes #​7073
  • core: do not propagate cursor related options to populate queries (e667290), closes #​7148
  • core: duplicate discovery of embeddables with defineEntity (#​7125) (3d57516)
  • core: enable forceUtcTimezone by default for all SQL drivers (#​7087) (c89890b), closes #​5591
  • core: ensure populate hint won't include undefined for optional relations (ea6722c)
  • core: ensure column name conflicts in M:N are propagated to STI child entities (562515c), closes #​7123
  • core: ensure no collisions in polymorphic embeddables with shadowed properties (25554b1)
  • core: ensure owning FK is selected for to-many inverse sides (cead90d)
  • core: fix applying filters on nested relation conditions (e828240)
  • core: fix double processing of JSON properties when reloading an entity (945e5cd)
  • core: fix enum arrays with defineEntity failing on metadata validation (0412fd3)
  • core: fix findOne with entity refs for composite PKs with shared FK columns (b8a39e2), closes #​5629
  • core: fix processing filters on to-many relations (8b193aa)
  • core: fix result caching for custom types (10a4044), closes #​7112
  • core: improve handling of deeply nested composite keys in em.create (28261a0), closes #​6894
  • core: improve intellisense for partial loading in em.populate (384f432)
  • core: make entity prototype toJSON non-enumerable to prevent data leaks (013f57f)
  • core: map arrays inside object embeddables to JSON arrays by default (6835f72)
  • core: normalize populate option in Collection.matching() for M:N relations (#​7091) (d9b996f)
  • core: only respect Hidden type on scalar properties (#​7097) (36372a2), closes #​7062
  • core: preserve embeddable properties in toPOJO regardless of partial loading hints (455be24)
  • core: preserve function expression indexes through metadata cache round-trip (#​7228) (b7c002c)
  • core: prevent double JSON-encoding of nested embeddable arrays (ba22eba)
  • core: prevent property mutation during polymorphic embeddable discovery (#​7270) (c3a5978), closes #​6522
  • core: respect exclude hint in implicit serialization via toObject (#​7259) (cd9e09f)
  • core: respect exclude option on eager properties (908e236)
  • core: respect orphanRemoval on 1:1 relations when inverse side is a PK (#​7081) (960425c)
  • core: respect custom repositories with InferEntity (c5160ee)
  • core: respect EM schema when joining a wildcard entity from a static schema entity (69ca26c), closes #​7082
  • core: respect explicit tableName when computing join table names (fe5e10f)
  • core: respect loaded hint for Ref relations inside array embeddables (27efe05)
  • core: support overlapping properties with different field names in STI (5d83d0f), closes #​5813
  • core: support querying by all keys of discriminated union types (21b7a80), closes #​7111
  • core: support schema parameter in formula query when using QB with partial loading (4820bb6)
  • core: support wildcard wrap(e).populate() hints on type level (a05e46c)
  • core: use full hydration in mergeData for initialized entities (32a0baa), closes #​7205
  • core: use less strict repository option type to fix issues with defineEntity and cycles (7110dc3)
  • defineEntity: fix inference issues in hooks definition (d5e9f92)
  • entity-generator: strip schema prefix from FK property names (#​7134) (173ff9b)
  • guard prototype.toJSON against being called on prototype itself (#​7152) (0392156), closes #​7151
  • migrations: delete snapshot file after migration:down (95e0d88)
  • migrations: normalize snapshots and write on both up/down (#​7235) (511d8ad)
  • migrations: skip snapshot write on migration:up to support read-only filesystems (c5ebd0a)
  • migrations: support emitting multiline comments (#​7186) (2fe61c8)
  • mongo: fix field name conversion when querying object embedded entities (a713819)
  • mongo: fix support for deno by handling TypedArray when cloning (#​7258) (17ec4f5)
  • mongo: rework support for serialized primary keys (54ad3c5)
  • postgres: fix phantom diffs for complex check constraints (#​7216) (b0fefd0)
  • postres: fix casting of object embedded relation properties (0e80f59)
  • query-builder: apply WHERE conditions to ORDER BY joins in paginated queries (128e58b), closes #​6160
  • schema: disable FK checks by default only for orm.schema.clear() in MySQL (c0d942d)
  • schema: do not ignore changes to entity level comments (4087704), closes #​7187
  • schema: do not infer nullability of to-one relations based on cascade option (56be7f3), closes #​6972
  • sql: always alias virtual properties in where query (37f35af), closes #​7196
  • sql: cross-schema JOINs no longer inherit main entity's schema (#​7250) (07852fc)
  • sql: fix populating M:N relations with pivotEntity that uses mapToPk: true (cdd8f85), closes #​7107
  • sql: handle $not operator inside relation filters (#​7226) (b002e16)
  • sql: ignore missing tables during schema clear (8f90f07)
  • sql: qualify cross-schema FK references with dbName on MySQL/MariaDB (#​7251) (489d2b9)
  • sql: skip pagination subquery and force balanced strategy for virtual entities (e2c1287), closes #​7195
  • sti: ensure stable order in the generated discriminator map (b51d6fd), closes #​6455
Features
  • add JSR publishing support (#​7253) (c93c92a)
  • change default loadStrategy to balanced (431f989)
  • cli: support various TS loaders (#​6987) (3fe125c)
  • core: add $size collection operator (#​7090) (e12051e)
  • core: add collation support and MongoDB query options (#​7189) (e350aa1)
  • core: add EntityName symbol for decorator-based Kysely type inference (#​7199) (0b78e36)
  • core: add EntitySchema.new helper to create entity instances (#​7077) (64ad492)
  • core: add forceObject option to defineEntity (0a3df4d)
  • core: add populateHints option to FindOptions for per-relation populate overrides (#​7198) (158e1cf)
  • core: add entity-level default orderBy option (#​7133) (4bfa0e4)
  • core: add slow query logging support (#​7271) (13b97f5), closes #​4695
  • core: add support for polymorphic relations (#​7121) (e9eb256)
  • core: add support for streaming (#​6923) (88b0d5b)
  • core: add support for Table-Per-Type inheritance (#​7137) (f6abee5)
  • core: add support for view entities (#​7116) (7bfcb10)
  • core: add WHERE clause support to upsert via onConflictWhere option (#​7117) (673c1bb)
  • core: allow reusing raw query fragments (#​7058) (bcf8cb7)
  • core: execute transaction events on child transactions (0fc822f)
  • core: improve formula callback to provide more information about the table and column mapping (#​7105) (9ee78d5)
  • core: improve type safety of various decorators (463eef6)
  • core: make em.assign typing stricter to catch typos (5c3aea1)
  • core: make em.create typing stricter to catch typos (39e8c30)
  • core: move file discovery to separate file (#​6993) (d880412)
  • core: propagate persist stack in em.transactional fork (0c90e67)
  • core: support FKs pointing to non-PK columns via targetKey option (#​7099) (f98541b)
  • core: support null values in cursor-based pagination (#​7095) (b1fb67c)
  • core: support pre-compiled functions for eval-free runtimes (#​7166) (d8b2c3e)
  • core: validate dangerous property names (#​7089) (78e570d)
  • decorators: introduce @mikro-orm/decorators package with legacy and ES decorator definitions (#​7011) (81e5e97)
  • defineEntity: allow extending generated class with custom methods (#​7104) (25362b8)
  • entity-generator: add manyToManyPropertyName to NamingStrategy (#​7130) (edf1c49)
  • kysely: add MikroKyselyPlugin to support various ORM features with kysely (#​6998) (d01d93b)
  • migrations: remove umzug dependency, improve bundler support (#​7203) (05f195f)
  • oracle: add Oracle DB driver (#​6704) (ef140af)
  • postgres: add support for materialized views (#​7119) (b68e774)
  • query-builder: add support for common table expressions (CTE) (#​7231) (ebd0d43)
  • schema: add native support for advanced index features (#​7160) (a2330d2)
  • schema: allow changing defaults for update/deleteRule and remove inference from cascade option (#​7115) (dd6a226)
  • schema: allow skipping views (#​7150) (be74bf9)
  • seeder: remove tinyglobby dependency, add seedersList option (#​7206) (7f923e5)
  • sql: add $elemMatch operator for JSON array properties (#​7265) (e40a275)
  • sql: improve QueryBuilder type safety with context-aware types (#​7138) (631e351)
  • sql: infer Database for kysely (#​6939) (8f8ada5)
  • sql: replace knex with kysely (#​6400) (2a0384e)
  • sql: replace knex with native implementation of query and schema building (#​6358) (c8471ca)
  • sql: strictly type SelectQueryBuilder.execute() return type (#​7200) (1e15042)
  • sql: support aliasing formula and regular properties in QueryBuilder select (#​7190) (6d8da38)
  • sql: support UNION-based where clauses as index-friendly alternative to $or (#​7214) (1e8a674)
  • sql: transparent querying of embedded array properties (#​7264) (c9f13bb), closes #​1887
  • sqlite: add ATTACH DATABASE support for multiple database files (#​7131) (27f9cac)
  • sqlite: enable down migrations (bd3bb56)
  • sqlite: simplify using other sqlite libraries like node:sqlite (#​7204) (7e8da43)
Performance Improvements
  • core: improve defineEntity type performance (#​7202) (d7491a7)
  • core: improve InferEntity performance when extends is used (#​7120) (f6640e8)
  • core: improve Loaded type performance by optimizing field selection (#​7201) (a34269a)
  • core: improve inference via InferEntity type (#​7108) (9f8f393)
  • core: optimize AutoPath and Loaded type instantiation costs (#​7128) (6f7349d)
  • core: optimize em.assign typing (#​7129) (9e84be3)
  • core: optimize type instantiation costs with structural shapes (#​7132) (b6b0f0f)
  • core: rework auto-flush detection to rely on explicit em.persist calls (#​6982) (e66f138)

6.6.9 (2026-03-05)

Bug Fixes
  • core: fix findOne with entity refs for composite PKs with shared FK columns (6f95f72), closes #​5629
  • core: make entity prototype toJSON non-enumerable to prevent data leaks (c895808)
  • core: prevent double JSON-encoding of nested embeddable arrays (309b278), closes #​7233
  • migrations: normalize snapshots and write on both up/down (#​7236) (a07aca6), closes #​7234
  • migrations: skip snapshot write on migration:up to support read-only filesystems (c8584e8), closes #​7232
  • mysql: fix table.bigincrements() producing int instead of bigint (5660607), closes #​7246

6.6.8 (2026-03-01)

Bug Fixes
  • core: allow using property accessor on to-one relations (06978c9), closes #​7211
  • core: fix double processing of JSON properties when reloading an entity (514ed87)
  • core: preserve embeddable properties in toPOJO regardless of partial loading hints (c27dbae)
  • core: preserve function expression indexes through metadata cache round-trip (#​7229) (9ae8d20), closes #​7238
  • core: use full hydration in mergeData for initialized entities (5529308), closes #​7205
  • knex: handle $not operator inside relation filters (#​7227) (d0dac2f), closes #​7226
  • migrations: delete snapshot file after migration:down (dfcc8c6), closes #​7210
  • postgres: fix phantom diffs for check constraints (#​7224) (103346c)

6.6.7 (2026-02-15)

Bug Fixes
  • core: do not propagate cursor related options to populate queries (e6b9a6a), closes #​7148
  • core: ignore empty conditions produced by filters (1ebbfb0)
  • guard prototype.toJSON against being called on prototype itself (#​7152) (fa5290e), closes #​7151
  • migrations: support emitting multiline queries (fcf360a), closes #​7185
  • schema: do not ignore changes to entity level comments (b421c9d), closes #​7187
  • sql: always alias virtual properties in where query (2f7492d), closes #​7196
  • sql: skip pagination subquery and force balanced strategy for virtual entities (260a2e0), closes #​7195
Features
  • core: add WHERE clause support to upsert via onConflictWhere option (#​7181) (9ed5ef5)

6.6.6 (2026-01-30)

Bug Fixes
  • core: ensure column name conflicts in M:N are propagated to STI child entities (5be76ae), closes #​7123
  • core: ensure no collisions in polymorphic embeddables with shadowed properties (b7707b4)
  • core: fix result caching for custom types (b0ed700), closes #​7112
  • core: respect exclude option on eager properties (cb26a7e)
  • core: support schema parameter in formula query when using QB with partial loading (30b37f7), closes #​7102
  • core: use less strict repository option type to fix issues with defineEntity and cycles (aeb1bb1)

6.6.5 (2026-01-21)

Bug Fixes
  • core: always check the database when querying by PK with filters (bd44c82), closes #​7084
  • core: ensure populate hint won't include undefined for optional relations (fede490)
  • core: improve handling of deeply nested composite keys in em.create (8caae8f), closes #​6894
  • core: normalize populate option in Collection.matching() for M:N relations (#​7091) (886772a)
  • core: support overlapping properties with different field names in STI (badbc00), closes #​5813
  • sql: fix populating M:N relations with pivotEntity that uses mapToPk: true (0ab55fe), closes #​7107
Features
  • core: improve formula callback to provide more information about the table and column mapping (#​7105) (059bf97), closes #​7102

[6.6.4](https://redirect.github.com/mikro


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 is behind base branch, 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 force-pushed the renovate/major-mikro-orm-monorepo branch from f45c080 to 8d1ed2b Compare January 13, 2024 15:38
@renovate renovate bot changed the title fix(deps): Update mikro-orm monorepo to v6 (major) fix(deps): update mikro-orm monorepo to v6 (major) Jan 13, 2024
@renovate renovate bot force-pushed the renovate/major-mikro-orm-monorepo branch 26 times, most recently from 80307e7 to 94a9fc7 Compare January 15, 2024 21:40
@HugoMendes98 HugoMendes98 force-pushed the master branch 2 times, most recently from 30b3893 to 15868ea Compare January 24, 2024 21:55
@renovate renovate bot force-pushed the renovate/major-mikro-orm-monorepo branch 4 times, most recently from 19273df to 030552c Compare January 25, 2024 19:26
@renovate renovate bot force-pushed the renovate/major-mikro-orm-monorepo branch from 030552c to 2822870 Compare January 25, 2024 19:34
@renovate renovate bot force-pushed the renovate/major-mikro-orm-monorepo branch from 2822870 to 9682408 Compare January 25, 2024 19:42
@renovate renovate bot force-pushed the renovate/major-mikro-orm-monorepo branch from 9682408 to 1e68b25 Compare January 25, 2024 19:47
@renovate renovate bot force-pushed the renovate/major-mikro-orm-monorepo branch 15 times, most recently from 638c0ac to e1621f4 Compare January 31, 2024 03:00
@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Mar 15, 2026

⚠️ 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: package-lock.json
npm warn Unknown env config "store". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: graph-flow@0.6.4
npm error Found: @mikro-orm/migrations@7.0.6
npm error node_modules/@mikro-orm/migrations
npm error   @mikro-orm/migrations@"^7.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional @mikro-orm/migrations@"^5.0.0" from @mikro-orm/core@5.9.8
npm error node_modules/@mikro-orm/core
npm error   @mikro-orm/core@"^5.7.14" from the root project
npm error   peer @mikro-orm/core@"^5.0.0" from @mikro-orm/better-sqlite@5.9.8
npm error   node_modules/@mikro-orm/better-sqlite
npm error     peerOptional @mikro-orm/better-sqlite@"^5.0.0" from @mikro-orm/core@5.9.8
npm error   2 more (@mikro-orm/entity-generator, @mikro-orm/mariadb)
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 /runner/cache/others/npm/_logs/2026-03-29T21_42_16_305Z-eresolve-report.txt
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2026-03-29T21_42_16_305Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants