Skip to content

Conversation

AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir commented Jul 9, 2022

See individual commits.

PR Type

What kind of change does this PR introduce?

  • Feature

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added feature Issue that requests a new feature action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release flag: deprecation labels Jul 9, 2022
@AndrewKushnir AndrewKushnir requested review from atscott and alxhub July 9, 2022 01:59
@AndrewKushnir AndrewKushnir added target: major This PR is targeted for the next major release breaking changes and removed target: minor This PR is targeted for the next minor release labels Jul 9, 2022
@AndrewKushnir AndrewKushnir force-pushed the injector_flags_as_obj branch 2 times, most recently from 3553e1e to 01faada Compare July 10, 2022 20:55
@AndrewKushnir
Copy link
Contributor Author

AndrewKushnir commented Jul 10, 2022

Exploratory Presubmit + TGP.

@AndrewKushnir AndrewKushnir force-pushed the injector_flags_as_obj branch from 01faada to 4b775fc Compare July 10, 2022 21:34
@AndrewKushnir AndrewKushnir added target: minor This PR is targeted for the next minor release and removed target: major This PR is targeted for the next major release breaking changes labels Jul 10, 2022
@jessicajaniuk jessicajaniuk added the area: core Issues related to the framework runtime label Jul 11, 2022
@ngbot ngbot bot added this to the Backlog milestone Jul 11, 2022
@AndrewKushnir AndrewKushnir force-pushed the injector_flags_as_obj branch from 4b775fc to 0857332 Compare July 13, 2022 00:44
@AndrewKushnir AndrewKushnir requested a review from atscott July 13, 2022 00:46
@AndrewKushnir AndrewKushnir force-pushed the injector_flags_as_obj branch from 0857332 to c64f54d Compare July 13, 2022 01:24
@AndrewKushnir
Copy link
Contributor Author

TGP #2.

Copy link
Member

@alxhub alxhub left a comment

Choose a reason for hiding this comment

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

FYI, I think that modifying the signature of Injector.get is a breaking change. We should add the appropriate notice and push this to v15.

@AndrewKushnir AndrewKushnir added breaking changes target: major This PR is targeted for the next major release state: blocked and removed target: minor This PR is targeted for the next minor release action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 13, 2022
This commit applies the changes similar to the ones performed for the `inject()` function in angular@df246bb.

The `Injector.get` function is updated to use previously added object-based API for options: now the flags argument supports passing an object which configures injection flags.

DEPRECATED:

The bit field signature of `Injector.get()` has been deprecated, in favor of the new options object.
This commit applies the changes similar to the ones performed for the `inject()` function in angular@df246bb.

The `TestBed.inject` function is updated to use previously added object-based API for options: now the flags argument supports passing an object which configures injection flags.

DEPRECATED:

The bit field signature of `TestBed.inject()` has been deprecated, in favor of the new options object.
@AndrewKushnir
Copy link
Contributor Author

@alxhub I've updated the API and added a couple tests as we discussed (fixup commit: 6159102). Could you please take another look?

@AndrewKushnir AndrewKushnir removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Sep 24, 2022
@AndrewKushnir
Copy link
Contributor Author

AndrewKushnir added a commit to AndrewKushnir/ngx-toastr that referenced this pull request Sep 26, 2022
…njector.create

This commit removes a custom ToastInjector (that provided a single token) in favor of creating a new injector instance using the `Injector.create` call.

The goal of this change is to make the library forward-compatible with an upcoming change to the Injector interface, see angular/angular#46761.
@AndrewKushnir
Copy link
Contributor Author

Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

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

reviewed-for: public-api

@pullapprove pullapprove bot requested a review from alxhub September 27, 2022 15:44
Copy link
Member

@alxhub alxhub left a comment

Choose a reason for hiding this comment

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

Reviewed-for: public-api

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: public-api

Copy link
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: public-api
Reviewed-for: fw-core

@alxhub alxhub removed the request for review from atscott September 27, 2022 17:04
@alxhub alxhub added the action: merge The PR is ready for merge by the caretaker label Sep 27, 2022
@alxhub
Copy link
Member

alxhub commented Sep 27, 2022

This PR was merged into the repository by commit 120555a.

@alxhub alxhub closed this in 841c8e5 Sep 27, 2022
alxhub pushed a commit that referenced this pull request Sep 27, 2022
This commit applies the changes similar to the ones performed for the `inject()` function in df246bb.

The `TestBed.inject` function is updated to use previously added object-based API for options: now the flags argument supports passing an object which configures injection flags.

DEPRECATED:

The bit field signature of `TestBed.inject()` has been deprecated, in favor of the new options object.

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

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 Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: global presubmit The PR is in need of a google3 global presubmit action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime breaking changes feature Issue that requests a new feature target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants