Skip to content

Commit 3b0de30

Browse files
alan-agius4pkozlowski-opensource
authored andcommitted
refactor(common): remove deprecated isPlatformWorkerApp and isPlatformWorkerUi API (#55302)
BREAKING CHANGE: The deprecated `isPlatformWorkerUi` and `isPlatformWorkerApp` have been removed without replacement, as they serve no purpose since the removal of the WebWorker platform. PR Close #55302
1 parent 5f85972 commit 3b0de30

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

goldens/public-api/common/index.md

-6
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,6 @@ export function isPlatformBrowser(platformId: Object): boolean;
345345
// @public
346346
export function isPlatformServer(platformId: Object): boolean;
347347

348-
// @public @deprecated
349-
export function isPlatformWorkerApp(platformId: Object): boolean;
350-
351-
// @public @deprecated
352-
export function isPlatformWorkerUi(platformId: Object): boolean;
353-
354348
// @public
355349
export class JsonPipe implements PipeTransform {
356350
// (undocumented)

packages/common/src/common.ts

-4
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,8 @@ export {
8989
export {
9090
PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID,
9191
PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID,
92-
PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID,
93-
PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID,
9492
isPlatformBrowser,
9593
isPlatformServer,
96-
isPlatformWorkerApp,
97-
isPlatformWorkerUi,
9894
} from './platform_id';
9995
export {VERSION} from './version';
10096
export {ViewportScroller, NullViewportScroller as ɵNullViewportScroller} from './viewport_scroller';

packages/common/src/platform_id.ts

-22
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
export const PLATFORM_BROWSER_ID = 'browser';
1010
export const PLATFORM_SERVER_ID = 'server';
11-
export const PLATFORM_WORKER_APP_ID = 'browserWorkerApp';
12-
export const PLATFORM_WORKER_UI_ID = 'browserWorkerUi';
1311

1412
/**
1513
* Returns whether a platform id represents a browser platform.
@@ -26,23 +24,3 @@ export function isPlatformBrowser(platformId: Object): boolean {
2624
export function isPlatformServer(platformId: Object): boolean {
2725
return platformId === PLATFORM_SERVER_ID;
2826
}
29-
30-
/**
31-
* Returns whether a platform id represents a web worker app platform.
32-
* @publicApi
33-
* @deprecated This function serves no purpose since the removal of the Webworker platform. It will
34-
* always return `false`.
35-
*/
36-
export function isPlatformWorkerApp(platformId: Object): boolean {
37-
return platformId === PLATFORM_WORKER_APP_ID;
38-
}
39-
40-
/**
41-
* Returns whether a platform id represents a web worker UI platform.
42-
* @publicApi
43-
* @deprecated This function serves no purpose since the removal of the Webworker platform. It will
44-
* always return `false`.
45-
*/
46-
export function isPlatformWorkerUi(platformId: Object): boolean {
47-
return platformId === PLATFORM_WORKER_UI_ID;
48-
}

0 commit comments

Comments
 (0)