Skip to main content
Version: 5.2

Changelog

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

5.2.1 (2022-06-21)

Features

  • core: allow to adjust default type mapping (ca8ce57), closes #3066

5.2.0 (2022-06-10)

Bug Fixes

  • schema: do not consider autoincrement columns as primary automatically (088afdb), closes #3187
  • typing detection with typescript 4.7 node16 (#3163) (08322fa)

5.1.5 (2022-05-29)

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

5.1.4 (2022-05-19)

Bug Fixes

  • mongo: support queries with mongo specific operators on embeddables (2fb9002)
  • postgres: do not try to create schema for migrations when it exists (d6af811), closes #3106
  • postgres: fix resolving knex when other version is explicitly installed (41f5665), closes #3129
  • postgres: ignore schemas prefixed with crdb_ too (049fea3), closes #3021
  • schema: always ignore PostGIS schemas when diffing (#3096) (626e3db)

Features

  • postgres: allow ignoring specified schemas (3f1d2da)

5.1.3 (2022-04-27)

Bug Fixes

  • postgres: allow using special characters in string arrays (366da5f), closes #3037
  • schema: fix diffing of indexes with too long inferred name (01ba9ed), closes #2932

5.1.2 (2022-04-10)

Bug Fixes

  • postgres: do not ignore custom PK constraint names (#2931) (24bf10e)
  • postgres: drop enum constraints only when the column was an enum (76fef39)
  • postgres: ensure correct column order in compound index/uniques (321be79), closes #2932
  • postgres: fix pagination with order by bool column (d5476cd), closes #2910
  • postgres: fix schema diffing on enums with case-sensitive names (050875b), closes #2938 #2932

Features

5.1.1 (2022-03-20)

Bug Fixes

  • postgres: fix pagination with order by UUID PK (042626c), closes #2910

5.1.0 (2022-03-13)

Bug Fixes

  • core: do not alias JSON conditions on update/delete queries (5c0674e), closes #2839

Features

  • core: map check constraint failures to specific error type (ebcbdff), closes #2836

5.0.5 (2022-02-27)

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

5.0.4 (2022-02-22)

Bug Fixes

  • schema: escape table/column comments (fff1581), closes #2805

5.0.3 (2022-02-20)

Bug Fixes

  • postgres: consider int8 as numeric when inferring autoincrement value (64bc99d), closes #2791

5.0.2 (2022-02-16)

Bug Fixes

  • postgres: do not ignore custom PK constraint names (3201ef7), closes #2762

5.0.1 (2022-02-13)

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

5.0.0 (2022-02-06)

Bug Fixes

  • core: allow empty strings in postgres arrays (#2680) (5a33722)
  • core: declare peer dependencies on driver packages (1873e8c), closes #2110
  • postgres: fix runtime support for native pg enum arrays (#2584) (fcdb9b0)
  • postgres: limit index names to 64 characters (48c105a), closes #1915
  • schema: improve diffing of default values for strings and dates (d4ac638), closes #2385
  • sql: split $and branches when auto joining to-many relations (70c795a), closes #2677

Features

BREAKING CHANGES

  • core: Embeddable instances are now created via EntityFactory and they respect the forceEntityConstructor configuration. Due to this we need to have EM instance when assigning to embedded properties.

Using em.assign() should be preferred to get around this.

Deep assigning of child entities now works by default based on the presence of PKs in the payload. This behaviour can be disable via updateByPrimaryKey: false in the assign options.

mergeObjects option is now enabled by default.

  • core: em.getReference() now has options parameter.

4.5.10 (2021-12-26)

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

4.5.9 (2021-08-24)

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

4.5.8 (2021-08-24)

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

4.5.7 (2021-06-30)

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

4.5.6 (2021-06-06)

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

4.5.5 (2021-05-17)

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

4.5.4 (2021-04-26)

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

4.5.3 (2021-04-09)

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

4.5.2 (2021-04-06)

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

4.5.1 (2021-03-27)

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

4.5.0 (2021-03-21)

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

4.4.4 (2021-02-21)

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

4.4.3 (2021-02-14)

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

4.4.2 (2021-02-04)

Features

4.4.1 (2021-02-01)

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

4.4.0 (2021-01-24)

Features

4.3.4 (2020-12-11)

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

4.3.3 (2020-12-04)

Bug Fixes

  • schema: fix diffing tables in other than default schema (429d832), closes #1142 #1143

4.3.2 (2020-11-24)

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

4.3.1 (2020-11-20)

Bug Fixes

  • postgres: use ->> to search in object embeddables (78c9373), closes #1091

4.3.0 (2020-11-13)

Bug Fixes

  • core: pin dependencies (0f3a8e5), closes #961
  • sql: do not batch update unique properties (87b722a), closes #1025
  • sql: inline array parameters when formatting queries (a21735f), closes #1021

4.2.3 (2020-10-24)

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

4.2.2 (2020-10-22)

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

4.2.1 (2020-10-20)

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

4.2.0 (2020-10-18)

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

4.1.1 (2020-10-14)

Bug Fixes

  • postgres: escape question marks in parameters (813e3cd), closes #920

4.1.0 (2020-10-12)

Bug Fixes

  • postgres: do not convert date type columns to Date js objects (2cfb145), closes #864
  • sqlite: rework schema support for composite keys in sqlite (82e2efd), closes #887

Performance Improvements

  • core: interpolate query parameters at ORM level (742b813), closes #732
  • core: use bulk inserts in all drivers (10f2e55), closes #732
  • core: use JIT compilation for snapshotting entities (5612759), closes #732

4.0.7 (2020-09-24)

Performance Improvements

  • core: use batch inserts in UoW (postgres & mongodb) (#865) (54ad928), closes #732

4.0.6 (2020-09-22)

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

4.0.5 (2020-09-21)

Bug Fixes

  • schema: defer creating of composite indexes + implement diffing (f57b457), closes #850

4.0.4 (2020-09-19)

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

4.0.3 (2020-09-15)

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

4.0.2 (2020-09-11)

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

4.0.1 (2020-09-10)

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