Skip to content

Commit fe23ebc

Browse files
gkalpakSerginho
authored andcommitted
build(docs-infra): update Angular framework to version 12.2.8 (angular#43687)
This commit updates angular.io to the latest stable version of the Angular framework (v12.2.8). Among other benefits, this version also includes the ServiceWorker fix from angular#43518, which fixes angular#28114. NOTE: This commit also makes the necessary changes to more closely align angular.io with new apps created with the latest stable Angular CLI. Fixes angular#28114 PR Close angular#43687
1 parent e8dde5a commit fe23ebc

4 files changed

Lines changed: 718 additions & 477 deletions

File tree

‎aio/package.json‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,32 +87,32 @@
8787
},
8888
"private": true,
8989
"dependencies": {
90-
"@angular/animations": "12.1.1",
90+
"@angular/animations": "12.2.8",
9191
"@angular/cdk": "12.1.1",
92-
"@angular/common": "12.1.1",
93-
"@angular/compiler": "12.1.1",
94-
"@angular/core": "12.1.1",
95-
"@angular/elements": "12.1.1",
96-
"@angular/forms": "12.1.1",
92+
"@angular/common": "12.2.8",
93+
"@angular/compiler": "12.2.8",
94+
"@angular/core": "12.2.8",
95+
"@angular/elements": "12.2.8",
96+
"@angular/forms": "12.2.8",
9797
"@angular/material": "12.1.1",
98-
"@angular/platform-browser": "12.1.1",
99-
"@angular/platform-browser-dynamic": "12.1.1",
100-
"@angular/router": "12.1.1",
101-
"@angular/service-worker": "12.1.1",
98+
"@angular/platform-browser": "12.2.8",
99+
"@angular/platform-browser-dynamic": "12.2.8",
100+
"@angular/router": "12.2.8",
101+
"@angular/service-worker": "12.2.8",
102102
"@webcomponents/custom-elements": "1.4.3",
103103
"rxjs": "^6.6.7",
104104
"safevalues": "^0.1.8",
105-
"tslib": "^2.2.0",
105+
"tslib": "^2.3.0",
106106
"zone.js": "~0.11.4"
107107
},
108108
"devDependencies": {
109-
"@angular-devkit/build-angular": "12.1.1",
109+
"@angular-devkit/build-angular": "12.2.8",
110110
"@angular-eslint/builder": "12.2.2",
111111
"@angular-eslint/eslint-plugin": "12.2.2",
112112
"@angular-eslint/eslint-plugin-template": "12.2.2",
113113
"@angular-eslint/template-parser": "12.2.2",
114-
"@angular/cli": "12.1.1",
115-
"@angular/compiler-cli": "12.1.1",
114+
"@angular/cli": "12.2.8",
115+
"@angular/compiler-cli": "12.2.8",
116116
"@swc/cli": "^0.1.36",
117117
"@swc/core": "^1.2.51",
118118
"@types/jasmine": "~3.8.0",
@@ -160,7 +160,7 @@
160160
"karma-chrome-launcher": "~3.1.0",
161161
"karma-coverage": "~2.0.3",
162162
"karma-jasmine": "~4.0.0",
163-
"karma-jasmine-html-reporter": "^1.5.0",
163+
"karma-jasmine-html-reporter": "~1.7.0",
164164
"light-server": "^2.9.1",
165165
"lighthouse": "^8.1.0",
166166
"lighthouse-logger": "^1.2.0",
@@ -181,7 +181,7 @@
181181
"ts-node": "^10.0.0",
182182
"tsec": "^0.1.5",
183183
"tslint": "~6.1.3",
184-
"typescript": "~4.3.4",
184+
"typescript": "~4.3.5",
185185
"uglify-js": "^3.13.3",
186186
"unist-util-filter": "^2.0.3",
187187
"unist-util-source": "^3.0.0",

‎aio/src/test.ts‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,31 @@
33
import 'zone.js/testing';
44
import { getTestBed } from '@angular/core/testing';
55
import {
6-
BrowserDynamicTestingModule,
7-
platformBrowserDynamicTesting
6+
BrowserDynamicTestingModule,
7+
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

1010
// Needed for `assert` polyfill uses `process`.
1111
// See: https://github.com/browserify/commonjs-assert/blob/bba838e9ba9e28edf3127ce6974624208502f6bc/internal/assert/assertion_error.js#L138
1212
// The `assert` polyfill is needed because of `timezone-mock` which is a Node.JS library but in being used in Browser.
1313
(globalThis as any).process = {
14-
env: {},
14+
env: {},
1515
};
1616

17-
declare const require: any;
17+
declare const require: {
18+
context(path: string, deep?: boolean, filter?: RegExp): {
19+
keys(): string[];
20+
<T>(id: string): T;
21+
};
22+
};
1823

1924
// First, initialize the Angular testing environment.
2025
getTestBed().initTestEnvironment(
21-
BrowserDynamicTestingModule,
22-
platformBrowserDynamicTesting()
26+
BrowserDynamicTestingModule,
27+
platformBrowserDynamicTesting(),
28+
{ teardown: { destroyAfterEach: true }},
2329
);
30+
2431
// Then we find all the tests.
2532
const context = require.context('./', true, /\.spec\.ts$/);
2633
// And load the modules.

0 commit comments

Comments
 (0)