@mikro-orm/mariadb
7.2.11 · 20 Nov 2026MIT316.2k / weekRepositoryHomepagenpmAtom feed
251 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 5.x
5.2.3
8 Jul 2022Reading the note…
5.2.2
3 Jul 2022Reading the note…
5.2.1
21 Jun 2022Reading the note…
5.2.0
10 Jun 2022core: ensure correct cached value in
loadCount
Bug Fixes
core: ensure correct cached value in
loadCountquery-builder: fix calling
qb.count('id', true).getCount()(a97324a), closes #3182query-builder: fix processing of custom types in explicitly aliased queries (db137a6), closes #3172
schema: do not consider autoincrement columns as primary automatically (088afdb), closes #3187
ts-morph: use module: 'node16' for reflection (024d9d9), closes #3168
Typing detection with typescript 4.7 node16
Features
core: automatically discover target embeddables and relationships
entity-generator: allow generating bidirectional relations (8b93400), closes #3181
entity-generator: allow generating identified references
knex: allow reusing existing knex client via
driverOptions(c169eda), closes #3167schema: add logging to schema comparator
5.1.5
29 May 2022Reading the note…
5.1.4
19 May 2022Reading the note…
5.1.3
27 Apr 2022Reading the note…
5.1.2
10 Apr 2022Reading the note…
5.1.1
20 Mar 2022Reading the note…
5.1.0
13 Mar 2022Bug 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
orderBywhen entity haslengthproperty (ef45871), closes #2829core: type global
entityRepositoryoption weaklyknex:
order bywith a formula field should not includeasknex: 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.PAGINATEautomatically forem.find()(ccb4223), closes #2867core: map check constraint failures to specific error type (ebcbdff), closes #2836
5.0.5
27 Feb 2022Reading the note…
5.0.4
22 Feb 2022Reading the note…
5.0.3
20 Feb 2022Reading the note…
5.0.2
16 Feb 2022Reading the note…
5.0.1
13 Feb 2022Reading the note…
5.0.0
6 Feb 2022core: allow calling
em.create()with reference wrapper
medium.com/@b4nan/mikro-orm-5-stricter-safer-sm…
Bug Fixes
assign: do not convert FK to entity when assigning to
mapToPKproperty (b14c8fb), closes #2337cli: validate configuration in CLI cache commands (#2146) (544583b), closes #2145
core: allow calling
em.create()with reference wrappercore: allow empty strings in postgres arrays
core: allow using MongoNamingStrategy with SQL drivers
core: fix pivot tables for wild card schema entities
core: fix populating entities with wildcard schema
core: fix support for nested composite PKs
core: handle
file://urls in normalizePathcore: respect request context when creating QB
core: respect specified schema when populating (select-in)
core: allow non-standard property names (hyphens, spaces, ...) (cc68230), closes #1958
core: allow propagation to multiple matching inverse sides (cf7d538), closes #2371
core: consider objects without prototype as POJO (b49807f), closes #2274
core: declare peer dependencies on driver packages (1873e8c), closes #2110
core: detect ts-jest usage
core: do not check stack trace when detecting ts-node
core: do not override existing values via
prop.onCreatecore: do not propagate
mapToPkpropertiescore: fix conversion of custom type PKs in some cases (28e83ef), closes #1263
core: fix nested query with fk as pk (#2650) (cc54ff9), closes #2648
core: fix ordering by pivot table with explicit schema name (eb1f9bb), closes #2621
core: fix propagation of locking option with select-in population (f3990d0), closes #1670
core: improve partial loading of 1:m relations (3ddde1e), closes #2651
core: issue early delete queries for recreating unique properties (decfd10), closes #2273
core: propagate
em.remove()to 1:m collections (c23c39c), closes #2395core: propagate
em.remove()to m:1 properties of 1:m relations (e6fa2f7), closes #2636core: reload default values after flush in mysql/sqlite (d57a6a9), closes #2581
core: respect read replica options (#2152) (9ec668d), closes #1963
core: rework orphan removal and cascading
core: save collection snapshots recursively after flush (3f5ba2f), closes #2410 #2411
core: schedule orphan removal on 1:1 inverse sides when relation nulled (a904fe8), closes #2273
core: support loading lazy scalar properties via
em.populate()(c20fe88), closes #1479core: sync
MigrateOptionstype in core with migrations packagecore: truly load the whole entity graph when
populate: true(3c21663), closes #1134core: use clean internal identity map with
disableIdentityMap(0677d74), closes #1307embeddables: order of discovery of embeddables should not matter (d955b29), closes #2149
migrations: clear the migrations table in
migration:freshmigrations: respect
baseDirand allow absolute paths for sqlitedbNamepostgres: allow type casting in nested conditions (bbd0eb4), closes #2227
postgres: fix runtime support for native pg enum arrays
postgres: limit index names to 64 characters (48c105a), closes #1915
postgres: support comparing array columns via
$eq(6eb320e), closes #2462query-builder: fix mapping of formula properties
query-builder: respect
0as limitquery-builder: fix nested ordered pagination
query-builder: support joining same property multiple times (b62fb05), closes #2602
query-builder: translate field names in
qb.merge()(5aead23), closes #2177query-builder: validate missing
onConflictcalls (30392bc), closes #1803schema: do not ignore entity level indexes with just expression
schema: improve diffing of default values for strings and dates (d4ac638), closes #2385
seeder: fork EM in the seeder manager so we dont use global context
sql: split
$andbranches when auto joining to-many relationssti: allow m:n relations between two STI entities (6c797e9), closes #2246
ts-morph: fix validation of embedded polymorphic arrays
types: fix populate type hints for nullable properties
validation: throw when calling
qb.update/delete()afterqb.where()(96893e0), closes #2390
Features
cli: validate CLI package is installed locally
cli: add
database:createcommand (#1778) (7e9d97d), closes #1757cli: allow exporting async functions from CLI config
cli: improve loading of CLI settings from package.json (03f9ddd), closes #545
cli: only warn with
useTsNode: truewithout ts-node available (5aff134), closes #1957core: add
em.clearCache(key)methodcore: add
persistOnCreateoption and enable it for seedercore: add custom table check constraint support for postgres
core: allow defining check constraints via callback
core: expose
referencedColumnNameson m:1/1:1 decoratorscore: make
em.create()respect required propertiescore: validate required properties before flushing new entities
core: validate version mismatch in ORM packages
core: add
EventType.onLoadthat fires after entity is fully loadedcore: add
freshEventManagertoem.fork()options (a0f3fd0), closes #1741core: add
populateWhereoptioncore: add
QueryFlag.AUTO_JOIN_ONE_TO_ONE_OWNER(be9d9e1), closes #1660core: add
Reference.createFromPK()helper methodcore: add callback parameter to
Collection.remove()(0b37654), closes #2398core: add index/key name to naming strategy
core: add PlainObject class that DTO's can extend to treat class as POJO
core: add support for advanced locking (0cbed9c), closes #1786
core: add support for concurrency checks
core: add support for custom property ordering
core: add support for ESM via
gen-esm-wrapper(aa71065), closes #1010core: add support for multiple schemas (including UoW) (#2296) (d64d100), closes #2074
core: add support for polymorphic embeddables (#2426) (7b7c3a2), closes #1165
core: allow configuring aliasing naming strategy
core: allow passing arrays in
orderByparameter (#2211) (0ec22ed), closes #2010core: allow providing custom
Loggerinstancecore: allow using short lived tokens in config (4499838), closes #1818
core: automatically infer
populatehint based onfields(0097539), closes #2468core: conditionally support folder based discovery of ESM (8c8f0d0), closes #2631
core: implement auto-flush mode (#2491) (f1d8bf1), closes #2359
core: implement auto-refreshing of loaded entities (#2263) (9dce38c), closes #2292
core: implement partial loading support for joined loading strategy (2bebb5e), closes #1707
core: keep collection state of dirty collections after initializing (49ed651), closes #2408
core: make
FindOptions.fieldsstrictly typed (dot notation)core: make
populateparameter strictly typed with dot notationcore: move
@UseRequestContext()decorator tocorepackagecore: rework deep assigning of entities and enable it by default
core: support column names with spaces (00b54b4), closes #1617
core: use
AsyncLocalStorageinstead ofdomainAPIcore: validate populate hint on runtime for joined strategy too (94877e3), closes #2527
core: validate usage of global context
embeddables: allow using m:1 properties inside embeddables
embeddables: support
onCreateandonUpdate(288899d), closes #2283 #2391entity-generator: add support for generating M:N properties
entity-generator: add enum generation support
entity-generator: allow specifying schema (beb2993), closes #1301
filters: add
emparameter to the filter callback parameters (6858986), closes #2214knex: export also global
knexfunctionmigrations: allow providing custom
MigrationGenerator(3cc366b), closes #1913migrations: allow using migrations with ES modules (072f23f), closes #2631
migrations: ensure the database exists when using migrator (02dd67c), closes #1757
migrations: store migrations without extensions (4036716), closes #2239
migrations: use snapshots for generating diffs in new migrations
mongo: add
SchemaGeneratorsupport for mongoquery-builder: add
qb.getCount()method (f773736), closes #2066query-builder: allow awaiting the
QueryBuilderinstancequery-builder: improve typing of
qb.execute()(c4cfedb), closes #2396schema: add support for timestamp columns in mysql (a224ec9), closes #2386
schema: allow disabling foreign key constraints (fcdb236), closes #2548
schema: rework schema diffing (#1641) (05f15a3), closes #1486 #1518 #579 #1559 #1602 #1480 #1687
seeder: use community driven faker fork and reexport it
sql: add
qb.indexHint()method that appends to the from clause (ce89e1f), closes #1663sql: add callback signature to
expr()with alias parameter (48702c7), closes #2405sql: allow setting transaction isolation level (6ae5fbf), closes #819
sql: allow tuple comparison via
exprhelper (90777a7), closes #2399sql: generate down migrations automatically
typings: make
em.create()and other methods strict (#1718) (e8b7119), closes #1456typings: make
toObject()and similar strict
Performance Improvements
core: do not update entity state on forking EM
Breaking changes
Please see the upgrading guide.
- 4.x
4.5.10
26 Dec 2021Bug Fixes
core: allow putting not managed entities to remove stack (0edb72e), closes #2395
core: defer cascading of persist operation (7d18310), closes #2161
core: do not override internal EM instance when forking EM (fb0abf9), closes #2342
core: do not save entity state in
mergewhen it's not initialized (bdd7452), closes #1927core: fix assigning to object property without value (aca56e1), closes #2492
core: fix collection state when
forceEntityConstructoris used (53d4c39), closes #2406 #2409core: fix reflection of enums in babel (05dee1d), closes #2198
core: fix serialization of self referencing collections (fdbe4f4), closes #2059
core: rehydrate custom types when using metadata cache (3ea37a6), closes #2489
core: remove entity from its bidirectional relations after delete (c754a62), closes #2238
embeddables: add missing serialization options to
@Embedded()(aca6d08), closes #2464embeddables: ensure order of discovery does not matter for embeddables (e3f9dbc), closes #2242
embeddables: fix validating nullable object embeddables (d60dded), closes #2233
mongo: allow using
pool.min/maxoptions in mongo driver (830179d), closes #2228mongo: do not use separate update queries for M:N collections if not needed (f6383a0), closes #2483
postgres: add extra array operators
reflection: relative paths not stripped completely
sti: fix prototype of child entity after it gets loaded (e78942a), closes #2493 #2364
validation: validate missing 1:m mappedBy key in factory (7ef40c0), closes #2393
Update mysql2 dependency to 2.3.2
Performance Improvements
core: define
Referenceproperties on prototypecore: do not redefine
Collectionproperties as non-enumerable (523addd), closes #2543core: reuse EntityComparator on fork()
core: use shared memory for cycles when computing change sets (c12ff4b), closes #2379
core: various small performance improvements in UoW
4.5.9
24 Aug 2021Reading the note…
4.5.8
24 Aug 2021Reading the note…
4.5.7
30 Jun 2021Reading the note…
4.5.6
6 Jun 2021Reading the note…
4.5.5
17 May 2021Reading the note…
4.5.4
26 Apr 2021Reading the note…
4.5.3
9 Apr 2021Reading the note…
4.5.2
6 Apr 2021Reading the note…
4.5.1
27 Mar 2021Reading the note…
4.5.0
21 Mar 2021Reading the note…
4.4.4
21 Feb 2021Reading the note…
4.4.3
14 Feb 2021Reading the note…
4.4.2
4 Feb 2021Reading the note…
4.4.1
1 Feb 2021Reading the note…
4.4.0
24 Jan 2021Reading the note…
4.3.4
11 Dec 2020Reading the note…
4.3.3
4 Dec 2020Reading the note…
4.3.2
24 Nov 2020Reading the note…
4.3.1
20 Nov 2020Reading the note…
4.3.0
13 Nov 2020Reading the note…
4.2.3
24 Oct 2020Reading the note…
4.2.2
22 Oct 2020Reading the note…
4.2.1
20 Oct 2020Reading the note…
4.2.0
18 Oct 2020Reading the note…
4.1.1
14 Oct 2020Reading the note…
4.1.0
12 Oct 2020Reading the note…
4.0.7
24 Sep 2020Reading the note…
4.0.6
22 Sep 2020Reading the note…
4.0.5
21 Sep 2020Reading the note…
4.0.4
19 Sep 2020Reading the note…
4.0.3
15 Sep 2020Reading the note…
4.0.2
11 Sep 2020Reading the note…
4.0.1
10 Sep 2020Reading the note…
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.