From dca50deae473aa1d59b7d57a4014b75d67a84053 Mon Sep 17 00:00:00 2001 From: Trotyl Date: Wed, 9 Aug 2017 15:18:05 +0800 Subject: [PATCH] docs(core): deprecate ReflectiveInjector closes #18598 --- packages/core/src/di/reflective_injector.ts | 4 +--- tools/public_api_guard/core/core.d.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/src/di/reflective_injector.ts b/packages/core/src/di/reflective_injector.ts index 2dd381b657..5e7e0a481c 100644 --- a/packages/core/src/di/reflective_injector.ts +++ b/packages/core/src/di/reflective_injector.ts @@ -13,8 +13,6 @@ import {cyclicDependencyError, instantiationError, noProviderError, outOfBoundsE import {ReflectiveKey} from './reflective_key'; import {ReflectiveDependency, ResolvedReflectiveFactory, ResolvedReflectiveProvider, resolveReflectiveProviders} from './reflective_provider'; - - // Threshold for the dynamic version const UNDEFINED = new Object(); @@ -51,7 +49,7 @@ const UNDEFINED = new Object(); * Notice, we don't use the `new` operator because we explicitly want to have the `Injector` * resolve all of the object's dependencies automatically. * - * @stable + * @deprecated from v5 - slow and brings in a lot of code, Use `Injector.create` instead. */ export abstract class ReflectiveInjector implements Injector { /** diff --git a/tools/public_api_guard/core/core.d.ts b/tools/public_api_guard/core/core.d.ts index 2487babe7c..936b0a0a58 100644 --- a/tools/public_api_guard/core/core.d.ts +++ b/tools/public_api_guard/core/core.d.ts @@ -759,7 +759,7 @@ export declare class QueryList { toString(): string; } -/** @stable */ +/** @deprecated */ export declare abstract class ReflectiveInjector implements Injector { readonly abstract parent: Injector | null; abstract createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;