refactor(ivy): deprecate ɵɵinject and ɵɵdefineInjectable (#30362)

- They are to be removed before the end of RC

PR Close #30362
This commit is contained in:
Ben Lesh 2019-05-14 10:12:48 -07:00 committed by Alex Rickabaugh
parent 018a5168a5
commit 4f9b16783b
4 changed files with 16 additions and 3 deletions

View File

@ -13,7 +13,7 @@ export {devModeEqual as ɵdevModeEqual} from './change_detection/change_detectio
export {isListLikeIterable as ɵisListLikeIterable} from './change_detection/change_detection_util';
export {ChangeDetectorStatus as ɵChangeDetectorStatus, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy} from './change_detection/constants';
export {Console as ɵConsole} from './console';
export {inject, setCurrentInjector as ɵsetCurrentInjector, Δinject} from './di/injector_compatibility';
export {inject, setCurrentInjector as ɵsetCurrentInjector, ɵɵinject, Δinject} from './di/injector_compatibility';
export {getInjectableDef as ɵgetInjectableDef, ΔInjectableDef as ΔInjectableDef, ΔInjectorDef} from './di/interface/defs';
export {APP_ROOT as ɵAPP_ROOT} from './di/scope';
export {ivyEnabled as ɵivyEnabled} from './ivy_switch';

View File

@ -14,11 +14,11 @@
export * from './metadata';
export {InjectFlags} from './interface/injector';
export {ΔdefineInjectable, defineInjectable, ΔdefineInjector, InjectableType, InjectorType} from './interface/defs';
export {ΔdefineInjectable, defineInjectable, ɵɵdefineInjectable, ΔdefineInjector, InjectableType, InjectorType} from './interface/defs';
export {forwardRef, resolveForwardRef, ForwardRefFn} from './forward_ref';
export {Injectable, InjectableDecorator, InjectableProvider} from './injectable';
export {Injector} from './injector';
export {Δinject, inject, INJECTOR} from './injector_compatibility';
export {Δinject, inject, ɵɵinject, INJECTOR} from './injector_compatibility';
export {ReflectiveInjector} from './reflective_injector';
export {StaticProvider, ValueProvider, ConstructorSansProvider, ExistingProvider, FactoryProvider, Provider, TypeProvider, ClassProvider} from './interface/provider';
export {ResolvedReflectiveFactory, ResolvedReflectiveProvider} from './reflective_provider';

View File

@ -139,6 +139,12 @@ export function Δinject<T>(token: Type<T>| InjectionToken<T>, flags = InjectFla
*/
export const inject = Δinject;
/**
* @deprecated delete by v8, use `inject`.
* @codeGenApi
*/
export const ɵɵinject = Δinject;
/**
* Injects `root` tokens in limp mode.
*

View File

@ -147,6 +147,13 @@ export function ΔdefineInjectable<T>(opts: {
*/
export const defineInjectable = ΔdefineInjectable;
/**
* @deprecated delete before v8. Use `defineInjectable`, which is also deprecated, but will be
* around until v10.
* @publicApi
*/
export const ɵɵdefineInjectable = ΔdefineInjectable;
/**
* Construct an `InjectorDef` which configures an injector.
*