unstale

npm / typeorm

typeorm

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

3 breaking2 security3 new APIs and options2 performance24 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

typeorm 133 changes

Breaking changes 3

  • The inverse foreign key defaults to CASCADE.

    1.1.1release notes

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

    1.1.0release notes

  • Rejects empty where criteria for update and delete operations.

    1.1.0release notes

Security 1

  • TypeORM: migration:generate template-literal code injection

    0.3.31, 1.1.0security advisory

New APIs and options 3

Performance 2

  • 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

Fixes and other changes 24

  • 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.

    1.1.0release notes

  • Validates where criteria in increment and decrement operations.

    1.1.0release notes

  • Correctly wraps inner joins nested under left joins.

    1.1.0release notes

  • Fixes multiple problems with recursive common table expressions.

    1.1.0release notes

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

    1.1.0release 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.

    1.1.0release notes

typeorm 0.31 changes

Security 1

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

    0.3.29security advisory