Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Synced parent changes #9

Merged
merged 151 commits into from
Jun 30, 2023
Merged

feat: Synced parent changes #9

merged 151 commits into from
Jun 30, 2023

Commits on Nov 21, 2022

  1. feat: added opaque types support over primitives in find-options (typ…

    …eorm#9560)
    
    * added opaque types support over primitives in find-options
    * removed lock-verify because of its deprecation
    * fixing auto type mapping
    pleerock committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    4ec04fa View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2022

  1. Configuration menu
    Copy the full SHA
    f606a22 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    975a953 View commit details
    Browse the repository at this point in the history
  3. Github issue templates converted to forms (typeorm#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>
    mrhappyma and AlexMesser committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    68f18a3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    26107e6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b566d54 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2458ac7 View commit details
    Browse the repository at this point in the history
  7. build(deps): bump decode-uri-component from 0.2.0 to 0.2.2 (typeorm#9590

    )
    
    Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
    - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
    - [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2)
    
    ---
    updated-dependencies:
    - dependency-name: decode-uri-component
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    50cb580 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    97fae63 View commit details
    Browse the repository at this point in the history
  9. fix: the mpath is incorrect when the parent of the tree entity is null (

    typeorm#9535)
    
    * fix: the mpath is incorrect when the parent of the tree entity is null
    
    * lint: code format
    
    * fix: findTrees not have children
    
    * test: add unit test
    
    * style: format code
    
    * fix: unit test
    
    * fix: unit test
    
    * fix: unit test
    Yuuki-Sakura committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    658604d View commit details
    Browse the repository at this point in the history
  10. docs: add in an example for 4526 (typeorm#9538)

    * docs: add in an example for 4526
    
    * small fixes
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    charltonaustin and pleerock committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    d71e9c4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    fc3b4f8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d490793 View commit details
    Browse the repository at this point in the history
  13. fix: typings for Repository.extend function (typeorm#9396)

    additionally remove duplicated TreeRepository.extend method
    ruscon committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    f07fb2c View commit details
    Browse the repository at this point in the history
  14. feat: index support for materialized views of PostgreSQL (typeorm#9414)

    * feat: Added new indices attribute to View
    
    * feat: Added view indices methods
    
    Such as dropViewIndex, addViewIndices, addViewIndex
    
    Added "View" type in some parameters of methods
    
    * feat: Added view indices support when creating new indices and dropping old indices
    
    * ref: Renamed "table" to "view" in log when dropping view index
    
    * feat: changed order of schema sync operations
    
    To create a new view index, a view has to be created first.
    
    * feat: removed unreachable code
    
    A view object don't have its indices when creation. The indices are added to the view through the createViewIndex method.
    
    * feat: Added view when returning TableIndex
    
    * feat: Added view paths as argument in getViews on log method
    
    * feat: Created createViewIndexSql
    
    This method reuses code from createIndexSql, but eliminates the isSpatial part, because a viewColumn doesn't support this attribute.
    
    * fix: Added missing columns const to createViewIndexSql
    
    * feat: Removed isSpatial attribute when returning TableIndex
    
    * feat: Added unit tests
    
    * fix: Dropped current index to leave unique index on indices array
    
    There was a bug that when asserting the unique index, it would compare with the previous index, even when explicitly selecting the unique index in the indices array.
    
    * ref: lint files
    
    * feat: added "postgres" in enabledDrivers attribute
    
    This is to enable only PostgreSQL for the tests
    
    * feat: added doc for materialized view indices
    
    * ref: lint files
    
    * feat: Added new method to create mat. view indices
    
    This new method goes after creating the views. Aditionally, the views are now created at the end (as it was before)
    
    * ref: prettify files
    
    * feat: revamped tests
    
    Replaced previous unit tests with more significant ones
    rodzalo committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    1cb738a View commit details
    Browse the repository at this point in the history
  15. docs: Improve comprehension of update repository API (typeorm#9417)

    * Improve comprehension of update repository API
    
    Because the previous doc example was `await repository.update({ firstName: "Timber" }, { firstName: "Rizzrak" })`, I got confused and reversed the **WHERE** condition and the actual **change**.
    
    This change is just a suggestion to avoid that kind of confusion
    
    * Apply the same doc suggestion change to the entity manager update API
    CDelgrange committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    3b64b1a View commit details
    Browse the repository at this point in the history
  16. feat: upsert options conflictPaths as Entity keys (typeorm#9365)

    * feature: upsert options conflictPaths as Entity keys
    
    * feature: upsert options conflictPaths as object
    
    * feature: upsert options conflictPaths as object
    
    Co-authored-by: Pavel <pavel@loanbase.com>
    redwert and pavel-lb1 committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    b282428 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    6e91513 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    71efa8e View commit details
    Browse the repository at this point in the history
  19. feat: add Open DB Flags and URI DB Name in SQLite (typeorm#9468)

    * Add the open database flags for sqlite3.
    
    * Check for URI before trying to create the DB dir.
    
    * Spacing.
    
    * Add the sqlite open connection flags.
    
    * Spacing.
    
    Co-authored-by: Adrian Burlacu <adrian.burlacu@live.com>
    Configuration menu
    Copy the full SHA
    73148c9 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    81fc9a9 View commit details
    Browse the repository at this point in the history
  21. fix: cacheId not used when loading relations with take (typeorm#9469)

    * fix: cacheId not used loading relations
    
    The cacheId is set to undefined for the main request used for pagination when we load related entities
    
    * fix: tests
    4l3ss committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    93e6b3d View commit details
    Browse the repository at this point in the history
  22. feat: add parseInt8 option to postgres driver. Closes typeorm#9341 (t…

    …ypeorm#9435)
    
    * feat: add parseInt8 option to postgres driver
    
    * chore: formatting
    danmana committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    2473ff0 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7fbc3ad View commit details
    Browse the repository at this point in the history
  24. fix: fixed outdated init command (typeorm#9422)

    * fix: Updating the samples current version of typeorm.
    
    The cli sample was using the getRepository version in the UserController and in the current versions of the typeorm it was deprecated.
    Basically I changed the code to the current version using AppDataSource.
    
    * fix: improving code and fixing bugs
    
    I made several changes to the functions because they had bugs, such as the id being a "string" instead of a "number",
    the "userRepository" methods being outdated and checking the code to see if the user exists before doing some executions
    thalles-victor committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    0984307 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    f215e2d View commit details
    Browse the repository at this point in the history
  26. fix: disable transactionSupport option for CordovaDriver (typeorm#9391)

    * fix: disable transaction support for cordova driver
    
    the cordova-sqlite-storage plugin does not support transactions. fc4133c
    introduced an exception when starting a transactions but did not disable
    the transactionSupport in general leading to errors when using the
    `save` and `remove` method of the `EntityPersistExecutor`. With this PR
    the `EntityPersistExecutor` will respect the drivers `transactionSupport`
    option.
    
    * docs: add note on transaction limitations for cordova driver
    michaelwolz committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    53fad8f View commit details
    Browse the repository at this point in the history
  27. feat: implement exists query method (typeorm#9303)

    Adding `Exists` method to query builder and EntityManager, to check whether a row exists given the conditions
    
    Closes: typeorm#2815
    
    Co-authored-by: mortzprk <mortz.prk@gmail.com>
    mortezaPRK and mortzprk committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    598e269 View commit details
    Browse the repository at this point in the history
  28. feat: Add synchronize to @jointable (typeorm#9442)

    * feat: Add synchronize option to @jointable
    
    Add synchronize option to @jointable. It allows to ignore JoinTable when syncing and generating migrations.
    
    Closes typeorm#3443
    
    * removed only
    
    * lint fix
    
    Co-authored-by: Bartlomiej Rutkowski <brutkowski@tilt.app>
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    Co-authored-by: Alex Messer <dmzt08@gmail.com>
    4 people committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    93e14a9 View commit details
    Browse the repository at this point in the history
  29. lint fix

    AlexMesser committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    2241b27 View commit details
    Browse the repository at this point in the history
  30. feat: allow for partial index conditions for on conflict statments in…

    … postgres (typeorm#8971)
    
    * feat: allow for partial index conditions for on conflict statments in postgres
    
    * fix: change variable to match postgres documentation and convert from array to string type
    
    * fix: generalize use of index predicate. add documentation and expand test cases
    
    * lint fix
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    Co-authored-by: Alex Messer <dmzt08@gmail.com>
    3 people committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    2c54381 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    7386318 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    6ba48bd View commit details
    Browse the repository at this point in the history
  33. fix : primary constraint name undefined error (typeorm#9576)

    * fix : primary constraint name undefined erorr for PostgresQueryRunner.ts
    
    * Update src/driver/postgres/PostgresQueryRunner.ts
    
    Co-authored-by: leo-jnesis <55386067+leo-jnesis@users.noreply.github.com>
    
    Co-authored-by: AlexMesser <dmzt08@gmail.com>
    Co-authored-by: leo-jnesis <55386067+leo-jnesis@users.noreply.github.com>
    3 people committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    a176c8b View commit details
    Browse the repository at this point in the history
  34. version bump

    pleerock committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    0d72317 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. Configuration menu
    Copy the full SHA
    8251812 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2022

  1. fix: DataSource.setOptions doesn't properly update the database in th…

    …e drivers (typeorm#9635)
    
    * make sure we update database in the driver if it was dynamically set (via dataSource.setOptions)
    
    * removed validation for database since we definitely shouldn't have it in the constructor, database can be set later on (e.g. datasource.setOptions)
    pleerock committed Dec 18, 2022
    Configuration menu
    Copy the full SHA
    a95bed7 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2022

  1. fix: multiple select queries during db sync in sqlite (typeorm#9639)

    * fixed multiple select queries during db sync in sqlite
    AlexMesser committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    6c928a4 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2022

  1. Configuration menu
    Copy the full SHA
    648222a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    95421ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ae91c05 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2022

  1. Create SECURITY.md

    AlexMesser committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    b97633b View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2022

  1. Configuration menu
    Copy the full SHA
    4eda5df View commit details
    Browse the repository at this point in the history
  2. feat: support busy_timeout param parameter for sqlite (typeorm#9623)

    Co-authored-by: sinkhaha <1468709606@qq.com>
    sinkhaha and sinkhaha committed Dec 29, 2022
    Configuration menu
    Copy the full SHA
    8668c29 View commit details
    Browse the repository at this point in the history
  3. fix: materialized hints support for cte (typeorm#9605)

    Fix implementation of materialized hints in common table expressions
    Previous behavior did not account for NOT MATERIALIZED hints, also
    placed materialized hints in wrong place (before "AS")
    
    Co-authored-by: Adrian Parry <adrian.parry@reign.cl>
    subparry and adrianparry committed Dec 29, 2022
    Configuration menu
    Copy the full SHA
    67973b4 View commit details
    Browse the repository at this point in the history
  4. fix: synchronizing View with schema broken for oracle (typeorm#9602)

    * fix view+schema broken for oracle
    
    * apply prettier
    
    * fixed missing schema in loadViews();
    added test (with .only)
    
    * removed .only
    
    Co-authored-by: James Jurach <James.Jurach@apiture.com>
    Co-authored-by: Alex Messer <dmzt08@gmail.com>
    3 people committed Dec 29, 2022
    Configuration menu
    Copy the full SHA
    18b659d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    15a4eb9 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2023

  1. Configuration menu
    Copy the full SHA
    3e1caf0 View commit details
    Browse the repository at this point in the history
  2. feat: support time travel queries, upsert, enums, spatial types in co…

    …ckroachdb (typeorm#9128)
    
    * feature: adds support for enum type (fixes typeorm#9068)
    
    * temporarily ran package to test on different repo
    
    * playing around - bumped version
    
    * Revert "playing around - bumped version"
    
    This reverts commit 7df4adb.
    
    * Revert "temporarily ran package to test on different repo"
    
    This reverts commit 48f394e.
    
    * feat: add support for geometry data type
    
    * feature: properly hydrate enum array values
    
    * feature: adds support for geography and geometry for cockroachdb
    
    * bugfix: fixes issue with primary generated columns being invalid column type (fixes typeorm#8532)
    
    * Revert "bugfix: fixes issue with primary generated columns being invalid column type (fixes typeorm#8532)"
    
    This reverts commit e00cdb0.
    
    * bugfix: type casts to string when using ANY
    
    * feature: cast geometry/geography to geojson
    
    * feature: added references to srid
    
    * bugfix: prevent error if trying to close already closed connection
    
    * feature: added cockrachodb as part of postgres family
    
    * feature: ensures support for spatial columns for cockroachdb
    
    * feature: adds support for UPSERT for CockroachDB (fixes typeorm#9199)
    
    * minor: added TODO; unsure how to achieve this
    
    * feature: adds support for time travelling queries for cockroachdb
    
    * bugfix: only run time travel query on SELECT statements
    
    * refactor: changed UsertType from 'upsert' to 'primary-key' since this is more logical
    
    * feature: added posibility to set timeTravelQuery to false, instead of the parameter function; help for disabling time travel queries during tests
    
    * feature: allow timeTravelQueries in find* queries
    
    * bugfix: when using timetravel queries with joinAttributes it now prevents error 'AS OF SYSTEM TIME must be in top level' error
    
    * lint
    
    * minor fix
    
    * fixed failing test
    
    * implemented ENUM type;
    added tests;
    
    * fixed failing tests
    
    * fixed failing test
    
    * fixed spatial types synchronization;
    implemented spatial indices;
    added tests for spatial columns;
    
    * refactored Time Travel Query functionality;
    removed TTQ from find options;
    added tests for TTQ;
    
    * added docs for Time Travel Queries
    
    * minor changes
    
    * added GeoJSON types;
    other minor fixes;
    
    * updated docs
    
    * updated docs
    
    Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
    simplenotezy and AlexMesser committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    defb409 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2023

  1. Configuration menu
    Copy the full SHA
    74f7f79 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2023

  1. fix: remove unnecessary .js extension in imports (typeorm#9713)

    * fix: remove extension when importing file
    
    * removed unnecessary .js extension in imports
    
    ---------
    
    Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
    kyung-yeon and AlexMesser committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    6b37e38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de84014 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b937ae4 View commit details
    Browse the repository at this point in the history
  4. test: update multiple nested embedded entities (typeorm#9696)

    * test: update multiple nested embedded entities
    
    Closes: typeorm#1200
    
    * test: update multiple nested embedded entities - fix for ORA-00972 - shorter names
    
    Closes: typeorm#1200
    
    * test: correct test name for issue 1200
    
    Closes: typeorm#1200
    f-wrobel committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    ef64bfc View commit details
    Browse the repository at this point in the history
  5. fix: overriding caching settings when alwaysEnabled is true (typeorm#…

    …9731)
    
    * 9023-2 Fix cache overriding option
    
    * 9023-2 Fix format
    kolpakov-p committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    4df969e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c669f50 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2023

  1. build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 (typeorm#9758

    )
    
    Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
    - [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
    - [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1)
    
    ---
    updated-dependencies:
    - dependency-name: http-cache-semantics
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    63ab05f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fb2121 View commit details
    Browse the repository at this point in the history
  3. docs: Fix grammar error in the first paragraph. (typeorm#9759)

    docs: Fix grammar (verbal agreement) error in the first paragraph.
    vitorlbrasil committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    ca315f0 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. Configuration menu
    Copy the full SHA
    6c9010e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a9b9fb View commit details
    Browse the repository at this point in the history
  3. fix: redundant Unique constraint on primary join column in Postgres (t…

    …ypeorm#9677)
    
    * test: one migration for PrimaryColumn and JoinColumn in pg
    
    * fix: stop postgres from creating unique on PrimaryColumn with JoinColumn
    KiwiKilian committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    b8704f8 View commit details
    Browse the repository at this point in the history
  4. fix: resolve issue with "simple-enum" synchronization in SQLite (type…

    …orm#9716)
    
    * fix: resolve issue with "simple-enum" in sqlite
    
    Closes: typeorm#9715
    
    * trying to re-trigger CircleCI tests
    
    ---------
    
    Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
    Vista1nik and AlexMesser committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    c77c43e View commit details
    Browse the repository at this point in the history
  5. fix: improved FindOptionsWhere behavior with union types (typeorm#9607

    )
    
    * test: add test that where condition can accepts LessThan with Union
    
    * fix: allow FindOptionsWhere to accept LessThan with Union
    
    * added comment and simplified the type
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    tsugitta and pleerock committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    7726f5a View commit details
    Browse the repository at this point in the history
  6. fix: sql expression when where parameter is empty array (typeorm#9691)

    Closes: typeorm#9690
    
    Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
    PronDmytro and AlexMesser committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    7df2ccf View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. feat: naming strategy for legacy Oracle (typeorm#9703)

    * feat: naming strategy for legacy Oracle
    
    This feature is LegacyOracleNamingStrategy which can be used to handle Oracle error ORA-00972.
    
    * feat: naming strategy for legacy Oracle
    
    This feature is LegacyOracleNamingStrategy which can be used to handle Oracle error ORA-00972.
    f-wrobel committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    0eb7441 View commit details
    Browse the repository at this point in the history
  2. feat: add find operator json contains (typeorm#9665)

    * feature: add find operator json contains
    
    * add test
    
    ---------
    
    Co-authored-by: Игорь Сары <isary@MacBook-Pro-Igor.local>
    Co-authored-by: dzvyagin <dzvyagin@team.amocrm.com>
    3 people committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    d2f37f6 View commit details
    Browse the repository at this point in the history
  3. docs: update cli related docs (typeorm#9659)

    - remove cli.entitiesDir description
    - remove cli.subscribersDir description
    - remove cli from Data Source Options example
    - extend migration:run examples with -- -d path-to-datasource-config
    - extend migration:revert examples with -- -d path-to-datasource-config
    - extend migration:show examples with -- -d path-to-datasource-config
    - extend migration:create examples with path-to-migrations-dir/migrationName
    
    Co-authored-by: Stefan <stefi@sprintingsoftware.com>
    StefanZivkovic and Stefan committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    c418aae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8731858 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7c00bb8 View commit details
    Browse the repository at this point in the history
  6. fix: Incorrect enum default value when table name contains dash chara…

    …cter (typeorm#9685)
    
    * fix: get enum default value
    
    * chore: format
    KhaledSMQ committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    b3b0c11 View commit details
    Browse the repository at this point in the history
  7. fix: add support for mongodb v4 (typeorm#9450)

    * fix: add support for mongodb driver v4
    
    This new fix allow support to mongodb driver v4
    
    Closes: typeorm#7907
    
    * fix: add support for mongodb driver v4
    This new fix allow support to mongodb driver v4
    
    Closes: typeorm#7907
    
    ---------
    
    Co-authored-by: Matheus Melo Antiquera <matheusantiquera@finchsolucoes.com.br>
    MatheusMeloAntiquera and Matheus Melo Antiquera committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    8150525 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    adce698 View commit details
    Browse the repository at this point in the history
  9. fix: incorrect sorting of entities with multi-inheritances (typeorm#9406

    )
    
    * Fixed sorting of entities with multi-inheritances
    
    * prettier
    
    * added test case
    
    ---------
    
    Co-authored-by: Alex Messer <dmzt08@gmail.com>
    ZBAGI and AlexMesser committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    54ca9dd View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9bd3a64 View commit details
    Browse the repository at this point in the history
  11. refactor: use abstract logger to reduce duplicate code (typeorm#9751)

    * feat(platform-tools): add more logging functions
    
    * refactor(logger): add `AbstractLogger` to reduce duplicate code
    
    ---------
    
    Co-authored-by: Christian Forgács <christian@wunderbit.de>
    christian-forgacs and Christian Forgács committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    12fdd73 View commit details
    Browse the repository at this point in the history
  12. feat: update mssql dependency and other dependencies as well (typeorm…

    …#9763)
    
    * updating dependencies
    
    * fixing circleci config
    
    * reverting mongodb version back
    
    * increasing cli commands test timeout
    pleerock committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    4555211 View commit details
    Browse the repository at this point in the history
  13. feat: support for SQL aggregate functions SUM, AVG, MIN, and MAX to t…

    …he Repository API (typeorm#9737)
    
    * feat: Add support for SQL aggregate functions SUM, AVG, MIN, and MAX to the Repository API
    
    * rename field name to make tests work in oracle
    
    * fix the comments
    
    * update the docs
    
    * escape column name
    
    * address PR comment
    
    * format the code
    netroy committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    7d1f1d6 View commit details
    Browse the repository at this point in the history
  14. version bump

    pleerock committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    f07bdd0 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    099fcd9 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. Configuration menu
    Copy the full SHA
    58fc088 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2023

  1. docs: documented getCount() method (typeorm#9847)

    * documented getCount()
    
    getCount() is currently only mentioned in the documentation once, and you're never shown how to use it. This patch adds a little documentation for getCount()
    
    * clarification
    rizen committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    f7b210b View commit details
    Browse the repository at this point in the history
  2. docs: update relations-faq (typeorm#9879)

    Proposed a better safe-type workaround for circular dependencies.
    ifree92 committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    3f1142b View commit details
    Browse the repository at this point in the history
  3. docs: update many-to-many-relations.md (typeorm#9861)

    Fixing typescript code.
    scr4bble committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    e0e7d2c View commit details
    Browse the repository at this point in the history
  4. docs: added a documentation section on debugging query builder (typeo…

    …rm#9846)
    
    * Added a section on debugging query builder
    
    It covers using getQuery() and getQueryAndParameters() which are both useful when trying to figure out why your query isn't doing what you might expect it should do.
    
    * forgot await
    
    * fix typo
    rizen committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    98f2205 View commit details
    Browse the repository at this point in the history
  5. refactor: remove date-fns package (typeorm#9634)

    * refactor: remove date-fns
    
    Since TypeORM only uses one function from the date-fns library
    it is unnecessary to install this large package.
    
    * refactor: add DateUtils.parseDateAsISO
    
    * refactor: reintroduced comment
    jdgjsag67251 committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    1fcd9f3 View commit details
    Browse the repository at this point in the history
  6. build(deps): bump jsonwebtoken and mssql (typeorm#9700)

    Bumps [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) to 9.0.0 and updates ancestor dependency [mssql](https://github.com/tediousjs/node-mssql). These dependencies need to be updated together.
    
    
    Updates `jsonwebtoken` from 8.5.1 to 9.0.0
    - [Release notes](https://github.com/auth0/node-jsonwebtoken/releases)
    - [Changelog](https://github.com/auth0/node-jsonwebtoken/blob/master/CHANGELOG.md)
    - [Commits](auth0/node-jsonwebtoken@v8.5.1...v9.0.0)
    
    Updates `mssql` from 7.3.0 to 9.0.1
    - [Release notes](https://github.com/tediousjs/node-mssql/releases)
    - [Changelog](https://github.com/tediousjs/node-mssql/blob/master/CHANGELOG.txt)
    - [Commits](tediousjs/node-mssql@v7.3.0...v9.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: jsonwebtoken
      dependency-type: indirect
    - dependency-name: mssql
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    4fa14e3 View commit details
    Browse the repository at this point in the history
  7. fix: resolve issues for mssql migration when simple-enum was changed

    * fix: resolve issues for mssql migration when simple-enum was changed
    
    - Changes are now detected
    - Incorrect update Statement was split into a DROP CONSTRAINT and ADD CONSTRAINT Statement
    
    Closes: typeorm#7785 typeorm#9457
    
    * fix: resolve issues for mssql migration when simple-enum was changed
    
    - Changes are now detected
    - Incorrect update Statement was split into a DROP CONSTRAINT and ADD CONSTRAINT Statement
    
    Closes: typeorm#7785 typeorm#9457
    
    * code refactoring;
    changed `enumName` usage to generated name;
    improvements in test;
    
    ---------
    
    Co-authored-by: ke <ke@sbs.co.at>
    Co-authored-by: Alex Messer <dmzt08@gmail.com>
    3 people committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    cb154d4 View commit details
    Browse the repository at this point in the history
  8. fix: resolves issue with mssql column recreation (typeorm#9773)

    * fix: resolves issue with mssql column recreation when length max is in lower case
    
    Closes: typeorm#9399
    
    * removed redundant question mark
    
    ---------
    
    Co-authored-by: ke <ke@sbs.co.at>
    ertl and ertl committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    07221a3 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. feat: allow type FindOptionsOrderValue for order by object property (t…

    …ypeorm#9895) (typeorm#9896)
    
    When using an Entity column transformer for an object type, the underlying database column may be
    sortable, despite the static TypeScript type being an object. The `FindOptionsOrder` typing
    should allow sorting on that object property and not require further nesting.
    
    Fixes issue typeorm#9895.
    dylanseago committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    0814970 View commit details
    Browse the repository at this point in the history
  2. fixing failing test

    AlexMesser committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    af4f15c View commit details
    Browse the repository at this point in the history
  3. feat: Broadcast identifier for removed related entities (typeorm#9913)

    * Initial commit
    
    * Pending changes exported from your codespace
    
    * Revert changes
    
    * Fix format
    pdyck committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    f530811 View commit details
    Browse the repository at this point in the history
  4. test: when calling AVG on an integer column, MS SQL Server returns an…

    … int. (typeorm#9784)
    
    In this case, 50 instead of 50.5. Apparently the ANSI standard for SQL
    is silent on this issue, so either behavior should be considered
    acceptable.
    sbleon committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    0619aca View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4997da0 View commit details
    Browse the repository at this point in the history
  6. fix: improve EntityNotFound error message in QueryBuilder.findOneOrFa…

    …il (typeorm#9872)
    
    * fix: EntityNotFound error message in QueryBuilder.findOneOrFail
    
    * change test
    
    * change test
    
    * change test
    Agreon committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    f7f6817 View commit details
    Browse the repository at this point in the history
  7. fix: proper default value on generating migration when default value …

    …is a function calling [Postgres] (typeorm#9830)
    
    Co-authored-by: Dmytro Boiko <dmitriy.b@tracktica.com>
    dmytroboiko and Dmytro Boiko committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    bebba05 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    97280fc View commit details
    Browse the repository at this point in the history
  9. feat: add support for STI on EntitySchema (typeorm#9834)

    * feat: add support for STI on EntitySchema
    
    Closes: typeorm#9833
    
    * fix: run prettier
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    gabrielkim13 and pleerock committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    bc306fb View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a868979 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4ac8c00 View commit details
    Browse the repository at this point in the history
  12. fix: prevent foreign key support during migration batch under sqlite (t…

    …ypeorm#9775)
    
    * fix: prevent foreign keys support during migration batch under sqlite
    
    Schema changes in migrations batch cannot be done on table which has referring
     foreign keys with ON DELETE CASCADE without deleting its content.
    
    Closes: typeorm#9770
    
    * Update MigrationExecutor.ts
    
    * Update command.ts
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    sinopsysHK and pleerock committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    197cc05 View commit details
    Browse the repository at this point in the history
  13. fix: transform values for FindOperators typeorm#9381 (typeorm#9777)

    * fix: transform values for FindOperators
    
    Closes: typeorm#9381
    
    * refactor: simplify correction
    
    do not transform value, when it is a FindOperator
    
    Closes: typeorm#9381
    
    * fix: transform value of FindOperator when it is not a FindOperator
    
    Closes: typeorm#9381 typeorm#9816
    
    * fix: perform transformation on the array instead of each value in case of JsonContains
    
    * fix: remove anti pattern, correct functionality for operators without multiple parameter
    
    * fix: correct linting
    
    * fix: resolve issue when parameterValue is not an instanceof FindOperator
    
    ---------
    
    Co-authored-by: ke <ke@sbs.co.at>
    ertl and ertl committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    de1228d View commit details
    Browse the repository at this point in the history
  14. feat: leftJoinAndMapOne and innerJoinAndMapOne map result to entity (t…

    …ypeorm#9354)
    
    * feat: leftJoinAndMapOne and innerJoinAndMapOne now map correctly with QueryBuilder
    
    When joining to a query builder instead of an entity or table name, typeorm now
    correctly supports mapping the result to an entity. This introduces a new argument
    to the join functions to supply the join attributes with a source of meta data
    for the mapping
    
    For example:
    
    const loadedPost = await connection.manager
          .createQueryBuilder(Post, "post")
          .innerJoinAndMapOne(
               "post.tag",
               qb => qb.from(Tag, "tag"),
               "tag",
               "tag.id = post.tagId",
               undefined,
               // The next argument is new - it helps typeorm know which entity
               // to use to complete the mapping for a query builder.
               Tag
          )
          .where("post.id = :id", { id: post.id })
          .getOne()
    
    * style: Auto Formatting
    
    * trigger CircleCI
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
    3 people committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    947ffc3 View commit details
    Browse the repository at this point in the history
  15. fix: handles "query" relation loading strategy for TreeRepositories (t…

    …ypeorm#9680)
    
    Adds support to loading entities' relationships with "query" strategy for TreeRepositories
    Previously the default method was "join". Implementation is done recursively for n-level
    relations
    
    Closes: typeorm#9673
    JoseCToscano committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    a11809e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    f1330ad View commit details
    Browse the repository at this point in the history
  17. feat: QueryBuilder performance optimizations (typeorm#9914)

    * small optimization in driver utils - shortening alias become a bit faster
    
    * added entity metadatas as a map into DataSource for search optimization purposes
    
    * ultra small optimization - looks like symbols work slow. Need to re-think its usage
    
    * small optimizations to improve performance
    
    * replace property names optimization
    
    * tsc error fix
    
    * big optimization - now replacePropertyNames executed only for the final SQL query
    
    * trying to fix the bug in select query builder with orders not being properly replaced with their aliaces
    
    * fixing tests
    pleerock committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    12e9db0 View commit details
    Browse the repository at this point in the history
  18. version bump

    pleerock committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    0194f17 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    daf1b47 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2023

  1. Configuration menu
    Copy the full SHA
    7dac12c View commit details
    Browse the repository at this point in the history
  2. version bump

    pleerock committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    5e3c565 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2023

  1. added package lock

    pleerock committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    115059d View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. Configuration menu
    Copy the full SHA
    4240258 View commit details
    Browse the repository at this point in the history
  2. test: cli init with local typeorm package (typeorm#9926)

    * test: cli init with local typeorm package
    
    Uses the locally built files instead of the typeorm
    package published to npmjs. This enables testing project
    initialisation with unreleased typeorm package versions.
    
    * fix: enable init cli to be testable w non-releases
    mptr committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    3a72e35 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2023

  1. feat: support for the latest mongodb v5 (typeorm#9925)

    * fix: add support for mongodb driver v5
    
    This new fix allow support to mongodb driver v5
    
    Closes: typeorm#7907
    
    * refactor: remove callback from MongoDriver connect
    
    * fix: check for propertyName in transform
    
    * fix: add support for mongodb driver v5
    
    This new fix allow support to mongodb driver v5
    
    Closes: typeorm#7907
    
    * feat: mongodb 5.2.0 typings
    
    * fix: instanceof ObjectId check
    
    Instanceof check now no longer references to just the
    type but the loaded class ref instead.
    
    * test: fix test name to mongodb v5
    
    ---------
    
    Co-authored-by: Matheus Melo Antiquera <matheusantiquera@finchsolucoes.com.br>
    Co-authored-by: tgrassl <grassl.timon@gmail.com>
    Co-authored-by: Matheus Melo Antiquera <matheus.melo.a@hotmail.com>
    4 people committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    f6a3ce7 View commit details
    Browse the repository at this point in the history
  2. fix: SelectQueryBuilder builds incorrectly escaped alias in Oracle wh…

    …en used on entity with composite key (typeorm#9668)
    
    * Update SelectQueryBuilder.ts
    
    Bug fix, In case a unique alias is created in first query then result was not getting mapped properly.
    
    * lint fix
    
    ---------
    
    Co-authored-by: Dmitry Zotov <dmzt08@gmail.com>
    Alankarsharma and AlexMesser committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    83c6c0e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    80ae904 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ee6232 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    06291cf View commit details
    Browse the repository at this point in the history
  6. fix: make cache optional fields optional (typeorm#9942)

    This patch allows the getFromCache caller to only pass in
    identifier or query field, as getFromCache already handles
    the identifier and query field checks
    
    Co-authored-by: ru.c <ru@shuffle.com>
    RustySol and RustySol committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    159c60a View commit details
    Browse the repository at this point in the history
  7. fix: prevent unique index identical to primary key (all sql dialects) (

    …typeorm#9940)
    
    Co-authored-by: Lucian Mocanu <lucian.mocanu@nexontis.com>
    alumni and Lucian Mocanu committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    51eecc2 View commit details
    Browse the repository at this point in the history
  8. fixed compiler error

    pleerock committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    f1c5662 View commit details
    Browse the repository at this point in the history
  9. version bump

    pleerock committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    5890561 View commit details
    Browse the repository at this point in the history
  10. docs: issue typeorm#8860 (typeorm#9951)

    * fixed: issue typeorm#8860
    
    * example looks rough
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    adetorodev and pleerock committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    68aa573 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. fix: add directConnection options to MongoDB connection (typeorm#9955)

    Co-authored-by: afournier <afournier@solocal.com>
    a-fournier and afournier committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    e0165e7 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. docs: update entity-manager-api.md (typeorm#9956)

    typo:
    const timber = await manager.findOne(User, { firstName: "Timber" })   →   const timber = await manager.findOneBy(User, { firstName: "Timber" })
    
    Co-authored-by: Jo YoHan <37216082+oxyrinchus@users.noreply.github.com>
    slowhigh and slowhigh committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    b064049 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3d67901 View commit details
    Browse the repository at this point in the history
  3. fix: select + addOrderBy broke in 0.3.14 (typeorm#9961)

    * added test for typeorm#9960
    * fixing the issue
    * limiting only to postgres because of NULLS FIRST syntax
    * lint
    pleerock committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    0e56f0f View commit details
    Browse the repository at this point in the history
  4. refactor: query methods should accept generic for return type (typeor…

    …m#9957)
    
    * query should accept generics
    
    * Update DataSource.ts
    Newbie012 committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    f5b93c1 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. feat: mariadb uuid inet4 inet6 column data type support (typeorm#9845)

    * feat: mariadb inet4, inet6, uuid data type support
    
    * refactor: cleanup unnecessary methods
    
    * style: mysqldriver formatting
    
    * fix: handle length column metadata mariadb uuid
    
    * fix: 8832 test suite to verify errors correctly
    
    * style: fix 8832 test formatting
    
    * fix: 8832 error testing cleanup
    
    * fix: remove defaulting column type feature
    
    * style: fix formatting
    
    * fix: remove unnecessary dbms error test
    
    * fix: remove unused import in test
    
    * fix: ensure defaulting uuid generation column type
    smith-xyz committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    d8a2e37 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2023

  1. fix: mongodb typings breaks the browser version (typeorm#9962)

    * fix: exclude mongodb typings from browser
    
    Closes: typeorm#9959
    
    fix: delete unnessecary dummy file
    
    * another fix for bson typings problem in browser
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    spotykatch and pleerock committed May 9, 2023
    Configuration menu
    Copy the full SHA
    99bef49 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    54f4f89 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2a2bb4b View commit details
    Browse the repository at this point in the history
  4. fix: express option bug in init command (typeorm#10022)

    * Fix express option bug in init command
    
    * fixed esm support in command
    
    * fix linter
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    youngkiu and pleerock committed May 9, 2023
    Configuration menu
    Copy the full SHA
    5be20e2 View commit details
    Browse the repository at this point in the history
  5. fix: RelationIdLoader has access to queryPlanner when wrapped in tran…

    …saction (typeorm#9990)
    
    fix issue - createQueryBuilder in repository loses queryplanner when wrapped in txn upsteam until RelationIdLoader
    
    Closes: typeorm#9988
    riqwan committed May 9, 2023
    Configuration menu
    Copy the full SHA
    21a9d67 View commit details
    Browse the repository at this point in the history
  6. fix: add trustServerCertificate option to `SqlServerConnectionOptio…

    …ns` (typeorm#9985)
    
    * fix: add missing 'trustServerCertificate' option to SqlServerConnectionOptions interface
    
    Closes: typeorm#8093
    
    * docs: add `trustServerCertificate` description to mssql data source options docs
    
    * fix: consistency between jsdoc and docs
    
    ---------
    
    Co-authored-by: jrybarczyk <jrybarczyk@exclusiveresorts.com>
    99xtal and jrybarczyker committed May 9, 2023
    Configuration menu
    Copy the full SHA
    0305805 View commit details
    Browse the repository at this point in the history
  7. fix: added instanceName to options (typeorm#9968)

    * added instanceName to options
    
    * run prettier
    
    ---------
    
    Co-authored-by: Jens Horch <horch@hector.de>
    jenshorch and Jens Horch committed May 9, 2023
    Configuration menu
    Copy the full SHA
    7c5627f View commit details
    Browse the repository at this point in the history
  8. fix: for running cli-ts-node-esm use exit code from child process (ty…

    …peorm#10030)
    
    Use child process exit code in parent process to properly indicate that child process (migration running) fails
    
    Closes: typeorm#10029
    pahuta committed May 9, 2023
    Configuration menu
    Copy the full SHA
    a188b1d View commit details
    Browse the repository at this point in the history
  9. fix: add onDelete option validation for oracle (typeorm#9786)

    * fix: add onDelete option validation for oracle
    
    Closes: typeorm#9189
    
    * refactor: move fk validation logic to EntityMetadataValidator.ts
    
    * fix: skip assertion for other databases
    
    * fix: styles
    
    ---------
    
    Co-authored-by: ke <ke@sbs.co.at>
    ertl and ertl committed May 9, 2023
    Configuration menu
    Copy the full SHA
    938f94b View commit details
    Browse the repository at this point in the history
  10. fix: convert the join table ID to the referenceColumn ID type (typeor…

    …m#9887)
    
    * fix: Convert the join table ID to the referenceColumn ID type
    
    * test: add auto-increment-id-as-string test
    
    * style: format auto-increment-id-as-string test
    tqh177 committed May 9, 2023
    Configuration menu
    Copy the full SHA
    9460296 View commit details
    Browse the repository at this point in the history
  11. fix: correct encode mongodb auth credentials (typeorm#10024)

    * fix: correct encode mongodb auth credentials
    
    when use the special character `@` into mongodb password result in unauthorized because the it has no encoding
    
    Closes: typeorm#9885
    
    * we need to close connections at the end
    
    * fixed js issue
    
    * adjust import statement
    
    * style: run prettier
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    leoojg and pleerock committed May 9, 2023
    Configuration menu
    Copy the full SHA
    96b7ee4 View commit details
    Browse the repository at this point in the history
  12. fix: create correct children during cascade saving entities with STI (t…

    …ypeorm#9034)
    
    * test: test saving disciminators STI, cascading
    
    This commit adds an test for checking whether discriminators are saved
    correctly when saving a field with cascade that uses
    Single-Table-Inheritance.
    
    Related to: typeorm#7758
    
    * fix: Create correct children with STI
    
    This commit fixes the `create` function for EntityManager and Repository
    to create entities of correct type when using Single Table Inheritance.
    Refactors the otherwise repeated code into a new function on
    EntityMetadata.
    
    Related to: typeorm#7758
    
    * test: check STI type setting discriminator manually
    
    Related to: typeorm#9033
    
    * feature: allow setting discriminator value manually
    
    This commit allows using an instance of a base class in a
    Single Table Inheritance scenario and setting the discriminator value
    manually.
    
    Related to: typeorm#9033
    
    * test: test saving disciminators with trees in STI
    
    This commit adds an test for checking whether discriminators are saved
    correctly when saving a tree that also uses Single-Table-Inheritance.
    
    Related to: typeorm#7758
    
    * fix: Create correct children with STI and trees
    
    This commit fixes the `create` function for EntityManager and TreeRepository
    to create entities of correct type when using Single Table Inheritance
    and complex inheritance with Trees.
    
    Related to: typeorm#7758
    felix-gohla committed May 9, 2023
    Configuration menu
    Copy the full SHA
    06c1e98 View commit details
    Browse the repository at this point in the history
  13. fix: support More/LessThanOrEqual in relations (typeorm#9978)

    * test(select-buildwhere): exercise More/LessThanOrEqual for relations
    
    Extract the relevant test suite from functional/find-options, modifying
    the tests to use the equivalent More/LessThanOrEqual operators
    
    * fix(select-buildwhere): support More/LessThanOrEqual for relations
    
    Tweak `buildWhere()` to recognise more find operators and output
    the SQL equivalent
    
    - Recognise `moreThanOrEqual` and `lessThanOrEqual`, in addition to
      `moreThan` and `lessThan`
    - If the find operator ends with `OrEqual`, append `=` to the
      SQL operator
    
    * code style change
    
    ---------
    
    Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
    LoneRifle and pleerock committed May 9, 2023
    Configuration menu
    Copy the full SHA
    8795c86 View commit details
    Browse the repository at this point in the history
  14. fix: added transaction retry logic in cockroachdb (typeorm#10032)

    * added transaction retry logic in cockroachdb
    
    * added option to control max transaction retries;
    added delay before transaction retry;
    updated docs;
    
    * fixes in retry logic
    
    * enable storing queries after retrying transaction
    AlexMesser committed May 9, 2023
    Configuration menu
    Copy the full SHA
    607d6f9 View commit details
    Browse the repository at this point in the history
  15. version bump

    pleerock committed May 9, 2023
    Configuration menu
    Copy the full SHA
    abb9079 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. test: fix test from typeorm#9034 with STI for Oracle (typeorm#10037)

    Oracle does not have a `onUpdate: 'CASCADE'` option.
    Thus, the test fixtures had to be adapted.
    Checking for the correct `onUpdate` actions for Oracle was introduced in typeorm#9786.
    felix-gohla committed May 10, 2023
    Configuration menu
    Copy the full SHA
    d4607a8 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. Configuration menu
    Copy the full SHA
    f5d4397 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. chore: use new CircleCI convenience images (typeorm#10101)

    This commit updates the CircleCI images to the new convenience images
    (cimg/... instead of circleci/...), as the old ones were deprecated.
    Sadly, they do not come with major-only tags.
    See the following blog post for more information:
    https://circleci.com/docs/next-gen-migration-guide/
    
    Also, the apt cache was not updated before downloading additional
    packages.
    Thus, an update of the apt cache should fix getting the right packages.
    
    Related to typeorm#10100
    felix-gohla committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    7108cc6 View commit details
    Browse the repository at this point in the history
  2. fix: typeorm#10040 TypeORM synchronize database even if it is up to d…

    …ate (typeorm#10041)
    
    * test: typeorm#10040 TypeORM synchronize database even if it is up to date
    
    * formating
    
    * fix: TypeORM synchronize database even if it is up to date typeorm#10040
    juliengbt committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    b1a3a39 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    6018255 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    275d30f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e2fc92e View commit details
    Browse the repository at this point in the history