typeorm

ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

MIT License

Downloads
7.6M
Stars
33.2K
Committers
1.1K

Bot releases are hidden (Show)

typeorm - 0.3.20 Latest Release

Published by pleerock 9 months ago

Bug Fixes

Features

Reverts

  • Revert "fix: prevent using absolute table path in migrations unless required (#10123)" (#10624) (8f371f2), closes #10123 #10624
  • revert "feat: nullable embedded entities (#10289)" (#10614) (15de46f), closes #10289 #10614
typeorm - 0.3.19

Published by pleerock 10 months ago

Bug Fixes

  • fixed Cannot read properties of undefined (reading 'sync') caused after glob package upgrade
typeorm - 0.3.18

Published by pleerock 10 months ago

Bug Fixes

Features

Performance Improvements

BREAKING CHANGES

  • With node-oracledb the thin client is used as default. Added a option to use the thick client. Also added the option to specify the instant client lib
  • MongoDB: from the previous behavior of returning a result with metadata describing when a document is not found.
    See: https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/CHANGES_6.0.0.md
  • new nullable embeds feature introduced a breaking change which might enforce you to update types on your entities to | null,
    if all columns in your embed entity are nullable. Since database queries now return embedded property as null if all its column values are null.
typeorm - 0.3.17

Published by pleerock over 1 year ago

Bug Fixes

typeorm - 0.3.16

Published by pleerock over 1 year ago

0.3.16 (2023-05-09)

Bug Fixes

Features

  • mariadb uuid inet4 inet6 column data type support (#9845) (d8a2e37)

Reverts

typeorm - 0.3.15

Published by pleerock over 1 year ago

Bug Fixes

  • make cache optional fields optional (#9942) (159c60a)
  • prevent unique index identical to primary key (all sql dialects) (#9940) (51eecc2)
  • SelectQueryBuilder builds incorrectly escaped alias in Oracle when used on entity with composite key (#9668) (83c6c0e)

Features

typeorm - 0.3.14

Published by pleerock over 1 year ago

Bug Fixes

  • drop xml & yml connection option support. Addresses security issues in underlying dependency (#9930) (7dac12c)

Features

typeorm - 0.3.13

Published by pleerock over 1 year ago

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)
typeorm - 0.3.12

Published by pleerock over 1 year ago

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

typeorm - 0.3.11

Published by pleerock almost 2 years ago

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

typeorm - 0.3.10

Published by pleerock about 2 years ago

Bug Fixes

  • "Cannot commit, no transaction is active" error in sql.js (#9234) (749809a), closes #9100
  • add missing support for primaryKeyConstraintName property in EntitySchema (cc63961)
  • malformed query when selecting deeply nested embedded entities (#9273) (83f7b88)
  • prototype pollution issue (e3aac27)
  • typescript 4.8 type issues #9331 (#9357) (a1960e1)
  • Update RelationIdLoader to use DriverUtils.getAlias (#9380) (a917d65), closes #9379

Features

typeorm - 0.3.9

Published by pleerock about 2 years ago

Bug Fixes

  • fixed regression introduced in 0.3.8 - broken CLI because of #8917 (#9332), closes #9330
typeorm - 0.3.8

Published by pleerock about 2 years ago

Bug Fixes

Features

typeorm - 0.3.7

Published by pleerock over 2 years ago

Bug Fixes

Features

  • add for_key_share ("FOR KEY SHARE") lock mode for postgres driver (#8879) (4687be8), closes #8878
  • add nativeBinding option to better-sqlite3 driver (#9157) (bcdddc3)
  • add spanner as a db option for the init command (#9121) (e61cade)
  • allow explicitly named primary keys, foreign keys, and indices (#8900) (78df84c), closes #1355
  • Cloud Spanner support (#8730) (62518ae)
  • fix issues with generated columns and add support in other drivers (#8806) (0418ebc), closes #8761
  • implement support for relationids in entity schemas (#9129) (e24cced)
  • support TS 4.7+ node16/nodenext module mode (#9043) (862a402)
  • upgrade ioredis to v5 (#8997) (723f1e5)

Performance Improvements

typeorm - 0.3.6

Published by pleerock over 2 years ago

Features

typeorm - 0.3.5

Published by pleerock over 2 years ago

Bug Fixes

  • .save repository method not returning generated uuids for aurora-postgres (#8825) (ed06f4c)
  • allow hstore type to use transformers in driver postgres (#8823) (b1a0107)
  • broken shebang parameters of cli-ts-node-commonjs and cli-ts-node-esm on some linux distros (#8821) (c5dfc11), closes #8818
  • find select object api should support false values #8796 (#8807) (9ac8e9e)
  • resolve missing ConnectionOptions export in index.ts (#8850) (1693a17), closes #8837
  • save correct discriminator with STI (#8819) (9d1e246), closes #2927
  • Update DeepPartial for usage of generics with Repository class (#8817) (8ba742e)
  • fixed issue with typeorm init command (#8820)
typeorm - 0.3.4

Published by pleerock over 2 years ago

Bug Fixes

  • BaseEntity.reload method regression and made findOne to throw error on missing conditions in runtime (#8801) (ee8c1ec)
  • improve DeepPartial recursion (#8732) (0494008), closes #8681
  • missing timestamp in created migrations filenames (#8802) (ceee439)
  • PoolConnection leaked by MysqlDriver (#8803) (d2cfd22)
  • remove console.log calls from SelectQueryBuilder (#8795) (54c7db4), closes #8792
  • stop crashing when redis is offline and ignoreErrors on cache options is set (#8725) (edc39d1)

Features

typeorm - 0.3.3

Published by pleerock over 2 years ago

Bug Fixes

  • improve initialization of custom repository (#8782) (52a641c)
  • resolve entities correctly in datasource when globs are specified (#8778) (a641c5d)
  • CLI migration:run missing console output since 0.3.1 (#8781)

Features

typeorm - 0.3.2

Published by pleerock over 2 years ago

Bug Fixes

  • broken CLI in ESM projects since version 0.3.0 (#8773) (97699e8)

Features

  • add typeorm CLI variations that include ts-node (#8776) (05fc744)
  • allows user to specify which mysql package should be used (#8771) (35106df)

Reverts

typeorm - 0.3.1

Published by pleerock over 2 years ago

Bug Fixes

Features

  • new array find operators (ArrayContains, ArrayContainedBy, ArrayOverlap) (#8766) (9f1b8e3):

BREAKING CHANGES

  • we do not call JSON.stringify() to json/jsonb column types in Postgres. Instead, we delegate value directly to underlying pg driver. This is a correct way of handling jsons.
  • array: true must be explicitly defined for array json/jsonb values
  • strings being JSON-stringified must be manually escaped