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(typeorm): create initial support for typeorm ^0.3.0 and nest ^9.0.0 #797

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

MrMaz
Copy link

@MrMaz MrMaz commented Jul 25, 2022

TypeORM has been upgraded to ^0.3.0. Nest has been upgraded to ^9.0.0. Minor changes to TypeORM crud
service related to unique select columns. Major changes to tests to support new DataSource
configuration.

BREAKING CHANGE: TypeORM v0.3.0 came with many breaking changes, please see their release notes for
more details. https://github.com/typeorm/typeorm/releases/tag/0.3.0

re #790

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message was generated by yarn commit
  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[X] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Tests
[ ] Release
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

TypeORM ^0.3.0 is not supported.

Issue Number: 790

What is the new behavior?

TypeORM ^0.3.0 is supported, as well as Nest ^9.0.0 (required for latest TypeORM support)

Does this PR introduce a breaking change?

[X] Yes
[ ] No

TypeORM ^0.3.0 introduced quite a few breaking changes, most significantly how connections are configured. See their release notes here: https://github.com/typeorm/typeorm/releases/tag/0.3.0

Nest ^9.0.0 is also required for the latest TypeORM ^0.3.0 support

Other information

TypeORM has been upgraded to ^0.3.0. Nest has been upgraded to ^9.0.0. Minor changes to TypeORM crud
service related to unique select columns. Major changes to tests to support new DataSource
configuration.

BREAKING CHANGE: TypeORM v0.3.0 came with many breaking changes, please see their release notes for
more details. https://github.com/typeorm/typeorm/releases/tag/0.3.0

re nestjsx#790
Copy link

@qstyler qstyler left a comment

Choose a reason for hiding this comment

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

This is really needed!

...(isArrayFull(options.persist) ? options.persist : []),
...columns,
].map((col) => `${alias}.${col}`);
const select = new Set(
Copy link

Choose a reason for hiding this comment

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

Oh, how cool that it's here.

@michaelyali michaelyali merged commit 44f2478 into nestjsx:master Nov 29, 2022
@theres
Copy link

theres commented Dec 7, 2022

@michaelyali any chance to release it soon?

@michaelyali
Copy link
Member

@theres yep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants