Packages

@mikro-orm/mysql

7.2.11 · 20 Nov 2026MIT388.9k / weekRepositoryHomepagenpmAtom feed

Your version

5.1.0

13 Mar 2022Where it was published

5.9.8 is the newest release of 5.x.

In short

5 new10 fixed

Release note

Bug Fixes

  • core: do not alias JSON conditions on update/delete queries (5c0674e), closes #2839

  • core: ensure all entities from inner context are merged to the upper one (7b3a6b4), closes #2882

  • core: fix object key utilities for null prototype objects (#2847) (b2cf01e), closes #2846

  • core: fix ordering by complex composite PKs (dde11d3), closes #2886

  • core: fix strict type for orderBy when entity has length property (ef45871), closes #2829

  • core: type global entityRepository option weakly

  • knex: order by with a formula field should not include as

  • knex: fully qualify sub-query order-by fields

  • mysql: mark FK columns as unsigned for mixed composite PKs (67806cb), closes #2844

  • postgres: respect schema name in migration storage (fbf9bfa), closes #2828

Features

  • core: allow better control over connection type when using read-replicas

  • core: allow specifying custom pivot table entity

  • core: allow using hooks for interface entities

  • core: enable QueryFlag.PAGINATE automatically for em.find() (ccb4223), closes #2867

  • core: map check constraint failures to specific error type (ebcbdff), closes #2836

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.