341 Commits

Author SHA1 Message Date
Michael Bromley
9ea8577f42
chore: Release v0.3.27 (#11661) 2025-09-19 11:45:01 +02:00
Michael Bromley
4d204adf56
chore: Release v0.3.26 (#11602) 2025-08-18 17:32:25 +01:00
Michael Bromley
bdb8326ad7
chore: Release 0.3.25 (#11535) 2025-06-19 18:08:24 +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
Mike Guida
12a71e4581
chore: version 0.3.24 (#11478) 2025-05-14 12:00:37 -06:00
Simon Garner
a6b61f7645
chore: include warning about update({}) in changelog (#11471)
* chore: include warning about update({}) in changelog

* chore: be more specific about affected methods
2025-05-13 12:22:34 +12:00
Mike Guida
1198dc2934
chore: add note about breaking change in 0.3.23 (#11469) 2025-05-12 12:48:20 -06:00
Michael Bromley
80e9b3004a
chore: Version 0.3.23 (#11439) 2025-05-07 12:03:48 +02:00
Michael Bromley
6c5668bd82
chore: Bump version to v0.3.22 and generate changelog (#11378) 2025-04-03 11:00:34 +02:00
Michael Bromley
206af0aa39
chore: Bump version 0.3.21 (#11314) 2025-03-03 09:02:10 +01:00
Umed Khudoiberdiev
3d55188c0d version bump 2024-01-26 16:18:56 +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 2024-01-03 19:43:45 +05:00
Umed Khudoiberdiev
5464dec2fa version bump 2024-01-03 17:42:18 +05:00
Umed Khudoiberdiev
a909d5b697 version bump 2023-06-20 12:47:22 -07:00
Umed Khudoiberdiev
abb9079f2b version bump 2023-05-09 23:57:55 +05:00
Umed Khudoiberdiev
589056162c version bump 2023-04-15 18:26:02 +05:00
Umed Khudoiberdiev
5e3c565dce version bump 2023-04-09 11:39:56 +05:00
Umed Khudoiberdiev
0194f179fe version bump 2023-04-06 14:25:06 +05:00
Umed Khudoiberdiev
f07bdd0dac version bump 2023-02-07 19:53:47 +05:00
Umed Khudoiberdiev
0d72317b3d version bump 2022-12-03 23:24:38 +05:00
Umed Khudoiberdiev
dbc1b2e6f9 version bump 2022-09-19 21:28:59 +05:00
Umed Khudoiberdiev
ed1f0b95c6 version bump 2022-08-28 23:32:30 +05:00
Umed Khudoiberdiev
6beedfdc89 version bump 2022-08-28 23:29:35 +05:00
Umed Khudoiberdiev
109c1fab60 updated changelog 2022-06-29 23:38:03 +05:00
Umed Khudoiberdiev
50d75f5e8a version bump 2022-06-29 23:37:13 +05:00
Umed Khudoiberdiev
138443f67a version bump 2022-06-22 20:10:02 +05:00
Umed Khudoiberdiev
c814b07653 version bump 2022-04-05 21:59:24 +05:00
Umed Khudoiberdiev
002274cf9a version bump 2022-03-26 21:18:24 +05:00
Umed Khudoiberdiev
c75bcae604 version bump 2022-03-23 21:19:06 +05:00
Umed Khudoiberdiev
f010205e46 version bump 2022-03-23 01:33:11 +05:00
Umed Khudoiberdiev
13c75aeb22 version bump 2022-03-21 18:37:34 +05:00
Umed Khudoiberdiev
9f1b8e3425
feat: new array find operators (#8766)
* added new array find operators; delegating how json and jsonb are stored directly to underlying driver (breaking)

* array: true must be explicitly defined for array json/jsonb values; strings being JSON-stringified must be manually escpaed
2022-03-21 17:48:32 +05:00
Umed Khudoiberdiev
941b584ba1 version bump 2022-03-17 21:05: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
486f8c5821 version bump 2022-03-04 19:42:54 +05:00
Umed Khudoiberdiev
3131c5c607 version bump 2022-02-23 22:54:30 +05:00
Umed Khudoiberdiev
350cb9e901 version bump 2022-02-17 23:18:20 +05:00
Umed Khudoiberdiev
a5493fba5e updated changelog and version bump 2022-02-16 21:56:56 +05:00
Umed Khudoiberdiev
32865190a9 updated changelog 2021-11-18 19:04:46 +05:00
Umed Khudoiberdiev
1f558b1804 updated changelog 2021-11-11 19:59:14 +05:00
Umed Khudoiberdiev
41ee95c1fb version bump 2021-11-09 20:00:31 +05:00
James Ward
d7d19e94dc
chore(release): 0.2.38 2021-10-02 13:30:27 -04:00
James Ward
02f0bce19d
chore(release): 0.2.37 2021-08-13 02:26:49 -04:00
James Ward
69fabafb0b
chore(release): 0.2.36 2021-07-30 21:08:31 -04:00
James Ward
4c8debb7ba
chore(release): 0.2.35 2021-07-28 22:52:36 -04:00
Umed Khudoiberdiev
7d614e9c83 version bump 2021-06-14 21:10:14 +05:00
Umed Khudoiberdiev
834918256b version bump 2021-06-01 20:55:48 +05:00
Chris
0f7a778398
feat: added Capacitor driver (#7695)
* added new driver for Capacitor

* updated CHANGELOG.md
2021-05-29 14:46:45 +05:00
Umed Khudoiberdiev
8c7c655ebd version bump 2021-03-30 21:44:56 +05:00