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

chore: merge upstream TypeORM v3.20 and retain Spanner support #22

Merged
merged 292 commits into from
Dec 19, 2024

Conversation

fbaldi6
Copy link

@fbaldi6 fbaldi6 commented Dec 18, 2024

Description

This pull request updates our fork of the typeorm/typeorm repository from version 3.16 to the latest release, 3.20.

The changes include:

This update ensures compatibility with the latest TypeORM features and bug fixes while maintaining our Spanner-specific functionality.

Expected impact

By updating to the latest version of typeorm, we are also updating internal dependencies, thus unlocking the possibility to update StreamYard pnpm to the latest version.

Before merge

  • Test that this new version works in StreamYard

ayuvlasenko and others added 30 commits December 29, 2022 18:51
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 <[email protected]>
* fix view+schema broken for oracle

* apply prettier

* fixed missing schema in loadViews();
added test (with .only)

* removed .only

Co-authored-by: James Jurach <[email protected]>
Co-authored-by: Alex Messer <[email protected]>
…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 <[email protected]>
* fix: remove extension when importing file

* removed unnecessary .js extension in imports

---------

Co-authored-by: Dmitry Zotov <[email protected]>
* 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
…9731)

* 9023-2 Fix cache overriding option

* 9023-2 Fix format
)

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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
docs: Fix grammar (verbal agreement) error in the first paragraph.
…ypeorm#9677)

* test: one migration for PrimaryColumn and JoinColumn in pg

* fix: stop postgres from creating unique on PrimaryColumn with JoinColumn
…orm#9716)

* fix: resolve issue with "simple-enum" in sqlite

Closes: typeorm#9715

* trying to re-trigger CircleCI tests

---------

Co-authored-by: Dmitry Zotov <[email protected]>
)

* 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 <[email protected]>
* 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.
* feature: add find operator json contains

* add test

---------

Co-authored-by: Игорь Сары <[email protected]>
Co-authored-by: dzvyagin <[email protected]>
- 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 <[email protected]>
…cter (typeorm#9685)

* fix: get enum default value

* chore: format
* 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 <[email protected]>
@fbaldi6 fbaldi6 force-pushed the feat/update branch 7 times, most recently from 21941bf to 83813bb Compare December 19, 2024 08:51
@fbaldi6 fbaldi6 changed the title Feat/update chore: merge upstream TypeORM v3.20.0 and retain Spanner support Dec 19, 2024
@fbaldi6 fbaldi6 changed the title chore: merge upstream TypeORM v3.20.0 and retain Spanner support chore: merge upstream TypeORM v3.20 and retain Spanner support Dec 19, 2024
@fbaldi6 fbaldi6 marked this pull request as ready for review December 19, 2024 10:24
@fbaldi6 fbaldi6 requested review from edomora97 and a team December 19, 2024 14:01
Copy link

@edomora97 edomora97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is freezing my Chrome :crasd:

Do you have any idea why this fork exists?

@fbaldi6
Copy link
Author

fbaldi6 commented Dec 19, 2024

This PR is freezing my Chrome :crasd:

Yeah, I know, it freezes mine too 😂

Do you have any idea why this fork exists?

The changes that were made (and that we are keeping with this PR, while updating to the latest version) are:

@fbaldi6 fbaldi6 merged commit 855eb3f into main Dec 19, 2024
58 checks passed
@fbaldi6 fbaldi6 deleted the feat/update branch December 19, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment