@mikro-orm/core
7.2.11 · 20 Nov 2026MIT1.6M / weekRepositoryHomepagenpmAtom feed
Upgrading @mikro-orm/core From 5.1.3 to 6.6.10
151 releases in betweenevery note read
Start here
Before you upgrade
Tick each one off as you go- Breaking5.9.0
- Breaking5.6.0
- Breaking5.5.0
- Deprecated6.6.2
- Deprecated5.8.4
- Deprecated5.7.13
- Deprecated5.7.7
- Deprecated5.7.5
- Deprecated5.7.0
- Deprecated5.6.0
Security
Fixes 2 advisories affecting 5.1.3
- MikroORM is vulnerable to SQL Injection via specially crafted objectcritical · GHSA-gwhv-j974-6fxm
- MikroORM has Prototype Pollution in Utils.mergehigh · GHSA-qpfv-44f3-qqx6
- 6.6.10
core: prevent prototype pollution in
Utils.merge
Release by release
- Security
core: prevent prototype pollution in
Utils.merge - Fixed
- Fixed
core: tighten query construction validation
- Fixed
- Security
- Fixed
- Fixed
core: make entity prototype
toJSONnon-enumerable to prevent data leaks - Fixed
- Fixed
- Fixed
- Fixed
- Fixed
- Fixed
core: fix double processing of JSON properties when reloading an entity
- Fixed
core: preserve embeddable properties in
toPOJOregardless of partial loading hints - Fixed
- New
core: add WHERE clause support to upsert via
onConflictWhereoption - Fixed
- Fixed
core: ignore empty conditions produced by filters
- Fixed
- New
- Fixed
- Fixed
core: ensure no collisions in polymorphic embeddables with shadowed properties
- Fixed
- Fixed
core: respect
excludeoption on eager properties - Fixed
- Fixed
core: use less strict
repositoryoption type to fix issues withdefineEntityand cycles
- New
- Fixed
- Fixed
core: ensure
populatehint won't includeundefinedfor optional relations - Fixed
- Fixed
core: normalize
populateoption inCollection.matching()for M:N relations - Fixed
- Fixed
- Fixed
- Fixed
core: fix applying filters on nested relation conditions
- Fixed
core: fix processing filters on to-many relations
- Fixed
core: respect
orphanRemovalon 1:1 relations when inverse side is a PK - Fixed
core: support wildcard
wrap(e).populate()hints on type level - Fixed
mongo: fix field name conversion when querying object embedded entities
- Fixed
postres: fix casting of object embedded relation properties
- Fixed
- Fixed
core: don't reset entity identifiers when using
assignon entity references - Fixed
core: handle custom types properly in
em.refresh - Fixed
defineEntity: avoid circular type inference in meta
- Fixed
- Fixed
schema: ensure
SchemaGeneratorrespectsskipTablesoption when diffing a schema
3 internal lines (docs, tests, tooling) left out.
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.