docs(platform-webworker): mark all public APIs as deprecated (#33824)
In ccc76f749
, `@angular/platform-webworker` and
`@angular/platform-webworker-dynamic` were deprecated (i.e. by
deprecating all their public APIs). However, some public
`@angular/platform-webworker` APIs were accidentally missed,
additionally resulting in the package itself not showing up as
deprecated on angular.io.
This commit fixes it by marking those remaining public APIs as
deprecated.
PR Close #33824
This commit is contained in:
parent
592fd37b3e
commit
a67cb92e6b
|
@ -144,6 +144,7 @@ interface ResponseMessageData {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @publicApi
|
* @publicApi
|
||||||
|
* @deprecated platform-webworker is deprecated in Angular and will be removed in version 10
|
||||||
*/
|
*/
|
||||||
export class FnArg {
|
export class FnArg {
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -152,6 +153,7 @@ export class FnArg {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @publicApi
|
* @publicApi
|
||||||
|
* @deprecated platform-webworker is deprecated in Angular and will be removed in version 10
|
||||||
*/
|
*/
|
||||||
export class UiArguments {
|
export class UiArguments {
|
||||||
constructor(public method: string, public args?: FnArg[]) {}
|
constructor(public method: string, public args?: FnArg[]) {}
|
||||||
|
|
|
@ -53,6 +53,7 @@ export abstract class MessageBus implements MessageBusSource, MessageBusSink {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @publicApi
|
* @publicApi
|
||||||
|
* @deprecated platform-webworker is deprecated in Angular and will be removed in version 10
|
||||||
*/
|
*/
|
||||||
export interface MessageBusSource {
|
export interface MessageBusSource {
|
||||||
/**
|
/**
|
||||||
|
@ -79,6 +80,7 @@ export interface MessageBusSource {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @publicApi
|
* @publicApi
|
||||||
|
* @deprecated platform-webworker is deprecated in Angular and will be removed in version 10
|
||||||
*/
|
*/
|
||||||
export interface MessageBusSink {
|
export interface MessageBusSink {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -150,6 +150,7 @@ function initWebWorkerRenderPlatform(injector: Injector): () => void {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @publicApi
|
* @publicApi
|
||||||
|
* @deprecated platform-webworker is deprecated in Angular and will be removed in version 10
|
||||||
*/
|
*/
|
||||||
export const platformWorkerUi =
|
export const platformWorkerUi =
|
||||||
createPlatformFactory(platformCore, 'workerUi', _WORKER_UI_PLATFORM_PROVIDERS);
|
createPlatformFactory(platformCore, 'workerUi', _WORKER_UI_PLATFORM_PROVIDERS);
|
||||||
|
|
|
@ -11,6 +11,7 @@ export declare class ClientMessageBrokerFactory {
|
||||||
createMessageBroker(channel: string, runInZone?: boolean): ClientMessageBroker;
|
createMessageBroker(channel: string, runInZone?: boolean): ClientMessageBroker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export declare class FnArg {
|
export declare class FnArg {
|
||||||
type: Type<any> | SerializerTypes;
|
type: Type<any> | SerializerTypes;
|
||||||
value: any;
|
value: any;
|
||||||
|
@ -25,12 +26,14 @@ export declare abstract class MessageBus implements MessageBusSource, MessageBus
|
||||||
abstract to(channel: string): EventEmitter<any>;
|
abstract to(channel: string): EventEmitter<any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export interface MessageBusSink {
|
export interface MessageBusSink {
|
||||||
attachToZone(zone: NgZone): void;
|
attachToZone(zone: NgZone): void;
|
||||||
initChannel(channel: string, runInZone: boolean): void;
|
initChannel(channel: string, runInZone: boolean): void;
|
||||||
to(channel: string): EventEmitter<any>;
|
to(channel: string): EventEmitter<any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export interface MessageBusSource {
|
export interface MessageBusSource {
|
||||||
attachToZone(zone: NgZone): void;
|
attachToZone(zone: NgZone): void;
|
||||||
from(channel: string): EventEmitter<any>;
|
from(channel: string): EventEmitter<any>;
|
||||||
|
@ -40,6 +43,7 @@ export interface MessageBusSource {
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
export declare const platformWorkerApp: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
export declare const platformWorkerApp: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export declare const platformWorkerUi: (extraProviders?: StaticProvider[] | undefined) => import("@angular/core").PlatformRef;
|
export declare const platformWorkerUi: (extraProviders?: StaticProvider[] | undefined) => import("@angular/core").PlatformRef;
|
||||||
|
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
|
@ -67,6 +71,7 @@ export declare class ServiceMessageBrokerFactory {
|
||||||
createMessageBroker(channel: string, runInZone?: boolean): ServiceMessageBroker;
|
createMessageBroker(channel: string, runInZone?: boolean): ServiceMessageBroker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export declare class UiArguments {
|
export declare class UiArguments {
|
||||||
args?: FnArg[] | undefined;
|
args?: FnArg[] | undefined;
|
||||||
method: string;
|
method: string;
|
||||||
|
|
Loading…
Reference in New Issue