Skip to content

Commit 95ec091

Browse files
devversionamysorto
authored andcommitted
build: cleanup lock file and fix caniuse babel deprecation warning
Cleans up the lock file (aka lock file maintenance). This helps reducing dependencies for development and ensures we stay up-to-date. Additionally this fixes a deprecation warning from `@babel/core` that shows up when building `tools/angular/...`.
1 parent 1933225 commit 95ec091

File tree

4 files changed

+1594
-3142
lines changed

4 files changed

+1594
-3142
lines changed

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ http_archive(
1616
# Add sass rules
1717
http_archive(
1818
name = "io_bazel_rules_sass",
19-
sha256 = "435efe759f1c8baffadc320ecc1830454da181fa790aa83bb4326f07e903a0f4",
20-
strip_prefix = "rules_sass-1.41.0",
19+
sha256 = "903858e0fb5eda0b36d37e1ce4cbcfbe03f65a5f153d894dc8a9894a4884e564",
20+
strip_prefix = "rules_sass-1.49.0",
2121
urls = [
22-
"https://github.com/bazelbuild/rules_sass/archive/1.41.0.zip",
22+
"https://github.com/bazelbuild/rules_sass/archive/1.49.0.zip",
2323
],
2424
)
2525

package.json

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
"@angular/core": "13.2.0-rc.1",
5959
"@angular/forms": "13.2.0-rc.1",
6060
"@angular/platform-browser": "13.2.0-rc.1",
61-
"@types/google.maps": "^3.45.6",
62-
"@types/youtube": "^0.0.42",
63-
"core-js-bundle": "^3.8.2",
61+
"@types/google.maps": "^3.47.3",
62+
"@types/youtube": "^0.0.46",
63+
"core-js-bundle": "^3.20.3",
6464
"material-components-web": "14.0.0-canary.c047f7c19.0",
6565
"rxjs": "^6.6.7",
66-
"rxjs-tslint-rules": "^4.33.1",
67-
"tslib": "^2.3.0",
68-
"zone.js": "~0.11.3"
66+
"rxjs-tslint-rules": "^4.34.8",
67+
"tslib": "^2.3.1",
68+
"zone.js": "~0.11.4"
6969
},
7070
"devDependencies": {
7171
"@angular-devkit/build-angular": "13.2.0-rc.1",
@@ -79,10 +79,10 @@
7979
"@angular/platform-browser-dynamic": "13.2.0-rc.1",
8080
"@angular/platform-server": "13.2.0-rc.1",
8181
"@angular/router": "13.2.0-rc.1",
82-
"@axe-core/webdriverjs": "^4.1.0",
83-
"@babel/core": "^7.16.0",
84-
"@bazel/bazelisk": "1.10.1",
85-
"@bazel/buildifier": "4.2.3",
82+
"@axe-core/webdriverjs": "^4.3.2",
83+
"@babel/core": "^7.16.12",
84+
"@bazel/bazelisk": "1.11.0",
85+
"@bazel/buildifier": "4.2.5",
8686
"@bazel/concatjs": "4.4.5",
8787
"@bazel/esbuild": "4.4.5",
8888
"@bazel/ibazel": "0.15.10",
@@ -92,7 +92,7 @@
9292
"@bazel/runfiles": "4.4.5",
9393
"@bazel/terser": "4.4.5",
9494
"@bazel/typescript": "4.4.5",
95-
"@firebase/app-types": "^0.6.1",
95+
"@firebase/app-types": "^0.7.0",
9696
"@material/animation": "14.0.0-canary.c047f7c19.0",
9797
"@material/auto-init": "14.0.0-canary.c047f7c19.0",
9898
"@material/banner": "14.0.0-canary.c047f7c19.0",
@@ -142,45 +142,45 @@
142142
"@material/typography": "14.0.0-canary.c047f7c19.0",
143143
"@octokit/rest": "18.3.5",
144144
"@rollup/plugin-commonjs": "^21.0.0",
145-
"@rollup/plugin-node-resolve": "^13.0.5",
145+
"@rollup/plugin-node-resolve": "^13.1.3",
146146
"@schematics/angular": "13.2.0-rc.1",
147-
"@types/babel__core": "^7.1.16",
148-
"@types/browser-sync": "^2.26.1",
149-
"@types/fs-extra": "^9.0.5",
150-
"@types/glob": "^7.1.3",
147+
"@types/babel__core": "^7.1.18",
148+
"@types/browser-sync": "^2.26.3",
149+
"@types/fs-extra": "^9.0.13",
150+
"@types/glob": "^7.2.0",
151151
"@types/inquirer": "^7.3.1",
152-
"@types/jasmine": "^3.6.0",
152+
"@types/jasmine": "^3.10.3",
153153
"@types/luxon": "^1.27.0",
154154
"@types/marked": "^2.0.0",
155-
"@types/node": "^14.14.22",
155+
"@types/node": "^16.10.9",
156156
"@types/node-fetch": "^2.5.5",
157-
"@types/parse5": "^6.0.0",
157+
"@types/parse5": "^6.0.3",
158158
"@types/sass": "^1.43.1",
159159
"@types/selenium-webdriver": "^3.0.17",
160-
"@types/semver": "^7.3.4",
161-
"@types/send": "^0.14.5",
162-
"@types/shelljs": "^0.8.9",
160+
"@types/semver": "^7.3.9",
161+
"@types/send": "^0.17.1",
162+
"@types/shelljs": "^0.8.11",
163163
"@types/yaml": "^1.9.7",
164164
"@types/yargs": "^17.0.8",
165-
"autoprefixer": "^10.2.5",
165+
"autoprefixer": "^10.4.2",
166166
"browser-sync": "2.26.13",
167167
"chalk": "^4.1.0",
168168
"codelyzer": "^6.0.2",
169-
"date-fns": "^2.23.0",
170-
"dgeni": "^0.4.11",
171-
"dgeni-packages": "^0.28.4",
172-
"esbuild": "^0.13.3",
169+
"date-fns": "^2.28.0",
170+
"dgeni": "^0.4.14",
171+
"dgeni-packages": "^0.29.3",
172+
"esbuild": "^0.14.14",
173173
"firebase-tools": "^9.2.1",
174174
"fs-extra": "^9.0.1",
175-
"glob": "^7.1.2",
175+
"glob": "^7.2.0",
176176
"highlight.js": "^10.7.0",
177-
"husky": "^7.0.1",
178-
"inquirer": "^8.0.0",
177+
"husky": "^7.0.4",
178+
"inquirer": "^8.2.0",
179179
"jasmine": "^3.6.0",
180180
"jasmine-core": "^3.6.0",
181181
"jsonc-parser": "^3.0.0",
182182
"kagekiri": "^1.4.1",
183-
"karma": "^6.3.8",
183+
"karma": "^6.3.12",
184184
"karma-browserstack-launcher": "^1.6.0",
185185
"karma-chrome-launcher": "^3.1.0",
186186
"karma-firefox-launcher": "^2.1.2",
@@ -189,37 +189,37 @@
189189
"karma-requirejs": "^1.1.0",
190190
"karma-sauce-launcher": "^4.3.6",
191191
"karma-sourcemap-loader": "^0.3.8",
192-
"luxon": "^2.0.0",
192+
"luxon": "^2.3.0",
193193
"madge": "^4.0.0",
194194
"marked": "^2.0.0",
195195
"minimatch": "^3.0.4",
196-
"moment": "^2.18.1",
196+
"moment": "^2.29.1",
197197
"node-fetch": "^2.6.0",
198198
"parse5": "^6.0.1",
199-
"postcss": "^8.2.1",
200-
"postcss-scss": "^4.0.2",
199+
"postcss": "^8.4.5",
200+
"postcss-scss": "^4.0.3",
201201
"protractor": "^7.0.0",
202-
"reflect-metadata": "^0.1.3",
202+
"reflect-metadata": "^0.1.13",
203203
"requirejs": "^2.3.6",
204-
"rollup": "^2.58.0",
204+
"rollup": "^2.66.1",
205205
"rollup-plugin-sourcemaps": "^0.6.3",
206-
"sass": "^1.47.0",
206+
"sass": "^1.49.0",
207207
"selenium-webdriver": "^3.6.0",
208-
"semver": "^7.3.4",
209-
"send": "^0.17.1",
208+
"semver": "^7.3.5",
209+
"send": "^0.17.2",
210210
"shelljs": "^0.8.5",
211-
"stylelint": "^14.0.1",
212-
"terser": "^5.9.0",
213-
"ts-node": "^10.2.1",
211+
"stylelint": "^14.3.0",
212+
"terser": "^5.10.0",
213+
"ts-node": "^10.4.0",
214214
"tsec": "0.2.1",
215215
"tsickle": "0.39.1",
216216
"tslint": "^6.1.3",
217217
"tsutils": "^3.21.0",
218-
"typescript": "~4.5.2",
218+
"typescript": "~4.5.5",
219219
"typescript-4.4": "npm:typescript@4.4.2",
220220
"vrsource-tslint-rules": "6.0.0",
221-
"yaml": "^1.10.0",
222-
"yargs": "^17.2.1"
221+
"yaml": "^1.10.2",
222+
"yargs": "^17.3.1"
223223
},
224224
"resolutions": {
225225
"@angular/dev-infra-private/typescript": "~4.5.2",

src/cdk/schematics/utils/html-manipulation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export function addBodyClass(host: Tree, htmlFilePath: string, className: string
7070
.includes(className);
7171

7272
if (!hasClass) {
73-
const classAttributeLocation = body.sourceCodeLocation!.attrs.class;
73+
// We have source code location info enabled, and we pre-checked that the element
74+
// has attributes, specifically the `class` attribute.
75+
const classAttributeLocation = body.sourceCodeLocation!.attrs!.class;
7476
const recordedChange = host
7577
.beginUpdate(htmlFilePath)
7678
.insertRight(classAttributeLocation.endOffset - 1, ` ${className}`);

0 commit comments

Comments
 (0)