5.6.0 (2022-12-09)
Bug Fixes
- core: deprecate
type
option in favour of driver exports (7180f23), closes #3743 - core: do not mark entities as populated via
em.merge()
(bfa4962), closes #3812 - core: do not process mapped types twice in
em.upsert()
(434d417), closes #3787 - core: ensure correct result in
ChangeSet.getPrimaryKey(true)
(2e74a34), closes #3737 - core: fix query execution inside hooks sometimes hanging (d68b9bd)
- core: make
ChangeSet.getPrimaryKey()
response stable (d32c956) - core: remove
readonly
from properties ofFilterQuery
(2a2a13d), closes #3836 - core: return
Ref & LoadedReference
fromref()
(c85e507), closes #3840 - core: serialize not managed relations as populated (89b4dab), closes #3788
- core: support
hidden
flag on primary keys (4935505) - embeddables: respect explicit
null
only for object embeddables (6e0bedf), closes #3772 - mysql: ensure bigint columns are mapped to string (d3d50ba), closes #3739
- mysql: respect
auto_increment_increment
when batch inserting (516db6d), closes #3828 - postgres: quote array literal items containing a comma (5ffa81c), closes #3810
- postgres: use
postgres
as the management db name + allow override (eab1668), closes #3769 - query-builder: fix cloning QB in some cases (c3b4c20), closes #3720
- query-builder: fix querying for a composite FK when target is joined (dec4c9c), closes #3738
- query-builder: respect case-insensitive regexp flag (1a1d381), closes #3801
- query-build: fix query execution inside hooks sometimes hanging (dba6ce2)
- schema: do not cache knex instance (dc00374), closes #3713
- schema: ensure database exists before dropping schema (fd4c416), closes #3713
- ts: allow string dates in
em.create()
(d0607d5)
Features
- cli: added option to generate cache via ts-node (#3796) (268bd68), closes #3795
- core: add
em.upsertMany
(#3825) (83ac12a) - core: add
serialize()
helper for explicit serialization (#3728) (f22cd6f) - core: allow creating entity from PK via
rel()
andref()
(#3837) (72ca8e7), closes #3835 - core: ensure database exists automatically (#3830) (f92da01)
- core: introduce ORM extensions (#3773) (0f36967)