MikroORM v5.1.3 Release Notes

Release Date: 2022-04-27 // about 2 years ago
  • ๐Ÿ› Bug Fixes

    • core: allow replacing target entity in relations with assign (90ec83f), closes #3026
    • core: do not inline query for JSON properties that match PK names (e6005d8), closes #3054
    • core: fix serialization when using partial loading for nested relations (00be9f1), closes #3011
    • core: hydrate nullable embedded properties as null (e8490f6), closes #3063
    • core: respect mapToPk when expanding properties (#3031) (757801e)
    • mongo: fix ensuring indexes with polymorphic embeddables (aa5e4d2), closes #3013
    • postgres: allow using special characters in string arrays (366da5f), closes #3037
    • postgres: ensure schema exists before creating migrations table (f211813), closes #3039
    • schema: fix diffing of indexes with too long inferred name (01ba9ed), closes #2932
    • schema: remove FKs first when trying to dropSchema without disabled FKs (b1b5f55), closes #3004
    • ๐Ÿ‘€ seeder: explicitly flush forks when calling Seeder.call() (c8ece7c), closes #2998
    • ๐Ÿ‘€ seeder: fix type of Factory methods (#3064) (06e88e7)
    • sqlite: fix reflection of tables with FKs (389bc0d), closes #2959
    • sqlite: upgrade knex to v2 + switch back to sqlite3 (f3e4b9d), closes #3046

    ๐Ÿ”‹ Features

    • core: try to fix FK order automatically for custom pivot entities (cc9e427), closes #3040
    • core: validate decorator parameters are used properly (cb3e1dd), closes #3040
    • ๐Ÿ‘€ seeder: created shared context when calling other seeders (6fa04ae), closes #3022

    ๐ŸŽ Performance Improvements

    • core: do not use contextual EM where we know we are in a fork already (ba16532)