Packages

@mikro-orm/postgresql

7.2.11 · 20 Nov 2026MIT1.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @mikro-orm/postgresql From 5.0.4 to 5.9.8

73 releases in betweenevery note read

Other targets from 5.0.4Latest7.2.11
  1. 5.0.4yours
  2. 17 releases
  3. 5.5.0breaking
  4. 3 releases
  5. 5.6.0breaking
  6. 42 releases
  7. 5.9.0breaking
  8. 7 releases
  9. 5.9.8target

Before you upgrade

Tick each one off as you go
  • Breaking5.9.0
  • Breaking5.6.0
  • Breaking5.5.0
  • Deprecated5.8.4
  • Deprecated5.7.13
  • Deprecated5.7.7
  • Deprecated5.7.5
  • Deprecated5.7.0
  • Deprecated5.6.0

Release by release

  1. 5.9.8

    4 Feb 20245 fixes
    • Fixed

      core: do not mutate data provided to em.upsert/Many (5acb4eb), closes #5136

    • Fixed

      core: ensure em.insertMany returns array of PKs for a single item too (#5180) (b9a55e5), closes #5179

    • Fixed

      core: process upsert data to allow using entity instances in place of relations (42e3c5e), closes #5165

    • Fixed

      mongo: ensure assign on object properties won't ignore changes (bd22d7c), closes #5158

    • Fixed

      postgres: parse timestamp dates less than year 1000

  2. 5.9.7

    30 Dec 20234 fixes
    • Fixed

      core: check for root entity properties in em.canPopulate() when using STI (b8fcf45), closes #5043

    • Fixed

      core: fix eager loading detection with multiple populate hints for one property (da1daf5), closes #5057

    • Fixed

      core: support pivot entities with autoincrement PK (e250634), closes #4988

    • Fixed

      postgres: respect column length in down migrations (222e2b8), closes #5048

  3. 5.9.6

    21 Dec 20232 fixes
    • Fixed

      core: fix assign on collections of unloaded entities

    • Fixed

      core: fix extra updates with select-in strategy and composite FKs

  4. 5.9.5

    15 Dec 20238 fixes
    • Fixed

      core: ensure eager loading on deeper levels work with joined strategy

    • Fixed

      core: fix extra updates for composite FKs that share a column

    • Fixed

      core: fix infinite loop with populate: true and refresh: true

    • Fixed

      core: fix returning statement hydration after em.upsert (a7e9a82), closes #4945

  5. 5.9.4

    17 Nov 20237 fixes
    • Fixed

      cli: support mikro-orm-esm on windows

    • Fixed

      core: fix auto-refresh detection in em.find for inlined embedded properties (759b7b8), closes #4904

    • Fixed

      core: support composite PKs in em.upsertMany() (85c38d4), closes #4923

    • Fixed

      mysql: improve diffing of defaults for JSON columns (d92a440), closes #4926

    • Fixed

      schema: do not inherit schema for FKs if not a wildcard entity (cc7fed9), closes #4918

    • Fixed

      schema: respect explicit schema in FKs to STI entities (cc19ebb), closes #4933

    • Fixed

      schema: respect up migration when detecting column renaming in down migration (d5af5bd), closes #4919

  6. 5.9.3

    6 Nov 20233 fixes
    • Fixed

      core: only check the same entity type when detecting early update/delete (fef7a1b), closes #4895

    • Fixed

      core: return DriverException from em.upsertMany() (1ebfbdd), closes #4897

    • Fixed

      core: fix populating relations with cycles via select-in strategy (d0b35da), closes #4899

  7. 5.9.2

    2 Nov 20233 fixes
    • Fixed

      core: fix partial loading of embedded properties with joined strategy

    • Fixed

      core: ignore limit, offset and order in em.count on virtual entity

    • Fixed

      mongo: fix support for ignoreUndefinedInQuery (cef26c5), closes #4891

  8. 5.9.1

    31 Oct 20232 fixes
    • Fixed

      core: propagate to owning side of 1:1 relation even if not initialized (9b2c9fe), closes #4879

    • Fixed

      postgres: fix hydrating of serial properties via returning statement

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.