5572 Commits

Author SHA1 Message Date
Markus Fürer
e22481904a
style: Enable some linter rules (#10592)
* style: 🚨 enable some linter rules

* Revert "style: 🚨 enable some linter rules"

This reverts commit 239fa2deb7aaf22cfac4bbb1369d6d973327efd4.

* revert:  revert role "prefer-const"

* revert:  enable linter warnings

* style: 🚨 enable rule "no-extra-boolean-cast"

* revert:  disable rule "no-empty"

* style: 🚨 add linter rule "no-useless-escape"

* style: 🚨 add linter rule "no-unsafe-optional-chaining"
2024-01-26 11:06:15 +05:00
Alessio Napolitano
62f574bc5b
docs: add And operator example (#10603) 2024-01-26 11:00:11 +05:00
Maarten Sijmkens
f232ba7808
fix: include asExpression columns in returning clause (#10632)
* fix: include asExpression columns in returning clause

Closes: #8450

* test: add test for issue #8450
2024-01-26 10:41:58 +05:00
Alessio Napolitano
8aa8690f94
fix: resolve issue CREATE/DROP Index concurrently (#10634)
Closes: #10626
2024-01-26 10:38:30 +05:00
Mansur Ibrahim Nok
b67ae360f6
docs: update the content of one-to-one to be more grammatically complete (#10645) 2024-01-26 10:34:40 +05:00
Esdras Rodrigues do Carmo
d3a2e53801
docs: fix table of contents missing sections (#10625) 2024-01-26 10:33:15 +05:00
sagentac
1b34c9a49e
fix: multiple insert in SAP Hana (#10597)
Co-authored-by: Philipp Haeusle <>
2024-01-26 10:30:40 +05:00
ertl
7e85460f10
feat: add json type support for Oracle (#10611)
* refactor: remove oracle docker tests and update DEVELOPER.md

Since oracle runs at thin mode now. Now extra docker tests are needed

* chore: increase oracle version to 21c

* feat: add json column types to oracle

* fix: try to resolve pipeline issue to increase oracle waiting time

* fix: try remove networks from oracle to fix pipeline

* fix: add container name

* fix: add missing oracledb driver in package-lock.json

* fix: corrected tests

* fix: remove tests, since only work with old oracle db

* fix: correct tests

* fix: remove deprecated types

* fix: add missing grant for materialized views

* fix: oracle-isolation.ts test

* fix: issue-3363.ts test

* fix: schema in tests
2024-01-26 10:27:28 +05:00
Kazuki Matsuo
4493db4d1b
feat: add table comment for postgres (#10613) 2024-01-26 10:23:11 +05:00
Pavlo Kolodka
8ebe7695a2
docs: update SelectQueryBuilder.ts (#10631) 2024-01-26 09:54:18 +05:00
Kobe Kwanten
15de46fd5d
revert "feat: nullable embedded entities (#10289)" (#10614)
This reverts commit e67d7041387df78c69599c1d3c880389a935ffbf.
2024-01-08 22:20:36 +05:00
Lucian Mocanu
c22e30f1d2
build: set TS compile target to ES2021 (#10595)
* build: set TS compile target to ES2021

* docs: update minimum supported node version

* build: use @tsconfig/node16
2024-01-04 09:57:12 +05:00
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