NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #4923 most downloaded on npm
Data-Mapper ORM for TypeScript and ES2023+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.
Latest stable
1.1.2
Last release 12 days ago
10 Nov 2026
Ships on a steady schedule
a new release about every 8 days
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
1332 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
entity to be Partial | undefined in UpdateEvent
entity to be Partial<Entity> | undefined in UpdateEvent (#7783) (f033045)prepare per Hana client docs (#7748) (8ca05b1)afterUpdate subscriber (#7724) (d25304d)OracleQueryRunner createDatabase if-not-exists not fail (f5a80ef)data from SaveOptions during that query (#7886) (1de2e13)join conditions undefined-able (#7892) (b0c1cc6)buildColumnAlias for backward compatibility (#7706) (36ceefa)Entity (#7910) (78fbc14)retryWrites to allowed mongo extra options (#7869) (dcdaaca)entitySkipConstructor (f43d561)extras for mongodb (#7801) (90894c7)Transaction*Event types (#7949) (2436a66), closes /github.com/typeorm/typeorm/blob/master/src/subscriber/EntitySubscriberInterface.ts#L12enableArithAbort for SQLServerDriver (#7894) (1f64da2)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
restored buildColumnAlias for backward compatibility
replaced deprecated insert method with insertOne for MongoDriver in MigrationExecutor.
MATERIALIZED VIEW is treated as a regular VIEW which causes issues on sync (#7592) (f85f436)schema defined in entity/connection leads to unnecessary queries during schema sync (#7575) (7eb0327), closes #7276 #7276json types in Postgres (#7650) (a471c1b)ManyToMany onUpdate option to foreign key metadata (#5714) (198d2c5), closes #4980enableExtension for slave connections in Postgres (#7693) (620aac9), closes #7691insert method with insertOne for MongoDriver in MigrationExecutor. (#7594) (83fed60)host if hostReplicaSet is not provided in MongoDriver (#7559) (9b6d7bc)orphanedRowAction option to EntitySchemaRelationOptions (#7625) (a8eb49a), closes #7417set datatype support for aurora-data-api (#7665) (b6c1836)ioredis cache with a URL (#7689) (e017f9b), closes #7631MAX_EXECUTION_TIME for MySQL driver. (#7638) (0564c34)aurora-data-api get correct increment primary key for multiple entities inserted (#7434) (fc8af5f), closes #7385
getEntityValueMap (#7005) (7fe723b), closes #7002RelationId. (#7318) (01a215a), closes #5691minor breaking change on "conflict\*" options - column names used are now automatically escaped.
ColumnOptions to @PrimaryColumn does not function anymore. One must use PrimaryColumnOptions instead.add missing "comment" field to QB clone method (#7205) (f019771), closes #7203
allow falsey discriminator values (#6973) (f3ba242), closes #3891
query command's param (#6899) (4475d80), closes #6896IN clause across all dialects (#6887) (9635080), closes #4865 #2195require in ReactNativeDriver (#6814) (1a6383c), closes #6811init command (6ed9906)autoEncryption option for MongoDB (#6865) (b22c27f)add dummy for FileLogger, ConnectionOptionsReaders, and update gulpfile
release listeners in PostgresQueryRunner (#6708) (208cf6b), closes #6699@JoinTable does not respect inverseJoinColumns referenced column width (#6444) (f642a9e), closes #6442
ids_ to alias builder to prevent length overflow (#6624) (cf3ad62)JoinColumns in EntitySchema (#6397) (298a3b9), closes #5444calling EntityManager.insert() with an empty array of entities (#5745) (f8c52f3), closes #5734 #5734 #5734
getUpsertedIds() (#5878) (2ab88c2)Nothing published for this version
.synchronize() drops json column on mariadb (#5391) (e3c78c1), closes typeorm/typeorm#3636
use a prefix on SelectQueryBuilder internal parameters (#5178) (cacb08b), closes #5174 #5174
Nothing published for this version
Nothing published for this version
allow expireAfterSeconds 0 in Index decorator (close #5004)
ensure distinct property is respected cloning query builder (#4843) (ea17094), closes #4842
"database" option error in driver when use "url" option for connection
FindConditions<?> and FindConditions<?> problem (#4470) (7a0beed)set datatype support for MySQL/MariaDB (#4538) (19e2179), closes #2779useUnifiedTopology config parameter (#4684) (92e4270)deprecate column readonly option in favor of update and insert options
typeorm migration:show command (#4173)readonly option in favor of update and insert options (#4035)orUpdate in SQLlite (#4097)dirty_read (NOLOCK) in SQLServer (#4133)@OneToMany) now also accept string instead of typeFunction, which prevents circular dependency issues in the frontend/browser (issue #4190)sqlJsConfig to input config when initializing sql.js (issue #4559)fixed transform embeddeds with boolean values (mongodb)
removed unused parameters from insert, update, delete methods
insert, update, delete methods (#3888)lock option in FindOptionsNothing published for this version
fixed bug in connection.dropDatabase method
connection.dropDatabase method (#1414)() => syntax) in parameters to prevent security considerationsuuidExtension option to Postgres connection options, which allows TypeORM to use the newer pgcrypto extension to generate UUIDsNothing published for this version
Nothing published for this version
fixed migration issue with postgres numeric enum type - change queries are not generated if enum is not modified
package.json (3583)useLocalForage option to Sql.js connection options, which enables asynchronous load and save operations of the datatbase from the indexedDB (#3554)fixed undefined object id field in case property name is _id (3517)
_id (3517)Index decorator (#3592)transformer.from() in case column is NULL (#3395)update/insert methods, some find* methods in repositories, entity managers, BaseEntity and QueryBuildersmssql driver (#3327)ioredis/cluster is now possible(#3538)fixed mongodb entity listeners and subscribers
QueryBuilder whereInIds (#2103)isolationLevel in Connection.transaction() method (#3363)Exclusion decoratorgetRepository function to accept EntitySchema<Entity> (#3402)tslib to reduce package size (#3457, #3458)findByIds and whereInIds for simple entities with single primary key (#3431)ioredis and ioredis-cluster cache support (#3289,#3364)LessThanOrEqual and MoreThanOrEqual find options (#3373)@Column({
type: "enum",
enum: StringEnum,
array: true,
default: [StringEnum.ADMIN]
})
stringEnums: StringEnum[];
Nothing published for this version
Nothing published for this version
hot fix for mysql schema sync bug
allowed caching options from environment variable
ON UPDATE CASCADE relations for mysqlrepository.save returns union typeNothing published for this version
Nothing published for this version
UpdateEvent now returns with contains updatedColumns and updatedRelations
UpdateEvent now returns with contains updatedColumns and updatedRelationsNothing published for this version
added support for specifying isolation levels in transactions
Nothing published for this version
added support for rowversion type for mssql
fixed wrong aggregate and count methods signature in mongodb
added support for enum arrays in postgres
fixed bug with relation id loader queries not working with self-referencing relations
fixed bug with selecting default values after persistence when initialized properties defined
fixed bug in mysql schema synchronization
fixed bug with lazy relations inside transactions
breaking change on how array parameters work in queries - now instead of (:param) new syntax must be used (:...param). This fixed various issues on ho…
cascadeRemove option from relation options.cascadeAll with cascade: true syntax from relation options.cascadeInsert with cascade: ["insert"] syntax from relation options.cascadeUpdate with cascade: ["update"] syntax from relation options.null instead of undefined property as before.Post { @ManyToOne(type => Tag) tag: Tag|number } with post.tag = 1 usage.@OneToMany(type => Post, post => tag, { persistence: false }). This can dramatically improve entity save performance.loadAllRelationIds method of QueryBuilder now accepts list of relation paths that needs to be loaded, also disableMixedMap option is now by default set to false, but you can enable it via new method parameter optionsreturning and output statements of InsertQueryBuilder support array of columns as argumentnull all items from that relation are removed, just like it would be set to empty arrayCURRENT_TIMESTAMP as a default value)InsertQueryBuilder, UpdateQueryBuilder and DeleteQueryBuilder automatically update entities after execution.
This only happens if real entity objects are passed.
Some databases (like mysql and sqlite) requires a separate query to perform this operation.
If you want to disable this behavior use queryBuilder.updateEntity(false) method.
This feature is convenient for users who have uuid, create/update date, version columns or columns with DEFAULT value set.InsertQueryBuilder, UpdateQueryBuilder and DeleteQueryBuilder call subscribers and listeners.
You can disable this behavior by setting queryBuilder.callListeners(false) method.Repository and EntityManager method .findOneById is deprecated and will be removed in next 0.3.0 version.
Use findOne(id) method instead now.InsertQueryBuilder now returns InsertResult which contains extended information and metadata about runned queryUpdateQueryBuilder now returns UpdateResult which contains extended information and metadata about runned queryDeleteQueryBuilder now returns DeleteResult which contains extended information and metadata about runned queryuseTransaction(true) method of the QueryBuilder.insert, update and delete methods of QueryRunner now use InsertQueryRunner, UpdateQueryRunner and DeleteQueryRunner insideremoveById, removeByIds methodsdeleteById method - use delete(id) method instead nowupdateById method - use update(id) method instead nowsnakeCase utility - check table names after upgradingsave and remove operationssave and remove operations@SingleEntityChild has been renamed to @ChildEntity@DiscriminatorValue has been removed, instead parameter in @ChildEntity must be used, e.g. @ChildEntity("value")@DiscriminatorColumn decorator has been removed, use @TableInheritance options instead nowskipSync in entity options has been renamed to synchronize. Now if it set to false schema synchronization for the entity will be disabled.
By default its true.@ClosureEntity decorator has been removed. Instead @Entity + @Tree("closure-table") must be used@Unique decorator. Accepts custom unique constraint name and columns to be unique. Used only on as
composite unique constraint, on table level. E.g. @Unique("uq_id_name", ["id", "name"])@Check decorator. Accepts custom check constraint name and expression. Used only on as
composite check constraint, on table level. E.g. @Check("chk_name", "name <> 'asd'")Oracle issues, now it will be fully maintained as other driversmigrations:create, migrations:generate, migrations:revert and migrations:run to migration:create, migration:generate, migration:revert and migration:runid column with auto-generated keys, you need to re-create migrations table or add new column manually.@Index decorator now accepts synchronize option. This option need to avoid deleting custom indices which is not created by TypeORM{ persistence: false }. You can use it to prevent any extra queries for relations checksUNSIGNED and ZEROFILL column attributes in MySQLON UPDATE column option in MySQLSPATIAL and FULLTEXT index options in MySQLhstore and enum column types support in Postgres{ "supportBigNumbers": true, "bigNumberStrings": true } options by default for node-mysqlwidth option instead of lengthonDelete: "CASCADE" attribute on their foreign keysancestor and descendant columns in ClosureTable marked as primary keysManyToOne and OneToOne relationsNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.