Packages

@mikro-orm/mssql

7.2.11 · 20 Nov 2026MIT288.7k / weekRepositoryHomepagenpmAtom feed

Your version

7.2.2

28 Sep 2026Where it was published

7.2.11 is the newest release of 7.x.

In short

1 faster29 fixed

Release note

Bug Fixes

  • core: allow falsy values in concurrency checks

  • core: compare FK column for primary key conditions on polymorphic relations (#8328) (7ead234), closes #8326

  • core: do not mutate the where condition and data passed to the EntityManager (#8291) (6b42e5b), closes #8290

  • core: handle primary key values and objects in polymorphic and relation conditions (#8329) (cc54e42), closes #8328

  • core: hydrate partial upsert results without mismatching entities

  • core: keep entity identity for relations using targetKey (#8323) (10c73e3), closes #8322

  • core: keep the input order in em.upsertMany() when a split batch has duplicate rows

  • core: make compiled function keys independent of module evaluation order (#8339) (4e52beb), closes #8335

  • core: map upsertMany results to the corresponding SQL inputs

  • core: merge columns supplied only by some rows in em.upsertMany()

  • core: preserve concurrency values in batch lock checks

  • core: preserve entity schema when restoring cached results

  • core: preserve existing groups when lifting relation filters

  • core: resolve repositories in non-transactional callbacks

  • core: respect custom fieldNames in polymorphic relations

  • core: respect locally disabled transactions during flush

  • mongodb: throw on unsupported polymorphic relation conditions

  • mssql: handle OUTPUT results on tables with triggers

  • mssql: preserve columns from heterogeneous upsert inputs

  • mssql: restrict TPT identity inserts to the owning table

  • sql: apply target filters when populating polymorphic relations

  • sql: do not convert custom types twice in em.countBy() (#8342) (f2f19f9), closes #8341

  • sql: do not treat persisted properties as virtual in paginated orderBy (#8309) (6e765dd), closes #8308

  • sql: handle STI subtypes with conflicting property columns and types

  • sql: keep halfvec and sparsevec dimensions during postgres introspection (#8315) (59d3633), closes #5739

  • sql: keep rows when ordering by polymorphic relation targets

  • sql: resolve embedded formulas in partial field selections

  • sql: resolve inline embeddable columns that shadow the property name (#8293) (7042e34), closes #8292

  • sql: respect distinct() and distinctOn() in qb.getCount() (#8312) (00da4bd), closes #8311

  • sql: respect property returning hints on updates and upserts

Performance Improvements

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.