All Versions
124
Latest Version
Avg Release Cycle
12 days
Latest Release
331 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v5.2.2 Changes
July 03, 2022๐ Bug Fixes
- core: consider two
NaN
as equal when computing changesets (#3250) (95116a0) - core: ensure correct context usage in all
EntityManager
public methods (cc6d59b), closes #3271 - core: ensure FK as PK is not marked as initialized too early (f12f92f), closes #3269
- core: fix populating of 1:m collections between wildcard schema entities (69c06aa), closes #3270
- core: fix populating of relations in
afterFlush
hook (26ab686), closes #3005 - core: fix querying JSON properties with operators directly (077ca62), closes #3246
- mongo: persist explicit
null
value on object embeddable asnull
(1c56e7a), closes #3258 - mongo: retry only 3 times if ensuring indexes fails (#3272) (299a028)
- ๐ seeder: fs-extra dep (#3268) (972e5ba)
- sql: fix prefixing of JSON queries nested on relations (847ff46), closes #3242
๐ Features
- core: consider two
-
v5.2.1 Changes
June 21, 2022๐ Bug Fixes
- core: fix reloading version values with custom types on PKs (ebd7888), closes #3209
- core: fix serialization of entities wrapped in POJOs (af4fadf), closes #3221
- core: ignore
undefined
values during options merge (9e0f559), closes #3234 - core: prefer current schema for loading wild card pivot table entities (f40cafa), closes #3177
- mongo: recreate indexes when they differ (60fc7f6), closes #3118
- mongo: use
$unset
when property value isundefined
(f059811), closes #3233 - mysql: handle mediumint PKs correctly (0bbbe5c), closes #3230
- types: fix inference of optional PKs (424e0bb), closes #3230
๐ Features
๐ Performance Improvements
-
v5.2.0 Changes
June 10, 2022๐ Bug Fixes
- core: allow changing PK via UoW (32ab215), closes #3184
- core: ensure correct cached value in
loadCount
(4471bb8) - ๐ query-builder: fix calling
qb.count('id', true).getCount()
(a97324a), closes #3182 - ๐ query-builder: fix processing of custom types in explicitly aliased queries (db137a6), closes #3172
- schema: do not consider autoincrement columns as primary automatically (088afdb), closes #3187
- ts-morph: use module: 'node16' for reflection (024d9d9), closes #3168
- typing detection with typescript 4.7 node16 (#3163) (08322fa)
๐ Features
- core: automatically discover target embeddables and relationships (#3190) (8624dc5)
- entity-generator: allow generating bidirectional relations (8b93400), closes #3181
- entity-generator: allow generating identified references (1fbf5ac)
- knex: allow reusing existing knex client via
driverOptions
(c169eda), closes #3167 - schema: add logging to schema comparator (f96eaaf)
-
v5.1.5 Changes
May 29, 2022๐ Bug Fixes
- cli: disable TS mode when we fail to register ts-node (457d9d3), closes #3152
- core: assign new embeddable entity only when it is null or undefined (#3135) (4f870fb)
- core: support TypeScript 4.7 (06b6e4e)
- ๐ query-builder: fix aliasing of relations with composite PK (095e241), closes #3053
๐ Performance Improvements
-
v5.1.4 Changes
May 19, 2022๐ Bug Fixes
- core: allow asterisk in
FindOptions.fields
on TS level (43e1d0b), closes #3127 - core: fix aliasing of formula properties in complex conditions (#3130) (071846e)
- core: improve type of
em.getContext()
(158f077), closes #3120 - core: improve validation of wrong entity references (#3085) (f5de135)
- core: wrap relations in
Reference
wrapper when assigning entity instance (97f1f59), closes #3092 - mongo: support queries with mongo specific operators on embeddables (2fb9002)
- postgres: do not try to create schema for migrations when it exists (d6af811), closes #3106
- postgres: fix resolving knex when other version is explicitly installed (41f5665), closes #3129
- postgres: ignore schemas prefixed with
crdb_
too (049fea3), closes #3021 - schema: always ignore PostGIS schemas when diffing (#3096) (626e3db)
- ts-morph: do not mark properties as enums automatically based on type (c3923df), closes #3099
๐ Features
- core: allow asterisk in
-
v5.1.3 Changes
April 27, 2022๐ Bug Fixes
- core: allow replacing target entity in relations with
assign
(90ec83f), closes #3026 - core: do not inline query for JSON properties that match PK names (e6005d8), closes #3054
- core: fix serialization when using partial loading for nested relations (00be9f1), closes #3011
- core: hydrate nullable embedded properties as
null
(e8490f6), closes #3063 - core: respect mapToPk when expanding properties (#3031) (757801e)
- mongo: fix ensuring indexes with polymorphic embeddables (aa5e4d2), closes #3013
- postgres: allow using special characters in string arrays (366da5f), closes #3037
- postgres: ensure schema exists before creating migrations table (f211813), closes #3039
- schema: fix diffing of indexes with too long inferred name (01ba9ed), closes #2932
- schema: remove FKs first when trying to
dropSchema
without disabled FKs (b1b5f55), closes #3004 - ๐ seeder: explicitly flush forks when calling
Seeder.call()
(c8ece7c), closes #2998 - ๐ seeder: fix type of Factory methods (#3064) (06e88e7)
- sqlite: fix reflection of tables with FKs (389bc0d), closes #2959
- sqlite: upgrade knex to v2 + switch back to sqlite3 (f3e4b9d), closes #3046
๐ Features
- core: try to fix FK order automatically for custom pivot entities (cc9e427), closes #3040
- core: validate decorator parameters are used properly (cb3e1dd), closes #3040
- ๐ seeder: created shared context when calling other seeders (6fa04ae), closes #3022
๐ Performance Improvements
- core: do not use contextual EM where we know we are in a fork already (ba16532)
- core: allow replacing target entity in relations with
-
v5.1.2 Changes
April 10, 2022๐ Bug Fixes
- core: allow converting custom types via
em.nativeInsert()
(#2979) (8d76852) - core: do not clean up UoW before each "flush step" (3ae732d), closes #2934
- core: do not quote knex.raw() instances returned from custom types (8a4c836), closes #1841
- core: fix eager loading of nested embeddable m:1 properties (4867db9), closes #2975
- core: fix eager loading when multiple relations target same entity (21922ce), closes #2990
- core: fix mapping of inserted PKs with custom field names from batch insert (080d8e0), closes #2977
- core: never reassign the same entity via
em.assign()
(cdfbabd), closes #2974 - core: propagate entity removal in
em.transactional()
to upper context (6e5166b), closes #2973 - core: respect
connectionType
in populate queries (fe40a9f), closes #2994 - core: support
PopulateHint.INFER
with pagination and joined strategy (56f8737), closes #2985 - core: use correct path for relations inside embeddables with populate: true (4735dba), closes #2948
- postgres: do not ignore custom PK constraint names (#2931) (24bf10e)
- postgres: drop enum constraints only when the column was an enum (76fef39)
- postgres: ensure correct column order in compound index/uniques (321be79), closes #2932
- postgres: fix pagination with order by bool column (d5476cd), closes #2910
- postgres: fix schema diffing on enums with case-sensitive names (050875b), closes #2938 #2932
- schema: do not create FK index for 1:1 properties (they are unique already) (473795c), closes #2942
๐ Features
- core: allow converting custom types via
-
v5.1.1 Changes
March 20, 2022๐ Bug Fixes
- core: fix custom pivot table entities for unidirectional relations (01bdbf6)
- knex:
order by
with a formula field should not includeas
for sub-queries (#2929) (74751fb) - postgres: allow explicit schema name in
prop.pivotTable
(1860ff5), closes #2919 - postgres: fix pagination with order by UUID PK (042626c), closes #2910
- postgres: respect known schema when loading wild card entity relations (61d1e85), closes #2909
- schema: respect
disableForeignKeys
in schema generator (f1b8e46), closes #2912
๐ Features
-
v5.1.0 Changes
March 13, 2022๐ Bug Fixes
- core: do not alias JSON conditions on update/delete queries (5c0674e), closes #2839
- core: ensure all entities from inner context are merged to the upper one (7b3a6b4), closes #2882
- core: fix object key utilities for null prototype objects (#2847) (b2cf01e), closes #2846
- core: fix ordering by complex composite PKs (dde11d3), closes #2886
- core: fix strict type for
orderBy
when entity haslength
property (ef45871), closes #2829 - core: type global
entityRepository
option weakly (3faf8bc) - knex:
order by
with a formula field should not includeas
(#2848) (09e8bfa) - knex: fully qualify sub-query order-by fields (#2835) (f74dc73)
- mysql: mark FK columns as unsigned for mixed composite PKs (67806cb), closes #2844
- postgres: respect schema name in migration storage (fbf9bfa), closes #2828
๐ Features
- core: allow better control over connection type when using read-replicas (#2896) (e40ae2d)
- core: allow specifying custom pivot table entity (#2901) (8237d16)
- core: allow using hooks for interface entities (#2895) (aee99b1)
- core: enable
QueryFlag.PAGINATE
automatically forem.find()
(ccb4223), closes #2867 - core: map check constraint failures to specific error type (ebcbdff), closes #2836
-
v5.0.5 Changes
February 27, 2022๐ Bug Fixes
- core: fix auto-joining multiple 1:1 properties (0566e74), closes #2821
- core: respect
orphanRemoval
in 1:1 relations (#2816) (55ff07b) - knex: respect explicit transaction in
em.count()
(#2818) (2d26a63) - migrations: ensure executedAt is a
Date
when listing executed migrations (c8753ee), closes #2817 - ๐ query-builder: use paginate flag automatically based on to-many joins (db9963f), closes #2823