Skip to main content
Version: Next

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

6.4.0 (2024-11-11)

Bug Fixes

Features

  • core: allow defining multiple named configurations in one config file (#6201) (cecea34), closes #6067

6.3.13 (2024-10-06)

Note: Version bump only for package @mikro-orm/cli

6.3.12 (2024-10-01)

Note: Version bump only for package @mikro-orm/cli

6.3.11 (2024-09-26)

Note: Version bump only for package @mikro-orm/cli

6.3.10 (2024-09-15)

Note: Version bump only for package @mikro-orm/cli

6.3.9 (2024-09-09)

Note: Version bump only for package @mikro-orm/cli

6.3.8 (2024-09-04)

Note: Version bump only for package @mikro-orm/cli

6.3.7 (2024-08-28)

Note: Version bump only for package @mikro-orm/cli

6.3.6 (2024-08-14)

Note: Version bump only for package @mikro-orm/cli

6.3.5 (2024-08-11)

Features

  • cli: detect bun when checking for TS support (e87ebc9)

6.3.4 (2024-08-06)

Note: Version bump only for package @mikro-orm/cli

6.3.3 (2024-08-03)

Note: Version bump only for package @mikro-orm/cli

6.3.2 (2024-08-01)

Note: Version bump only for package @mikro-orm/cli

6.3.1 (2024-07-25)

Bug Fixes

  • core: always check TS config files if TS support is detected (eb100fe), closes #5852

6.3.0 (2024-07-18)

Features

  • cli: always check TS files regardless of useTsNode (#5650) (7c34416)

6.2.9 (2024-05-31)

Note: Version bump only for package @mikro-orm/cli

6.2.8 (2024-05-21)

Bug Fixes

  • cli: disable eager connection when creating the ORM instance (ef5d14a), closes #5030

6.2.7 (2024-05-18)

Note: Version bump only for package @mikro-orm/cli

6.2.6 (2024-05-14)

Note: Version bump only for package @mikro-orm/cli

6.2.5 (2024-05-05)

Note: Version bump only for package @mikro-orm/cli

6.2.4 (2024-05-02)

Note: Version bump only for package @mikro-orm/cli

6.2.3 (2024-04-24)

Note: Version bump only for package @mikro-orm/cli

6.2.2 (2024-04-20)

Note: Version bump only for package @mikro-orm/cli

6.2.1 (2024-04-12)

Note: Version bump only for package @mikro-orm/cli

6.2.0 (2024-04-09)

Note: Version bump only for package @mikro-orm/cli

6.1.12 (2024-03-24)

Features

  • cli: add reason for failed connection check in debug command (d61e248)

6.1.11 (2024-03-18)

Note: Version bump only for package @mikro-orm/cli

6.1.10 (2024-03-14)

Note: Version bump only for package @mikro-orm/cli

6.1.9 (2024-03-10)

Note: Version bump only for package @mikro-orm/cli

6.1.8 (2024-03-06)

Note: Version bump only for package @mikro-orm/cli

6.1.7 (2024-03-04)

Note: Version bump only for package @mikro-orm/cli

6.1.6 (2024-02-28)

Note: Version bump only for package @mikro-orm/cli

6.1.5 (2024-02-21)

Note: Version bump only for package @mikro-orm/cli

6.1.4 (2024-02-16)

Note: Version bump only for package @mikro-orm/cli

6.1.3 (2024-02-13)

Note: Version bump only for package @mikro-orm/cli

6.1.2 (2024-02-11)

Note: Version bump only for package @mikro-orm/cli

6.1.1 (2024-02-10)

Note: Version bump only for package @mikro-orm/cli

6.1.0 (2024-02-04)

Note: Version bump only for package @mikro-orm/cli

6.0.7 (2024-01-30)

Note: Version bump only for package @mikro-orm/cli

6.0.6 (2024-01-29)

Note: Version bump only for package @mikro-orm/cli

6.0.5 (2024-01-18)

Bug Fixes

  • cli: try to respect windows ESM binary (57e91e2), closes #5147

6.0.4 (2024-01-15)

Note: Version bump only for package @mikro-orm/cli

6.0.3 (2024-01-13)

Note: Version bump only for package @mikro-orm/cli

6.0.2 (2024-01-09)

Note: Version bump only for package @mikro-orm/cli

6.0.1 (2024-01-08)

Note: Version bump only for package @mikro-orm/cli

6.0.0 (2024-01-08)

Bug Fixes

  • cli: support mikro-orm-esm on windows (341bed8)

Features

  • core: add GeneratedCacheAdapter for production usage (#4167) (bd478af), closes #4164
  • core: add MikroORM.initSync() helper (#4166) (8b1a1fa), closes #4164
  • core: allow overriding ORM config path via --config (#3924) (2c929e0)
  • core: re-export the core package from all drivers (#3816) (175c059)
  • core: remove static require calls (#3814) (b58f476), closes #3743
  • core: rework serialization rules to always respect populate hint (#4203) (32d7c5f), closes #4138 #4199
  • entity-generator: allow local and global configuration of all options (#4965) (2876b8a)

5.9.2 (2023-11-02)

Note: Version bump only for package @mikro-orm/cli

5.9.1 (2023-10-31)

Note: Version bump only for package @mikro-orm/cli

5.9.0 (2023-10-24)

Note: Version bump only for package @mikro-orm/cli

5.8.10 (2023-10-18)

Note: Version bump only for package @mikro-orm/cli

5.8.9 (2023-10-15)

Note: Version bump only for package @mikro-orm/cli

5.8.8 (2023-10-11)

Note: Version bump only for package @mikro-orm/cli

5.8.7 (2023-10-05)

Note: Version bump only for package @mikro-orm/cli

5.8.6 (2023-10-02)

Bug Fixes

  • migrations: allow running migrations outside of main transaction (e0dfb0c), closes #4775

5.8.5 (2023-09-30)

Bug Fixes

  • core: pin all internal dependencies (f4868ed), closes #4764

5.8.4 (2023-09-27)

Note: Version bump only for package @mikro-orm/cli

5.8.3 (2023-09-24)

Bug Fixes

  • mongo-migrations: fix logging of executed migrations (8ae7eeb), closes #4698

5.8.2 (2023-09-20)

Bug Fixes

  • mongo-migrations: fix logging of executed migrations (2d9fc86), closes #4698

5.8.1 (2023-09-12)

Note: Version bump only for package @mikro-orm/cli

5.8.0 (2023-09-10)

Features

  • cli: add --drop-db flag to migration:fresh and schema:fresh (cf1db80), closes #4569

5.7.14 (2023-07-27)

Note: Version bump only for package @mikro-orm/cli

5.7.13 (2023-07-16)

Note: Version bump only for package @mikro-orm/cli

5.7.12 (2023-06-10)

Note: Version bump only for package @mikro-orm/cli

5.7.11 (2023-06-01)

Bug Fixes

  • cli: expose missing migration:check command (#4388) (79e128e)

5.7.10 (2023-05-23)

Note: Version bump only for package @mikro-orm/cli

5.7.9 (2023-05-22)

Note: Version bump only for package @mikro-orm/cli

5.7.8 (2023-05-21)

Note: Version bump only for package @mikro-orm/cli

5.7.7 (2023-05-14)

Note: Version bump only for package @mikro-orm/cli

5.7.6 (2023-05-13)

Note: Version bump only for package @mikro-orm/cli

5.7.5 (2023-05-09)

Note: Version bump only for package @mikro-orm/cli

5.7.4 (2023-05-01)

Note: Version bump only for package @mikro-orm/cli

5.7.3 (2023-04-28)

Note: Version bump only for package @mikro-orm/cli

5.7.2 (2023-04-25)

Bug Fixes

  • cli: await the yargs.parse call in esm.ts (#4272) (dcdf70a)

5.7.1 (2023-04-25)

Bug Fixes

5.7.0 (2023-04-23)

Features

  • migrations: add support for custom migration names (#4250) (fb2879e)

5.6.16 (2023-04-04)

Reverts

  • Revert "chore(release): v5.6.16 [skip ci]" (49faac9)
  • Revert "chore(release): update internal dependencies to use tilde [skip ci]" (381cba1)

5.6.15 (2023-03-18)

Note: Version bump only for package @mikro-orm/cli

5.6.14 (2023-03-12)

Note: Version bump only for package @mikro-orm/cli

5.6.13 (2023-03-01)

Note: Version bump only for package @mikro-orm/cli

5.6.12 (2023-02-26)

Note: Version bump only for package @mikro-orm/cli

5.6.11 (2023-02-17)

Note: Version bump only for package @mikro-orm/cli

5.6.10 (2023-02-17)

Note: Version bump only for package @mikro-orm/cli

5.6.9 (2023-02-10)

Note: Version bump only for package @mikro-orm/cli

5.6.8 (2023-01-25)

Note: Version bump only for package @mikro-orm/cli

5.6.7 (2023-01-13)

Note: Version bump only for package @mikro-orm/cli

5.6.6 (2023-01-10)

Note: Version bump only for package @mikro-orm/cli

5.6.5 (2023-01-09)

Features

5.6.4 (2023-01-04)

Features

5.6.3 (2022-12-28)

Note: Version bump only for package @mikro-orm/cli

5.6.2 (2022-12-25)

Note: Version bump only for package @mikro-orm/cli

5.6.1 (2022-12-20)

Note: Version bump only for package @mikro-orm/cli

5.6.0 (2022-12-09)

Features

5.5.3 (2022-11-10)

Note: Version bump only for package @mikro-orm/cli

5.5.2 (2022-11-07)

Note: Version bump only for package @mikro-orm/cli

5.5.1 (2022-11-05)

Note: Version bump only for package @mikro-orm/cli

5.5.0 (2022-10-23)

Bug Fixes

  • cli: fix using npx --workspace with mikro-orm-esm (#3560) (64777af)
  • cli: improve success message of schema:update/drop commands (11d0fd9)
  • core: fix changing 1:1 relations value (7b6e6f7), closes #3614

5.4.2 (2022-09-12)

Features

  • cli: add mikro-orm-esm CLI script with registered ts-node/esm loader (443f0c8), closes #3485

5.4.1 (2022-09-08)

Bug Fixes

  • cli: only use dynamic imports for ESM projects (b3e43d0), closes #3442
  • core: change internal dependencies to use ~ instead of ^ (fdbf67c), closes #3468

5.4.0 (2022-09-01)

Bug Fixes

  • cli: allow working with mongo migrations via CLI (14a07df)
  • core: compile with module: 'Node16' to have real dynamic imports (#3439) (50347ef)
  • core: update to TypeScript 4.8 and improve EntityDTO type (#3389) (f2957fb)

5.3.1 (2022-08-04)

Note: Version bump only for package @mikro-orm/cli

5.3.0 (2022-08-01)

Features

  • mongo: add support for migrations in mongo driver (#3347) (c5c6115)

5.2.4 (2022-07-25)

Note: Version bump only for package @mikro-orm/cli

5.2.3 (2022-07-08)

Note: Version bump only for package @mikro-orm/cli

5.2.2 (2022-07-03)

Note: Version bump only for package @mikro-orm/cli

5.2.1 (2022-06-21)

Note: Version bump only for package @mikro-orm/cli

5.2.0 (2022-06-10)

Bug Fixes

  • typing detection with typescript 4.7 node16 (#3163) (08322fa)

5.1.5 (2022-05-29)

Bug Fixes

  • cli: disable TS mode when we fail to register ts-node (457d9d3), closes #3152

5.1.4 (2022-05-19)

Note: Version bump only for package @mikro-orm/cli

5.1.3 (2022-04-27)

Note: Version bump only for package @mikro-orm/cli

5.1.2 (2022-04-10)

Note: Version bump only for package @mikro-orm/cli

5.1.1 (2022-03-20)

Bug Fixes

  • schema: respect disableForeignKeys in schema generator (f1b8e46), closes #2912

5.1.0 (2022-03-13)

Note: Version bump only for package @mikro-orm/cli

5.0.5 (2022-02-27)

Note: Version bump only for package @mikro-orm/cli

5.0.4 (2022-02-22)

Note: Version bump only for package @mikro-orm/cli

5.0.3 (2022-02-20)

Bug Fixes

  • core: revert to require() when getting ORM version to fix webpack support (6cfb526), closes #2799

Features

5.0.2 (2022-02-16)

Note: Version bump only for package @mikro-orm/cli

5.0.1 (2022-02-13)

Bug Fixes

  • core: use createRequire instead of dynamic import for JSON files (f567d2d), closes #2738

Features

  • seeder: refactor seeder to support running compiled files (#2751) (8d9c4c0), closes #2728

5.0.0 (2022-02-06)

Bug Fixes

  • cli: validate configuration in CLI cache commands (#2146) (544583b), closes #2145
  • core: declare peer dependencies on driver packages (1873e8c), closes #2110
  • migrations: clear the migrations table in migration:fresh (63eb4e6), closes #2698

Code Refactoring

  • core: use options parameters on SchemaGenerator (7e48c5d)

Features

  • cli: add database:create command (#1778) (7e9d97d), closes #1757
  • cli: validate CLI package is installed locally (8952149)
  • core: add support for ESM via gen-esm-wrapper (aa71065), closes #1010
  • core: add support for multiple schemas (including UoW) (#2296) (d64d100), closes #2074
  • core: allow providing custom Logger instance (#2443) (c7a75e0)
  • core: validate version mismatch in ORM packages (cf70219)
  • entity-generator: allow specifying schema (beb2993), closes #1301
  • seeder: add seeder package (#929) (2b86e22), closes #251
  • sql: generate down migrations automatically (#2139) (7d78d0c)

BREAKING CHANGES

  • core: em.getReference() now has options parameter.
  • core: SchemaGenerator API changed, boolean parameters are now removed in favour of options objects
interface SchemaGenerator {
generate(): Promise<string>;
createSchema(options?: { wrap?: boolean }): Promise<void>;
ensureDatabase(): Promise<void>;
getCreateSchemaSQL(options?: { wrap?: boolean }): Promise<string>;
dropSchema(options?: { wrap?: boolean; dropMigrationsTable?: boolean; dropDb?: boolean }): Promise<void>;
getDropSchemaSQL(options?: { wrap?: boolean; dropMigrationsTable?: boolean }): Promise<string>;
updateSchema(options?: { wrap?: boolean; safe?: boolean; dropDb?: boolean; dropTables?: boolean }): Promise<void>;
getUpdateSchemaSQL(options?: { wrap?: boolean; safe?: boolean; dropDb?: boolean; dropTables?: boolean }): Promise<string>;
createDatabase(name: string): Promise<void>;
dropDatabase(name: string): Promise<void>;
execute(sql: string, options?: { wrap?: boolean }): Promise<void>;
}

4.5.10 (2021-12-26)

Note: Version bump only for package @mikro-orm/cli

4.5.9 (2021-08-24)

Note: Version bump only for package @mikro-orm/cli

4.5.8 (2021-08-24)

Note: Version bump only for package @mikro-orm/cli

4.5.7 (2021-06-30)

Note: Version bump only for package @mikro-orm/cli

4.5.6 (2021-06-06)

Note: Version bump only for package @mikro-orm/cli

4.5.5 (2021-05-17)

Note: Version bump only for package @mikro-orm/cli

4.5.4 (2021-04-26)

Note: Version bump only for package @mikro-orm/cli

4.5.3 (2021-04-09)

Note: Version bump only for package @mikro-orm/cli

4.5.2 (2021-04-06)

Note: Version bump only for package @mikro-orm/cli

4.5.1 (2021-03-27)

Note: Version bump only for package @mikro-orm/cli

4.5.0 (2021-03-21)

Features

  • core: infer configuration from environment variables (#1498) (1ff07a7), closes #1472

4.4.4 (2021-02-21)

Bug Fixes

  • cli: fix debug command with file globs (5ec60e2), closes #1465

4.4.3 (2021-02-14)

Note: Version bump only for package @mikro-orm/cli

4.4.2 (2021-02-04)

Note: Version bump only for package @mikro-orm/cli

4.4.1 (2021-02-01)

Note: Version bump only for package @mikro-orm/cli

4.4.0 (2021-01-24)

Note: Version bump only for package @mikro-orm/cli

4.3.4 (2020-12-11)

Note: Version bump only for package @mikro-orm/cli

4.3.3 (2020-12-04)

Bug Fixes

  • cli: print both entities and entitiesTs in debug command (90b85e4), closes #1139

4.3.2 (2020-11-24)

Note: Version bump only for package @mikro-orm/cli

4.3.1 (2020-11-20)

Note: Version bump only for package @mikro-orm/cli

4.3.0 (2020-11-13)

Bug Fixes

4.2.3 (2020-10-24)

Note: Version bump only for package @mikro-orm/cli

4.2.2 (2020-10-22)

Note: Version bump only for package @mikro-orm/cli

4.2.1 (2020-10-20)

Note: Version bump only for package @mikro-orm/cli

4.2.0 (2020-10-18)

Note: Version bump only for package @mikro-orm/cli

4.1.1 (2020-10-14)

Note: Version bump only for package @mikro-orm/cli

4.1.0 (2020-10-12)

Note: Version bump only for package @mikro-orm/cli

4.0.7 (2020-09-24)

Note: Version bump only for package @mikro-orm/cli

4.0.6 (2020-09-22)

Note: Version bump only for package @mikro-orm/cli

4.0.5 (2020-09-21)

Note: Version bump only for package @mikro-orm/cli

4.0.4 (2020-09-19)

Note: Version bump only for package @mikro-orm/cli

4.0.3 (2020-09-15)

Note: Version bump only for package @mikro-orm/cli

4.0.2 (2020-09-11)

Note: Version bump only for package @mikro-orm/cli

4.0.1 (2020-09-10)

Bug Fixes

  • core: refactor internals to reduce number of cycles (#830) (3994767)
Page Options