What changed in TypeORM from 0 to 1

3 releases numbered after 0.3.31 up to and including 1.1.1, stable releases only. 0.3.31 and 1.1.1 are the newest stable releases of 0 and 1 we track; this page follows them as new ones ship.

52 changes across 3 releases

Added 9

1.1.1

  • Export RelationMetadata
  • Export DateUtils from the package entry point

1.1.0

  • Support distinct count

1.0.0

  • Support for PostgreSQL indices
  • Error handling and log warning for ormconfig loading failures
  • Better typing for conditions in increment and decrement of EntityManager
  • Support for installing additional postgres extensions
  • Deferrable support to exclusion decorator to mirror unique and index decorators
  • Support for INSERT INTO ... SELECT FROM ... in QueryBuilder
Changed 4

1.1.1

  • Avoid quadratic grouping of raw results selected without primary keys

1.1.0

  • Clarify extra option as driver-native escape hatch in data source documentation

1.0.0

  • PostgreSQL enum value changes now use ADD VALUE when possible
  • Replace uuid with native Crypto API
Fixed 38

1.1.1

  • Compare versions of unequal length correctly
  • Default many-to-many inverse foreign key to CASCADE
  • Resolve relation values for join columns inside embedded entities
  • Guard metadata access in InsertQueryBuilder for raw-table upsert
  • Keep many-to-many junction rows when the relation is not loaded
  • Return undefined from deepValue when path is missing
  • Release query runners created by clear and getFromCache
  • Evaluate function defaults before enum/string normalization
  • Measure query execution time after the statement runs in sqljs
  • Await query event subscribers and report failed queries in better-sqlite3
  • Read coord_dimension when loading spatial columns in postgres
  • Nest child joins only when outer join semantics require it

1.1.0

  • Preserve select false columns on the in-memory entity after save()
  • Release query runner on error in storeInCache
  • Multiple recursive CTE problems
  • Correct grammar in AlreadyHasActiveConnectionError message
  • Normalization of FindOptionsWhere for arrays and Buffers
  • Improve normalizeDatetimeFunction for tstzrange data type in PostgreSQL
  • Use cursor.transform for doc to entity transformation and skip load broadcast in next if toArray in MongoDB
  • Wrap inner joins under left joins correctly in query builder
  • Tree entity schema propagation in internal TreeRepository methods
  • Move hashing function to PlatformTools
  • Remove require() calls that break bundlers
  • Reject empty where criteria on update and delete operations in query builder
  • Default invalidWhereValuesBehavior to throw on the write path in entity manager
  • Validate where criteria in increment/decrement in entity manager

1.0.0

  • Include joined entity primary keys in pagination subquery
  • Preserve structured query results during transaction retry replay in CockroachDB
  • getPendingMigrations unnecessarily creating migrations table
  • Copy cordova query rows affected into query result
  • Resolve nameless TableForeignKey on drop foreign key
  • Virtual property handling in schema builder
  • Correctly process embedded arrays of nested documents in MongoDB
  • Fix working with tables with quotes in the names for PostgreSQL and CockroachDB
  • getVersion returning undefined for PolarDB-X 2.0
  • Raw select query with correctly ordered selected columns
  • Update child's mpath
  • Merging into an entity now respects null values
Removed 1

1.0.0

  • Legacy expo driver

Original release notes, newest first

The list above is our reading of these notes; the originals from TypeORM are here, one fold per release.

1.1.1
What's Changed
New Contributors

Full Changelog: https://github.com/typeorm/typeorm/compare/1.1.0...1.1.1

View originalPermalink

1.1.0
What's Changed
New Contributors

Full Changelog: https://github.com/typeorm/typeorm/compare/1.0.0...1.1.0

View originalPermalink

1.0.0

TypeORM v1.0 is here! 🥳

👉 For a structured walk-through of the changes in v1.0 — breaking changes, new features, security fixes, and the upgrade path from 0.3.x — see the v1.0 Release Notes.

This release includes breaking changes. See the v1.0 Upgrade Guide

What's Changed
New Contributors

Full Changelog: https://github.com/typeorm/typeorm/compare/0.3.30...1.0.0

View originalPermalink