Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
v4.0.7
v4.0.6
4.0.6 (2020-09-22)
Bug Fixes
- deps: update dependency escaya to ^0.0.49 (#854) (d4737b6)
- migrations: migrate only one version down with explicit tx (50567dd), closes #855
- query-builder: do not select 1:1 owner when auto-joining (86c3032), closes #858
- query-builder: fix auto-joining of 1:m PKs (920995f), closes #857
- query-builder: fix count query with auto-joining of 1:1 (9b8056c), closes #858
- query-builder: wrap nested array conditions with
$inoperator (939989a), closes #860
v4.0.5
v4.0.4
4.0.4 (2020-09-19)
Bug Fixes
- core: allow filter condition callbacks without arguments (5b3401f), closes #847
- core: allow filter condition callbacks without arguments (da8fbfc), closes #847
- core: allow querying
ArrayTypewith a value (e505358), closes #844 - core: improve metadata validation of STI relations (0b97af8), closes #845
- core: update filter typing to allow async condition (#848) (2188f62)
- query-builder: fix mapping of 1:1 inverse sides (a46281e), closes #849
- query-builder: fix mapping of nested 1:1 properties (9799e70)
Features
- core: allow setting loading strategy globally (e4378ee), closes #834
- migrations: allow providing transaction context (1089c86), closes #851
Performance Improvements
v4.0.3
4.0.3 (2020-09-15)
Bug Fixes
- core: make a copy of custom type values to allow array diffing (6ae72ae)
Features
Performance Improvements
- core: create the helper instance early (f4f90eb)
- core: do not generate internal entity uuid (9f46aa4)
- core: do not use
em.merge()internally (6a1a6d6) - core: remove WrappedEntity.__internal map (2228fcb)
- core: skip processing of hooks when there are no hooks (425784b)
- core: store entity identifier on entity helper (403acca)
- core: store original entity data on entity helper (6a91b01)
MikroORM 4.0.2
MikroORM 4.0.1
MikroORM 4.0.0
Bug Fixes
- cli: custom tsconfig gets wrong path (#597) (3cdb5dd)
- core: add
RequestContext.createAsync()for Koa (ae3bc0f), closes #709 - core: allow date to be used as primary key (#609) (d421be8)
- core: allow having same property name as entity name (6b9d4cd), closes #655
- core: allow hiding PKs in
toObject()(0a920dd), closes #644 - core: allow populating FK as PK in
toJSON()(e05d780) - core: do not cascade merge new entities (2b0f208)
- core: do not lookup in identity map with non-PK conditions (4fb0e52), closes #625
- core: do not merge entity instances in
em.create()(50aaef8) - core: fix
em.create()with deeply nested data (#683) (a302473), closes #678 - core: fix default value for
cache.enabled(9be725f) - core: 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 (e19a6b4)
- core: support comments in tsconfig.json (6506695), closes #730
- core: support nullable bigints (3bb2a2d), closes #631
- core: support self referencing with Reference wrapper (fd1e158), closes #610
- core: throw when trying to call
em.remove(..., null)(77c52dd) - mapping: support mixed M:N with composite PK on one side only (a951918)
- mariadb: enable
bigNumberStringstoggle (ee90c64), closes #578 - mongo: add support for
$reoperator in mongo (13fe6e5), closes #613 - postgres: time column type should be a string (#774) (237ddbf)
- query-builder: make sure
$orand$andcombined works correctly (c8d3a34), closes #792 - query-builder: make sure we use the right alias in complex
$andqueries (522787e), closes #786 - query-builder: use correct operators in complex and/or conditions (#803) (aca0e10)
- schema: do not create indexes for each composite PK (91b38cb), closes #760
- postgres: keep
bigint/numerictypes as string (014f3b5), closes #324 - sql: 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 (7928c50)
- sql: support composite keys in
EntityCaseNamingStrategy(8d07727) - sql: use composite FKs instead in schema generator (f5c2302)
- utils: ts-node check now runs in a webpack environment (#657) (4384019)
Features
- core: add
driver.nativeInsertMany()method (#688) (78b2341), closes #442 - core: add
em.begin/commit/rollbackmethods (#717) (5414c52) - core: add
EntityRepositoryTypesymbol (#698) (ffae0a8), closes #696 - core: add
exprhelper to allow custom expressions in EM API (39ced1b), closes #802 - core: add property serializers (3d94b93), closes #809
- core: add support for entity and property comment (#668) (c01b338)
- 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 #802 - core: allow using destructing assignments in entity ctors (06a5490), closes #781
- core: execute...
MikroORM 3.6.0
Bug Fixes
Features
MikroORM 3.5.0
Bug Fixes
- core: export ValidationError directly (e3e02ea), closes #404
- mongodb: do not convert payloads to ObjectId (9a9d9e0), closes #401
- mongodb: keep topmost transaction context when nesting (d921bc1), closes #400
- schema: fix schema generator in MySQL 8 (#398) (955b0ac)
- sql: do not serialize db values from custom types (894e055), closes #372
- webpack: do not analyze enum values when already provided (3efd6ca), closes #413
Features
- core: add support for composite keys (#395) (0574dc8), closes #66
- core: allow manually specifying on update/on delete clause (fc9d86a)
- discovery: validate not discovered entities used in relations (12338da)
- migrations: do not create empty migrations without -b (564e988), closes #399
- mongo: allow passing additional index options (dd3f795), closes #415
- sql: use collection snapshots to compute precise diff (#405) (d4bda99)