TypeORM v0.2.25 Release Notes

Release Date: 2020-05-19 // 19 days ago
  • 🐛 Bug Fixes

    • 'in' clause case for ORACLE (#5345) (8977365)
    • calling EntityManager.insert() with an empty array of entities (#5745) (f8c52f3), closes #5734 #5734 #5734
    • ⚡️ columns with transformer should be normalized for update (#5700) (4ef6b65), closes #2703
    • escape column comment in mysql driver (#6056) (5fc802d)
    • expo sqlite driver disconnect() (#6027) (61d59ca)
    • HANA - SSL options, column delta detection mechanism (#5938) (2fd0a8a)
    • 🖐 handle URL objects as column field values (#5771) (50a0641), closes #5762 #5762
    • ⚡️ insert and update query builder to handle mssql geometry column correctly (#5947) (87cc6f4)
    • migrations being generated for FK even if there are no changes (#5869) (416e419)
    • ⚡️ multiple assignments to same column on UPDATE #2651 (#5598) (334e17e)
    • prevent TypeError when calling bind function with sql.js 1.2.X (#5789) (c6cbddc)
    • prototype pollution issue (#6096) (db9d0fa)
    • 0️⃣ provide a default empty array for parameters. (#5677) (9e8a8cf)
    • redundant undefined parameters are not generated in migration files anymore (#5690) (d5cde49)
    • 👀 replacing instanceof Array checks to Array.isArray because instanceof Array seems to be problematic on some platforms (#5606) (b99b4ad)
    • respect database from connection urls (#5640) (ed75d59), closes #2096
    • sha.js import (#5728) (8c3f48a)
    • Unknown fields are stripped from WHERE clause (issue #3416) (#5603) (215f106)
    • ⚡️ update dependency mkdirp to 1.x (#5748) (edeb561)
    • ⚡️ update Entity decorator return type to ClassDecorator (#5776) (7d8a1ca)
    • 👉 use an empty string enum as the type of a primary key column (#6063) (8e0d817), closes #3874
    • 👉 use correct typings for the result of getUpsertedIds() (#5878) (2ab88c2)
    • 0️⃣ wrong table name parameter when not using default schema (#5801) (327144a)

    🔋 Features

    • ➕ add FOR NO KEY UPDATE lock mode for postgresql (#5971) (360122f)
    • ➕ add name option to view column (#5962) (3cfcc50), closes #5708
    • ➕ Add soft remove and recover methods to entity (#5854) (9d2b8e0)
    • ➕ added support for NOWAIT & SKIP LOCKED in Postgres (#5927) (2c90e1c)
    • 👍 Aurora Data API - Postgres Support (#5651) (e584297)
    • 🔧 aurora Data API - Support for AWS configuration options through aurora driver (#5754) (1829f96)
    • ⚡️ create-column, update-column, version-column column kinds now support user specified values (#5867) (5a2eb30), closes #3271
    • 🚚 names of extra columns for specific tree types moved to NamingStrategy (#5737) (ec3be41)
    • PG allow providing a function for password (#5673) (265d1ae)
    • ⚡️ update cli migration up and down from any to void (#5630) (76e165d)
    • ⚡️ UpdateResult returns affected rows in mysql (#5628) (17f2fff), closes #1308

    🐎 Performance Improvements

    • 📇 An optimized version of EntityMetadata#compareIds() for the common case (#5419) (a9bdb37)

Previous changes from v0.2.23

  • 🐛 Bug Fixes

    • 🔀 .synchronize() drops json column on mariadb (#5391) (e3c78c1), closes typeorm/typeorm#3636
    • (base-entity) set create return type to T[] (#5400) (ceff897)
    • ➕ add the enableArithAbort option to the sql server connection option typings (#5526) (d19dbc6)
    • 🐛 bug when default value in mssql were not updated if previous default was already set (9fc8329)
    • 🔄 change OrmUtils.mergeDeep to not merge RegExp objects (#5182) (0f51836), closes #3534
    • ⚡️ fk on update should not use attributes of on delete (2baa934)
    • load typeorm-aurora-data-api-driver correctly when using webpack (#4788) (#5302) (9da0d34)
    • not to make typeorm generate alter query on geometry column when that column was not changed (#5525) (ee57557)
    • Oracle sql expression for date column (#5305) (40e9d3a), closes #4452 #4452
    • ♻️ refactoring instance of with Array.isArray() (#5539) (1e1595e)
    • 0️⃣ Return NULL when normalize default null value (#5517) (1826b75), closes #5509
    • 🛠 SAP HANA driver fixes (#5445) (87b161f)
    • ⚡️ update foreign keys when table name changes (#5482) (7157cb3)
    • 👉 use OUTPUT INTO on SqlServer for returning columns (#5361) (6bac3ca), closes #5160 #5160
    • 👉 use sha.js instead of crypto for hash calculation (#5270) (b380a7f)

    🔋 Features