Visitar URL original
docs: deprecate factory-based signature of the `downgradeModule` function by AndrewKushnir · Pull Request #44090 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20220123182816/https://github.com/angular/angular/pull/44090
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

docs: deprecate factory-based signature of the downgradeModule function #44090

Conversation

@AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir commented Nov 5, 2021 •

DEPRECATED:

The downgradeModule function calls with NgModule factories are deprecated. Please use NgModule class based downgradeModule calls instead.

Note: this PR also contains a commit from @petebacondarwin to ensure overloaded functions render correctly.

PR Type

What kind of change does this PR introduce?

  • Other... Please describe: deprecation of an old API.

Does this PR introduce a breaking change?

  • Yes
  • No
@mary-poppins
Copy link

@mary-poppins mary-poppins commented Nov 8, 2021

@google-cla
Copy link

@google-cla google-cla bot commented Nov 9, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no and removed cla: yes labels Nov 9, 2021
@petebacondarwin
Copy link
Member

@petebacondarwin petebacondarwin commented Nov 9, 2021

@googlebot I consent.

@google-cla google-cla bot added cla: yes and removed cla: no labels Nov 9, 2021
@mary-poppins
Copy link

@mary-poppins mary-poppins commented Nov 9, 2021

@AndrewKushnir AndrewKushnir force-pushed the deprecate-downgrademodule-with-ngfactory branch from 8b68842 to e7e711d Nov 9, 2021
@AndrewKushnir AndrewKushnir marked this pull request as ready for review Nov 9, 2021
@pullapprove pullapprove bot requested review from gkalpak and IgorMinar Nov 9, 2021
@mary-poppins
Copy link

@mary-poppins mary-poppins commented Nov 9, 2021

aio/content/guide/deprecations.md Outdated Show resolved Hide resolved
AndrewKushnir and others added 2 commits Nov 16, 2021
…tion

DEPRECATED:

The `downgradeModule` function calls with NgModule factories are deprecated. Please use NgModule class based `downgradeModule` calls instead.
If there were 1 or 2 additional overloads on a free-standing function in the API the overloads were not being shown.

Also the type of overload parameters were not being escaped correctly.
@mary-poppins
Copy link

@mary-poppins mary-poppins commented Nov 16, 2021

@AndrewKushnir AndrewKushnir requested a review from jelbourn Nov 16, 2021
Copy link
Member

@jelbourn jelbourn left a comment

LGTM

@pullapprove pullapprove bot requested review from atscott, dylhunn and jessicajaniuk Nov 16, 2021
Copy link
Contributor

@atscott atscott left a comment

reviewed-for: public-api

@pullapprove pullapprove bot requested a review from jelbourn Nov 16, 2021
@AndrewKushnir
Copy link
Contributor Author

@AndrewKushnir AndrewKushnir commented Nov 16, 2021

@ngbot
Copy link

@ngbot ngbot bot commented Nov 17, 2021

I see that you just added the action: merge label, but the following checks are still failing:
    failure status "ci/circleci: legacy-unit-tests-saucelabs" is failing
    pending status "pullapprove" is pending
    pending missing required status "cla/google"
    pending 4 pending code reviews

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

Copy link
Member

@petebacondarwin petebacondarwin left a comment

Reviewed-for: public-api

Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

LGTM 🍪

reviewed-for: public-api

@AndrewKushnir
Copy link
Contributor Author

@AndrewKushnir AndrewKushnir commented Nov 17, 2021

This PR was merged into the repository by commit e0c7360.

AndrewKushnir added a commit that referenced this issue Nov 17, 2021
If there were 1 or 2 additional overloads on a free-standing function in the API the overloads were not being shown.

Also the type of overload parameters were not being escaped correctly.

PR Close #44090
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Dec 18, 2021

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 18, 2021
dimakuba added a commit to dimakuba/angular that referenced this issue Dec 28, 2021
…tion (angular#44090)

DEPRECATED:

The `downgradeModule` function calls with NgModule factories are deprecated. Please use NgModule class based `downgradeModule` calls instead.

PR Close angular#44090
dimakuba added a commit to dimakuba/angular that referenced this issue Dec 28, 2021
…lar#44090)

If there were 1 or 2 additional overloads on a free-standing function in the API the overloads were not being shown.

Also the type of overload parameters were not being escaped correctly.

PR Close angular#44090
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants