-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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(core): update Injector.get
and TestBed.inject
to support object-based flags
#46761
Conversation
3553e1e
to
01faada
Compare
01faada
to
4b775fc
Compare
4b775fc
to
0857332
Compare
0857332
to
c64f54d
Compare
There was a problem hiding this 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.
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.
bab040d
to
8690b13
Compare
8690b13
to
6159102
Compare
…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.
There was a problem hiding this 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
There was a problem hiding this 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
There was a problem hiding this 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
There was a problem hiding this 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
This PR was merged into the repository by commit 120555a. |
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
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
See individual commits.
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?