Skip to content

Commit

Permalink
refactor(platform-webworker): remove deprecated PRIMITIVE (#18761)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `PRIMITIVE` has been removed as it was deprecated since v4. Use `SerializerTypes.PRIMITIVE` instead.

PR Close #18761
  • Loading branch information
ocombe authored and mhevery committed Aug 17, 2017
1 parent d7f42bf commit a56468c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion packages/platform-webworker/src/platform-webworker.ts
Expand Up @@ -13,7 +13,7 @@ import {WORKER_SCRIPT, platformWorkerUi} from './worker_render';
export {VERSION} from './version';
export {ClientMessageBroker, ClientMessageBrokerFactory, FnArg, UiArguments} from './web_workers/shared/client_message_broker';
export {MessageBus, MessageBusSink, MessageBusSource} from './web_workers/shared/message_bus';
export {PRIMITIVE, SerializerTypes} from './web_workers/shared/serializer';
export {SerializerTypes} from './web_workers/shared/serializer';
export {ReceivedMessage, ServiceMessageBroker, ServiceMessageBrokerFactory} from './web_workers/shared/service_message_broker';
export {WORKER_UI_LOCATION_PROVIDERS} from './web_workers/ui/location_providers';
export {WORKER_APP_LOCATION_PROVIDERS} from './web_workers/worker/location_providers';
Expand Down
Expand Up @@ -22,14 +22,6 @@ export const enum SerializerTypes {
RENDER_STORE_OBJECT,
}

/**
* Any type that does not need to be serialized (string, number, boolean)
*
* @experimental WebWorker support in Angular is currently experimental.
* @deprecated in v4. Use SerializerTypes.PRIMITIVE instead
*/
export const PRIMITIVE = SerializerTypes.PRIMITIVE;

export class LocationType {
constructor(
public href: string, public protocol: string, public host: string, public hostname: string,
Expand Down
Expand Up @@ -46,9 +46,6 @@ export declare const platformWorkerApp: (extraProviders?: StaticProvider[] | und
/** @experimental */
export declare const platformWorkerUi: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;

/** @experimental */
export declare const PRIMITIVE: SerializerTypes;

/** @experimental */
export interface ReceivedMessage {
args: any[];
Expand Down

0 comments on commit a56468c

Please sign in to comment.