unstale

npm / typeorm

typeorm

What changed in typeorm 0.3 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

158 breaking9 security31 new APIs and options4 performance12 behavior and defaults6 tooling96 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

typeorm 1288 changes

Breaking changes 156

  • The inverse foreign key defaults to CASCADE.

    1.1.1release notes

  • Invalid where values now default to throwing on the write path.

    0.3.31, 1.1.0release notesrelease notes

  • Rejects empty where criteria for update and delete operations.

    0.3.31, 1.1.0release notesrelease notes

  • AbstractRepository is removed; use Repository.extend() instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • The MongoDB appname option was removed; use appName instead.

    1.0.0upgrade guide

  • BaseConnectionOptions was renamed to BaseDataSourceOptions.

    1.0.0upgrade guide

  • better-sqlite3 is now the default SQLite driver.

    1.0.0release notes

  • The internal Broadcaster method is removed.

    1.0.0upgrade guideupgrade guide

  • The deprecated broadcastLoadEventsForAll method has been removed.

    1.0.0release notes

  • The Buffer polyfill is removed; Uint8Array is used for binary data on non-Node platforms, while Node.js Buffer continues to work.

    1.0.0upgrade guideupgrade guiderelease notes

  • The SQLite busyTimeout option was replaced by timeout for better-sqlite3.

    1.0.0upgrade guide

  • unsigned is removed for decimal/float ColumnNumericOptions; integer unsigned is unchanged.

    1.0.0upgrade guideupgrade guide

  • The deprecated unsigned option has been removed from ColumnNumericOptions.

    1.0.0release notes

  • Connection is removed; use DataSource instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • Use dataSource.destroy() instead of connection.close().

    1.0.0upgrade guide

  • Use dataSource.initialize() instead of connection.connect().

    1.0.0upgrade guide

  • Use dataSource.isInitialized instead of connection.isConnected.

    1.0.0upgrade guide

  • The property on drivers, query runners, managers, builders, metadata, and subscriber interfaces is renamed to dataSource; a deprecated getter bridges the change.

    1.0.0upgrade guide

  • The property was renamed to dataSource in Driver, QueryRunner, EntityManager, QueryBuilder, EntityMetadata, and event classes; a deprecated getter was added for EntityManager.

    1.0.0upgrade guiderelease notes

  • ConnectionManager and global convenience functions, including createConnection, getConnection, getManager, getRepository, and createQueryBuilder, are removed.

    1.0.0upgrade guide

  • ConnectionManager was removed; create and manage DataSource instances directly.

    1.0.0upgrade guide

  • The codemod flags constructions of the removed ConnectionManager class.

    1.0.0release notes

  • ConnectionOptions is removed; use DataSourceOptions instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • The deprecated environment-variable reader class was removed, along with TypeORM_* connection configuration and ormconfig.env support.

    1.0.0upgrade guiderelease notes

  • Configuration paths are resolved from process.cwd() rather than app-root-path; pass { root: "/custom/path" } to the constructor to override.

    1.0.0upgrade guideupgrade guide

  • The method is renamed to get().

    1.0.0upgrade guideupgrade guide

  • The codemod renames ConnectionOptionsReader.all() to get() and flags the path semantics change.

    1.0.0release notes

  • get() now returns all configurations as an array; the old get(name) form was removed.

    1.0.0upgrade guide

  • The old has(name) method was removed.

    1.0.0upgrade guide

  • The deprecated IoC container integration type was removed; TypeORM no longer has built-in IoC container support.

    1.0.0upgrade guide

  • The deprecated global function was removed; use the equivalent DataSource instance method.

    1.0.0upgrade guide

  • The deprecated global function was removed; manage DataSource instances directly.

    1.0.0upgrade guide

  • The deprecated global function was removed; use dataSource.createQueryBuilder().

    1.0.0upgrade guide

  • Replaces the connection property on drivers, query runners, managers, builders, metadata, and subscriber interfaces.

    1.0.0upgrade guide

  • The property is removed because named connections were deprecated in v0.3.

    1.0.0upgrade guideupgrade guiderelease notes

  • The conditions parameter now uses entity-aware types instead of any.

    1.0.0upgrade guide

  • The MS SQL Server connection option has been removed; use authentication with NTLM type instead.

    1.0.0upgrade guideupgrade guide

  • The method is removed; use buildAlias() instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • Preserves null property values when merging into an entity.

    1.0.0upgrade guide

  • The static method is removed as an internal utility with no public replacement.

    1.0.0upgrade guideupgrade guiderelease notes

  • The options parameter is removed because skipNulls was never functional; remove the third argument.

    1.0.0upgrade guideupgrade guide

  • The decorator is removed; use Repository.extend() instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • TypeORM no longer auto-loads .env files or depends on dotenv.

    1.0.0upgrade guide

  • The minimum supported Expo SDK version is 52.

    1.0.0upgrade guide

  • The log path is resolved from process.cwd(); use an absolute path when the app is not started from its root folder.

    1.0.0upgrade guideupgrade guide

  • The deprecated findByIds method has been removed from EntityManager, Repository, and BaseEntity; use findBy with the In operator instead.

    1.0.0upgrade guideupgrade guide

  • The deprecated findByIds method has been removed from Repository and EntityManager.

    1.0.0release notes

  • The deprecated findOneById method has been removed from EntityManager, Repository, BaseEntity, MongoEntityManager, and MongoRepository; use findOneBy instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • The codemod flags use of the removed join property in FindOneOptions and FindManyOptions.

    1.0.0release notes

  • The SQLite driver option has been removed.

    1.0.0upgrade guide

  • The SQLite flags option was removed because better-sqlite3 does not support the C-level open flags; use dedicated options such as readonly or enableWAL.

    1.0.0upgrade guide

  • The MongoDB fsync connection option was removed; use writeConcern with journal: true.

    1.0.0upgrade guide

  • The deprecated global function was removed; use DataSource instance methods.

    1.0.0upgrade guide

  • The deprecated global function was removed.

    1.0.0upgrade guide

  • The deprecated global function was removed.

    1.0.0upgrade guide

  • The function is removed; use Repository.extend() instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • The IoC container system, including getFromContainer(), is removed.

    1.0.0upgrade guide

  • The deprecated global function was removed; use the corresponding DataSource instance method.

    1.0.0upgrade guide

  • The global function is removed; use dataSource.mongoManager instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • The global function is removed; use dataSource.getMongoRepository() instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • Checking for pending migrations no longer creates the migrations table.

    1.0.0upgrade guide

  • The deprecated global function was removed; use dataSource.getRepository().

    1.0.0upgrade guide

  • The deprecated global function was removed.

    1.0.0upgrade guide

  • The deprecated global function was removed; use the equivalent DataSource instance method.

    1.0.0upgrade guide

  • The deprecated SAP HANA connection alias was removed; use driver.

    1.0.0upgrade guide

  • The conditions parameter now uses entity-aware types instead of any.

    1.0.0upgrade guide

  • The setting applies only to high-level APIs; QueryBuilder where(), andWhere(), and orWhere() are no longer affected.

    1.0.0upgrade guiderelease notes

  • The default is throw; null or undefined in where conditions now raises an error instead of silently ignoring the property. Use IsNull() for null matching.

    1.0.0upgrade guideupgrade guiderelease notes

  • The deprecated IoC container system has been removed.

    1.0.0release notes

  • The MongoDB j connection option was removed; use writeConcern with journal: true.

    1.0.0upgrade guide

  • The deprecated join property on FindOneOptions and FindManyOptions has been removed, along with JoinOptions; use relations for leftJoinAndSelect or QueryBuilder for other join types.

    1.0.0upgrade guideupgrade guiderelease notes

  • Explicit shared join-column entries between relations are no longer dropped during persistence.

    1.0.0upgrade guide

  • The MongoDB keepAlive option was removed because it is always enabled since MongoDB Driver v6.0.

    1.0.0upgrade guide

  • The MongoDB keepAliveInitialDelay option was removed because it is not configurable since MongoDB Driver v6.0.

    1.0.0upgrade guide

  • The MySQL option now defaults to false, using standard ST_GeomFromText/ST_AsText functions by default.

    1.0.0upgrade guideupgrade guiderelease notes

  • Update and SoftDelete query builders throw at call time for non-numeric values instead of interpolating them into SQL.

    1.0.0upgrade guiderelease notes

  • SelectQueryBuilder.loadRelationCountAndMap() has been removed; use @VirtualColumn or a sub-query in a query builder instead.

    1.0.0upgrade guide

  • The method is removed; use getPendingMigrations(), getExecutedMigrations(), or dataSource.migrations instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • Deprecated MongoDB connection options have been removed.

    1.0.0release notes

  • MongoDB driver v7+ is required; support for versions 5 and 6 has been dropped.

    1.0.0upgrade guideupgrade guiderelease notes

  • DataSource isolation options were renamed and proper values are assigned during createPool.

    1.0.0release notes

  • The mysql package is no longer supported for MySQL/MariaDB; only mysql2 is supported, and the connectorPackage option is removed.

    1.0.0upgrade guideupgrade guide

  • MysqlConnectionOptions was renamed to MysqlDataSourceOptions; the same pattern applies to all drivers.

    1.0.0upgrade guide

  • Internal nativeParameters plumbing is removed from drivers and query builders.

    1.0.0upgrade guide

  • Versions 10 and 11.0.0 attempt to register the removed Connection class and crash at startup; upgrade to v11.0.1 or later for TypeORM v1 compatibility.

    1.0.0upgrade guide

  • Node.js 20+ is required; support for Node.js 16 and 18 has been dropped, and the minimum JavaScript target is ES2023.

    1.0.0upgrade guideupgrade guide

  • ManyToOne and owning OneToOne relations marked nullable: false now use INNER JOIN instead of LEFT JOIN, which may exclude rows with orphaned foreign keys.

    1.0.0upgrade guideupgrade guide

  • MongoDB internal types are no longer re-exported from typeorm; import them directly from mongodb.

    1.0.0upgrade guide

  • Replacing children deletes orphaned rows with non-nullable foreign keys; nullable foreign-key rows are still nullified.

    1.0.0upgrade guideupgrade guide

  • Isolation-level values now use spaces instead of underscores to match the format used throughout TypeORM.

    1.0.0upgrade guide

  • The option is renamed to options.isolationLevel; values use the IsolationLevel format, and SNAPSHOT is added.

    1.0.0upgrade guide

  • Replaces options.isolation for MS SQL Server; values use the IsolationLevel format, and SNAPSHOT is supported.

    1.0.0upgrade guideupgrade guide

  • The ormconfig.env file format is no longer supported; use a TypeScript or JavaScript configuration file.

    1.0.0upgrade guide

  • The deprecated lock mode is replaced by pessimistic_write with the onLocked option.

    1.0.0upgrade guide

  • This deprecated lock mode was removed; use pessimistic_write with skip_locked instead.

    1.0.0upgrade guide

  • The deprecated pessimistic_partial_write lock mode has been removed.

    1.0.0release notes

  • This deprecated lock mode was removed; use pessimistic_write with nowait instead.

    1.0.0upgrade guide

  • The deprecated pessimistic_write_or_fail lock mode has been removed.

    1.0.0release notes

  • The SAP HANA pool.checkInterval option was removed with no replacement.

    1.0.0upgrade guide

  • The deprecated SAP HANA pool.idleTimeout option was removed; use pool.maxPooledIdleTime in seconds.

    1.0.0upgrade guide

  • The deprecated SAP HANA pool.max option was removed; use pool.maxConnectedOrPooled.

    1.0.0upgrade guide

  • The SAP HANA option now defaults to 30 seconds and no longer falls back to pool.idleTimeout.

    1.0.0upgrade guide

  • The SAP HANA pool.maxWaitingRequests option was removed with no replacement.

    1.0.0upgrade guide

  • The SAP HANA option now defaults to 0 and no longer falls back to pool.requestTimeout.

    1.0.0upgrade guide

  • The SAP HANA pool.min option was removed with no replacement.

    1.0.0upgrade guide

  • The deprecated SAP HANA pool.requestTimeout option was removed; use pool.maxWaitTimeoutIfPoolExhausted.

    1.0.0upgrade guide

  • SHA1 is now applied directly to hash input instead of applying encodeURIComponent first; existing query result cache entries are invalidated and rebuilt.

    1.0.0upgrade guide

  • logQuery was removed after printSql was renamed to it.

    1.0.0release notes

  • onConflict() is removed; use orIgnore() or the orUpdate() array signature.

    1.0.0upgrade guideupgrade guiderelease notes

  • The deprecated overload is removed; use the array signature.

    1.0.0upgrade guideupgrade guiderelease notes

  • The method is removed; executed queries are already logged through the configured logger. Use getSql() or getQueryAndParameters() to inspect SQL.

    1.0.0upgrade guideupgrade guide

  • printSql was renamed to logQuery, and logQuery was subsequently removed.

    1.0.0release notes

  • The method is removed because it was a no-op.

    1.0.0upgrade guideupgrade guide

  • The method is removed; use setParameters() instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • The update(partialEntity) signature now uses an entity-aware type instead of a loose object.

    1.0.0upgrade guide

  • useIndex no longer accepts raw SQL; pass an index name or an array of index names.

    1.0.0upgrade guiderelease notes

  • The property was removed; use QueryExpressionMap.parameters instead.

    1.0.0upgrade guide

  • The property is removed; use getTables() instead.

    1.0.0upgrade guideupgrade guide

  • The property is removed; use getViews() instead.

    1.0.0upgrade guideupgrade guide

  • The empty no-op method, which was never called, is removed.

    1.0.0upgrade guideupgrade guide

  • The column option is removed; use update: false instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • Support for legacy v3 Redis clients was removed; upgrade redis or ioredis clients to v4 or later.

    1.0.0upgrade guiderelease notes

  • The decorator is removed; use @VirtualColumn with a sub-query instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • String-array relations syntax is removed; use object syntax such as relations: { profile: true }.

    1.0.0upgrade guideupgrade guiderelease notes

  • The method is removed; use Repository.exists() instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • Deprecated SapConnectionOptions properties have been removed.

    1.0.0release notes

  • String-array select syntax is removed; use object syntax such as select: { id: true }.

    1.0.0upgrade guideupgrade guiderelease notes

  • Columns marked select: false are excluded from find and query-builder reads; use addSelect to opt in. Values on saved in-memory entities remain untouched.

    1.0.0upgrade guide

  • The deprecated SQL Server domain connection option has been removed.

    1.0.0release notes

  • The sqlite3 package is no longer supported; better-sqlite3 is the default SQLite driver.

    1.0.0upgrade guideupgrade guiderelease notes

  • The MongoDB ssl connection option was removed; use tls instead.

    1.0.0upgrade guide

  • The MongoDB sslCA connection option was removed; use tlsCAFile instead.

    1.0.0upgrade guide

  • The MongoDB sslCert connection option was removed; use tlsCertificateKeyFile instead.

    1.0.0upgrade guide

  • The MongoDB sslCRL connection option was removed with no replacement.

    1.0.0upgrade guide

  • The MongoDB sslKey connection option was removed; use tlsCertificateKeyFile instead.

    1.0.0upgrade guide

  • The MongoDB sslPass connection option was removed; use tlsCertificateKeyFilePassword instead.

    1.0.0upgrade guide

  • The MongoDB sslValidate connection option was removed; use the inverted tlsAllowInvalidCertificates option instead.

    1.0.0upgrade guide

  • The MongoDB stats() method has been removed.

    1.0.0upgrade guide

  • stats() was removed from MongoQueryRunner, MongoEntityManager, and MongoRepository; use the $collStats aggregation stage, whose response shape differs.

    1.0.0upgrade guide

  • Support for TYPEORM_* environment variables is removed, along with ConnectionOptionsEnvReader, ormconfig.env, and dotenv auto-loading.

    1.0.0upgrade guiderelease notes

  • Connection configuration via TYPEORM_CONNECTION was removed; use a TypeScript or JavaScript configuration file.

    1.0.0upgrade guide

  • The init command no longer crashes without package.json, includes scaffolding devDependencies in the published package, and no longer runs npm install.

    1.0.0upgrade guide

  • LegacyOracleNamingStrategy and NamingStrategyV03 are no longer exported from TypeORM core; install this package and import them from it if needed.

    1.0.0upgrade guideupgrade guiderelease notes

  • This package is no longer compatible with TypeORM after built-in IoC container support was removed.

    1.0.0upgrade guide

  • Its InjectManager and InjectRepository decorators are no longer the supported way to inject managers or repositories; access them from a DataSource instead.

    1.0.0upgrade guide

  • Connection configuration via TYPEORM_URL was removed; use a TypeScript or JavaScript configuration file.

    1.0.0upgrade guide

  • The IoC container system, including useContainer() and getFromContainer(), is removed.

    1.0.0upgrade guideupgrade guide

  • The deprecated IoC container integration function was removed; TypeORM no longer has built-in IoC container support.

    1.0.0upgrade guide

  • The MongoDB useNewUrlParser option was removed; it has been a no-op since MongoDB Driver v4.0.

    1.0.0upgrade guide

  • The MongoDB useUnifiedTopology option was removed; it has been a no-op since MongoDB Driver v4.0.

    1.0.0upgrade guide

  • The MongoDB w connection option was removed; use writeConcern with w: 1.

    1.0.0upgrade guide

  • The WhereExpression type alias was removed; import WhereExpressionBuilder instead.

    1.0.0upgrade guideupgrade guiderelease notes

  • The MySQL column option has been removed.

    1.0.0upgrade guideupgrade guiderelease notes

  • The MySQL width column option is no longer supported; remove it from column definitions.

    1.0.0upgrade guiderelease notes

  • The MongoDB wtimeout connection option was removed; configure wtimeoutMS under writeConcern instead.

    1.0.0upgrade guide

  • The MongoDB wtimeoutMS connection option was removed; configure it under writeConcern instead.

    1.0.0upgrade guide

Security 6

  • TypeORM: migration:generate template-literal code injection

    0.3.31, 1.1.0security advisory

  • Validates condition values at runtime to prevent injection through order expressions.

    1.0.0upgrade guide

  • The method accepts one or more index names and escapes them as identifiers instead of interpolating raw SQL, preventing identifier injection.

    1.0.0upgrade guide

  • Queries are parameterized and identifiers escaped to prevent SQL injection.

    1.0.0release notes

  • Queries across all drivers are parameterized; PostgreSQL and CockroachDB clearDatabase queries are parameterized as well.

    1.0.0release notes

  • All drivers use parameterized queries and escaped identifiers to prevent SQL injection through database, schema, table, or column names.

    1.0.0upgrade guide

New APIs and options 21

  • DateUtils is exported from the package entry point.

    1.1.1release notes

  • RelationMetadata is exported for package consumers.

    1.1.1release notes

  • Adds support for distinct count.

    1.1.0release notes

  • Aurora PostgreSQL now supports transaction isolation levels.

    1.0.0release notes

  • The clear() method now supports cascade truncate.

    1.0.0release notes

  • SAP HANA now supports generated columns using generatedType: "STORED" and asExpression.

    1.0.0upgrade guiderelease notes

  • Adds deferrable support, matching the existing support on @Unique and @Index.

    1.0.0upgrade guiderelease notes

  • Adds an ifExists flag to drop methods for columns, indexes, keys, and constraints, including plural variants.

    1.0.0upgrade guiderelease notes

  • Adds INSERT INTO ... SELECT FROM ... support for data migration and transformation queries.

    1.0.0upgrade guiderelease notes

  • Adds a PostgreSQL option to install additional extensions during connection setup.

    1.0.0upgrade guide

  • SQLite now supports the jsonb column type.

    1.0.0upgrade guiderelease notes

  • Adds a SAP HANA pool option for the maximum wait timeout when the pool is exhausted.

    1.0.0upgrade guide

  • MongoDB find*() methods accept object-based select syntax, in addition to the existing string-array form.

    1.0.0upgrade guiderelease notes

  • MySQL query types now include named parameters.

    1.0.0release notes

  • PostgreSQL indices are now supported.

    1.0.0release notes

  • Adds support for PostgreSQL partial indexes.

    1.0.0upgrade guide

  • Supports explicit resource management with await using syntax (TypeScript 5.2+) for automatic cleanup.

    1.0.0upgrade guide

  • Adds an option to pass an encryption key for React Native SQLite databases.

    1.0.0upgrade guiderelease notes

  • Accepts { cascade: true } to issue TRUNCATE ... CASCADE on PostgreSQL, CockroachDB, and Oracle.

    1.0.0upgrade guide

  • Repository and entity manager update() and upsert() methods support a returning option on databases that support RETURNING clauses.

    0.3.29, 1.0.0upgrade guiderelease notes

  • FOR UPDATE and other lock modes are supported in SAP HANA queries.

    1.0.0upgrade guiderelease notes

Performance 4

  • Query execution timing uses performance.now().

    1.1.3release notes

  • sqljs measures query execution time after the statement runs.

    1.1.1release notes

  • Avoids quadratic grouping when raw results are selected without primary keys.

    1.1.1release notes

  • PostgreSQL and CockroachDB consolidate individual DROP statements into batched queries, reducing round-trips during test setup.

    1.0.0upgrade guide

Behavior and default changes 11

  • The Expo driver loads expo-sqlite through loadDependencies(), so callers no longer need to pass the module explicitly.

    1.0.0upgrade guideupgrade guiderelease notes

  • Leading and trailing whitespace is no longer included in logged query strings.

    1.0.0upgrade guide

  • TypeORM instantiates migrations internally with a zero-argument constructor, so dependencies cannot be passed as pre-built instances; access services through the DataSource.

    1.0.0upgrade guide

  • Driver errors retain the originating call site to make query failures easier to debug.

    1.0.0upgrade guide

  • Non-nullable ManyToOne and OneToOne relations use inner joins.

    1.0.0release notes

  • Loading failures now log warnings instead of failing silently.

    1.0.0upgrade guiderelease notes

  • When possible, adding enum values uses ALTER TYPE ... ADD VALUE instead of the four-step rename-create-migrate-drop approach.

    1.0.0upgrade guiderelease notes

  • Eager relations use separate queries when the strategy is set to query, rather than always using JOINs.

    1.0.0upgrade guide

  • Skips rows that are already soft-deleted.

    1.0.0upgrade guide

  • Google Spanner now honors isolationLevel; supported levels are REPEATABLE READ (currently in preview) and SERIALIZABLE.

    1.0.0upgrade guiderelease notes

  • The schema builder no longer attempts to create columns for virtual properties.

    1.0.0upgrade guide

Tooling 6

  • The codemod can detect incompatible ecosystem packages and bump their dependency versions.

    1.0.0release notes

  • The codemod flags FileLogger usage when logPath is not absolute.

    1.0.0release notes

  • Entity and migration file discovery now uses tinyglobby instead of glob, described as a drop-in replacement for most projects.

    1.0.0upgrade guide

  • The codemod flags use of loadRelationCountAndMap and provides relation-count guidance.

    1.0.0release notes

  • Runs the v1 migration codemod on the supplied source directory.

    1.0.0upgrade guide

  • Automates many v1 breaking-change updates, including imports, API renames, and find option syntax.

    1.0.0upgrade guideupgrade guide

Fixes and other changes 84

  • Database cache runners are released after failed removals.

    1.1.3release notes

  • Lazy relations are not loaded when building the entity id map.

    1.1.3release notes

  • Null values are guarded when using the orderBy object shorthand.

    1.1.3release notes

  • Static require calls are used for bundler compatibility.

    1.1.3release notes

  • SQL Server query locks are released after subscriber errors.

    1.1.3release notes

  • MSSQL table lock hints are placed inside nested join parentheses.

    1.1.3release notes

  • The utc flag is honored when detecting changed date columns.

    1.1.3release notes

  • Reads closure-table primary values through column metadata.

    1.1.2release notes

  • Releases all query runners before closing the pool.

    1.1.2release notes

  • Prevents composite primary key collisions during hydration.

    1.1.2release notes

  • Prevents connection leaks during initialization.

    1.1.2release notes

  • Handles schema and table names correctly in generated columns in the metadata table.

    1.1.2release notes

  • Compares spatial columns against their default feature type and SRID for Postgres and CockroachDB.

    1.1.2release notes

  • Keeps the STI discriminator index on entities with embeddeds.

    1.1.2release notes

  • Child joins are nested only when outer join semantics require it.

    1.1.1release notes

  • Postgres reads coord_dimension when loading spatial columns.

    1.1.1release notes

  • Returns undefined when the requested path is missing.

    1.1.1release notes

  • Function defaults are evaluated before enum or string normalization.

    1.1.1release notes

  • Metadata access is guarded for raw-table upserts.

    1.1.1release notes

  • Relation values for join columns inside embedded entities are resolved correctly.

    1.1.1release notes

  • Junction rows are kept when the relation is not loaded.

    1.1.1release notes

  • better-sqlite3 awaits query event subscribers and reports failed queries.

    1.1.1release notes

  • Query runners created by clear and getFromCache are released.

    1.1.1release notes

  • Versions of unequal length are compared correctly.

    1.1.1release notes

  • Fixes normalization of FindOptionsWhere criteria containing arrays and Buffers.

    0.3.31, 1.1.0release notesrelease notes

  • Validates where criteria in increment and decrement operations.

    0.3.31, 1.1.0release notesrelease notes

  • Correctly wraps inner joins nested under left joins.

    0.3.31, 1.1.0release notesrelease notes

  • Fixes multiple problems with recursive common table expressions.

    0.3.31, 1.1.0release notesrelease notes

  • Columns marked select false are preserved on the in-memory entity after save().

    0.3.31, 1.1.0release notesrelease notes

  • Releases the query runner when an error occurs while storing a query result in the cache.

    1.1.0release notes

  • Improves normalizeDatetimeFunction handling for the PostgreSQL tstzrange data type.

    0.3.31, 1.1.0release notesrelease notes

  • Resolves database column names, such as created_at, rather than only property names.

    1.0.0upgrade guide

  • Aurora Postgres now honors isolationLevel on the DataSource and on explicit startTransaction() calls.

    1.0.0upgrade guide

  • Cascade remove on OneToMany now propagates to child entities with composite primary keys.

    1.0.0upgrade guiderelease notes

  • Cascade removal now deletes one-to-many child entities before the parent; cascade traversal is scoped to the matching operation type.

    1.0.0upgrade guide

  • Propagates schema and database settings to closure junction tables.

    1.0.0upgrade guide

  • Referenced columns are sorted to match the referenced primary-key index order, preventing constraint rejection on MySQL, MSSQL, and SAP HANA.

    1.0.0upgrade guide

  • Query results now include the count of affected rows.

    1.0.0upgrade guide

  • Removes incorrect error handling that blocked certain to-many relation configurations.

    1.0.0upgrade guide

  • The DataSource-level default isolation level is honored by every driver that supports transactions; DataSource-started transactions use it by default.

    1.0.0upgrade guiderelease notes

  • Fixes false-positive dirty detection with date value transformers.

    1.0.0upgrade guide

  • Corrects the process dependency import for Deno.

    1.0.0upgrade guide

  • Explicitly specifying an eager relation in relations no longer creates duplicate JOINs.

    1.0.0upgrade guide

  • MongoDB correctly processes embedded arrays within nested document structures.

    1.0.0upgrade guide

  • The Entity comment option now works with SAP HANA.

    1.0.0upgrade guiderelease notes

  • Conditions for increment and decrement operations have improved typing.

    1.0.0release notes

  • MongoDB queries translate an ObjectIdColumn property such as id to _id.

    1.0.0upgrade guide

  • Value transformers now correctly transform values inside FindOperator instances such as In and Between.

    1.0.0upgrade guide

  • Join parsing now works when conditions contain brackets.

    1.0.0upgrade guide

  • Fixes incorrect behavior when using join map methods with subqueries.

    1.0.0upgrade guide

  • Accepts array values and generates the expected PostgreSQL @> containment predicate.

    0.3.30, 1.0.0upgrade guiderelease notesrelease notes

  • Pagination subqueries include joined entity primary keys so related entities load correctly.

    1.0.0upgrade guide

  • Honors the deferrable option on junction table foreign keys.

    1.0.0upgrade guide

  • Fixes change detection for Map and plain object column values.

    1.0.0upgrade guide

  • Schema introspection scopes computed columns to the correct table when tables share column names.

    0.3.30, 1.0.0upgrade guiderelease notes

  • Ordering by subquery columns no longer causes a Cannot get metadata for given alias error.

    1.0.0upgrade guide

  • Column aliases are properly escaped, preventing SQL errors when alias names conflict with reserved words.

    1.0.0upgrade guide

  • Orphaned-row nullification now handles non-nullable foreign keys.

    1.0.0release notes

  • MySQL getVersion() no longer returns undefined for PolarDB-X 2.0.

    1.0.0upgrade guiderelease notes

  • Enum values load in declared order, preventing generated migrations from changing when nothing has changed.

    1.0.0upgrade guide

  • Point and circle values are normalized on persist to avoid invalid input errors when re-saving hydrated objects.

    1.0.0upgrade guide

  • Queries are executed sequentially to avoid the pg 8.19.0 deprecation warning.

    1.0.0release notes

  • Queries execute sequentially on the same connection to avoid pg 8.19.0 deprecation warnings, including relation-load and persistence paths.

    1.0.0upgrade guide

  • The attempted semicolon rejection in raw SQL expression methods was reverted, preserving the intended QueryBuilder behavior.

    1.0.0release notes

  • Corrects SQL generation when using QueryBuilder .update().

    1.0.0upgrade guide

  • The update query builder now has proper entity typing.

    1.0.0release notes

  • Fixes handling of table names containing special characters on PostgreSQL and CockroachDB.

    1.0.0upgrade guide

  • Fixes a TypeError when mapping relation IDs within embedded entities.

    1.0.0upgrade guide

  • Uses DriverUtils.getAlias to prevent alias trimming by databases with short identifier limits.

    1.0.0upgrade guide

  • Aggregate functions such as repo.max() and repo.min() no longer generate an invalid ORDER BY clause.

    1.0.0upgrade guide

  • JavaScript Date values are passed as query parameters instead of being embedded in SQL strings.

    1.0.0upgrade guide

  • Fixes save failures when an entity has eagerly loaded relations.

    1.0.0upgrade guide

  • getQuery() and getSql() preserve the order in which columns were added with select() and addSelect().

    1.0.0upgrade guide

  • With relationLoadStrategy set to query, self-referencing relations no longer generate incorrect SQL from alias collisions.

    1.0.0upgrade guide

  • Correctly handles camelCase_aliases.

    1.0.0upgrade guide

  • SQLite simple-enum columns with array: true no longer fail with CHECK constraint errors.

    1.0.0upgrade guide

  • Fixes incorrect results from pagination with joins.

    1.0.0upgrade guide

  • Dropping a foreign key without an explicit name no longer fails.

    1.0.0upgrade guide

  • PostgreSQL columns of this type now persist and hydrate correctly.

    1.0.0upgrade guide

  • Updates mpath correctly when re-parenting, including when parents are soft-deleted.

    1.0.0upgrade guide

  • Corrects column references in upsert queries involving table inheritance and custom schemas.

    1.0.0upgrade guide

  • Correctly handles columns that should not be updated, including update: false or generatedType columns.

    1.0.0upgrade guide

  • Preserves the flag during CockroachDB transaction retry replay.

    1.0.0upgrade guide

  • Recovering soft-removed entities with many-to-many relations no longer attempts to reinsert existing junction rows.

    1.0.0upgrade guideupgrade guide

typeorm 0.328 changes

Breaking changes 2

  • Reverts the fix for limit behavior with joins.

    0.3.30release notes

  • Makes the method using setFindOptions() async.

    0.3.29release notes

Security 3

  • Validates limit() in Update and SoftDelete query builders.

    0.3.29release notes

  • TypeORM: SQL Injection in UpdateQueryBuilder/SoftDeleteQueryBuilder orderBy (MySQL/MariaDB)

    0.3.29security advisory

  • Upgraded glob to address CVE-2025-64756.

    0.3.28release notes

New APIs and options 10

  • Adds a pool timeout option for SAP.

    0.3.29release notes

  • Entity schemas now support trees.

    0.3.28release notes

  • PostgreSQL columns now support the jsonpath column type.

    0.3.28release notes

  • The MongoDB connector now includes SOCKS5 proxy settings.

    0.3.28release notes

  • MySQL now supports pool size options for each connection.

    0.3.28release notes

  • Exported QueryDeepPartialEntity for use by developers.

    0.3.28release notes

  • Exported QueryPartialEntity for use by developers.

    0.3.28release notes

  • Added a utc flag to date columns.

    0.3.28release notes

  • MS SQL Server now supports the vector type.

    0.3.28release notes

  • MariaDB and MySQL now support vector columns.

    0.3.28release notes

Behavior and default changes 1

  • The PostgreSQL driver initializes the version only if it has not already been set.

    0.3.28release notes

Fixes and other changes 12

  • Calls to require() that break bundlers are removed.

    0.3.31release notes

  • Scopes invalidWhereValuesBehavior to high-level abstractions only.

    0.3.30release notes

  • Adjusts the CockroachDB join in loadTables to load the correct table columns.

    0.3.30release notes

  • Preserves user-defined shared join columns in the change set.

    0.3.30release notes

  • Fixes ambiguous-column errors in aggregate methods.

    0.3.29release notes

  • Fixes escaping of JavaScript Date parameters in SAP QueryBuilder.

    0.3.29release notes

  • Prevents eager-loaded entities from overwriting manual relations.

    0.3.29release notes

  • Releases the query runner when there is no migration to revert.

    0.3.29release notes

  • Fixes Redis cache version detection.

    0.3.29release notes

  • Added the missing findBy method to MongoEntityManager.

    0.3.28release notes

  • Added multiSubnetFailover to the MSSQL driver option types so the option can be typed when configuring the driver.

    0.3.28release notes

  • Fixed the Redis version detection logic.

    0.3.28release notes