Releases: typeorm/typeorm
Releases · typeorm/typeorm
0.3.20
Bug Fixes
- added missing parentheses in where conditions (#10650) (4624930), closes #10534
- don't escape indexPredicate (#10618) (dd49a25)
- fallback runMigrations transaction to DataSourceOptions (#10601) (0cab0dd)
- hangup when load relations with relationLoadStrategy: query (#10630) (54d8d9e), closes #10481
- include asExpression columns in returning clause (#10632) (f232ba7), closes #8450 #8450
- multiple insert in SAP Hana (#10597) (1b34c9a)
- resolve issue CREATE/DROP Index concurrently (#10634) (8aa8690), closes #10626
- type inferencing of EntityManager#create (#10569) (99d8249)
Features
- add json type support for Oracle (#10611) (7e85460)
- add postgres multirange column types (#10627) (d0b7670), closes #10556
- add table comment for postgres (#10613) (4493db4)
Reverts
0.3.19
0.3.18
Bug Fixes
- add BaseEntity to model-shim (#10503) (3cf938e)
- add error handling for missing join columns (#10525) (122c897), closes #7034
- add missing export for View class (#10261) (7adbc9b)
- added fail callback while opening the database in Cordova (#10566) (8b4df5b)
- aggregate function throw error when column alias name is set (#10035) (022d2b5), closes #9927
- backport postgres connection error handling to crdb (#10177) (149226d)
- bump better-sqlite3 version range (#10452) (75ec8f2)
- caching always enabled not caching queries (#10524) (8af533f)
- circular dependency breaking node.js 20.6 (#10344) (ba7ad3c), closes #10338
- correctly keep query.data from ormOption for commit / rollback subscribers (#10151) (73ee70b)
- default value in child table/entity column decorator for multiple table inheritance is ignored for inherited columns (#10563) (#10564) (af77a5d)
- deletedAt column leaking as side effect of object update while creating a row (#10435) (7de4890)
- empty objects being hydrated when eager loading relations that have a
@VirtualColumn
(#10432) (b53e410), closes #10431 - extend GiST index with range types for Postgres driver (#10572) (a4900ae), closes #10567
- ignore changes for columns with
update: false
in persistence (#10250) (f8fa1fd), closes #10249 - improve helper for cli for commands missing positionals (#10133) (9f8899f)
- loading datasource unable to process a regular default export (#10184) (201342d), closes #8810
- logMigration has incorrect logging condition (#10323) (d41930f), closes #10322 #10322
- ManyToMany ER_DUP_ENTRY error (#10343) (e296063), closes #5704
- migrations on indexed TIMESTAMP WITH TIME ZONE Oracle columns (#10506) (cf37f13), closes #10493
- mongodb - undefined is not constructor (#10559) (ad5bf11)
- mongodb resolves leaked cursor (#10316) (2dc9624), closes #10315
- mssql datasource testonborrow not affecting anything (#10589) (122b683)
- nested transactions issues (#10210) (25e6ecd)
- prevent using absolute table path in migrations unless required (#10123) (dd59524)
- remove
date-fns
in favor ofDayJs
(#10306) (cf7147f) - remove dynamic require calls (#10196) (a939654)
- resolve circular dependency when using Vite (#10273) (080528b)
- resolve issue building eager relation alias for nested relations (#10004) (c6f608d), closes #9944
- resolve issue of generating migration for numeric arrays repeatedly (#10471) (39fdcf6), closes #10043
- resolve issue queryBuilder makes different parameter identifiers for same parameter (#10327) (6c918ea), closes #7308
- resolve issues on upsert (#10588) (dc1bfed), closes #10587
- scrub all comment end markers from comments (#10163) (d937f61)
- serialize bigint when building a query id #10336 (#10337) (bfc1cc5)
- should automatically cache if alwaysEnable (#10137) (173910e), closes #9910
- SQLite simple-enum column parsing (#10550) (696e688)
- update UpdateDateColumn on upsert (#10458) (fdb9866), closes #9015
- upgrade ts-node version to latest(10.9.1) version (#10143) (fcb9904)
- using async datasource to configure typeorm (#10170) (fbd45db)
Features
0.3.17
0.3.16
0.3.16 (2023-05-09)
Bug Fixes
- add
trustServerCertificate
option toSqlServerConnectionOptions
(#9985) (0305805), closes #8093 - add directConnection options to MongoDB connection (#9955) (e0165e7)
- add onDelete option validation for oracle (#9786) (938f94b), closes #9189
- added instanceName to options (#9968) (7c5627f)
- added transaction retry logic in cockroachdb (#10032) (607d6f9)
- allow json as alias for longtext mariadb (#10018) (2a2bb4b)
- convert the join table ID to the referenceColumn ID type (#9887) (9460296)
- correct encode mongodb auth credentials (#10024) (96b7ee4), closes #9885
- create correct children during cascade saving entities with STI (#9034) (06c1e98), closes #7758 #7758 #9033 #9033 #7758 #7758
- express option bug in init command (#10022) (5be20e2)
- for running cli-ts-node-esm use exit code from child process (#10030) (a188b1d), closes #10029
- mongodb typings breaks the browser version (#9962) (99bef49), closes #9959
- RelationIdLoader has access to queryPlanner when wrapped in transaction (#9990) (21a9d67), closes #9988
- resolve duplicate subscriber updated columns (#9958) (3d67901), closes #9948
- select + addOrderBy broke in 0.3.14 (#9961) (0e56f0f), closes #9960
- support More/LessThanOrEqual in relations (#9978) (8795c86)
Features
Reverts
0.3.15
0.3.14
0.3.13
Bug Fixes
- firstCapital=true not working in camelCase() function (f1330ad)
- handles "query" relation loading strategy for TreeRepositories (#9680) (a11809e), closes #9673
- improve EntityNotFound error message in QueryBuilder.findOneOrFail (#9872) (f7f6817)
- loading tables with fk in sqlite query runner (#9875) (4997da0), closes #9266
- prevent foreign key support during migration batch under sqlite (#9775) (197cc05), closes #9770
- proper default value on generating migration when default value is a function calling [Postgres] (#9830) (bebba05)
- react-native doesn't properly work in ESM projects because of circular dependency (#9765) (099fcd9)
- resolve issues for mssql migration when simple-enum was changed (cb154d4), closes #7785 #9457 #7785 #9457
- resolves issue with mssql column recreation (#9773) (07221a3), closes #9399
- transform values for FindOperators #9381 (#9777) (de1228d), closes #9816
- use forward slashes when normalizing path (#9768) (58fc088), closes #9766
- use object create if entity skip constructor is set (#9831) (a868979)
Features
- add support for json datatype for sqlite (#9744) (4ac8c00)
- add support for STI on EntitySchema (#9834) (bc306fb), closes #9833
- allow type FindOptionsOrderValue for order by object property (#9895) (#9896) (0814970)
- Broadcast identifier for removed related entities (#9913) (f530811)
- leftJoinAndMapOne and innerJoinAndMapOne map result to entity (#9354) (947ffc3)
0.3.12
Bug Fixes
- allow to pass ObjectLiteral in mongo find where condition (#9632) (4eda5df), closes #9518
- DataSource.setOptions doesn't properly update the database in the drivers (#9635) (a95bed7)
- Fix grammar error in no migrations found log (#9754) (6fb2121)
- improved
FindOptionsWhere
behavior with union types (#9607) (7726f5a) - Incorrect enum default value when table name contains dash character (#9685) (b3b0c11)
- incorrect sorting of entities with multi-inheritances (#9406) (54ca9dd)
- make sure "require" is defined in the environment (1a9b9fb)
- materialized hints support for cte (#9605) (67973b4)
- multiple select queries during db sync in sqlite (#9639) (6c928a4)
- overriding caching settings when alwaysEnabled is true (#9731) (4df969e)
- redundant Unique constraint on primary join column in Postgres (#9677) (b8704f8)
- remove unnecessary .js extension in imports (#9713) (6b37e38)
- resolve issue with "simple-enum" synchronization in SQLite (#9716) (c77c43e), closes #9715
- sql expression when
where
parameter is empty array (#9691) (7df2ccf), closes #9690 - synchronizing View with schema broken for oracle (#9602) (18b659d)
Features
- add find operator json contains (#9665) (d2f37f6)
- allow mysql2 v3 as peerDependency (#9747) (6c9010e), closes #9714
- naming strategy for legacy Oracle (#9703) (0eb7441)
- support busy_timeout param parameter for sqlite (#9623) (8668c29)
- support enableWal for the better-sqlite3 driver (#9619) (8731858)
- support for SQL aggregate functions SUM, AVG, MIN, and MAX to the Repository API (#9737) (7d1f1d6)
- support time travel queries, upsert, enums, spatial types in cockroachdb (#9128) (defb409), closes #9068 #8532 #8532 #9199
- update mssql dependency and other dependencies as well (#9763) (4555211)
0.3.11
Fixes
- boolean parameter escape in SQLiteDriver (#9400) (4a36d0e), closes #1981
- cacheId not used when loading relations with take (#9469) (93e6b3d)
- correctly return insertId for react-native (#9554) (97fae63)
- disable transactionSupport option for CordovaDriver (#9391) (53fad8f)
- explicitly define property for entity relation as enumerable (#9437) (85fa9c6), closes #6631
- fix ormUtils prototype check crashing on null prototype (#9517) (19536ed)
- fixed outdated
init
command (#9422) (0984307) - left instead of inner join for where or + optional relations (#9516) (d490793)
- Mark array arguments to find operators as read-only (#9474) (6eb674b)
- pass fake flag to undoLastMigration (#9562) (2458ac7), closes #9561
- resolve issue with migrations and unsigned int columns in aurora-data-api (#9478) (38e0eff), closes #9477
- resolve nameless TableForeign on drop foreign key (#9460) (efb4168), closes #9432
- synchronize with typeorm_metadata table only if needed (#9175) (cdabaa3), closes #9173 #9173 #9173
- the mpath is incorrect when the parent of the tree entity is null (#9535) (658604d)
- typings for Repository.extend function (#9396) (f07fb2c)
Features
- "And" operator in FindOptions (#9489) (fc3b4f8), closes #3113
- add id in migrate:show command logging (#9475) (71efa8e)
- add Open DB Flags and URI DB Name in SQLite (#9468) (73148c9)
- add parseInt8 option to postgres driver. Closes #9341 (#9435) (2473ff0)
- Add synchronize to
@JoinTable
(#9442) (93e14a9), closes #3443 - added opaque types support over primitives in find-options (#9560) (4ec04fa)
- allow for partial index conditions for on conflict statments in postgres (#8971) (2c54381)
- allow peerDependency of better-sqlite3 version 8.x.x (#9564) (26107e6), closes #9563
- allow per-migration control over transaction behavior (#9459) (6ba48bd), closes #7087
- implement exists query method (#9303) (598e269), closes #2815
- index support for materialized views of PostgreSQL (#9414) (1cb738a)
- migration:generate successful exit the process with zero code (#9288) (f215e2d)
- new virtual column decorator (#9339) (d305e5f), closes #9323 typeorm#9323 typeorm#9323 typeorm#9323 typeorm#9323
- upsert options conflictPaths as Entity keys (#9365) (b282428)