mikro-orm

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.

MIT License

Downloads
5.6M
Stars
7.2K
Committers
255

Bot releases are hidden (Show)

mikro-orm - v6.2.4 Latest Release

Published by B4nan 6 months ago

6.2.4 (2024-05-02)

Bug Fixes

  • core: do not issue extra updates when there are no matching changesets (03934d0), closes #5510
  • core: fix extra updates with forceEntityConstructor and JSON properties (5ef57b6), closes #5499
  • core: keep transaction context when forking for disableIdentityMap (ed88a02), closes #5527
  • core: keep transaction context when forking for disableIdentityMap (8d4fe98), closes #5528
  • core: support onCreate with ScalarReference properties (09e5ca8), closes #5506
mikro-orm - v6.2.3

Published by B4nan 6 months ago

6.2.3 (2024-04-24)

Bug Fixes

  • core: fix handling of first/last: 0 with cursor-based pagination (508389e), closes #5501
  • core: ignore upsert with inlined embedded properties (7d2bed6), closes #5500
  • migrations: fix reading migration snapshot (096dcee), closes #5497
  • query-builder: do not prune join branches when paginating and there are raw fragments in select clause (4d0fe15), closes #5490
mikro-orm - v6.2.2

Published by B4nan 6 months ago

6.2.2 (2024-04-20)

Bug Fixes

  • core: do not enforce require() when running via ts-jest or on JSON imports (7e8409b), closes #5461
  • core: fix folder-based discovery for multiple entities in single file (#5464) (d64be7e)
  • core: ignore serialization options when using toPOJO() (#5481) (46d6eb4), closes #5479
  • migrator: store snapshot only after migration is generated (#5470) (65ec57c)
  • mssql: declare import types explicitly (02494bf), closes #5462
  • mysql: fix reading auto_increment_increment value (1da88af), closes #5460
  • postgres: support wildcard native enums (e183de3), closes #5456

Features

  • entity-generator: extend filtering options for EntityGenerator (#5473) (0894ac9), closes #5469
  • query-builder: allow returning promise from virtual entity expression (ee98412), closes #5475
mikro-orm - v6.2.1

Published by B4nan 6 months ago

6.2.1 (2024-04-12)

Bug Fixes

  • core: skip 1:1 owner auto-joins for lazy properties (6442e57)
  • knex: rework postgres and mysql dialect imports to fix compilation errors (ffdca15)
  • mssql: support instance names in host (dc7dc4c), closes #5441
  • query-builder: do not ignore unmatching partial loading hints in qb.joinAndSelect (ccdf018), closes #5445
  • query-builder: fix partial loading via qb.joinAndSelect with explicit aliasing (da68503), closes #5445
  • query-builder: generate join on condition for subquery joins with known property name (3dfbbde), closes #5445
  • query-builder: respect collection property where conditions (declarative partial loading) (3b4fc41), closes #5445
mikro-orm - v6.2.0

Published by B4nan 6 months ago

6.2.0 (2024-04-09)

https://mikro-orm.io/blog/mikro-orm-6-2-released

Bug Fixes

  • core: do not select 1:1 owning FK twice (fa69276)
  • core: fix querying by embedded properties inside relations (2e74699), closes #5391
  • core: fix support for custom repositories in @CreateRequestContext on type level (aacac83)
  • core: fix TypeError when ordering by embedded populating properties (2c472ab), closes #5389
  • core: ignore current context when creating repository instance (4c12fc5), closes #5395
  • core: prefer entity type inference from the first parameter of entity manager methods (523963b)
  • core: respect custom EntityManager type in em.fork() (bb1a3f9), closes #5415
  • core: support passing Configuration instance to MikroORM.init (54a37d0), closes #5413
  • entity-generator: allow arbitrary class and prop names as identifiers (#5359) (b0c0236)
  • mariadb: rework pagination mechanism to fix extra results (a57cb19)
  • mysql: support order by nulls first/last for raw query fragments in order by keys (a2a8f0d)
  • postgres: drop text enum check constraints only when necessary (#5414) (5162345), closes #4112
  • postgres: removed erroneous duplicates in FK discovery query (#5376) (eec2b38)
  • query-builder: fix serialization hint of nested qb.joinAndSelect() calls (c2843b9)
  • schema: improve detection of renamed columns (4d13c58)
  • schema: rework dropping columns to support custom schemas and merge drop column queries (255f425)

Features

  • core: add support for serialization groups (#5416) (818c290)
  • core: allow better type-safety for custom types via IType (#5383) (0e18346)
  • core: allow configuring driverOptions on replica level (05e81f8)
  • core: include all dirty collections to UoW.getCollectionUpdates() (e7bd66f)
  • core: make assign options configurable globally (bc9f6f5), closes #5410
  • libsql: add libSQL driver (#5417) (6c63e4b), closes #5283
  • mssql: add MS SQL Server driver (#1375) (eeaad45), closes #771
  • postgres: allow defining deferred FK constraints (#5384) (f42d171), closes #5306
  • query-builder: add limit 1 when executing query via getSingleResult() or execute('get') (c2b22e8), closes #5379
  • query-builder: add qb.getLoggerContext() and qb.setLoggerContext() (779fa15), closes #5358
  • schema: allow configuring updateRule and deleteRule for pivot tables (cc69c3c)
  • schema: improve orm.schema.execute() to support executing batches (3c5a347)
  • schema: support recreating the whole database via orm.schema.refreshDatabase() (2e4ab49)

Performance Improvements

  • core: optimize metadata discovery (c322f9b)
  • query-builder: remove unnecessary join branches when pagination is applied (d228976)
mikro-orm - v6.1.12

Published by B4nan 7 months ago

6.1.12 (2024-03-24)

Bug Fixes

  • core: fix assignability of partially loaded entities (9de4965), closes #5374
  • core: fix inlining of $and conditions (8ddb3e4), closes #5368
  • entity-generator: try to resolve errors for foreign keys without indexes (f2094ab), closes #5364
  • postgres: fix query for loading all foreign keys from existing schema (2eb85d5), closes #5364
  • reflection: fallback to not proving path to tsconfig if not found (a24d80d)

Features

  • cli: add reason for failed connection check in debug command (d61e248)
  • core: allow passing EntityManager or EntityRepository to @CreateRequestContext decorator (184cdd4)
  • postgres: add ?, ?| and ?& json operators (#5366) (6418872), closes #4678

Performance Improvements

  • postgres: try to optimize loading of foreign keys (2dff96b), closes #5364
mikro-orm - v6.1.11

Published by B4nan 7 months ago

6.1.11 (2024-03-18)

Bug Fixes

  • core: improve serialization of lazily partially loaded entities (1c7b446), closes #5139
  • core: support unsetting composite FKs via flush (64f2afd)
  • migrator: type mismatch between Migration interface and class (#5343) (2fba5ee), closes #5340
  • query-builder: fix aliasing of FK when used in deeply nested and/or conditions (ebb966c), closes #5086
  • reflection: respect custom tsconfig options (e8cfdc0)
  • sql: fix aliasing of nested composite FK queries (60b2c91)
mikro-orm - v6.1.10

Published by B4nan 7 months ago

6.1.10 (2024-03-14)

Bug Fixes

  • core: detect ts-node when using esm loader (#5332) (23cc880)
  • core: don't alias formulas in update/delete queries (9e35642), closes #5334
  • core: fix populating references for 1:m collections (9b9027d), closes #5336
  • core: fix value of hasPrev[/Next]Page when paginating backwards (#5320) (00239eb)
  • postgres: fix diffing of native enums (create/remove via schema:update) (7c8be79), closes #5322
  • query-builder: allow joining object/array properties (fd90bae), closes #5325
  • query-builder: fix join on conditions where or operator (92936ef)
  • schema: support compound index over JSON property and a regular column (319df49), closes #5333
  • sql: allow creating query builder from a global context (9217bb3)
  • sql: override FK value when it's disallowed by query condition (0d20847)

Features

  • core: add onlyOwnProperties option to assign helper (#5330) (a081bea), closes #5327
  • postgres: provide more details in driver exceptions (e782d06)

Performance Improvements

  • core: disable change tracking on scalars when flushMode is not auto (fc30bfe)
mikro-orm - v6.1.9

Published by B4nan 7 months ago

6.1.9 (2024-03-10)

Bug Fixes

  • core: don't propagate changes from em.transactional() to upper context if its global (7ac9a19), closes #5309
  • core: ignore filters on relations inside embedded properties (1e4b2ce), closes #5310
  • core: improve checks for generated columns (0396e1e)
  • core: map virtual relations with persist: false as formulas to preserve aliasing (20a4cfb)
  • entity-generator: emit missing imports in EntitySchema generated files (#5311) (f680d66)
  • entity-generator: output type import statements for type only core imports (#5317) (bd3f160)
  • migrator: allow up and down methods to be synchronous (#5316) (dd6daf9)

Features

  • postgres: add support for native enum arrays (c2e362b), closes #5322
mikro-orm - v6.1.8

Published by B4nan 8 months ago

6.1.8 (2024-03-06)

Bug Fixes

  • core: allow setting values to null on unloaded references (1cbead6), closes #5274
  • core: fix bulk-inserting entities with nullable embedded arrays (f16551e)
  • core: skip STI discriminator condition when bulk-deleting entities (fa712ca), closes #5303
  • query-builder: fix qb.getResultAndCount() when pagination is triggered (67444c0)
mikro-orm - v6.1.7

Published by B4nan 8 months ago

6.1.7 (2024-03-04)

Bug Fixes

  • core: add em.addFilter() fallback signature that allows more than 3 types (b6efd44)
  • core: fix aliasing of queries with collection operators (0435faf), closes #5301
  • core: ignore collection operators in populateWhere conditions (7b6b363)
  • query-builder: check for duplicate selects when wrapping pagination query (e005cc2)
  • query-builder: fix cloning of alias map (50d8fb9)

Features

  • core: validate wrong placement of collection operators (c35e705)
mikro-orm - v6.1.6

Published by B4nan 8 months ago

6.1.6 (2024-02-28)

Bug Fixes

  • core: don't refresh collection state via Collection.load() (f5be639), closes #5268
  • core: fix type of options parameter in repository.upsert/Many() (4c12e7f)
  • core: support raw fragments in orderBy of 1:m and m:n relations (ed80163), closes #5277
  • mysql: apply current context when fetching auto_increment_increment (#5280) (c8021da), closes #5279

Performance Improvements

  • core: improve composite PK hashing (73094ef)
  • core: improve hydration of simple FKs (c4bd1f0)
  • core: optimize adding entities to large collections (8a960d5)
mikro-orm - v6.1.5

Published by B4nan 8 months ago

6.1.5 (2024-02-21)

Bug Fixes

  • core: allow serializing raw SQL fragments outside of entity serialization (9158f51), closes #5257
  • core: ensure missing type validation ignores enums (a916710), closes #5255
  • core: fix orderBy option on to-many properties with arrays (fae2302), closes #5265
  • core: ignore virtual properties in partial loading hint (d327db5), closes #5261
  • entity-generator: fixed generation of unsigned columns (#5254) (d78da29)
  • entity-generator: optional and hidden properties get type option + string defaults (#5264) (12d3b54), closes #5260
  • schema: allow 1:m properties in pivot entities (c370578)
mikro-orm - v6.1.4

Published by B4nan 8 months ago

6.1.4 (2024-02-16)

Bug Fixes

  • core: fix populating 1:1 inverse sides when virtual FK is not selected (46cb6a1), closes #5245
  • entity-generator: use Ref wrapper on all lazy properties (#5252) (50311cb)
  • query-builder: fix caching of raw query fragments when qb.getQuery() is called (f79a752), closes #5247

Features

  • entity-generator: added support for generated columns (#5250) (d2186da)
mikro-orm - v6.1.3

Published by B4nan 8 months ago

6.1.3 (2024-02-13)

Bug Fixes

  • core: fix extra updates when embedded property name matches inner field name (e008dab), closes #5240
  • core: fix validation for removing items from 1:m collections (34b8473), closes #5243
  • postgres: implement casting for JSON queries on types like double or bigint (b00eae6), closes #5239

Features

  • entity-generator: support mapToPk option (#5241) (3afaa29)
mikro-orm - v6.1.2

Published by B4nan 8 months ago

6.1.2 (2024-02-11)

Bug Fixes

  • core: allow multiple abstract levels for STI entities (0c56118), closes #3745
  • core: respect user provided env vars over those from .env file (e25ca11)

Features

  • entity-generator: add the ability to use custom and/or core base entity (#5232) (066dac1)
mikro-orm - v6.1.1

Published by B4nan 8 months ago

6.1.1 (2024-02-10)

Bug Fixes

  • core: consider star populates on nested positions only for one level (65d1575), closes #5213
  • core: do not enforce discriminatorColumn type (d2a016e), closes #5224
  • core: fix change detection on STI entities (3c43251), closes #5224
  • core: fix optimistic locking on STI entities (36ad806), closes #5224
  • core: respect star in parent.* populate hints (39910ab), closes #5213
  • postgres: declare dependency on postgres-array (e73fd1a)
  • postgres: fix parsing of date properties inside object embeddables (760ec77), closes #5216
  • reflection: only validate known types to allow using type aliases (d6b93be), closes #5221

Features

  • entity-generator: support functions in extension hooks (#5218) (b28321c)
mikro-orm - v6.1.0

Published by B4nan 9 months ago

6.1.0 (2024-02-04)

Bug Fixes

  • core: allow CacheAdapter.get to return Promise<undefined> (#5200) (98ce1e5), closes #5199
  • core: fix broken inference of AutoPath in TS 5.4 (#5197) (8bbc252)
  • core: handle possible match between virtual property name and another property's field name (7fc779f), closes #5191
  • core: make wrap(e, true).__em correctly typed to EntityManager (35d607c)
  • core: process upsert data to allow using entity instances in place of relations (9305653), closes #5165
  • core: respect upsertMany options when batching (d6d1381), closes #5209
  • core: respect hidden properties of composite PKs during serialization (3d1cba3), closes #5203
  • postgres: improve diffing of native postgres enums (49d6b4d), closes #5108
  • query-builder: support convertToJSValueSQL on returning statement of update queries (2e1d6c8), closes #5176

Features

  • core: add second EM parameter to onCreate and onUpdate callback (a964aeb), closes #5201
  • core: allow declarative partial loading of collection items (#5210) (5e4fa60), closes #4963
  • core: allow mapping array columns to arrays of objects via ArrayType (#5204) (42cc9cc), closes #5188
  • entity-generator: allow post processing the metadata (#5113) (e82058f), closes #5010
  • knex: add loggerContext parameter to em.execute (b6d46df)
mikro-orm - v5.9.8

Published by B4nan 9 months ago

5.9.8 (2024-02-04)

Bug Fixes

  • core: do not mutate data provided to em.upsert/Many (5acb4eb), closes #5136
  • core: ensure em.insertMany returns array of PKs for a single item too (#5180) (b9a55e5), closes #5179
  • core: process upsert data to allow using entity instances in place of relations (42e3c5e), closes #5165
  • mongo: ensure assign on object properties won't ignore changes (bd22d7c), closes #5158
  • postgres: parse timestamp dates less than year 1000 (#5071) (63eb5c5)
mikro-orm - v6.0.7

Published by B4nan 9 months ago

6.0.7 (2024-01-30)

Bug Fixes

  • core: consider PrimaryKeyProp as optional properties for em.create() (69522f2), closes #5187
  • core: do not add undefined to null types in EntityDTO (d661c68), closes #5186
  • core: fix ignoring function properties when they are optional (fb33934)
  • reflection: fix validation of string enums when loading via QueryBuilder (908864c), closes #5185

Features

  • postgres: add support for interval type (659a613), closes #5181
Package Rankings
Top 0.84% on Npmjs.org
Top 6.72% on Proxy.golang.org
Badges
Extracted from project README
NPM version NPM dev version Chat on discord Downloads Coverage Status Maintainability Build Status
Related Projects