@mikro-orm/sqlite
7.2.11 · 20 Nov 2026MIT347.8k / weekRepositoryHomepagenpmAtom feed
4.5.10 is the newest release of 4.x.
In short
63 new2 faster32 fixed
Release note
Bug Fixes
cli: custom tsconfig gets wrong path
core: add
RequestContext.createAsync()for Koa (ae3bc0f), closes #709core: allow date to be used as primary key
core: allow having same property name as entity name (6b9d4cd), closes #655
core: allow populating FK as PK in
toJSON()core: do not cascade merge new entities
core: do not lookup in identity map with non-PK conditions (4fb0e52), closes #625
core: do not merge entity instances in
em.create()core: fix
em.create()with deeply nested data (#683) (a302473), closes #678core: fix default value for
cache.enabledcore: fix extracting PK out of reference wrapper (db037dc), closes #589
core: map values from returning clause via hydrator (c5384b4), closes #725
core: mark all properties as populated for new entities (5f7fb8f), closes #784
core: reset collections when assigning to those not initialized
core: support comments in tsconfig.json (6506695), closes #730
core: support self referencing with Reference wrapper (fd1e158), closes #610
core: throw when trying to call
em.remove(..., null)mapping: support mixed M:N with composite PK on one side only
mariadb: enable
bigNumberStringstoggle (ee90c64), closes #578mongo: add support for
$reoperator in mongo (13fe6e5), closes #613postgres: time column type should be a string
query-builder: make sure
$orand$andcombined works correctly (c8d3a34), closes #792query-builder: make sure we use the right alias in complex
$andqueries (522787e), closes #786query-builder: use correct operators in complex and/or conditions
schema: do not create indexes for each composite PK (91b38cb), closes #760
postgres: keep
bigint/numerictypes as string (014f3b5), closes #324sql: pivot joining of m:n when no target entity needed directly (2b0bb72), closes #549
sql: pivot joining of m:n when target entity is null (3b05a59), closes #548
sql: rework implicit m:n pivot joining
sql: support composite keys in
EntityCaseNamingStrategysql: use composite FKs instead in schema generator
utils: ts-node check now runs in a webpack environment
Features
core: add
driver.nativeInsertMany()method (#688) (78b2341), closes #442core: add
em.begin/commit/rollbackmethodscore: add
EntityRepositoryTypesymbol (#698) (ffae0a8), closes #696core: add
exprhelper to allow custom expressions in EM API (39ced1b), closes #802core: add support for entity and property comment
core: add support for filters/scopes (#663) (c1025b9), closes #385
core: add support for flush events (#642) (1f12aff), closes #637
core: add support for ordering by NULLS (#677) (74ee0cb), closes #675
core: allow persisting 1:m collections (#686) (379b289), closes #467
core: allow using
knex.rawin query params (e6b9f0e), closes #802core: allow using destructing assignments in entity ctors (06a5490), closes #781
core: execute hooks via
EventManager(#623) (6a7f627), closes #622core: expose populate parameter in
wrap(e).init()(d33432a), closes #814core: readonly entity
core: refactor internal dependencies to support Yarn PnP
core: refactor merging to allow querying by custom type (#800) (bfbc5f8), closes #739
core: support globs in
entities(#618) (ee81b61), closes #605core: use custom errors for failHandler and metadata (6db22af), closes #611
migrations: add
Migration.execute()method (5c1f60a), closes #770migrations: add support for initial migrations (#818) (26b2228), closes #772
migrations: allow specifying list of migrations (#741) (5a0f2a6), closes #705
migrations: allow using knex in migrations (fc2fbaa), closes #799
postgres: add
$ilike,$overlap,$contains,$contained(3c59885), closes #641query-builder: allow ordering by custom expressions (e4674c7), closes #707
query-builder: make sure we do not prefix virtual props (fd0766c), closes #734
cli: allow the use of TS path mapping
core: accept references in collection
add/remove/setmethodscore: add
connect: booleanparam toMikroORM.init()core: add
havingtoFindOptionscore: add custom types for array, blob and json (#559) (7703cc5), closes #476
core: add pagination support (
QueryFlag.PAGINATE)core: add support for alternative loading strategies (#556) (0b89d4a), closes #440
core: add support for event subscribers (#614) (1281356), closes #516
core: add support for lazy scalar properties (#585) (cd8c683), closes #427
core: add support for Node.js 14
core: add support for single table inheritance (#503) (8c45339), closes #33
core: allow adding items to not initialized collections
core: allow adding items to not initialized collections
core: do not cache metadata for other than ts-morph provider
core: pass entity as parameter in
onCreateandonUpdatecore: split project into multiple packages
core: use custom exceptions for driver related errors
discovery: use both entity name and path as key in Metadat…
mapping: add support for embeddables
migrations: support custom migration names (8ea71b6), closes #449
mongo: add
getCollection()method toMongoEntityManagermongo: allow creating any kind of index in mongo
mongo: allow using different primary key types than ObjectId (#568) (e523794), closes #349
postgres: use
jsonbcolumn type by defaultsql: add
execute()method toSqlEntityManagersql: add
groupBytoFindOptionssql: add
qb.raw()to allow using raw snippets in QB (c09a5b6), closes #598sql: add support for computed properties via
@Formula()sql: add support for sub-queries
sql: allow delete queries with auto-joining via sub-queries (#538) (e44bc56), closes #492
sql: allow update queries with auto-joining via sub-queries (#537) (cff9a3a), closes #319
sql: ensure correct table order in schema generator
sql: initialize query builder in select mode
ts-morph: add ORM version to cache invalidation logic
ts-morph: infer nullability from property types
ts-morph: use
.d.tsfiles for ts-morph discovery
Performance Improvements
cli: transpile only when using ts-node in CLI
core: do not generate sql when logging disabled (f232bb3), closes #732
core: improve performance of QB a bit (efc044f), closes #732
core: improve speed of inserting new items (bfeb2e3), closes #732
core: reduce usage of
wraphelper internally (66ffc3b), closes #732core: simplify
MetadataStorage.find()method (9abbe03), closes #732core: use actual Map for identity maps (3645a20), closes #732
core: use
Setinstead of array for cycle lookups (dff0c9d), closes #732core: use
Setinstead of array for stacks in UoW (12ba811), closes #732
Breaking changes
Please see the upgrading guide.
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.