Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 025d974

Browse files
committed
build: update to Angular 18.2 and TypeScript 5.5
Updates the dependencies to the latest versions.
1 parent 5020186 commit 025d974

File tree

9 files changed

+6615
-7791
lines changed

9 files changed

+6615
-7791
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU=

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=-1306950124
5-
pnpm-lock.yaml=235307723
6-
yarn.lock=-1638080838
7-
package.json=351496289
5+
pnpm-lock.yaml=-1501812944
6+
yarn.lock=-587809900
7+
package.json=-931066933

.circleci/config.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ orbs:
1616

1717
# Cache key for CircleCI. We want to invalidate the cache whenever the Yarn lock file changes.
1818
var_1: &cache_key material-angular-io-{{ .Branch }}-{{ checksum "yarn.lock" }}
19-
var_2: &default_docker_image cimg/node:18.19.1-browsers
19+
var_2: &default_docker_image cimg/node:20.11.1-browsers
2020

2121
# Settings common to each job
2222
var_3: &job_defaults
@@ -34,6 +34,7 @@ var_5: &yarn_install
3434
run:
3535
name: 'Installing project dependencies'
3636
command: yarn install --frozen-lockfile --non-interactive
37+
no_output_timeout: 20m
3738

3839
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
3940
# https://circleci.com/blog/deep-diving-into-circleci-workspaces/

.eslintrc.json

+32-10
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@
66
],
77
"overrides": [
88
{
9-
"files": ["*.ts"],
10-
"plugins": ["ban"],
9+
"files": [
10+
"*.ts"
11+
],
12+
"plugins": [
13+
"@stylistic",
14+
"@typescript-eslint",
15+
"ban"
16+
],
1117
"parserOptions": {
1218
"project": [
1319
"tsconfig.json",
@@ -18,7 +24,8 @@
1824
"extends": [
1925
"plugin:@angular-eslint/ng-cli-compat",
2026
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
21-
"plugin:@angular-eslint/template/process-inline-templates"
27+
"plugin:@angular-eslint/template/process-inline-templates",
28+
"plugin:@stylistic/disable-legacy"
2229
],
2330
"rules": {
2431
"@angular-eslint/component-class-suffix": "off",
@@ -37,15 +44,16 @@
3744
"@typescript-eslint/member-ordering": "off",
3845
"@typescript-eslint/no-unused-vars": "error",
3946
"@typescript-eslint/no-non-null-assertion": "off",
40-
"@typescript-eslint/quotes": [
47+
"@typescript-eslint/ban-types": "off",
48+
"@stylistic/quotes": [
4149
"error",
4250
"single",
4351
{
4452
"avoidEscape": true,
4553
"allowTemplateLiterals": true
4654
}
4755
],
48-
"@typescript-eslint/semi": [
56+
"@stylistic/semi": [
4957
"error"
5058
],
5159
"arrow-parens": [
@@ -69,11 +77,25 @@
6977
],
7078
"ban/ban": [
7179
"error",
72-
{"name": "fit"},
73-
{"name": "fdescribe"},
74-
{"name": "xit"},
75-
{"name": "xdescribe"},
76-
{"name": ["Object", "assign"], "message": "Use the spread operator instead."}
80+
{
81+
"name": "fit"
82+
},
83+
{
84+
"name": "fdescribe"
85+
},
86+
{
87+
"name": "xit"
88+
},
89+
{
90+
"name": "xdescribe"
91+
},
92+
{
93+
"name": [
94+
"Object",
95+
"assign"
96+
],
97+
"message": "Use the spread operator instead."
98+
}
7799
],
78100
"no-duplicate-imports": "error",
79101
"no-redeclare": "error",

defs.bzl

+7-10
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ NG_COMMON_DEPS = [
5050
APPLICATION_CONFIG = COMMON_CONFIG + [
5151
":ng-app-config",
5252
]
53-
APPLICATION_DEPS = [
54-
"//:node_modules/@material/tokens",
55-
]
5653

5754
# Common dependencies of Angular CLI test suites
5855
TEST_CONFIG = COMMON_CONFIG + [
@@ -69,7 +66,6 @@ TEST_CONFIG = COMMON_CONFIG + [
6966
"//:node_modules/karma-coverage-istanbul-reporter",
7067
]
7168
TEST_DEPS = [
72-
"//:node_modules/@material/tokens",
7369
"//:node_modules/@types/jasmine",
7470
"//:node_modules/@types/node",
7571
"//:node_modules/@angular/compiler",
@@ -85,7 +81,7 @@ E2E_CONFIG = COMMON_CONFIG + [
8581
":ng-e2e-config",
8682
"//:node_modules/jasmine-spec-reporter",
8783
]
88-
E2E_DEPS = APPLICATION_DEPS + [
84+
E2E_DEPS = [
8985
"//:node_modules/@types/jasmine",
9086
"//:node_modules/@types/node",
9187
"//:node_modules/protractor",
@@ -107,8 +103,9 @@ LINT_CONFIG = COMMON_CONFIG + [
107103
"//:node_modules/eslint-plugin-prefer-arrow",
108104
"//:node_modules/@typescript-eslint/eslint-plugin",
109105
"//:node_modules/@typescript-eslint/parser",
106+
"//:node_modules/@stylistic/eslint-plugin",
110107
]
111-
LINT_DEPS = APPLICATION_DEPS + [
108+
LINT_DEPS = [
112109
# TODO(bazel): this should be included as a transitive of @angular-devkit/architect-cli!?
113110
"//:node_modules/@angular-devkit/architect",
114111
]
@@ -188,13 +185,13 @@ def ng_app(name, project_name = None, deps = [], test_deps = [], e2e_deps = [],
188185

189186
_architect_build(
190187
project_name,
191-
srcs = srcs + deps + NG_COMMON_DEPS + APPLICATION_DEPS + APPLICATION_CONFIG,
188+
srcs = srcs + deps + NG_COMMON_DEPS + APPLICATION_CONFIG,
192189
tags = tags + ["manual"],
193190
**kwargs
194191
)
195192
_architect_build(
196193
project_name,
197-
srcs = srcs + deps + NG_COMMON_DEPS + APPLICATION_DEPS + APPLICATION_CONFIG,
194+
srcs = srcs + deps + NG_COMMON_DEPS + APPLICATION_CONFIG,
198195
configuration = "production",
199196
tags = tags,
200197
**kwargs
@@ -203,15 +200,15 @@ def ng_app(name, project_name = None, deps = [], test_deps = [], e2e_deps = [],
203200
_architect_binary(
204201
project_name,
205202
"serve",
206-
srcs = srcs + deps + NG_COMMON_DEPS + APPLICATION_DEPS + APPLICATION_CONFIG,
203+
srcs = srcs + deps + NG_COMMON_DEPS + APPLICATION_CONFIG,
207204
tags = tags + ["manual"],
208205
**kwargs
209206
)
210207
_architect_binary(
211208
project_name,
212209
"serve",
213210
configuration = "production",
214-
srcs = srcs + deps + NG_COMMON_DEPS + APPLICATION_DEPS + APPLICATION_CONFIG,
211+
srcs = srcs + deps + NG_COMMON_DEPS + APPLICATION_CONFIG,
215212
tags = tags + ["manual"],
216213
**kwargs
217214
)

package.json

+27-27
Original file line numberDiff line numberDiff line change
@@ -30,49 +30,49 @@
3030
},
3131
"private": true,
3232
"dependencies": {
33-
"@angular/animations": "^18.0.0",
34-
"@angular/cdk": "^18.0.0",
35-
"@angular/cdk-experimental": "^18.0.0",
36-
"@angular/common": "^18.0.0",
37-
"@angular/compiler": "^18.0.0",
33+
"@angular/animations": "^18.2.0",
34+
"@angular/cdk": "^18.2.0",
35+
"@angular/cdk-experimental": "^18.2.0",
36+
"@angular/common": "^18.2.0",
37+
"@angular/compiler": "^18.2.0",
3838
"@angular/components-examples": "https://github.com/angular/material2-docs-content.git#8319d8fde93ab4ed2bd6e0b6e2a88d893661bdd5",
39-
"@angular/core": "^18.0.0",
40-
"@angular/forms": "^18.0.0",
41-
"@angular/google-maps": "^18.0.0",
42-
"@angular/localize": "^18.0.0",
43-
"@angular/material": "^18.0.0",
44-
"@angular/material-experimental": "^18.0.0",
45-
"@angular/material-moment-adapter": "^18.0.0",
46-
"@angular/platform-browser": "^18.0.0",
47-
"@angular/platform-browser-dynamic": "^18.0.0",
48-
"@angular/router": "^18.0.0",
49-
"@angular/ssr": "^18.0.0",
50-
"@angular/youtube-player": "^18.0.0",
39+
"@angular/core": "^18.2.0",
40+
"@angular/forms": "^18.2.0",
41+
"@angular/google-maps": "^18.2.0",
42+
"@angular/localize": "^18.2.0",
43+
"@angular/material": "^18.2.0",
44+
"@angular/material-experimental": "^18.2.0",
45+
"@angular/material-moment-adapter": "^18.2.0",
46+
"@angular/platform-browser": "^18.2.0",
47+
"@angular/platform-browser-dynamic": "^18.2.0",
48+
"@angular/router": "^18.2.0",
49+
"@angular/ssr": "^18.2.0",
50+
"@angular/youtube-player": "^18.2.0",
5151
"@stackblitz/sdk": "^1.5.2",
5252
"moment": "^2.29.1",
5353
"path-normalize": "^6.0.7",
5454
"rxjs": "^6.6.7",
5555
"tslib": "^2.3.0",
56-
"zone.js": "~0.14.0"
56+
"zone.js": "~0.14.10"
5757
},
5858
"devDependencies": {
59-
"@angular-devkit/architect": "^0.1800.0",
60-
"@angular-devkit/architect-cli": "^0.1800.0",
61-
"@angular-devkit/build-angular": "^18.0.0",
59+
"@angular-devkit/architect": "^0.1802.0",
60+
"@angular-devkit/architect-cli": "^0.1802.0",
61+
"@angular-devkit/build-angular": "^18.2.0",
6262
"@angular-eslint/builder": "^14.0.0",
6363
"@angular-eslint/eslint-plugin": "^14.0.0",
6464
"@angular-eslint/eslint-plugin-template": "^14.0.0",
6565
"@angular-eslint/template-parser": "^14.0.0",
66-
"@material/tokens": "15.0.0-canary.7f224ddd4.0",
67-
"@angular/cli": "^18.0.0",
68-
"@angular/compiler-cli": "^18.0.0",
66+
"@angular/cli": "^18.2.0",
67+
"@angular/compiler-cli": "^18.2.0",
6968
"@bazel/bazelisk": "^1.12.1",
69+
"@stylistic/eslint-plugin": "^2.6.2",
7070
"@types/imagemin": "^7.0.0",
7171
"@types/jasmine": "^3.7.7",
7272
"@types/node": "^16.11.7",
7373
"@types/shelljs": "~0.8.8",
74-
"@typescript-eslint/eslint-plugin": "^7.3.1",
75-
"@typescript-eslint/parser": "^7.3.1",
74+
"@typescript-eslint/eslint-plugin": "^8.1.0",
75+
"@typescript-eslint/parser": "^8.1.0",
7676
"eslint": "^8.56.0",
7777
"eslint-plugin-ban": "^1.5.2",
7878
"eslint-plugin-import": "^2.22.1",
@@ -98,6 +98,6 @@
9898
"sass": "^1.70.0",
9999
"shelljs": "^0.8.4",
100100
"ts-node": "^8.10.2",
101-
"typescript": "~5.4.2"
101+
"typescript": "~5.5.2"
102102
}
103103
}

0 commit comments

Comments
 (0)