Skip to content

Commit 23f450b

Browse files
committed
chore(deps)!: update to angular v21
1 parent c128fa7 commit 23f450b

File tree

8 files changed

+2582
-1966
lines changed

8 files changed

+2582
-1966
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ In case you are still using the legacy components, you can use the package [angu
207207

208208
| Angular | angular-material-css-vars |
209209
| ------- | ------------------------- |
210+
| 21 | 10.x |
210211
| 20 | 9.x |
211212
| 19 | 8.x |
212213
| 18 | 7.x |

package.json

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,55 +32,50 @@
3232
"prettier-fix": "prettier . --write"
3333
},
3434
"dependencies": {
35-
"@angular/cdk": "^20.1.0",
36-
"@angular/common": "^20.1.0",
37-
"@angular/compiler": "^20.1.0",
38-
"@angular/core": "^20.1.0",
39-
"@angular/forms": "^20.1.0",
40-
"@angular/material": "^20.1.0",
41-
"@angular/platform-browser": "^20.1.0",
42-
"@angular/platform-browser-dynamic": "^20.1.0",
43-
"@angular/router": "^20.1.0",
44-
"@ctrl/tinycolor": "^4.1.0",
45-
"@types/node": "^22.16.4",
46-
"ngx-color-picker": "^20.0.0",
35+
"@angular/cdk": "^21.0.0",
36+
"@angular/common": "^21.0.0",
37+
"@angular/compiler": "^21.0.0",
38+
"@angular/core": "^21.0.0",
39+
"@angular/forms": "^21.0.0",
40+
"@angular/material": "^21.0.0",
41+
"@angular/platform-browser": "^21.0.0",
42+
"@angular/platform-browser-dynamic": "^21.0.0",
43+
"@angular/router": "^21.0.0",
44+
"@ctrl/tinycolor": "^4.2.0",
45+
"@types/node": "^24.10.1",
46+
"ngx-color-picker": "^20.1.1",
4747
"rxjs": "~7.8.2",
4848
"tslib": "^2.8.1",
4949
"zone.js": "~0.15.1"
5050
},
5151
"devDependencies": {
52-
"@angular/build": "^20.1.0",
53-
"@angular/cli": "^20.1.0",
54-
"@angular/compiler-cli": "^20.1.0",
55-
"@angular/language-service": "^20.1.0",
56-
"@types/jasmine": "^5.1.8",
57-
"angular-eslint": "^20.1.1",
52+
"@angular/build": "^21.0.0",
53+
"@angular/cli": "^21.0.0",
54+
"@angular/compiler-cli": "^21.0.0",
55+
"@angular/language-service": "^21.0.0",
56+
"@types/jasmine": "^5.1.13",
57+
"angular-eslint": "^20.6.0",
5858
"copyfiles": "^2.4.1",
59-
"eslint": "^9.31.0",
59+
"eslint": "^9.39.1",
6060
"gh-pages": "^6.3.0",
61-
"jasmine-core": "^5.8.0",
61+
"jasmine-core": "^5.12.1",
6262
"karma": "^6.4.4",
6363
"karma-chrome-launcher": "~3.2.0",
6464
"karma-coverage": "^2.2.1",
6565
"karma-firefox-launcher": "^2.1.3",
6666
"karma-jasmine": "~5.1.0",
6767
"karma-jasmine-html-reporter": "^2.1.0",
6868
"karma-safarinative-launcher": "^1.1.0",
69-
"ng-packagr": "^20.1.0",
69+
"ng-packagr": "^21.0.0",
7070
"npm-run-all": "^4.1.5",
7171
"prettier": "^3.6.2",
72-
"typescript": "~5.8.3",
73-
"typescript-eslint": "^8.37.0"
72+
"typescript": "~5.9.3",
73+
"typescript-eslint": "^8.47.0"
7474
},
7575
"engines": {
7676
"npm": "Please use pnpm instead of npm to install dependencies",
7777
"yarn": "Please use pnpm instead of yarn to install dependencies",
7878
"pnpm": "^10.7.0"
7979
},
80-
"pnpm": {
81-
"overrides": {
82-
"jasmine-core": "$jasmine-core"
83-
}
84-
},
85-
"packageManager": "[email protected]"
80+
"packageManager": "[email protected]"
8681
}

pnpm-lock.yaml

Lines changed: 2542 additions & 1929 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
minimumReleaseAge: 4320
2+
minimumReleaseAgeExclude:
3+
- "@angular/*"
4+
- "@angular-devkit/*"
5+
- "@schematics/angular"
6+
- ng-packagr
7+
8+
ignoredBuiltDependencies:
9+
- esbuild

projects/material-css-vars/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"angular-material"
2626
],
2727
"peerDependencies": {
28-
"@angular/common": ">=20",
29-
"@angular/core": ">=20",
30-
"@angular/material": ">=20"
28+
"@angular/common": ">=21",
29+
"@angular/core": ">=21",
30+
"@angular/material": ">=21"
3131
},
3232
"dependencies": {
3333
"@ctrl/tinycolor": "^4.0.0",

projects/material-css-vars/tsconfig.lib.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"outDir": "../../out-tsc/lib",
55
"declaration": true,
66
"inlineSources": true,
7-
"types": [],
8-
"lib": ["dom", "es2018"]
7+
"types": []
98
},
109
"angularCompilerOptions": {
1110
"annotateForClosureCompiler": false,

src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { ApplicationConfig } from "@angular/core";
1+
import { ApplicationConfig, provideZoneChangeDetection } from "@angular/core";
22
import { provideMaterialCssVars } from "../../projects/material-css-vars/src/lib/material-css-vars.module";
33
import { APP_BASE_HREF } from "@angular/common";
44

55
export const appConfig: ApplicationConfig = {
66
providers: [
7+
provideZoneChangeDetection(),
78
provideMaterialCssVars({
89
primary: "#3f51b5",
910
accent: "#e91e63",
1011
warn: "#f44336",
11-
rootSelector: "app-root",
1212
}),
1313
{ provide: APP_BASE_HREF, useValue: window._app_base ?? "/" },
1414
],

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"noImplicitReturns": true,
1717
"noFallthroughCasesInSwitch": true,
1818
"typeRoots": ["node_modules/@types"],
19-
"lib": ["es2018", "dom"],
2019
"paths": {
2120
"angular-material-css-variables": ["dist/angular-material-css-variables"],
2221
"angular-material-css-variables/*": [

0 commit comments

Comments
 (0)