Skip to content

Releases: typeorm/typeorm

0.3.26

18 Aug 16:34
4d204ad
Compare
Choose a tag to compare

Notes:

  • When using MySQL, TypeORM now connects using stringifyObjects: true, in order to avoid a potential security vulnerability
    in the mysql/mysql2 client libraries. You can revert to the old behavior by setting connectionOptions.extra.stringifyObjects = false.
  • When using SAP HANA, TypeORM now uses the built-in pool from the @sap/hana-client library. The deprecated hdb-pool
    is no longer necessary and can be removed. See https://typeorm.io/docs/drivers/sap/#data-source-options for the new pool options.

What's Changed

  • chore: Remove manual trigger on publish workflow by @michaelbromley in #11536
  • test(ci): force mocha to exit on stuck process by @OSA413 in #11538
  • fix(oracle): pass duplicated parameters correctly to the client when executing a query by @alumni in #11537
  • feat(sap): add support for REAL_VECTOR and HALF_VECTOR data types in SAP HANA Cloud by @alumni in #11526
  • fix: add stricter type-checking and improve event loop handling by @alumni in #11540
  • perf: avoid unnecessary count on getManyAndCount by @EQuincerot in #11524
  • feat(sap): use the native driver for connection pooling by @alumni in #11520
  • fix: support for better-sqlite3 v12 by @mohd-akram in #11557
  • fix: preserve useIndex when cloning a QueryExpressionMap (or a QueryBuilder) by @kettui in #10679
  • chore: change test badge from test.yml to commit-validation.yml by @albasyir in #11560
  • fix: do not create junction table metadata when it already exists by @ragrag in #11114
  • fix(mysql): support AnalyticDB returning version() column name in getVersion() by @rhydian0x in #11555
  • fix: resolve array modification bug in QueryRunner drop methods #11563 by @taina0407 in #11564
  • fix(mysql): set stringifyObjects implicitly by @alumni in #11574
  • docs: separate driver-specific documentation by @alumni in #11581
  • docs: fix redirect to mongodb page by @alumni in #11584
  • feat(11528): add Redis 5.x support with backward compatibility wite peer dependency to allow by @par333k in #11585
  • fix: regtype is not supported in aurora serverless v2 by @ArsenyYankovsky in #11568
  • fix(platform[web worker]): improve globalThis variable retrieval for … by @dasoncheng in #11495
  • docs: added @piying/orm extension to readme by @wszgrcy in #11596
  • docs: Fix reload option typo by @radovanovic-stevan in #11601
  • feat: add entity mode virtual-property by @wszgrcy in #11597
  • chore: Release v0.3.26 by @michaelbromley in #11602

New Contributors

Full Changelog: 0.3.25...0.3.26

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