Packages

@mikro-orm/core

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

Your version

5.0.3

20 Feb 2022Where it was published

5.9.8 is the newest release of 5.x.

In short

4 new10 fixed

Security

2 advisories affect 5.0.3; 6.6.10 fixes them

Release note

Bug Fixes

  • core: do not trigger global context validation from repositories (f651865), closes #2778

  • core: fix processing of onUpdate properties (9cf454e), closes #2781

  • core: fix processing of multiple onUpdate properties on one entity (4f0e4cc), closes #2784

  • core: hydrate not-null embeddable prop even with all null values (09aee05), closes #2774

  • core: register entity to identity map as early as possible (d8f3613), closes #2777

  • core: respect onDelete: cascade when propagating removal (f1e8578), closes #2703

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

  • migrations: generate snapshot too when using --initial (4857be7), closes #2800

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

  • sqlite: respect autoincrement: false in schema diffing (b39b6ad), closes #2800

  • typing: fix populate hints on collections where both type args are provided (e39ef5b), closes #2771

Features

  • Add better-sqlite driver

  • core: add connect config option

  • core: add SchemaGenerator.clearDatabase() (ecad9c6), closes #2220

  • core: add populate option to Reference.load and Collection.loadItems (1527c1a), closes #2796

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.