diff --git a/packages/http/src/backends/browser_xhr.ts b/packages/http/src/backends/browser_xhr.ts index 00ae0e60a0..d093413efa 100644 --- a/packages/http/src/backends/browser_xhr.ts +++ b/packages/http/src/backends/browser_xhr.ts @@ -14,6 +14,7 @@ import {Injectable} from '@angular/core'; * Take care not to evaluate this in non-browser contexts. * * @deprecated see https://angular.io/guide/http + * @publicApi */ @Injectable() export class BrowserXhr { diff --git a/packages/http/src/backends/jsonp_backend.ts b/packages/http/src/backends/jsonp_backend.ts index 85a015cb3d..00dcaa35e2 100644 --- a/packages/http/src/backends/jsonp_backend.ts +++ b/packages/http/src/backends/jsonp_backend.ts @@ -24,6 +24,7 @@ const JSONP_ERR_WRONG_METHOD = 'JSONP requests must use GET request method.'; * Base class for an in-flight JSONP request. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class JSONPConnection implements Connection { // TODO(issue/24571): remove '!'. @@ -140,6 +141,7 @@ export class JSONPConnection implements Connection { * A {@link ConnectionBackend} that uses the JSONP strategy of making requests. * * @deprecated see https://angular.io/guide/http + * @publicApi */ @Injectable() export class JSONPBackend extends ConnectionBackend { diff --git a/packages/http/src/backends/xhr_backend.ts b/packages/http/src/backends/xhr_backend.ts index bef00acec0..429b66978a 100644 --- a/packages/http/src/backends/xhr_backend.ts +++ b/packages/http/src/backends/xhr_backend.ts @@ -29,6 +29,7 @@ const XSSI_PREFIX = /^\)\]\}',?\n/; * the {@link MockConnection} may be interacted with in tests. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class XHRConnection implements Connection { request: Request; @@ -189,6 +190,7 @@ export class XHRConnection implements Connection { * details. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class CookieXSRFStrategy implements XSRFStrategy { constructor( @@ -228,6 +230,7 @@ export class CookieXSRFStrategy implements XSRFStrategy { * } * ``` * @deprecated see https://angular.io/guide/http + * @publicApi */ @Injectable() export class XHRBackend implements ConnectionBackend { diff --git a/packages/http/src/base_request_options.ts b/packages/http/src/base_request_options.ts index e0acd15062..beda7bba39 100644 --- a/packages/http/src/base_request_options.ts +++ b/packages/http/src/base_request_options.ts @@ -38,6 +38,7 @@ import {URLSearchParams} from './url_search_params'; * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class RequestOptions { /** @@ -201,6 +202,7 @@ export class RequestOptions { * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ @Injectable() export class BaseRequestOptions extends RequestOptions { diff --git a/packages/http/src/base_response_options.ts b/packages/http/src/base_response_options.ts index 992d960852..340c10de99 100644 --- a/packages/http/src/base_response_options.ts +++ b/packages/http/src/base_response_options.ts @@ -41,6 +41,7 @@ import {ResponseOptionsArgs} from './interfaces'; * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class ResponseOptions { // TODO: FormData | Blob @@ -160,6 +161,7 @@ export class ResponseOptions { * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ @Injectable() export class BaseResponseOptions extends ResponseOptions { diff --git a/packages/http/src/enums.ts b/packages/http/src/enums.ts index 4152cbe3a1..e8e745afa0 100644 --- a/packages/http/src/enums.ts +++ b/packages/http/src/enums.ts @@ -9,6 +9,7 @@ /** * Supported http methods. * @deprecated see https://angular.io/guide/http + * @publicApi */ export enum RequestMethod { Get, @@ -25,6 +26,7 @@ export enum RequestMethod { * [States](http://www.w3.org/TR/XMLHttpRequest/#states) from the `XMLHttpRequest` spec, but with an * additional "CANCELLED" state. * @deprecated see https://angular.io/guide/http + * @publicApi */ export enum ReadyState { Unsent, @@ -39,6 +41,7 @@ export enum ReadyState { * Acceptable response types to be associated with a {@link Response}, based on * [ResponseType](https://fetch.spec.whatwg.org/#responsetype) from the Fetch spec. * @deprecated see https://angular.io/guide/http + * @publicApi */ export enum ResponseType { Basic, @@ -65,6 +68,7 @@ export enum ContentType { /** * Define which buffer to use to store the response * @deprecated see https://angular.io/guide/http + * @publicApi */ export enum ResponseContentType { Text, diff --git a/packages/http/src/headers.ts b/packages/http/src/headers.ts index cd201a2a1a..ba2c4c2162 100644 --- a/packages/http/src/headers.ts +++ b/packages/http/src/headers.ts @@ -34,6 +34,7 @@ * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class Headers { /** @internal header names are lower case */ diff --git a/packages/http/src/http.ts b/packages/http/src/http.ts index 0fbd06c96b..907e5a8324 100644 --- a/packages/http/src/http.ts +++ b/packages/http/src/http.ts @@ -101,6 +101,7 @@ function mergeOptions( * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ @Injectable() export class Http { @@ -189,6 +190,7 @@ export class Http { /** * @deprecated see https://angular.io/guide/http + * @publicApi */ @Injectable() export class Jsonp extends Http { diff --git a/packages/http/src/http_module.ts b/packages/http/src/http_module.ts index 89c86e935d..fb8217c5c7 100644 --- a/packages/http/src/http_module.ts +++ b/packages/http/src/http_module.ts @@ -41,6 +41,7 @@ export function jsonpFactory(jsonpBackend: JSONPBackend, requestOptions: Request * The module that includes http's providers * * @deprecated see https://angular.io/guide/http + * @publicApi */ @NgModule({ providers: [ @@ -61,6 +62,7 @@ export class HttpModule { * The module that includes jsonp's providers * * @deprecated see https://angular.io/guide/http + * @publicApi */ @NgModule({ providers: [ diff --git a/packages/http/src/interfaces.ts b/packages/http/src/interfaces.ts index e8252f32da..2575449895 100644 --- a/packages/http/src/interfaces.ts +++ b/packages/http/src/interfaces.ts @@ -18,6 +18,7 @@ import {URLSearchParams} from './url_search_params'; * {@link Request}. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export abstract class ConnectionBackend { abstract createConnection(request: any): Connection; } @@ -25,6 +26,7 @@ export abstract class ConnectionBackend { abstract createConnection(request: any * Abstract class from which real connections are derived. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export abstract class Connection { // TODO(issue/24571): remove '!'. @@ -38,6 +40,7 @@ export abstract class Connection { * An XSRFStrategy configures XSRF protection (e.g. via headers) on an HTTP request. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export abstract class XSRFStrategy { abstract configureRequest(req: Request): void; } @@ -46,6 +49,7 @@ export abstract class XSRFStrategy { abstract configureRequest(req: Request): vo * [RequestInit](https://fetch.spec.whatwg.org/#requestinit) from the Fetch spec. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export interface RequestOptionsArgs { url?: string|null; @@ -69,6 +73,7 @@ export interface RequestArgs extends RequestOptionsArgs { url: string|null; } * [ResponseInit](https://fetch.spec.whatwg.org/#responseinit) from the Fetch spec. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export interface ResponseOptionsArgs { body?: string|Object|FormData|ArrayBuffer|Blob|null; diff --git a/packages/http/src/static_request.ts b/packages/http/src/static_request.ts index 524c2e64bf..f55fa8acd0 100644 --- a/packages/http/src/static_request.ts +++ b/packages/http/src/static_request.ts @@ -53,6 +53,7 @@ import {URLSearchParams} from './url_search_params'; * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class Request extends Body { /** diff --git a/packages/http/src/static_response.ts b/packages/http/src/static_response.ts index 9f268f4568..66b760186d 100644 --- a/packages/http/src/static_response.ts +++ b/packages/http/src/static_response.ts @@ -34,6 +34,7 @@ import {Headers} from './headers'; * most significant. * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class Response extends Body { /** diff --git a/packages/http/src/url_search_params.ts b/packages/http/src/url_search_params.ts index 3e27038e36..6d8e8cd70a 100644 --- a/packages/http/src/url_search_params.ts +++ b/packages/http/src/url_search_params.ts @@ -23,6 +23,7 @@ function paramParser(rawParams: string = ''): Map { } /** * @deprecated see https://angular.io/guide/http + * @publicApi **/ export class QueryEncoder { encodeKey(key: string): string { return standardEncoding(key); } @@ -77,6 +78,7 @@ function standardEncoding(v: string): string { * let params = new URLSearchParams('', new MyQueryEncoder()); * ``` * @deprecated see https://angular.io/guide/http + * @publicApi */ export class URLSearchParams { paramsMap: Map; diff --git a/packages/http/src/version.ts b/packages/http/src/version.ts index 8b6e32cb6f..a0a4ac7ebd 100644 --- a/packages/http/src/version.ts +++ b/packages/http/src/version.ts @@ -15,5 +15,6 @@ import {Version} from '@angular/core'; /** * @deprecated see https://angular.io/guide/http + * @publicApi */ export const VERSION = new Version('0.0.0-PLACEHOLDER'); diff --git a/packages/http/testing/src/mock_backend.ts b/packages/http/testing/src/mock_backend.ts index f62fbd5bed..5c8a5aeb88 100644 --- a/packages/http/testing/src/mock_backend.ts +++ b/packages/http/testing/src/mock_backend.ts @@ -37,6 +37,7 @@ import {take} from 'rxjs/operators'; * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ export class MockConnection implements Connection { // TODO: Name `readyState` should change to be more generic, and states could be made to be more @@ -190,6 +191,7 @@ export class MockConnection implements Connection { * ``` * * @deprecated see https://angular.io/guide/http + * @publicApi */ @Injectable() export class MockBackend implements ConnectionBackend {