TypeORM v0.2.29 Release Notes
Release Date: 2020-11-02 // over 3 years ago-
๐ Bug Fixes
- ๐ allow falsey discriminator values (#6973) (f3ba242), closes #3891
- ๐ allow for complex jsonb primary key columns (#6834) (f95e9d8), closes #6833
- ๐ Allows valid non-object JSON to be retrieved in simple-json columns (#6574) (0aedf43), closes #5501
- ๐ Cannot read property 'hasMetadata' of undefined (#5659) (0280cdc), closes #3685
- check if the connection is closed before executing a query. This prevents SQLITE_MISUSE errors (https://sqlite.org/rescode.html#misuse) originating from sqlite itself (#6975) (5f6bbec)
- check mysql constraint schema on join (#6851) (d2b914d), closes #6169 #6169
- correct reading of custom ormconfig.env files (#6922) (a09fb7f)
- explicitly define
query
command's param (#6899) (4475d80), closes #6896 - findRoots should get the defined primary key column (#6982) (f2ba901), closes #6948 #6948
- ๐ Fix Mongodb delete by ObjectId. Closes #6552 (#6553) (e37eb1e)
- ๐ fixes the typescript errors in EntityCreateCommand & SubscriberCreateCommand (#6824) (0221a93)
- ๐ handle count multiple PK & edge cases more gracefully (#6870) (4abfb34), closes #5989 #5314 #4550
- ๐ Handle undefined querysets in QueryCommand (#6910) (6f285dc), closes #6612
- ๐ handle Undefined values in driver URL options (#6925) (6fa2df5)
- ILike operator generally available for any driver (#6945) (37f0d8f)
- Only check for discriminator conflicts on STI entities (#2985) (06903d1), closes #2984
- postgresql connection URL can use an UNIX Socket (#2614) (#6042) (21c4166)
- prevent create-type commands edge-case TypeErrors (#6836) (08ec0a8), closes #6831
- 0๏ธโฃ redundant migration with decimal default (#6879) (6ff67f7), closes #6140 #5407
- โ remove @DiscriminatorValue from error message (#5256) (2bf15ca), closes #5255
- resolves issue proto-less object validation (#6884) (e08d9c6), closes #2065
- return null for nullable RelationId() column (#6848) (7147a0d), closes #6815
- subscribers should use the subscribersDir (5ef9450)
- ๐ support changing comments in MySQL columns (#6903) (c5143aa)
- ๐ support combination of many-to-one/cacade/composte PK (#6417) (9a0497b)
- ๐ support empty
IN
clause across all dialects (#6887) (9635080), closes #4865 #2195 - ๐ support multiple row insert on oracle (#6927) (a5eb946), closes #2434
- ๐ sync the typeorm-model-shim (#6891) (c72e48b), closes #6288 #5920
- ๐ TreeRepository based entities primary column supports custom name. (#6942) (7ec1b75)
- ๐ use
require
inReactNativeDriver
(#6814) (1a6383c), closes #6811 - ๐ use correct type for MongoQueryRunner.databaseConnection (#6906) (da70b40), closes #6453
- ๐ use pg 8 in
init
command (6ed9906) - wrong FK loaded in multi-database environment (#6828) (c060f95), closes #6168
๐ Features
- โ add ability for escaping for Raw() find operator (#6850) (91b85bf)
- โ add absolute path support to other CLI commands (#6807) (d9a76e9)
- โ Add SelectQueryBuilder.getOneOrFail() (#6885) (920e781), closes #6246
- backport ilike from next (#6862) (c8bf81e)
- Exit with code 1 on empty migration:generate (#6978) (8244ea1)
- ๐ schema synchronization for partitioned tables with PostgreSQL 12+ (#6780) (990442e)
- ๐ support
autoEncryption
option for MongoDB (#6865) (b22c27f) - ๐ Support column comments in Postgres and CockroachDB (#6902) (bc623a4), closes #3360
- ๐ support ESM in ormconfig js & ts (#6853) (7ebca2b), closes #5003
- ๐ support query comments in the query builder (#6892) (84c18a9), closes #3643
- transactional events in subscriber interface + "transaction" option in FindOptions (#6996) (0e4b239)
๐ Performance Improvements