TypeORM v0.2.12 Release Notes

Release Date: 2019-01-20 // over 5 years ago
  • ๐Ÿ› Bug Fixes

    • ๐Ÿ›  fixed mongodb entity listeners and subscribers (#1527)
    • ๐Ÿ›  fixed connection options builder - paramters parsed from url are assigned on top of options (#3442)
    • ๐Ÿ›  fixed issue with logical operator precedence in QueryBuilder whereInIds (#2103)
    • ๐Ÿ›  fixed missing isolationLevel in Connection.transaction() method (#3363)
    • ๐Ÿ›  fixed broken findOne method with custom join column name
    • ๐Ÿ›  fixed issue with uuid in mysql (#3374)
    • ๐Ÿ›  fixed missing export of Exclusion decorator
    • ๐Ÿ›  fixed ignored extra options in mongodb driver (#3403, #1741)
    • ๐Ÿ›  fixed signature of root getRepository function to accept EntitySchema<Entity> (#3402)
    • ๐Ÿ›  fixed false undefined connection options passed into mongodb client (#3366)
    • fixed ER_DUP_FIELDNAME with simple find (#3350)

    ๐Ÿ”‹ Features

    • โž• added tslib to reduce package size (#3457, #3458)
    • queries are simplified in findByIds and whereInIds for simple entities with single primary key (#3431)
    • โž• added ioredis and ioredis-cluster cache support (#3289,#3364)
    • โž• added LessThanOrEqual and MoreThanOrEqual find options (#3373)
    • ๐Ÿ‘Œ improve support of string, numeric and heterogeneous enums in postgres and mysql (#3414)
    • 0๏ธโƒฃ default value of enum array in postgres is now possible define as typescript array (#3414) typescript @Column({ type: "enum", enum: StringEnum, array: true, default: [StringEnum.ADMIN] }) stringEnums: StringEnum[];

    ๐Ÿ’ฅ Breaking changes

    • โšก๏ธ UpdateQueryBuilder now throw error if update values are not provided or unknown property is passed into .set() method (#2849,#3324)