diff --git a/aio/.browserslistrc b/aio/.browserslistrc index 929b6eee65e7a7..891b81b3fc3589 100644 --- a/aio/.browserslistrc +++ b/aio/.browserslistrc @@ -9,4 +9,3 @@ last 2 major versions Firefox ESR not dead -IE 11 diff --git a/aio/ngsw-config.template.json b/aio/ngsw-config.template.json index 0f51066781b6af..a1a86b4769dc17 100644 --- a/aio/ngsw-config.template.json +++ b/aio/ngsw-config.template.json @@ -14,7 +14,6 @@ "/assets/js/*.js", "/*.css", "/*.js", - "!/*-es5*.js" ], "urls": [ "https://fonts.googleapis.com/**", @@ -42,8 +41,6 @@ "resources": { "files": [ "/assets/images/favicons/**", - "/generated/js/custom-elements-es5-polyfills.js", - "/*-es5*.js", "!/**/_unused/**" ] } diff --git a/aio/package.json b/aio/package.json index 287091b203d8c0..dc23535aaf4211 100644 --- a/aio/package.json +++ b/aio/package.json @@ -72,11 +72,9 @@ "~~audit-web-app": "node scripts/audit-web-app", "~~check-env": "node scripts/check-environment", "~~clean-generated": "node --eval \"require('shelljs').rm('-rf', 'src/generated')\"", - "pre~~build": "yarn ~~build-ce-es5-polyfills && yarn ~~build-ngsw-config", + "pre~~build": "node scripts/build-ngsw-config", "~~build": "ng build --configuration=stable", "post~~build": "yarn build-404-page", - "~~build-ce-es5-polyfills": "esbuild src/custom-elements-es5-polyfills.js --bundle --minify | swc --config=minify=true --filename=custom-elements-es5-polyfills.js --out-file=src/generated/js/custom-elements-es5-polyfills.js --no-swcrc", - "~~build-ngsw-config": "node scripts/build-ngsw-config", "~~light-server": "light-server --bind=localhost --historyindex=/index.html --no-reload" }, "//engines-comment": "Keep this in sync with /package.json and /aio/tools/examples/shared/package.json", @@ -87,20 +85,20 @@ }, "private": true, "dependencies": { - "@angular/animations": "13.0.0-next.7", + "@angular/animations": "13.0.0-next.9", "@angular/cdk": "12.1.1", - "@angular/common": "13.0.0-next.7", - "@angular/compiler": "13.0.0-next.7", - "@angular/core": "13.0.0-next.7", - "@angular/elements": "13.0.0-next.7", - "@angular/forms": "13.0.0-next.7", + "@angular/common": "13.0.0-next.9", + "@angular/compiler": "13.0.0-next.9", + "@angular/core": "13.0.0-next.9", + "@angular/elements": "13.0.0-next.9", + "@angular/forms": "13.0.0-next.9", "@angular/material": "12.1.1", - "@angular/platform-browser": "13.0.0-next.7", - "@angular/platform-browser-dynamic": "13.0.0-next.7", - "@angular/router": "13.0.0-next.7", - "@angular/service-worker": "13.0.0-next.7", + "@angular/platform-browser": "13.0.0-next.9", + "@angular/platform-browser-dynamic": "13.0.0-next.9", + "@angular/router": "13.0.0-next.9", + "@angular/service-worker": "13.0.0-next.9", "@webcomponents/custom-elements": "1.5.0", - "rxjs": "^6.6.7", + "rxjs": "~7.3.0", "safevalues": "^0.1.8", "tslib": "^2.3.0", "zone.js": "~0.11.4" @@ -112,9 +110,7 @@ "@angular-eslint/eslint-plugin-template": "^12.5.0", "@angular-eslint/template-parser": "^12.5.0", "@angular/cli": "13.0.0-next.7", - "@angular/compiler-cli": "13.0.0-next.7", - "@swc/cli": "^0.1.36", - "@swc/core": "^1.2.51", + "@angular/compiler-cli": "13.0.0-next.9", "@types/jasmine": "~3.9.0", "@types/lunr": "^2.3.3", "@types/node": "^12.7.9", @@ -135,7 +131,6 @@ "dgeni": "^0.4.14", "dgeni-packages": "^0.29.2", "entities": "^3.0.0", - "esbuild": "^0.13.0", "eslint": "^7.26.0", "eslint-plugin-import": "^2.23.4", "eslint-plugin-jasmine": "^4.1.2", @@ -160,7 +155,7 @@ "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", - "karma-jasmine-html-reporter": "^1.5.0", + "karma-jasmine-html-reporter": "~1.7.0", "light-server": "^2.9.1", "lighthouse": "^8.1.0", "lighthouse-logger": "^1.2.0", @@ -181,7 +176,7 @@ "ts-node": "^10.0.0", "tsec": "^0.1.5", "tslint": "~6.1.3", - "typescript": "~4.4.2", + "typescript": "~4.4.3", "uglify-js": "^3.13.3", "unist-util-filter": "^2.0.3", "unist-util-source": "^3.0.0", diff --git a/aio/src/app/shared/custom-icon-registry.ts b/aio/src/app/shared/custom-icon-registry.ts index d28af196b29eb5..c7cddbaec7c246 100644 --- a/aio/src/app/shared/custom-icon-registry.ts +++ b/aio/src/app/shared/custom-icon-registry.ts @@ -47,7 +47,7 @@ export class CustomIconRegistry extends MatIconRegistry { super(http, sanitizer, document, errorHandler); } - getNamedSvgIcon(iconName: string, namespace?: string) { + override getNamedSvgIcon(iconName: string, namespace?: string) { const nsIconMap = this.cachedSvgElements[namespace || DEFAULT_NS]; let preloadedElement: SVGElement | undefined = nsIconMap && nsIconMap[iconName]; if (!preloadedElement) { diff --git a/aio/src/app/shared/reporting-error-handler.ts b/aio/src/app/shared/reporting-error-handler.ts index 941c7d21cc3d4c..08941e924487d9 100644 --- a/aio/src/app/shared/reporting-error-handler.ts +++ b/aio/src/app/shared/reporting-error-handler.ts @@ -18,7 +18,7 @@ export class ReportingErrorHandler extends ErrorHandler { * * @param error Information about the error. */ - handleError(error: any) { + override handleError(error: any) { const versionedError = this.prefixErrorWithVersion(error); try { diff --git a/aio/src/custom-elements-es5-polyfills.js b/aio/src/custom-elements-es5-polyfills.js deleted file mode 100644 index ed34c2c8aef476..00000000000000 --- a/aio/src/custom-elements-es5-polyfills.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Custom Elements polyfills for browsers that natively support Custom Elements but not ES2015 - * modules. - * - * NOTE: - * Chrome, Firefox and Safari should not need these, because they added support for ES2015 modules - * before Custom Elements. It is still required for some other (less common) browsers: - * - UC browser for android 11.8 (~3.5% global usage) - * - Samsung browser 5.0-8.1 (~0.43% global usage) - * - Opera 41-47 (~0.02% global usage) - */ -// @ts-nocheck - -require('core-js/modules/es.reflect.construct'); // Required by `native-shim.js`. -require('@webcomponents/custom-elements/src/native-shim'); diff --git a/aio/src/index.html b/aio/src/index.html index c662a01ae2d99e..6411ef8af37987 100644 --- a/aio/src/index.html +++ b/aio/src/index.html @@ -118,18 +118,6 @@