From 24c61cb63e1b3cb0ad3c031ab5eaa418cbec4bed Mon Sep 17 00:00:00 2001 From: Vani Date: Tue, 23 Apr 2019 10:01:59 -0700 Subject: [PATCH] docs: add redirect link to deprecation summary page (#29951) PR Close #29951 --- aio/firebase.json | 4 +++ aio/ngsw-config.json | 2 ++ .../deployment/shared/URLS_TO_REDIRECT.txt | 34 +++++++++---------- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/aio/firebase.json b/aio/firebase.json index 17de0fe137..3895955a58 100644 --- a/aio/firebase.json +++ b/aio/firebase.json @@ -54,6 +54,10 @@ {"type": 301, "source": "/**/api/common/SelectControlValueAccessor-*", "destination": "/api/forms/SelectControlValueAccessor"}, {"type": 301, "source": "/**/api/common/NgModel", "destination": "/api/forms/NgModel"}, + // APIs under `http` package is deprecated and new APIs are available under `common/http` package + {"type": 301, "source": "/api/http/:rest*", "destination": "/guide/deprecation#http"}, + {"type": 301, "source": "/api/http", "destination": "/guide/deprecation#http"}, + // Animations moves, renames and removals {"type": 301, "source": "/api/animate/:rest*", "destination": "/api/animations/:rest*"}, // AnimationStateDeclarationMetadata was removed diff --git a/aio/ngsw-config.json b/aio/ngsw-config.json index 4e482e7814..23fde6dc07 100644 --- a/aio/ngsw-config.json +++ b/aio/ngsw-config.json @@ -87,6 +87,8 @@ "!/api/common/Control*", "!/api/common/MaxLengthValidator*", "!/api/common/NgModel*", + "!/api/http/**", + "!/api/http", "!/api/platform-browser/AnimationDriver*", "!/api/testing/**", "!/docs/?*", diff --git a/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt b/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt index 5a0cf9d9c9..8c5b03140e 100644 --- a/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt +++ b/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt @@ -22,11 +22,11 @@ /api/core/testing/index/TestBed-class.html /api/core/testing/TestBed /api/core/testing/inject-function /api/core/testing/inject /api/core/testing/inject-function.html /api/core/testing/inject -/api/http/Headers-class /api/http/Headers -/api/http/Headers-class.html /api/http/Headers -/api/http/HTTP_PROVIDERS-let /api/http/HttpModule -/api/http/testing/index/MockBackend-class /api/http/testing/MockBackend -/api/http/testing/index/MockBackend-class.html /api/http/testing/MockBackend +/api/http/Headers-class /guide/deprecation#http +/api/http/Headers-class.html /guide/deprecation#http +/api/http/HTTP_PROVIDERS-let /guide/deprecation#http +/api/http/testing/index/MockBackend-class /guide/deprecation#http +/api/http/testing/index/MockBackend-class.html /guide/deprecation#http /api/platform-browser-dynamic/testing/index/platformBrowserDynamicTesting-let.html /api/platform-browser-dynamic/testing/platformBrowserDynamicTesting /api/platform-browser/AnimationDriver /api/animations/browser/AnimationDriver /api/router/Route-class /api/router/Route @@ -95,15 +95,15 @@ /docs/js/latest/api/forms/index/FormBuilder-class.html /api/forms/FormBuilder /docs/js/latest/api/forms/index/NG_VALIDATORS-let /api/forms/NG_VALIDATORS /docs/js/latest/api/forms/index/Validator-interface.html /api/forms/Validator -/docs/js/latest/api/http/ConnectionBackend-class /api/http/ConnectionBackend -/docs/js/latest/api/http/index/Http-class.html /api/http/Http -/docs/js/latest/api/http/index/Jsonp-class.html /api/http/Jsonp -/docs/js/latest/api/http/index/ResponseOptions-class.html /api/http/ResponseOptions -/docs/js/latest/api/http/index/URLSearchParams-class /api/http/URLSearchParams -/docs/js/latest/api/http/index/XHRConnection-class /api/http/XHRConnection -/docs/js/latest/api/http/index/XHRConnection-class.html /api/http/XHRConnection -/docs/js/latest/api/http/testing/index/MockConnection-class.html /api/http/testing/MockConnection -/docs/js/latest/api/http/testing/MockBackend-class /api/http/testing/MockBackend +/docs/js/latest/api/http/ConnectionBackend-class /guide/deprecation#http +/docs/js/latest/api/http/index/Http-class.html /guide/deprecation#http +/docs/js/latest/api/http/index/Jsonp-class.html /guide/deprecation#http +/docs/js/latest/api/http/index/ResponseOptions-class.html /guide/deprecation#http +/docs/js/latest/api/http/index/URLSearchParams-class /guide/deprecation#http +/docs/js/latest/api/http/index/XHRConnection-class /guide/deprecation#http +/docs/js/latest/api/http/index/XHRConnection-class.html /guide/deprecation#http +/docs/js/latest/api/http/testing/index/MockConnection-class.html /guide/deprecation#http +/docs/js/latest/api/http/testing/MockBackend-class /guide/deprecation#http /docs/js/latest/api/platform-browser-dynamic/index/platformBrowserDynamic-let.html /api/platform-browser-dynamic/platformBrowserDynamic /docs/js/latest/api/platform-browser-dynamic/testing/index/BrowserDynamicTestingModule-class.html /api/platform-browser-dynamic/testing/BrowserDynamicTestingModule /docs/js/latest/api/platform-browser/animations/index/BrowserAnimationsModule-class /api/platform-browser/animations/BrowserAnimationsModule @@ -165,9 +165,9 @@ /docs/ts/latest/api/core/testing/index/fakeAsync-function.html /api/core/testing/fakeAsync /docs/ts/latest/api/core/testing/index/TestComponentRenderer-class.html /api/core/testing/TestComponentRenderer /docs/ts/latest/api/core/testing/index/tick-function.html /api/core/testing/tick -/docs/ts/latest/api/http/Connection-class.html /api/http/Connection -/docs/ts/latest/api/http/testing/index/MockBackend-class.html /api/http/testing/MockBackend -/docs/ts/latest/api/http/testing/index/MockConnection-class.html /api/http/testing/MockConnection +/docs/ts/latest/api/http/Connection-class.html /guide/deprecation#http +/docs/ts/latest/api/http/testing/index/MockBackend-class.html /guide/deprecation#http +/docs/ts/latest/api/http/testing/index/MockConnection-class.html /guide/deprecation#http /docs/ts/latest/api/platform-browser-dynamic/index/workerAppDynamicPlatform-let.html /api/platform-browser-dynamic/workerAppDynamicPlatform /docs/ts/latest/api/testing/fakeAsync-function.html /api/core/testing/fakeAsync /docs/ts/latest/cookbook/ts-to-js.html https://v2.angular.io/docs/ts/latest/cookbook/ts-to-js.html