Lucian Mocanu
3d79786a92
fix: version detection for Postgres derived variants ( #11375 )
2025-04-01 21:54:27 +02:00
Lucian Mocanu
460ef023ba
fix(sap): normalize deprecated/removed data types in SAP HANA Cloud ( #11356 )
...
* fix(sap): SAP HANA Cloud data types
* fix(sap): fall back to regular index when fulltext is not supported
* fix: remove dead code
2025-04-01 20:54:54 +02:00
Lucian Mocanu
863caf1471
fix: sql escape issues identified by CodeQL ( #11338 )
...
* fix: sql escape issues identified by CodeQL
* fix: random generation in sample code
2025-04-01 10:38:36 +02:00
ertl
bcaa0bf071
fix: bulk insert NULL values in Oracle ( #11363 )
...
resolve issue with bulk insert of NULL values for non VARCHAR2 types in Oracle.
2025-03-31 21:35:03 -06:00
Lucian Mocanu
fb06662bea
build: setup SAP HANA tests ( #11347 )
...
* build: setup SAP HANA tests
* test: fix/skip failing SAP HANA tests
* fix(sap): rename schema
2025-03-29 22:35:44 +01:00
Lucian Mocanu
6ba408214e
build: improve test workflow ( #11361 )
2025-03-26 22:10:19 +01:00
Lucian Mocanu
4e31a8648a
refactor: database server version fetching & comparison ( #11357 )
2025-03-26 11:41:07 +01:00
Muhammad Ghayas Baig
834e85692f
fix: FindOptionsSelect to use correct type when property is an object ( #11355 )
...
* fix: FindOptionsSelectProperty or boolean when Property is object
* fix: add test cases for find options select
* fix: use simple-json for tests
2025-03-25 15:40:42 +05:00
Lucian Mocanu
00d5639efb
chore: update dependencies ( #11339 )
...
* style: sort package json
* chore: update dependencies
* fix: update dependencies added by the init command
* fix: restore node 16/18 compatibility
* docs: update package description
* chore: remove unused dependencies
2025-03-21 19:57:18 +02:00
Sudhir Shrestha
ecae9f5990
fix: ensure correct MSSQL parameter conversion in where conditions
...
Fixes input parameter conversion in SelectQueryBuilder when using an MSSQL connection.
Closes #11285
2025-03-20 23:24:23 +02:00
Lucian Mocanu
8c2b2ae240
style: lint repository ( #11346 )
...
* style: lint uncommon rules
* style: fix `no-wrapper-object-types`
* fix: type errors after Object -> object change
* style: fix `prefer-const`
* build: add eslint/prettier exclusions
2025-03-20 22:15:39 +02:00
Mike Guida
de8eb04c72
build: run format in ci ( #11342 )
...
* style: run format on existing files
* build: run format in ci
* build: add format:ci to check formatting in ci
2025-03-20 20:27:09 +02:00
John Chan
b0ea913f4e
feat(postgres): support macaddr8 column type
...
Signed-off-by: John Chan <john.chan@sgwireless.com>
2025-03-19 16:13:12 +05:00
Oleg "OSA413" Sokolov
5d6d893662
test: fix and run tests on Windows ( #11257 )
...
* Skip tests that don't work on Windows
* Bring back tests on Windows
* Skip the test on all platforms exept Windows
* Make the test run only on Windows
* Add simple winodws test
* fix cli test on Windows
* let's see if this test passes on linux
* limit test to Windows and run format
* Add withPlatform test helper
* Mock platform in file path tests using withPlatform()
* Fix test: relative paths should not change on non-win32 platforms
* Lowercase relative path on non-win32 platform
* test: add better-sqlite3 and sqlite for Windows tests
---------
Co-authored-by: Simon Garner <simon@equalogic.com>
2025-03-14 16:01:46 +05:00
Lucian Mocanu
ae96f87923
fix: empty objects being hydrated when eager loading relations that have a @VirtualColumn ( #10927 )
2025-03-14 10:05:19 +01:00
Doug Ayers
ba47b62379
chore(test): set timezone to UTC ( #11247 )
...
Fixes #11246
To mitigate timezone discrepancies with timestamps in tests with hard coded assertions, standardize on UTC
Co-authored-by: Mike Guida <mike@mguida.com>
2025-03-12 21:56:33 +05:00
Oleg "OSA413" Sokolov
deb0e81398
test: rename tests to better describe the case ( #11280 )
...
Fixes #10863
2025-03-12 21:40:55 +05:00
Dmitrii Tkachenko
72145b859d
fix: remove unnecessary import from JS migration ( #11327 )
...
* fix: omit ts import for js migration
* test: javascript template create
* test: remove TS from JS templates
* chore: update docs
2025-03-10 19:46:42 +02:00
Lucian Mocanu
27b4207c48
fix(sap): incorrect handling of simple array/json data type ( #11322 )
2025-03-06 14:00:33 +01:00
Lucian Mocanu
759cf7cf54
test: issue #11269
2025-03-03 15:35:06 +01:00
Lucian Mocanu
a08ebbdea0
test: improve nested transactions tests
2025-03-03 15:35:05 +01:00
Lucian Mocanu
7aa4f3c3e0
Revert "fix: nested transactions issues ( #10210 )"
...
This reverts commit 25e6ecdfd23569b4b6ba15b845b4444927386f42.
2025-03-03 15:35:05 +01:00
Lucian Mocanu
3044e7a233
test: fix cockroach tests
2025-03-03 15:35:05 +01:00
Lucian Mocanu
71addb2ef4
refactor: use node:fs/promises ( #11206 )
...
* refactor: use fs promises
* refactor: remove del, update rimraf
2024-12-30 09:33:51 +01:00
Lucian Mocanu
af7ac1c6d8
chore: migrate to ESLint flat config ( #11205 )
2024-12-29 16:33:46 +01:00
Joel Stimson
19a6954d8b
chore: Lint on GitHub actions ( #11177 )
2024-12-18 11:44:18 +01:00
Oleg "OSA413" Sokolov
53f253d527
test: redo cockroachdb to service-container GHA and update its version to latest (24) ( #11190 )
2024-12-16 08:33:00 +01:00
Oleg "OSA413" Sokolov
af603ae5cf
test: Expand node version matrix to node16, node18, and node20 ( #11183 )
2024-12-14 08:51:17 +01:00
Oleg "OSA413" Sokolov
b535cbd1bf
style: Apply formatting ( #11175 )
2024-12-11 09:51:02 +01:00
jeisberg
83567f5334
fix: composite key save issue ( #10672 )
...
* chore(TypeORM): Create test case to uncover TypeORM composite key save issue
* chore(TypeORM): Revert package.json test script alteration
* fix the issue
* fixed regression in 1551
* fixed test to prevent issues with auto increment when inserting rows in a different order
* fixed test to prevent issues with auto increment when inserting rows in a different order
---------
Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
2024-02-02 13:41:37 +05:00
Niels Stinissen
d0b76703cc
feat: add postgres multirange column types ( #10627 )
...
* feat: add postgres multirange column types
Adds int4-, int8-, num-, ts-, tstz-, date-multirange column types for postgres
Update docs to include multirange column types
Update functional column-types-postgres test to test multirange column types
Closes : #10556
* style: run npm run format
---------
Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
2024-01-26 11:33:16 +05:00
Shu Nonaka
54d8d9efe9
fix: hangup when load relations with relationLoadStrategy: query ( #10630 )
...
* fix: createQueryBuilder to accept queryRunner
* fix: modify to use queryRunner when retrieving relations (#10481 )
* test: add testcases
2024-01-26 11:28:19 +05:00
Alexey Pelykh
dd49a254dc
fix: don't escape indexPredicate ( #10618 )
...
* fix: don't escape indexPredicate
* style: npm run format
2024-01-26 11:26:12 +05:00
Andrei Nikolaev
99d8249e45
fix: type inferencing of EntityManager#create ( #10569 )
...
* fix: type inferencing of EntityManager#create
* test: type inferencing of EntityManager#create (#10569 )
2024-01-26 11:17:01 +05:00
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
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
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
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
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
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
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
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