Skip to content

Releases: typeorm/typeorm

0.3.25

19 Jun 16:09
bdb8326
Compare
Choose a tag to compare

What's Changed

  • docs: use correct SQL statements in softDelete/restore comments by @sgarner in #11489
  • fix: resolve alias or table name in upsert and orUpdate for PostgreSQL driver conditionally by @mmarifat in #11452
  • feat(spanner): use credentials from connection options by @denes in #11492
  • feat: add upsert support for Oracle, SQLServer and SAP HANA by @Yuuki-Sakura in #10974
  • fix: handle limit(0) and offset(0) correctly in SelectQueryBuilder by @yeonghun104 in #11507
  • fix: add collation update detection in PostgresDriver by @asn6878 in #11441
  • feat: add typesense/docsearch-scraper by @gioboa in #11424
  • chore: improve linting by @alumni in #11510
  • chore: improve linting (fixup) by @alumni in #11511
  • docs: new website initial commit by @naorpeled in #11408
  • fix: fix up doc search workflow by @gioboa in #11513
  • chore: update workflows to ignore changes in docs directory by @dlhck in #11518
  • feat(docs): add Plausible analytics script to Docusaurus config by @dlhck in #11517
  • docs: add note about using YugabyteDB by @mguida22 in #11521
  • chore(docs): improve website generation config by @alumni in #11527
  • fix(tree-entity): closure junction table primary key definition should match parent table by @gongAll in #11422
  • docs: add heading to Getting Started page by @sgarner in #11531
  • fix: Multiple relations with same columns cause invalid SQL to be generated by @yevhen-komarov in #11400
  • fix: fix null pointer exception on date array column comparison by @mnbaccari in #11532
  • chore(ci): simplify workflows by @alumni in #11530
  • fix: improve async calls on disconnect by @alumni in #11523

New Contributors

Full Changelog: 0.3.24...0.3.25

0.3.24

14 May 18:05
12a71e4
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.23...0.3.24

0.3.23

07 May 10:04
80e9b30
Compare
Choose a tag to compare

⚠️ Note on a breaking change

This release includes a technically breaking change (from this PR) in the behaviour of the delete and update methods of the EntityManager and Repository APIs, when an empty object is supplied as the criteria:

await repository.delete({})
await repository.update({}, { foo: 'bar' })
  • Old behaviour was to delete or update all rows in the table
  • New behaviour is to throw an error: Empty criteria(s) are not allowed for the delete/update method.

Why?

This behaviour was not documented and is considered dangerous as it can allow a badly-formed object (e.g. with an undefined id) to inadvertently delete or update the whole table.

When the intention actually was to delete or update all rows, such queries can be rewritten using the QueryBuilder API:

await repository.createQueryBuilder().delete().execute()
// executes: DELETE FROM table_name
await repository.createQueryBuilder().update().set({ foo: 'bar' }).execute()
// executes: UPDATE table_name SET foo = 'bar'

An alternative method for deleting all rows is to use:

await repository.clear()
// executes: TRUNCATE TABLE table_name

What's Changed

New Contributors

Full Changelog: 0.3.22...0.3.23

0.3.22

03 Apr 09:01
6c5668b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.21...0.3.22

0.3.21

03 Mar 08:10
206af0a
Compare
Choose a tag to compare

What's Changed

New Contributors

Read more

0.3.20

26 Jan 11:22
Compare
Choose a tag to compare

Bug Fixes

Features

Reverts

0.3.19

03 Jan 14:44
Compare
Choose a tag to compare

Bug Fixes

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

0.3.18

03 Jan 12:43
Compare
Choose a tag to compare

Bug Fixes

Features

  • ability to change default replication mode (#10419) (72b1d1b)
  • add concurrent indexes for postgres (#10442) (f4e6eaf)
  • add exist...
Read more

0.3.17

20 Jun 19:48
Compare
Choose a tag to compare

Bug Fixes

0.3.16

09 May 18:59
Compare
Choose a tag to compare

0.3.16 (2023-05-09)

Bug Fixes

Features

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

Reverts