Packages

@mikro-orm/mssql

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

Your version

7.1.9

30 Jul 2026Where it was published

7.2.11 is the newest release of 7.x.

In short

29 fixed

Release note

Bug Fixes

  • core: fix batch updates when the whole primary key is one relation

  • core: keep null value of embedded arrays in snapshots and hydration (#8046) (93d62bf), closes #8045

  • core: keep the fixed order column as the sole pivot PK for polymorphic M:N

  • core: map returning values back to entities after batch update

  • core: support mixed STI child types in batch updates

  • core: support version and optimistic locking on nested composite keys

  • entity-generator: correctly escape generated string literals and keys

  • entity-generator: sanitize file names taken from database metadata

  • libsql: stop recycling local connections every 10 seconds

  • migrations: sanitize custom migration names into valid class identifiers

  • mssql: execute create trigger in its own query batch

  • mssql: manage table and column comments via extended properties

  • oracledb: bind every returned column of a multi column property

  • oracle: keep the config user in sync with the pool after dropDatabase()

  • oracle: set the session schema when the connection user differs from dbName (#8042) (3a942d2), closes #8040

  • postgresql: don't crash the process when the server drops a connection

  • sql: apply column comment changes in a single schema update pass

  • sql: apply query cancellation strategies inside transactions

  • sql: compile an empty $or to an always-false predicate

  • sql: emit valid SQL for negated and empty condition groups

  • sql: include composite FK values in the pivot row hash (#8082) (f2d5a89), closes #8078 #8078

  • sql: keep multi line comments intact when grouping schema DDL

  • sql: keep multi line trigger bodies stable across schema updates

  • sql: keep pivot rows distinct when the fixed order column is not unique (#8078) (63a2c83), closes #8075

  • sql: keep polymorphic pivot rows distinct when the fixed order column is not unique (#8085) (20734f7), closes #8078

  • sql: keep the original error when the rollback of a failed transaction also fails

  • sql: load M:N collections of owners with a nested composite PK

  • sql: load the owner side of a polymorphic M:N pivot shared by owners of different PK arity (#8084) (6fbdcc4), closes #8081

  • sql: load the owner side of a polymorphic M:N with a composite PK owner (#8081) (a38cca5), closes #8080

  • sql: normalize implicit aggregate aliases and multi word casts (#8058) (e90c141), closes #8055

  • sql: normalize trigger bodies when generating DDL (#8063) (32da92f), closes #8061

  • sql: pass a flat PK array when persisting M:N of a composite PK owner

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.