5360 Commits

Author SHA1 Message Date
Umed Khudoiberdiev
fa86f6f6c3 added breaking change notice in the changelog 2024-01-03 20:05:17 +05:00
Umed Khudoiberdiev
73e3b49edc version bump 0.3.19 2024-01-03 19:43:45 +05:00
Dmitry Zotov
633c4e36a6 fixed glob import 2024-01-03 17:59:36 +05:00
Umed Khudoiberdiev
5464dec2fa version bump 0.3.18 2024-01-03 17:42:18 +05:00
Umed Khudoiberdiev
d606b9d936 updated license 2024-01-03 17:42:05 +05:00
Umed Khudoiberdiev
ffa84993de fixed duplicated buffer import 2024-01-03 17:41:04 +05:00
Umed Khudoiberdiev
b6ef306d88 updated glob version 2024-01-03 17:24:25 +05:00
dependabot[bot]
b5d2599301
build(deps-dev): bump the npm_and_yarn group group with 1 update (#10591)
Bumps the npm_and_yarn group group with 1 update: [gulp-mocha](https://github.com/sindresorhus/gulp-mocha).


Updates `gulp-mocha` from 8.0.0 to 10.0.0
- [Release notes](https://github.com/sindresorhus/gulp-mocha/releases)
- [Commits](https://github.com/sindresorhus/gulp-mocha/compare/v8.0.0...v10.0.0)

---
updated-dependencies:
- dependency-name: gulp-mocha
  dependency-type: direct:development
  dependency-group: npm_and_yarn-security-group
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-03 17:23:54 +05:00
Esmaeil Mohammadi
080528b117
fix: resolve circular dependency when using Vite (#10273)
* resolve circular dependency when using vite
2024-01-03 13:55:26 +05:00
sinkhaha
338df16439
feat: add support for table comment in MySQL (#10017)
* feat: add table comment

* feat: resolve conflict

* feat: del auroraMysql comment

* feat: add changeTableComment method for MySQL

* feat: QueryRunner subclass add  changeTableComment Implementation

* oracle implement changeTableComment

* add test

* feat: loadTables support comment

* feat: rename

* feat: update mysql changeTableComment

* fix: fix conflict

* feat: add table comment

* feat: resolve conflict

* feat: del auroraMysql comment

* feat: add changeTableComment method for MySQL

* feat: QueryRunner subclass add  changeTableComment Implementation

* oracle implement changeTableComment

* add test

* feat: loadTables support comment

* feat: rename

* feat: update mysql changeTableComment

---------

Co-authored-by: sinkhaha <1468709606@qq.com>
2024-01-03 13:49:33 +05:00
Dmitry Zotov
15bc8876f8
build: update CircleCI config & repair failing tests (#10590)
* updated CircleCI config

* fixed failing test

* fixed failing test

* fixed failing test

* fixed failing test

* fixed CockroachDB enum sync;
removed redundant await;
fixed failing tests;

* fixing failing tests

* fixing failing tests

* added check for empty commands

* fixed failing tests

* fixed failing tests

* fixed failing test
2024-01-03 13:32:17 +05:00
zhennann
b5ec0889f7
docs: update Chinese faq.md (#10593) 2024-01-03 09:52:50 +05:00
Deep khurana
a00b1df68f
feat: implement OR operator (#10086)
* feat: implement or operator

This new feature enables typeorm to allow use multiple operators joining with or

Closes: #10054

* feat: implement or operator

Completed code formating using command.

Closes: #10054

* feat: implement or operator

Completed the documentation update.

Closes: #10054

* feat: implement or operator

Renamed Or operator file name.

Closes: #10054

* feat: implement or operator

Renamed Or operator file name.

Closes: #10054

* feat: implement or operator

Renamed Or operator file name.

Closes: #10054

* feat: implement or operator

Renamed Or operator.

Closes: #10054
2024-01-02 15:01:01 +05:00
sagentac
dd595242a7
fix: prevent using absolute table path in migrations unless required (#10123) 2024-01-02 14:27:23 +05:00
seungwonleee
4329996086
docs: update Soft-Delete, Restore-Soft-Delete examples (#10585)
The getRepository method is missing from the example.
Delete the "users" written in the createQueryBuilder method because it is not used in the where method.
2024-01-02 14:26:19 +05:00
Davis Sylvester
7ecc8f3536
docs: updated id to _id (#10584) 2024-01-02 14:26:03 +05:00
moianra23
8b4df5b299
fix: added fail callback while opening the database in Cordova (#10566)
* Added fail callback

* Added fail callback

* Removed the private flag

* Fixed comments

---------

Co-authored-by: Radu Moian-Dusa <radu.moian-dusa@kronsoft.ro>
2024-01-02 14:24:36 +05:00
Andrea Mouraud
173910ed79
fix: should automatically cache if alwaysEnable (#10137)
Closes: #9910
2024-01-02 13:03:22 +05:00
Nicolas ROGER
73ee70b331
fix: correctly keep query.data from ormOption for commit / rollback subscribers (#10151) 2024-01-02 13:01:50 +05:00
Andrea Mouraud
e67d704138
feat: nullable embedded entities (#10289)
* feat: nullable embedded entities

* fix: ignore embedded columns if not selected

* test: update tests with changed behaviour

* test: replace integer with varchar for cockroachdb

* docs: add documentation

* fix: nested embedded entities

* test: update nested embedded entities behaviour
2024-01-02 12:29:41 +05:00
Minh Nguyên
5c28154cbe
feat: BeforeQuery and AfterQuery events (#10234)
* feat: add query events

Co-authored-by: mnguyen081002 <3langn@gmail.com>
Co-authored-by: andrewda <andrew@dassonville.dev>

* fix: functional cache

* test: added test for issue-3302

* refactor: use broadcasterResult.wait()

* test: use sandbox to restoring

* test: fix test from #3302 with cockroachdb

* docs: add beforeQuery and afterQuery documents

---------

Co-authored-by: andrewda <andrew@dassonville.dev>
Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
2024-01-02 12:23:25 +05:00
le-harivansh
0f11739351
docs: fix typos (#10243) 2024-01-02 12:06:14 +05:00
Markus Fürer
b188c1e634
chore: initial setup of ESLint (#10203)
* build: 👷 Initial setup of ESLint

* build: 👷 show erros as warnings

* refactor: ♻️ example of rule "no-var"

* build: 🚨 add rule "no-unsafe-optional-chaining"
2024-01-02 12:04:37 +05:00
Gazy Mahomar
25e6ecdfd2
fix: nested transactions issues (#10210)
* fix: nested transactions issues

* Forgot test description

---------

Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
2024-01-02 12:03:28 +05:00
Tait Clarridge
3cda7ec39d
feat: add isolated where statements (#10213)
- Add `isolateWhereStatements` to the `BaseDataSourceOptions` object
  and automatically isolate where statements in the query builder
  if it is true
2024-01-02 11:54:43 +05:00
Piotr Dobrowolski
149226dd67
fix: backport postgres connection error handling to crdb (#10177) 2024-01-02 11:51:13 +05:00
thisnamewasnottaken
122b683840
fix: mssql datasource testonborrow not affecting anything (#10589)
* Remove outdated pool.testOnBorrow references.

* Remove invalid testonborrow option. factory. options are not imported or typed.
2024-01-02 11:50:24 +05:00
Alessio Napolitano
dc1bfed6d5
fix: resolve issues on upsert (#10588)
* fix: resolve issues on upsert

Closes: #10587

* fix: test 10563 multiple foreach

* run format

* removed only
2024-01-02 11:49:24 +05:00
Dukezo
a939654c95
fix: remove dynamic require calls (#10196) 2023-12-29 21:35:14 +05:00
Lukasz Otczyk
f6b87e3ee1
perf: improve SapQueryRunner performance (#10198)
Use async API exposed by SAP driver

Co-authored-by: Lukasz Otczyk <lukasz.otczyk@nexontis.com>
2023-12-29 21:30:45 +05:00
Clinton Blackburn
bafcd1709b
feat: exposed entity and criteria properties on EntityNotFoundError (#10202)
These properties can be used by consumers to aid in rendering human-readable error messages.
2023-12-29 21:30:06 +05:00
Tolga Paksoy
b53e410e5a
fix: empty objects being hydrated when eager loading relations that have a @VirtualColumn (#10432)
* test: add scenario for #10431

* fix: empty objects being hydrated by unselected virtual properties
2023-12-29 21:18:11 +05:00
Corey Shupe
2dc9624d00
fix: mongodb resolves leaked cursor (#10316)
This change resolves a leaked cursor used to avoid
    a stack overflow during entity transformation.

    Closes: #10315
2023-12-29 20:20:49 +05:00
ertl
3af891a8e6
feat: use node-oracledb 6 (#10285)
* chore: increase oracledb version

* feat: optionally use thick client

BREAKING CHANGE: With node-oracledb the thin client is used as default. Added a option to use the thick client. Also added the option to specify the instant client lib

closes: #10277

* fix: make thick driver the default, to assure an easy transition from version 5 to 6

* fix: make thin driver default again

Since there should be no problems with oracle db version >= 12.1
For oracle db < 12.1 the thick client must be used.

* chore: increase oracledb to 6.1.0

* chore: increase oracledb to 6.2.0 and added new option binaryDir

* refactor: fix linting

* update oracledb to 6.3.0
2023-12-29 20:20:34 +05:00
kyoungmin kim
d41930f0d6
fix: logMigration has incorrect logging condition (#10323)
* fix: logMigration has correct logging condition

Closes: #10322

* fix: add test description

Closes: #10322
2023-12-29 20:16:40 +05:00
Dinko Osrecki
f6bb6711e2
feat: support mssql@10 (#10356)
* feat: add support for mssql@10

Add mssql@10 to peerDependency, alongside mssql@9.
Update tests to use latest version of mssql and Node v16.

Closes: #10340

* fixed failing test

---------

Co-authored-by: Alex Messer <dmzt08@gmail.com>
2023-12-29 19:46:52 +05:00
Lukas Spiss
fdb9866ad2
fix: update UpdateDateColumn on upsert (#10458)
Closes: #9015
2023-12-29 19:21:57 +05:00
Szymon Bretner
696e688d00
fix: SQLite simple-enum column parsing (#10550) 2023-12-29 19:16:33 +05:00
Joren Vandeweyer
a4900ae15f
fix: extend GiST index with range types for Postgres driver (#10572)
* fix: extend spatial column types for postgres driver

Extend spatial column type with range types for postgres. This fixes a bug when using spatial indices.

Closes: #10567

* format

* remove only from test, ready for pr

* changed a way how we determine index type

---------

Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
2023-12-29 19:09:30 +05:00
Harry Brundage
72b1d1b865
feat: ability to change default replication mode (#10419)
* Add a replication test suite

* Allow overriding the default destination for read queries when using replication

For many applications that want to use read slaves, data consistency isn't super important, and so all reads can be sent by default to a read slave. For some applications though, it's only select queries that can be sent to read slaves as end-users of the application expect data consistency almost everywhere. This new setting lets apps like those change the default such that query builders need to opt *in* to sending to a read slave, instead of opt out.
2023-12-29 19:06:58 +05:00
sschneider-ihre-pvs
65858f3a17
feat: enabled CTE for oracle driver (#10319) 2023-12-29 16:31:48 +05:00
Nemanja Stanic
b6b46fb133
feat: add exists and exists by (#10291)
This PR deprecates `exist` in favor of `exists` and `existsBy`.
2023-12-29 16:29:02 +05:00
Julien MUNIO
cf7147fa7c
fix: remove date-fns in favor of DayJs (#10306)
* Migration of DateUtils to DayJs

* lint

---------

Co-authored-by: julien.munio-ext <julien.munio-ext@arkema.com>
2023-12-29 16:22:55 +05:00
Fawzi Abdulfattah
6c918ea392
fix: resolve issue queryBuilder makes different parameter identifiers for same parameter (#10327)
Closes: #7308
2023-12-29 16:19:55 +05:00
ales-albert-kilbergr
bfc1cc5ab4
fix: serialize bigint when building a query id #10336 (#10337)
* fix: serialize bigint when building a query id

* style: update formatting
2023-12-29 16:16:03 +05:00
Christopher Kiessling
6d5b5d9ba6
docs: update the docs to keep in line with the example (#10387) 2023-12-29 16:13:43 +05:00
Muhammad Salman Afzal
7de4890265
fix: deletedAt column leaking as side effect of object update while creating a row (#10435) 2023-12-29 16:11:16 +05:00
Alperen Serkan Aksöz
7a58bbf4ea
docs: typo fixed in the manager.findAndCountBy documentation (#10396) 2023-12-29 15:56:32 +05:00
Samuel Lukes
f4e6eaf155
feat: add concurrent indexes for postgres (#10442) 2023-12-29 15:52:49 +05:00
Peter
75ec8f2032
fix: bump better-sqlite3 version range (#10452) 2023-12-29 15:48:19 +05:00