Repository navigation
Conversation
6f18717 to
8d7ffe0
Compare
|
You can preview 6f18717 at https://pr30576-6f18717.ngbuilds.io/. |
|
You can preview 8d7ffe0 at https://pr30576-8d7ffe0.ngbuilds.io/. |
8d7ffe0 to
70cd7ad
Compare
|
Refactoring means functionality and especially API surface doesn't change. What you are doing is a |
IgorMinar
left a comment
There was a problem hiding this comment.
lgtm.
confidence note: we've done research in google3 and found no references and while github has over a thousand references they all refer to vendored angular d.ts files. We don't think that anyone is really using these apis and they just take up space and confuse people.
|
I updated #30400 to reflect this change |
|
merge-assistance: Igor has global approval and I'm an owner of core |
|
@alfaproject Yeah, "refactor" doesn't seem quite right, but neither does "feature" (is it really a feature to remove something?). I think it's probably fine for the circumstances, but maybe "fix" would be better? 🤔 Edit: updated to "fix" |
BREAKING CHANGE In PR angular#19558, we fixed a bug in `TestBed.overrideProvider` where eager providers were not being instantiated correctly. However, it turned out that since this bug had been around for quite a bit, many apps were relying on the broken behavior where the providers would not be instantiated. To assist in the transition, the `TestBed.deprecatedOverrideProvider` method was temporarily introduced to mimic the old behavior so that apps would have a longer time period to migrate their code. 2 years and 3 versions later, it is time to remove the temporary method. This commit removes `TestBed.deprecatedOverrideProvider` altogether. Any usages of `TestBed.deprecatedOverrideProvider` should be replaced with `TestBed.overrideProvider`. This may mean that providers that were not created before will now be instantiated, which could mean that your tests need to provide more mocks or stubs for the dependencies of the newly instantiated providers.
70cd7ad to
28dd132
Compare
…#30576) BREAKING CHANGE In PR #19558, we fixed a bug in `TestBed.overrideProvider` where eager providers were not being instantiated correctly. However, it turned out that since this bug had been around for quite a bit, many apps were relying on the broken behavior where the providers would not be instantiated. To assist in the transition, the `TestBed.deprecatedOverrideProvider` method was temporarily introduced to mimic the old behavior so that apps would have a longer time period to migrate their code. 2 years and 3 versions later, it is time to remove the temporary method. This commit removes `TestBed.deprecatedOverrideProvider` altogether. Any usages of `TestBed.deprecatedOverrideProvider` should be replaced with `TestBed.overrideProvider`. This may mean that providers that were not created before will now be instantiated, which could mean that your tests need to provide more mocks or stubs for the dependencies of the newly instantiated providers. PR Close #30576
|
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. |
BREAKING CHANGE
In PR #19558, we fixed a bug in
TestBed.overrideProviderwhereeager providers were not being instantiated correctly. However,
it turned out that since this bug had been around for quite a bit,
many apps were relying on the broken behavior where the providers
would not be instantiated. To assist in the transition, the
TestBed.deprecatedOverrideProvidermethod was temporarilyintroduced to mimic the old behavior so that apps would have a
longer time period to migrate their code.
2 years and 3 versions later, it is time to remove the temporary
method. This commit removes
TestBed.deprecatedOverrideProvideraltogether. Any usages of
TestBed.deprecatedOverrideProvidershould be replaced with
TestBed.overrideProvider. This may meanthat providers that were not created before will now be instantiated,
which could mean that your tests need to provide more mocks or stubs
for the dependencies of the newly instantiated providers.