Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
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
bigNumberStrings
toggle (ee90c64), closes #578 - mongo: add support for
$re
operator in mongo (13fe6e5), closes #613 - postgres: time column type should be a string (#774) (237ddbf)
- query-builder: make sure
$or
and$and
combined works correctly (c8d3a34), closes #792 - query-builder: make sure we use the right alias in complex
$and
queries (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
/numeric
types 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/rollback
methods (#717) (5414c52) - core: add
EntityRepositoryType
symbol (#698) (ffae0a8), closes #696 - core: add
expr
helper 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.raw
in 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)
MikroORM 3.4.0
Features
- migrations: add support for JS migrations (#384) (b41f0bc)
- mongo: add support for transactions in mongodb (#392) (8988202), closes #34
- mongo: add support for indexes in mongo driver (#393) (7155549), closes #159
- sql: add
schema
param toFindOptions
and QB (#388) (0c8ef92), closes #284 - sql: add support for bigint (#389) (5ddd573), closes #361