@mikro-orm/mssql
7.2.11 · 20 Nov 2026MIT288.7k / weekRepositoryHomepagenpmAtom feed
7.2.11 is the newest release of 7.x.
In short
27 new7 fixed
Release note
mikro-orm.io/blog/mikro-orm-7-1-released
Bug Fixes
core: coerce ISO date strings to
Dateinem.assign()(#7740) (0940a5f), closes #7737core: skip M:N inverse scrub for STI siblings that can't reference the entity
core: treat inlined embeddables as loaded when their leaves are
mongo: clean up inlined pivot on em.remove when owning side is populated (#7755) (4c5f03a), closes #7752
mongo: create collections before ensuring indexes in
create()mongo: throw on em.remove of inlined-pivot M:N target with uninitialized owning side (#7752) (231f84c), closes #7750
sql: infer scalar array properties as columns in Kysely types (#7753) (111d69d), closes #7751
sql: wrap raw subqueries with parens inside INSERT VALUES (#7754) (d379880), closes #7749
Features
cli: add
discovery:exportcommand (#7335) (e38f5c4), closes #7323 #7323cli: add
migration:logandmigration:unlogcommands (#7347) (6cf1045), closes #5390cli: emit typed
EntityManageralias fromdiscovery:exportcore: accept enum references directly in
itemscore: add
discriminatoroption and column-name override (#7748) (5390ce8), closes #7121core: add
em.clone()andqb.insertFrom()for server-side row cloning (#7365) (13ca566), closes #5820core: add
em.countBy()for grouped countingcore: add
fieldswhitelist option toserialize()(#7517) (6ea6d64), closes #7507core: add
initNullablePropertiesconfig option (#7554) (03a3122), closes #7551core: add
LazyRef<T>,Loadablemixin, andunref()escape hatchcore: add
whereoption for partial indexes and unique constraintscore: add a
chunkSizeoption to streamscore: add column-level
collationsupport for SQL drivers (#7615) (12e3a73), closes #4286core: add dataloader support for
Collection.loadCount()(#7373) (120189c), closes #7372 #6425core: add type-safe
usingoption for index hints (#7375) (3337b58), closes #7175core: auto-generated classes inherit from parent with defineEntity extends
core: expose query cancellation via
AbortSignalcore: per-parent limiting for populated collections (#7370) (6ff01e4), closes #1059
core: support
arrayoption on scalar properties (#7378) (b54b756), closes #7363core: support stored procedures and functions (#7693) (9bbbb8b), closes #5253
core: union-target polymorphic M:N relations (#7569) (dfbe1c2), closes #7564 #7564
migrations: add migration:rollup command (#7468) (8de2c92), closes #3633
migrations: support runtime schema context (#7597) (9b00229), closes #3319 #4928
pglite: add PGlite driver
postgresql: add support for table partitioning (#7497) (63d0977), closes #6944 #6944
schema: add database trigger support (#7379) (da4010d), closes #5053
sql: bind
getKysely()to the current transaction context (#7701) (344be12), closes #7679
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.