build(docs-infra): update angular packages to 12.0.0-rc.0 (#41764)

Update Angular packages to `12.0.0-rc.0`

PR Close #41764
This commit is contained in:
Alan Agius 2021-04-22 11:03:49 +02:00 committed by Jessica Janiuk
parent 754e5ba839
commit 17ffb7480f
5 changed files with 1523 additions and 2139 deletions

View File

@ -31,15 +31,9 @@
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"webWorkerTsConfig": "tsconfig.worker.json", "webWorkerTsConfig": "tsconfig.worker.json",
"aot": true,
"optimization": true,
"buildOptimizer": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": true, "sourceMap": true,
"statsJson": true,
"extractLicenses": true,
"namedChunks": true, "namedChunks": true,
"vendorChunk": false,
"assets": [ "assets": [
"src/assets", "src/assets",
"src/generated", "src/generated",
@ -59,6 +53,7 @@
}, },
"configurations": { "configurations": {
"fast": { "fast": {
"buildOptimizer": false,
"optimization": false "optimization": false
}, },
"next": { "next": {

View File

@ -85,27 +85,27 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "11.2.10", "@angular/animations": "12.0.0-rc.0",
"@angular/cdk": "11.2.9", "@angular/cdk": "12.0.0-rc.0",
"@angular/common": "11.2.10", "@angular/common": "12.0.0-rc.0",
"@angular/compiler": "11.2.10", "@angular/compiler": "12.0.0-rc.0",
"@angular/core": "11.2.10", "@angular/core": "12.0.0-rc.0",
"@angular/elements": "11.2.10", "@angular/elements": "12.0.0-rc.0",
"@angular/forms": "11.2.10", "@angular/forms": "12.0.0-rc.0",
"@angular/material": "11.2.9", "@angular/material": "12.0.0-rc.0",
"@angular/platform-browser": "11.2.10", "@angular/platform-browser": "12.0.0-rc.0",
"@angular/platform-browser-dynamic": "11.2.10", "@angular/platform-browser-dynamic": "12.0.0-rc.0",
"@angular/router": "11.2.10", "@angular/router": "12.0.0-rc.0",
"@angular/service-worker": "11.2.10", "@angular/service-worker": "12.0.0-rc.0",
"@webcomponents/custom-elements": "1.4.3", "@webcomponents/custom-elements": "1.4.3",
"rxjs": "^6.6.7", "rxjs": "^6.6.7",
"tslib": "^2.1.0", "tslib": "^2.1.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "0.1102.9", "@angular-devkit/build-angular": "12.0.0-rc.0",
"@angular/cli": "11.2.9", "@angular/cli": "12.0.0-rc.0",
"@angular/compiler-cli": "11.2.10", "@angular/compiler-cli": "12.0.0-rc.0",
"@swc/cli": "^0.1.36", "@swc/cli": "^0.1.36",
"@swc/core": "^1.2.51", "@swc/core": "^1.2.51",
"@types/jasmine": "~3.6.9", "@types/jasmine": "~3.6.9",
@ -176,10 +176,5 @@
"watchr": "^6.9.0", "watchr": "^6.9.0",
"xregexp": "^5.0.2", "xregexp": "^5.0.2",
"yargs": "^16.2.0" "yargs": "^16.2.0"
},
"// 1": "Needed until AIO moves to CLI version 12.",
"// 2": "Due to https://github.com/GoogleChromeLabs/worker-plugin/blob/049c3caea9f1fa00983c139480adf06ee24ce5d5/src/index.js#L20-L27 ",
"resolutions": {
"worker-plugin": "4.0.3"
} }
} }

View File

@ -27,7 +27,8 @@ export class SearchService {
.pipe( .pipe(
concatMap(() => { concatMap(() => {
// Create the worker and load the index // Create the worker and load the index
const worker = new Worker('./search.worker', { type: 'module' }); // tslint:disable-next-line: whitespace
const worker = new Worker(new URL('./search.worker', import.meta.url), { type: 'module' });
this.worker = WebWorkerClient.create(worker, this.zone); this.worker = WebWorkerClient.create(worker, this.zone);
return this.worker.sendMessage<boolean>('load-index'); return this.worker.sendMessage<boolean>('load-index');
}), }),

File diff suppressed because it is too large Load Diff

View File

@ -2,18 +2,18 @@
"aio": { "aio": {
"master": { "master": {
"uncompressed": { "uncompressed": {
"runtime-es2015": 3033, "runtime-es2015": 4444,
"main-es2015": 451829, "main-es2015": 451200,
"polyfills-es2015": 55230 "polyfills-es2015": 55283
} }
} }
}, },
"aio-local": { "aio-local": {
"master": { "master": {
"uncompressed": { "uncompressed": {
"runtime-es2015": 3033, "runtime-es2015": 4444,
"main-es2015": 453725, "main-es2015": 451200,
"polyfills-es2015": 55230 "polyfills-es2015": 55283
} }
} }
} }