angular-cn/aio/content
Kara Erickson a96976e88f fix(core): remove deprecated `TestBed.deprecatedOverrideProvider` API (#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
2019-05-21 12:37:17 -07:00
..
cli docs: add in-page nav, change title to match left nav better (#30093) 2019-04-29 13:23:14 -07:00
cli-src build(docs-infra): make the git ref for cli command docs configurable (#26391) 2018-10-11 12:57:49 -07:00
examples docs: use dynamic import syntax in examples using lazy loading (#30563) 2019-05-21 09:09:35 -07:00
guide fix(core): remove deprecated `TestBed.deprecatedOverrideProvider` API (#30576) 2019-05-21 12:37:17 -07:00
images docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
marketing docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
start docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
tutorial docs: move instructions to see changes after the error is fixed in the tutorial (#30529) 2019-05-21 09:03:49 -07:00
file-not-found.md fix(docs-infra): do not create an anchor for the `file-not-found` header (#27250) 2018-12-05 13:26:26 -08:00
license.md build: bump year (#27880) 2019-01-11 11:15:59 -08:00
navigation.json docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00