49 Commits

Author SHA1 Message Date
Piotr Kuczynski
52a96ad68c
ci: add single step to validate if all tests passed (#11763) 2025-11-12 10:51:39 +01:00
Piotr Kuczynski
5d02f06fcb
ci: control development and CI version of Node.js via .nvmrc (#11708) 2025-11-11 22:55:47 +01:00
Piotr Kuczynski
5a28729b2e
ci: test if docs build and run task depending on the changes from PR (#11761) 2025-11-11 12:34:57 +01:00
Mike Guida
ba3319d583
docs: fix broken migration links (#11760) 2025-11-11 11:48:12 +01:00
Piotr Kuczynski
181154ab3c
ci: harmonize MongoDB version used in CI and local development environment and bump to v8 (#11704) 2025-10-05 20:48:10 +02:00
Giorgio Boa
2671579793
ci: bump actions/checkout version (#11712) 2025-10-03 13:12:47 +02:00
Piotr Kuczynski
dbfaad9e7c
ci: bump actions/setup-node to v5 and benefit from automatic caching (#11709) 2025-10-03 13:50:13 +07:00
Giorgio Boa
2446bd0d87
ci: remove close stale issues GH action (#11696) 2025-10-01 12:52:25 +02:00
Lucian Mocanu
d4f7b44fdf
chore: fix package preview (#11542) 2025-09-20 09:34:22 +02:00
Naor Peled
a49f612289
feat(postgres): support vector/halfvec data types (#11437) 2025-09-18 22:12:07 +03:00
Giorgio Boa
93aa5c4b74
ci: add close stale issues GH action (#11651) 2025-09-17 15:25:18 +02:00
Lucian Mocanu
8b76e1af74
feat(mysql): add support for MySQL 9 / MariaDB 12 (#11575) 2025-09-17 09:08:31 +02:00
Michael Bromley
1bcf05552f
chore: Remove manual trigger on publish workflow (#11536) 2025-06-19 21:15:13 +02:00
Lucian Mocanu
b1e93f736d
chore(ci): simplify workflows (#11530)
* chore(ci): reorganize workflows

* chore(ci): prevent duplicate commit validation in PRs

* code review fixes

* code review #2
2025-06-18 14:58:34 +02:00
David Höck
1391b5a789
chore: update workflows to ignore changes in docs directory (#11518)
* chore: update workflows to ignore changes in docs directory

Added paths-ignore configuration to CodeQL, preview, and test workflows to prevent unnecessary runs when only documentation files are modified.

* chore: remove paths-ignore for docs in preview workflow
2025-06-10 13:08:29 +02:00
Giorgio Boa
930eefd758
fix: fix up doc search workflow (#11513) 2025-06-06 18:27:10 +02:00
Naor Peled
4b0ffeeb33
docs: new website initial commit
Co-authored-by: Giorgio Boa <35845425+gioboa@users.noreply.github.com>
Co-authored-by: Jovana Đurić <63621526+jovanadjuric@users.noreply.github.com>
Co-authored-by: jovanadjuric <mat.jovana@gmail.com>
Co-authored-by: Mike Guida <mike@mguida.com>
Co-authored-by: gioboa <giorgiob.boa@gmail.com>
2025-06-06 18:03:25 +03:00
Giorgio Boa
65d5a00ef1
feat: add typesense/docsearch-scraper (#11424) 2025-06-05 21:06:07 +02:00
Mike Guida
9f889b3490
chore: clarify commit practices (#11472) 2025-05-13 16:37:47 -06:00
Mike Guida
6d1c4f0186
build: ensure coveralls flag-name is unique by db, node and client versions (#11461) 2025-05-12 15:36:10 -06:00
Naor Peled
2168441e6c
fix(ci): resolve pkg.pr.new publish failure
Co-authored-by: AmirHossein Sakhravi <amirhosseinpr184@gmail.com>
2025-05-11 19:53:08 +03:00
Naor Peled
274bdf2e1a
feat: publish PR releases using pkg.pr.new 2025-05-02 23:09:42 +03:00
Mike Guida
9464e6522a
build: setup testing matrix for postgres 14 and 17 (#11433) 2025-04-30 10:25:56 -06:00
Michael Bromley
cebd63b1f4
chore: Fix publish command (#11379) 2025-04-03 11:18:32 +02:00
Michael Bromley
72beb26513
chore: Add package publishing workflow (#11377) 2025-04-02 21:49:34 +02: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
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
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
Naor Peled
8429e8f9cc
ci: add CodeQL workflow 2025-03-14 00:02:42 +02:00
Assaf Sapir
40cc6886d5
chore: don't use version in docker-compose files (#11320) 2025-03-05 22:09:25 +02:00
Shenghan Gao
3a51160818
fix: Update mssql allowed version to fix vulnerability. (#10933) 2025-01-20 21:42:08 +01:00
Oleg "OSA413" Sokolov
9d1d3f1008
chore(test): Add Coverage on Coveralls (#11225)
use lcov by default
2025-01-09 11:03:32 +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
5c2330adc1
test: Split SQLite tests and fix better-sqlite3 (#11174) 2024-12-10 22:14:13 +01:00
Oleg "OSA413" Sokolov
f6a94ddcfc
test: remove restriction of CI/CD runs for fork branches (#11173) 2024-12-10 15:54:02 +01:00
Oleg "OSA413" Sokolov
d106eed439
test: Add GitHub Actions for tests CI/CD (#11157) 2024-12-10 08:34:24 +01:00
Dmitry Zotov
15a4eb942e removed titles from issue templates 2022-12-29 22:01:16 +05:00
Dominic Ruggiero
68f18a36d9
Github issue templates converted to forms (#9434)
* Update and rename bug-report.md to bug-report.yml

* Update and rename documentation-issue.md to documentation-issue.yml

* Update and rename feature-request.md to feature-request.yml

* checkboxes

* Update feature-request.yml

* Update feature-request.yml

Co-authored-by: AlexMesser <dmzt08@gmail.com>
2022-12-03 16:55:37 +05:00
AlexMesser
62518ae122
feat: Cloud Spanner support (#8730)
* working on Cloud Spanner driver implementation

* working on DDL synchronization

* working on DDL synchronization

* fixed failing test

* working on VIEW implementation

* fixed query parameters

* lint

* added transaction support;
added streaming support;

* fixed column types

* fixes after merge

* prettier

* added support for generated columns

* added escaping for distinct alias

* working on generated columns

* changed failing test

* updated tests for Spanner;
bugfixes;

* updated tests for Spanner;
bugfixes;

* updated tests for Spanner;
bugfixes;

* fixed failing test

* fixed failing test

* fixing failing tests

* fixing failing tests

* fixing failing tests

* added support for typeorm-generated uuid;
fixed caching;

* fixing failing tests

* fixing failing tests

* fixing failing tests

* fixing failing tests

* fixing failing tests

* fixing failing tests

* debugging failing test

* debugging failing test

* fixed bug in @PrimaryColumn decorator

* fixed failing tests

* fixed VIEW functionality;
fixed failing tests;

* updated docs
2022-04-12 17:31:57 +05:00
Umed Khudoiberdiev
3b8a031ece
0.3.0 (#8616)
* added find options and new option relationLoadStrategy

* find now returns null instead of undefined; removed primary relations support; bugfixing; added some changes and tests from next branch;

* added typename to connection options; added data loader types, lot of deprecations; new es2020 emit by tsc; new custom repositories syntax

* applied lint fixing

* replaced some instanceof checks

* reverting docker compose image versions

* optimizing imports

* reverting back some instanceof checks to prevent compiler errors

* downgrading es compilation version

* docs: remove "primary" from relation options (#8619)

remove ex-line 26 for being deprecated in 0.3.0:
"* `primary: boolean` - Indicates whether this relation's column will be a primary column or not."

* Revert "reverting back some instanceof checks to prevent compiler errors"

This reverts commit 7bf12a39e2297d097aa2a42989afd0e9e4f49bb0.

* Revert "optimizing imports"

This reverts commit 7588ac14e4f1bf1a82e3b7883134b9c2c8ae5f3f.

* Revert "replaced some instanceof checks"

This reverts commit bfa5a2d706f697ed1c1beb38b4455c0d33121e5a.

* fixing few comments

* removing transaction decorators

* this test is invalid - it's not clear why the hell getTreeRepository will throw an error and it's not clear what kind of error its going to throw

* addded mixed list support in connection options

* trying to fix oracle length issue

* lintfix

* removed shorten usages

* added named entity target support to the connection

* fixing entity target support in relation options via entity schema

* debugging oracle issue

* fixed issue with alias not being shortened in many to many alias cases

* some day we'll have a prettier.

* fixing oracle tests

* fixing oracle failing test

* removed "null" support in where expressions; fixed softDelete and restore incorrect usages

* renamed FindConditions to FindOptionsWhere

* version bump

* docs: update loading relation in find method (v 0.3.0) (#8621)

* docs: update relation definition method

Update the method that allows loading a specific relation inside the find method.
This method is found on the one-to-one-relations page.
Change `const users = await userRepository.find({ relations: ["profile"] });` to `const users = await userRepository.find({ relations: {profile: true});`.

* fix formatting

Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>

* docs: change relations option definition (#8620)

* docs: change relations option definition

change line 139 from 
`const users = await connection.getRepository(User).find({ relations: ["profile", "photos", "videos"] });`
to
`const users = await connection.getRepository(User).find({ relations: { profile: true, photos: true, videos: true] });`
to reflect version 0.3.0 changes

* docs: change relations option definition

Rectified a type on line 139
from:
`const users = await connection.getRepository(User).find({ relations: { profile: true, photos: true, videos: true] });`
to
`const users = await connection.getRepository(User).find({ relations: { profile: true, photos: true, videos: true} });`

* formatting

Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>

* lint

* improved find options types

* fixed types and removed nonnever because it causes circual issue for some reason

* docs: update entitymanager definition (#8623)

* docs: update entitymanager definition

change the "What is EntityManager?" page to be up-to-date with v 0.3.0

1. line 6 changes from
`You can access the entity manager via 'getManager()' or from 'Connection'.`
to 
`You can access the entity manager via DataSource's manager.`

2. the import on `getManager` in line 10 becomes `Manager` that the user have configured beforehand:
`import {getManager} from "typeorm";`
becomes 
`import {Manager} from "./config/DataSource";`

3.change entityManager definition in line 13:
from
`const entityManager = getManager(); // you can also get it via getConnection().manager`
to
`const entityManager = Manager;`

* docs: update entitymanager definition

changed line 10 from: 
`import {Manager} from "./config/DataSource";`
to
`import {DataSource} from "typeorm";`

and changed line 13 and 14 from: 
`const entityManager = Manager;`
`const user = await entityManager.findOne(User, 1);`
to 
`const myDataSource = new DataSource({ /*...*/ });`
`const user = await myDataSource.manager.findOne(User, 1);`

for a simpler way of describing the origin of DataSource and how it works.

* In return type doesn't seem to work in all cases

* feat: mssql v7 support (#8592)

Adds support for v7 of the mssql library as v6 is EOL. This also makes use of the new toReadableStream method on requests to return a native stream where required.

* fix: prefix relation id columns contained in embedded entities (#6977) (#7432)

* fix: prefix relation id columns contained in embedded entities (#6977)

Searches embedded entity columns for relation ID column if relation column
is in embedded entity. If not found, creates new relation ID with embedded
metadata set to match the relation column.

fixes: #2254
fixes: #3132
fixes: #3226
fixes: #6977

* test: prefix subcounters sub-entity with "sub" to fit in 30 character identifier for oracle

Problem introduced with #6981

* fix: find by Date object in sqlite driver (#7538)

* fix: find by Date object in sqlite driver

In sqlite, Date objects are persisted as UtcDatetimeString.
But a Date object parameter was escaped with .toISOString(), making such queries impossible.
This commit aligns both transforms.
This bug does *not* apply to better-sql where you can only bind numbers, strings, bigints, buffers,
and null.
This is breaking for when the user inserted their dates manually as ISO and relied on this old
maltransformation, after this their find()s by Date won't work anymore.

BREAKING CHANGE: Change Date serialization in selects
Closes: #2286

* add failing test

* fix: find by Date object in sqlite driver (with query builder)

Also consider query builder parameter escaping

* test: add test for 3426

Co-authored-by: James Ward <james@notjam.es>

* manually ported changes from #7796

* updated changelog

* fixes after merge

* new findOne syntax

* new find* syntax

* new find* syntax

* lint

* tsc version bump

* tsc version bump and fixed mongodb issues

* moved date fns into non dev deps

* returned oracledb dep into place

* removed lock files

* returned lock files back

* eslint upgrade

* fixing mongodb issue

* fixing mongodb issue

* test: keep junction aliases short (#8637)

Tests a fix for an issue where junction aliases (e.g. in many-to-many relations)
are not unique because they are too long and thus truncated by the driver.

Closes: #8627
Related to: 76cee41dcf1c146d02715c7f48fed33672d28c67

* fixing mongodb issues

* fixing sqlite test

* fixing sqlite test

* fixing sqlite test

* fixing mongodb test

* fixing entity schema tests

* fixing entity schema tests

* merged latest master

* removed driver instanceof checks

* removed function instanceof checks

* removed Object instanceof checks

* removing instanceof checks...

* fixing instanceof checks

* added InstanceChecker to remove remaining instanceof checks

* fixed failing test

* linting

* fixing failing test

* version bump

* compiler fixes

* Connection type usages replace to DataSource

* updated dev deps

* updated deps, add prettier, removed oracledb due to m1 issue

* chalk downgrade

* fixing failing test

* applied prettier formatting

* replaced eslint to prettier

* okay I think we can call it lint

* fixing linting

* fixed prettier introduced compiler bug

* fixed failing test

* prettier;

* fixed failing test

* alias shortening only for junction tables;
fixed failing tests;

* changed aurora db names and reverted change of junction table name shorten algorithm

* format

* removed platform from docker compose

* made numeric parameters to not use parameters to prevent parameters number limit issue. Also enabled shorten only for junction tables

* fixing test

* fixing returning columns bugs

* fixing test

* fixed returning issue

* fixing merge conflicts

* updating documentation

* working on docs / improving api

* working on docs

* fixed isConnected issue

* re-worked commands

* commenting cli command tests for now

* commenting cli command tests for now

* removed platform

* returned Connection back

* refactor: export tree repository helper methods (#8753)

* Migrated protected tree methods to util class

* Added tree repository extend override

* Ran prettier format

* merge master into 0.3.0

Co-authored-by: Bitcollage <serkan.sipahi@yahoo.de>

* working on documentation

Co-authored-by: Bilel Taktak <47742269+Parsath@users.noreply.github.com>
Co-authored-by: Salah Azzouz <52634440+Salah-Azzouz@users.noreply.github.com>
Co-authored-by: Daniel Hensby <dhensby@users.noreply.github.com>
Co-authored-by: Nebojša Cvetković <nebkat@gmail.com>
Co-authored-by: Philip Waritschlager <philip+github@waritschlager.de>
Co-authored-by: James Ward <james@notjam.es>
Co-authored-by: Felix Gohla <37421906+felix-gohla@users.noreply.github.com>
Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
Co-authored-by: Jimmy Chen <50786287+Q16solver@users.noreply.github.com>
Co-authored-by: Bitcollage <serkan.sipahi@yahoo.de>
2022-03-17 21:01:45 +05:00
Umed Khudoiberdiev
abbadccd3d
new bug report template (#7945)
* example of the new bug report template

* changed emoji icons

* updated emoji icons

* added emoji codes to the comments

* Update bug-report.md

* Update documentation-issue.md

* Update feature-request.md

* Create feature-request.md
2021-07-25 19:19:42 +05:00
James Ward
877e343f73
chore: include support message on templates & create PR template 2020-10-26 02:12:00 -04:00
James Ward
e71ff10b9e
chore: add issue type templates & link to support (#6972) 2020-10-26 10:41:54 +05:00
Umed Khudoiberdiev
10a9e84edb
Create FUNDING.yml 2019-05-24 16:01:18 +05:00
Umed Khudoiberdiev
62345012f8 re-implemented update, updateById, removeById methods; added delete and insert methods 2017-10-16 15:04:41 +05:00
Aseem Sood
f22b48a22e Added .github/ISSUE_TEMPLATE.md (optional) 2017-09-25 17:10:17 -04:00