Skip to content

Commit 93c3d8f

Browse files
josephperrottalxhub
authored andcommitted
fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (angular#38846)
Remove @angular/platform-webworker and @angular/platform-webworker-dynamic as they were deprecated in v8 BREAKING CHANGE: @angular/platform-webworker and @angular/platform-webworker-dynamic have been removed as they were deprecated in v8 PR Close angular#38846
1 parent 1b70dc9 commit 93c3d8f

File tree

134 files changed

+12
-5787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+12
-5787
lines changed

.gitmessage

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ Fixes #<issue number>
105105
# │ │
106106
# │ └─⫸ Commit Scope: animations|bazel|benchpress|common|compiler|compiler-cli|core|
107107
# │ elements|forms|http|language-service|localize|platform-browser|
108-
# │ platform-browser-dynamic|platform-server|platform-webworker|
109-
# │ platform-webworker-dynamic|router|service-worker|upgrade|zone.js|
110-
# │ packaging|changelog|dev-infra|docs-infra|migrations|ngcc|ve
108+
# │ platform-browser-dynamic|platform-server|router|service-worker|
109+
# │ upgrade|zone.js|packaging|changelog|dev-infra|docs-infra|migrations|
110+
# │ ngcc|ve
111111
# │ https://github.com/angular/angular/blob/master/CONTRIBUTING.md#scope
112112
# │
113113
# └─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|style|test

.pullapprove.yml

-2
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,6 @@ groups:
303303
'packages/platform-browser/**',
304304
'packages/examples/platform-browser/**',
305305
'packages/platform-browser-dynamic/**',
306-
'packages/platform-webworker/**',
307-
'packages/platform-webworker-dynamic/**',
308306
'packages/examples/common/**',
309307
'packages/docs/**',
310308
'aio/content/guide/accessibility.md',

CONTRIBUTING.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ Any line of the commit message cannot be longer than 100 characters.
209209
│ │
210210
│ └─⫸ Commit Scope: animations|bazel|benchpress|common|compiler|compiler-cli|core|
211211
│ elements|forms|http|language-service|localize|platform-browser|
212-
│ platform-browser-dynamic|platform-server|platform-webworker|
213-
platform-webworker-dynamic|router|service-worker|upgrade|zone.js|
214-
packaging|changelog|dev-infra|docs-infra|migrations|ngcc|ve
212+
│ platform-browser-dynamic|platform-server|router|service-worker|
213+
│ upgrade|zone.js|packaging|changelog|dev-infra|docs-infra|migrations|
214+
│ ngcc|ve
215215
216216
└─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|style|test
217217
```
@@ -253,8 +253,6 @@ The following is the list of supported scopes:
253253
* `platform-browser`
254254
* `platform-browser-dynamic`
255255
* `platform-server`
256-
* `platform-webworker`
257-
* `platform-webworker-dynamic`
258256
* `router`
259257
* `service-worker`
260258
* `upgrade`

aio/content/guide/deprecations.md

-37
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ v9 - v12
4848
| `@angular/upgrade` | [`@angular/upgrade`](#upgrade) | <!--v8--> v11 |
4949
| `@angular/upgrade` | [`getAngularLib`](#upgrade-static) | <!--v8--> v11 |
5050
| `@angular/upgrade` | [`setAngularLib`](#upgrade-static) | <!--v8--> v11 |
51-
| `@angular/platform-webworker` | [All entry points](api/platform-webworker) | <!--v8--> v11 |
5251
| template syntax | [`<template`>](#template-tag) | <!--v7--> v11 |
5352
| polyfills | [reflect-metadata](#reflect-metadata) | <!--v8--> v11 |
5453
| npm package format | [`esm5` and `fesm5` entry-points in @angular/* npm packages](guide/deprecations#esm5-fesm5) | <!-- v9 --> v11 |
@@ -123,20 +122,6 @@ Tip: In the [API reference section](api) of this doc site, deprecated APIs are i
123122
| --- | ----------- | --------------------- | ----- |
124123
| [`preserveQueryParams`](api/router/UrlCreationOptions#preserveQueryParams) | [`queryParamsHandling`](api/router/UrlCreationOptions#queryParamsHandling) | v4 | none |
125124

126-
{@a platform-webworker}
127-
### @angular/platform-webworker
128-
129-
| API | Replacement | Deprecation announced | Notes |
130-
| --- | ----------- | --------------------- | ----- |
131-
| [All entry points](api/platform-webworker) | none | v8 | See [platform-webworker](#webworker-apps)|
132-
133-
{@a platform-webworker-dynamic}
134-
### @angular/platform-webworker-dynamic
135-
136-
| API | Replacement | Deprecation announced | Notes |
137-
| --- | ----------- | --------------------- | ----- |
138-
| [All entry points](api/platform-webworker-dynamic) | none | v8 | See [platform-webworker](#webworker-apps)|
139-
140125
{@a upgrade}
141126
### @angular/upgrade
142127

@@ -391,28 +376,6 @@ These two properties have subtle differences, so switching to `textContent` unde
391376

392377
All of the `wtf*` APIs are deprecated and will be removed in a future version.
393378

394-
{@a webworker-apps}
395-
### Running Angular applications in platform-webworker
396-
397-
The `@angular/platform-*` packages enable Angular to be run in different contexts. For examples,
398-
`@angular/platform-server` enables Angular to be run on the server, and `@angular/platform-browser`
399-
enables Angular to be run in a web browser.
400-
401-
`@angular/platform-webworker` was introduced in Angular version 2 as an experiment in leveraging
402-
Angular's rendering architecture to run an entire web application in a
403-
[web worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API). We've learned a lot
404-
from this experiment and have come to the conclusion that running the entire application in a web
405-
worker is not the best strategy for most applications.
406-
407-
Going forward, we will focus our efforts related to web workers around their primary use case of
408-
offloading CPU-intensive, non-critical work needed for initial rendering (such as in-memory search
409-
and image processing). Learn more in the
410-
[guide to Using Web Workers with the Angular CLI](guide/web-worker).
411-
412-
As of Angular version 8, all `platform-webworker` APIs are deprecated.
413-
This includes both packages: `@angular/platform-webworker` and
414-
`@angular/platform-webworker-dynamic`.
415-
416379
{@a entryComponents}
417380
### `entryComponents` and `ANALYZE_FOR_ENTRY_COMPONENTS` no longer required
418381
Previously, the `entryComponents` array in the `NgModule` definition was used to tell the compiler which components would be created and inserted dynamically. With Ivy, this isn't a requirement anymore and the `entryComponents` array can be removed from existing module declarations. The same applies to the `ANALYZE_FOR_ENTRY_COMPONENTS` injection token.

aio/tools/transforms/authors-package/api-package.js

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const packageMap = {
2020
'platform-browser': ['platform-browser/index.ts', 'platform-browser/animations/index.ts', 'platform-browser/testing/index.ts'],
2121
'platform-browser-dynamic': ['platform-browser-dynamic/index.ts', 'platform-browser-dynamic/testing/index.ts'],
2222
'platform-server': ['platform-server/index.ts', 'platform-server/testing/index.ts'],
23-
'platform-webworker': ['platform-webworker/index.ts'],
24-
'platform-webworker-dynamic': ['platform-webworker-dynamic/index.ts'],
2523
router: ['router/index.ts', 'router/testing/index.ts', 'router/upgrade/index.ts'],
2624
'service-worker': ['service-worker/index.ts'],
2725
upgrade: ['upgrade/index.ts', 'upgrade/static/index.ts', 'upgrade/static/testing/index.ts']

docs/PUBLIC_API.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ Our semver, timed-release cycle and deprecation policy currently applies to thes
1010
- `@angular/platform-browser`
1111
- `@angular/platform-browser-dynamic`
1212
- `@angular/platform-server`
13-
- `@angular/platform-webworker`
14-
- `@angular/platform-webworker-dynamic`
1513
- `@angular/upgrade`
1614
- `@angular/router`
1715
- `@angular/service-worker`
@@ -79,10 +77,10 @@ INFO: From Testing //packages/core:core_api:
7977
ngModule: Type<T>;
8078
providers?: Provider[];
8179
}
82-
80+
8381
-export declare type NgIterable<T> = Array<T> | Iterable<T>;
8482
+export declare type NgIterable<T> = Iterable<T>;
85-
83+
8684
export declare interface NgModule {
8785
bootstrap?: Array<Type<any> | any[]>;
8886
declarations?: Array<Type<any> | any[]>;

integration/angular_integration_test.bzl

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ GENERATED_NPM_PACKAGES = [
5050
"@angular/platform-browser",
5151
"@angular/platform-browser-dynamic",
5252
"@angular/platform-server",
53-
"@angular/platform-webworker",
54-
"@angular/platform-webworker-dynamic",
5553
"@angular/router",
5654
"@angular/service-worker",
5755
"@angular/upgrade",

integration/ng_update/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
1818
"@angular/platform-browser-dynamic": "file:../../dist/packages-dist/platform-browser-dynamic",
1919
"@angular/platform-server": "file:../../dist/packages-dist/platform-server",
20-
"@angular/platform-webworker": "file:../../dist/packages-dist/platform-webworker",
21-
"@angular/platform-webworker-dynamic": "file:../../dist/packages-dist/platform-webworker-dynamic",
2220
"@angular/router": "file:../../dist/packages-dist/router",
2321
"@angular/service-worker": "file:../../dist/packages-dist/service-worker",
2422
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",

integration/typings_test_ts39/include-all.ts

-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import * as platformBrowserAnimations from '@angular/platform-browser/animations
2828
import * as platformBrowserTesting from '@angular/platform-browser/testing';
2929
import * as platformServer from '@angular/platform-server';
3030
import * as platformServerTesting from '@angular/platform-server/testing';
31-
import * as platformWebworker from '@angular/platform-webworker';
32-
import * as platformWebworkerDynamic from '@angular/platform-webworker-dynamic';
3331
import * as router from '@angular/router';
3432
import * as routerTesting from '@angular/router/testing';
3533
import * as routerUpgrade from '@angular/router/upgrade';
@@ -59,8 +57,6 @@ export default {
5957
platformBrowserAnimations,
6058
platformServer,
6159
platformServerTesting,
62-
platformWebworker,
63-
platformWebworkerDynamic,
6460
router,
6561
routerTesting,
6662
routerUpgrade,

integration/typings_test_ts39/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
1515
"@angular/platform-browser-dynamic": "file:../../dist/packages-dist/platform-browser-dynamic",
1616
"@angular/platform-server": "file:../../dist/packages-dist/platform-server",
17-
"@angular/platform-webworker": "file:../../dist/packages-dist/platform-webworker",
18-
"@angular/platform-webworker-dynamic": "file:../../dist/packages-dist/platform-webworker-dynamic",
1917
"@angular/router": "file:../../dist/packages-dist/router",
2018
"@angular/service-worker": "file:../../dist/packages-dist/service-worker",
2119
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",

integration/typings_test_ts40/include-all.ts

-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import * as platformBrowserAnimations from '@angular/platform-browser/animations
2828
import * as platformBrowserTesting from '@angular/platform-browser/testing';
2929
import * as platformServer from '@angular/platform-server';
3030
import * as platformServerTesting from '@angular/platform-server/testing';
31-
import * as platformWebworker from '@angular/platform-webworker';
32-
import * as platformWebworkerDynamic from '@angular/platform-webworker-dynamic';
3331
import * as router from '@angular/router';
3432
import * as routerTesting from '@angular/router/testing';
3533
import * as routerUpgrade from '@angular/router/upgrade';
@@ -59,8 +57,6 @@ export default {
5957
platformBrowserAnimations,
6058
platformServer,
6159
platformServerTesting,
62-
platformWebworker,
63-
platformWebworkerDynamic,
6460
router,
6561
routerTesting,
6662
routerUpgrade,

integration/typings_test_ts40/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
1515
"@angular/platform-browser-dynamic": "file:../../dist/packages-dist/platform-browser-dynamic",
1616
"@angular/platform-server": "file:../../dist/packages-dist/platform-server",
17-
"@angular/platform-webworker": "file:../../dist/packages-dist/platform-webworker",
18-
"@angular/platform-webworker-dynamic": "file:../../dist/packages-dist/platform-webworker-dynamic",
1917
"@angular/router": "file:../../dist/packages-dist/router",
2018
"@angular/service-worker": "file:../../dist/packages-dist/service-worker",
2119
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",

modules/playground/e2e_test/web_workers/animations/BUILD.bazel

-7
This file was deleted.

modules/playground/e2e_test/web_workers/animations/animations_spec.ts

-79
This file was deleted.

modules/playground/e2e_test/web_workers/input/BUILD.bazel

-7
This file was deleted.

modules/playground/e2e_test/web_workers/input/input_spec.ts

-75
This file was deleted.

modules/playground/e2e_test/web_workers/kitchen_sink/BUILD.bazel

-7
This file was deleted.

0 commit comments

Comments
 (0)