From 450a13dea03b5b3cd3b92c5a840a6536ec003f83 Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Fri, 18 Aug 2017 17:02:41 +0300 Subject: [PATCH] fix(upgrade): deprecate the dynamic version of `ngUpgrade` --- packages/upgrade/src/dynamic/upgrade_adapter.ts | 6 ++++-- tools/public_api_guard/upgrade/index.d.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/upgrade/src/dynamic/upgrade_adapter.ts b/packages/upgrade/src/dynamic/upgrade_adapter.ts index 8cc8e65c36..c27f21c5a9 100644 --- a/packages/upgrade/src/dynamic/upgrade_adapter.ts +++ b/packages/upgrade/src/dynamic/upgrade_adapter.ts @@ -96,7 +96,8 @@ let upgradeCount: number = 0; * * ``` * - * @stable + * @deprecated Deprecated since v5. Use `upgrade/static` instead, which also supports + * [Ahead-of-Time compilation](guide/aot-compiler). */ export class UpgradeAdapter { private idPrefix: string = `NG2_UPGRADE_${upgradeCount++}_`; @@ -634,7 +635,8 @@ class ParentInjectorPromise { /** * Use `UpgradeAdapterRef` to control a hybrid AngularJS / Angular application. * - * @stable + * @deprecated Deprecated since v5. Use `upgrade/static` instead, which also supports + * [Ahead-of-Time compilation](guide/aot-compiler). */ export class UpgradeAdapterRef { /* @internal */ diff --git a/tools/public_api_guard/upgrade/index.d.ts b/tools/public_api_guard/upgrade/index.d.ts index ce14d8a70a..2fd2391fd8 100644 --- a/tools/public_api_guard/upgrade/index.d.ts +++ b/tools/public_api_guard/upgrade/index.d.ts @@ -1,4 +1,4 @@ -/** @stable */ +/** @deprecated */ export declare class UpgradeAdapter { constructor(ng2AppModule: Type, compilerOptions?: CompilerOptions); bootstrap(element: Element, modules?: any[], config?: angular.IAngularBootstrapConfig): UpgradeAdapterRef; @@ -11,7 +11,7 @@ export declare class UpgradeAdapter { }): void; } -/** @stable */ +/** @deprecated */ export declare class UpgradeAdapterRef { ng1Injector: angular.IInjectorService; ng1RootScope: angular.IRootScopeService;