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

refactor: general refactor (explicit types, generics, components) #1312

Merged
merged 5 commits into from
Nov 30, 2018

Conversation

kamilmysliwiec
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

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

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1232

  • 169 of 176 (96.02%) changed or added relevant lines in 42 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 93.712%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/microservices/server/server-grpc.ts 4 5 80.0%
packages/core/scanner.ts 20 22 90.91%
packages/core/injector/module.ts 45 49 91.84%
Files with Coverage Reduction New Missed Lines %
packages/core/injector/module.ts 1 86.67%
Totals Coverage Status
Change from base Build 1218: -0.02%
Covered Lines: 2838
Relevant Lines: 2964

💛 - Coveralls

@coveralls
Copy link

coveralls commented Nov 24, 2018

Pull Request Test Coverage Report for Build 1237

  • 276 of 286 (96.5%) changed or added relevant lines in 71 files are covered.
  • 3 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.03%) to 93.701%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/microservices/server/server-grpc.ts 4 5 80.0%
packages/microservices/server/server-redis.ts 5 6 83.33%
packages/websockets/web-sockets-controller.ts 1 2 50.0%
packages/core/scanner.ts 28 31 90.32%
packages/core/injector/module.ts 45 49 91.84%
Files with Coverage Reduction New Missed Lines %
packages/common/decorators/http/route-params.decorator.ts 1 87.8%
packages/core/injector/module.ts 1 86.67%
packages/core/router/routes-resolver.ts 1 88.46%
Totals Coverage Status
Change from base Build 1218: -0.03%
Covered Lines: 2846
Relevant Lines: 2973

💛 - Coveralls

Copy link
Member

@BrunnerLivio BrunnerLivio left a comment

Choose a reason for hiding this comment

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

Really great step forward!
That is what I call one productive "break"


What about https://github.com/nestjs/nest/pull/1307/files#diff-bda512087c3a50709e8088dbaecfe8c6L39
showDeprecatedWarnings overrideModuleMetadata? Shouldn't these also be removed?

return this.override(typeOrToken, false);
}

/** @deprecated */
public overrideComponent(typeOrToken): OverrideBy {
public overrideComponent<T = any>(typeOrToken: T): OverrideBy {
Copy link
Member

Choose a reason for hiding this comment

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

Should this still exist? Shouldn't we just let it fail in case someone actually uses components?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that all changes that have been made so far, don't have to be considered as "breaking changes" which means that we wouldn't have to bump major version. That thing on the other hand (overrideComponent) should be probably removed in another PR :D

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see.. Then I am fine with this PR :)

@kamilmysliwiec kamilmysliwiec changed the title refactor: general refactor (implicity types, generics, components) refactor: general refactor (explicit types, generics, components) Nov 25, 2018
@kamilmysliwiec kamilmysliwiec changed the base branch from master to 6.0.0-next November 30, 2018 12:43
@kamilmysliwiec kamilmysliwiec merged commit 1c32007 into 6.0.0-next Nov 30, 2018
@delete-merged-branch delete-merged-branch bot deleted the refactor/injector branch November 30, 2018 12:43
@lock
Copy link

lock bot commented Sep 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants