diff --git a/packages/core/src/core_private_export.ts b/packages/core/src/core_private_export.ts index 98595d9b27..41a2a4d67c 100644 --- a/packages/core/src/core_private_export.ts +++ b/packages/core/src/core_private_export.ts @@ -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'; diff --git a/packages/core/src/di/index.ts b/packages/core/src/di/index.ts index 02f2ed5631..1733f522a0 100644 --- a/packages/core/src/di/index.ts +++ b/packages/core/src/di/index.ts @@ -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'; diff --git a/packages/core/src/di/injector_compatibility.ts b/packages/core/src/di/injector_compatibility.ts index 1b1b291738..10eb13f290 100644 --- a/packages/core/src/di/injector_compatibility.ts +++ b/packages/core/src/di/injector_compatibility.ts @@ -139,6 +139,12 @@ export function Δinject(token: Type| InjectionToken, flags = InjectFla */ export const inject = Δinject; +/** + * @deprecated delete by v8, use `inject`. + * @codeGenApi + */ +export const ɵɵinject = Δinject; + /** * Injects `root` tokens in limp mode. * diff --git a/packages/core/src/di/interface/defs.ts b/packages/core/src/di/interface/defs.ts index d58957090a..041e599e08 100644 --- a/packages/core/src/di/interface/defs.ts +++ b/packages/core/src/di/interface/defs.ts @@ -147,6 +147,13 @@ export function ΔdefineInjectable(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. *