Skip to content

Commit da44439

Browse files
committed
chore: upgrade angular 21
1 parent 797a1a9 commit da44439

112 files changed

Lines changed: 4871 additions & 5337 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/chrome-devtools/package.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
"dist/"
3030
],
3131
"devDependencies": {
32-
"@angular-devkit/build-angular": "~20.3.11",
33-
"@angular-devkit/schematics": "~20.3.11",
34-
"@angular/cli": "~20.3.11",
35-
"@angular/compiler": "~20.3.13",
36-
"@angular/compiler-cli": "~20.3.13",
32+
"@angular-devkit/build-angular": "~21.0.1",
33+
"@angular-devkit/schematics": "~21.0.1",
34+
"@angular/cli": "~21.0.1",
35+
"@angular/compiler": "~21.0.1",
36+
"@angular/compiler-cli": "~21.0.1",
3737
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
38-
"@nx/eslint-plugin": "~21.6.0",
39-
"@nx/jest": "~21.6.0",
38+
"@nx/eslint-plugin": "~22.1.3",
39+
"@nx/jest": "~22.1.3",
4040
"@o3r/build-helpers": "workspace:~",
4141
"@o3r/eslint-config": "workspace:~",
4242
"@o3r/eslint-plugin": "workspace:~",
@@ -45,7 +45,8 @@
4545
"@o3r/rules-engine": "workspace:~",
4646
"@o3r/test-helpers": "workspace:~",
4747
"@playwright/test": "~1.56.0",
48-
"@schematics/angular": "~20.3.11",
48+
"@schematics/angular": "~21.0.1",
49+
"@standard-schema/spec": "~1.0.0",
4950
"@stylistic/eslint-plugin": "~5.6.0",
5051
"@types/chrome": "^0.1.0",
5152
"@types/jest": "~29.5.2",
@@ -69,15 +70,16 @@
6970
"eslint-plugin-unused-imports": "~4.3.0",
7071
"globals": "^16.0.0",
7172
"globby": "^11.1.0",
72-
"jest": "~29.7.0",
73-
"jest-environment-jsdom": "~29.7.0",
73+
"jest": "~30.2.0",
74+
"jest-environment-jsdom": "~30.2.0",
7475
"jest-junit": "~16.0.0",
75-
"jest-preset-angular": "~14.6.0",
76-
"jest-util": "~29.7.0",
76+
"jest-preset-angular": "~15.0.3",
77+
"jest-util": "~30.2.0",
78+
"jsdom": "~27.2.0",
7779
"jsonc-eslint-parser": "~2.4.0",
7880
"lighthouse": "~12.8.0",
7981
"minimist": "^1.2.6",
80-
"nx": "~21.6.0",
82+
"nx": "~22.1.3",
8183
"playwright-lighthouse": "~4.0.0",
8284
"rimraf": "^6.0.1",
8385
"ts-jest": "~29.4.0",
@@ -89,14 +91,14 @@
8991
"@agnos-ui/angular-bootstrap": "~0.9.0",
9092
"@agnos-ui/core-bootstrap": "~0.9.0",
9193
"@amadeus-it-group/tansu": "~2.0.0",
92-
"@angular/animations": "~20.3.13",
93-
"@angular/common": "~20.3.13",
94-
"@angular/core": "~20.3.13",
95-
"@angular/forms": "~20.3.13",
96-
"@angular/localize": "~20.3.13",
97-
"@angular/platform-browser": "~20.3.13",
98-
"@angular/platform-browser-dynamic": "~20.3.13",
99-
"@angular/router": "~20.3.13",
94+
"@angular/animations": "~21.0.1",
95+
"@angular/common": "~21.0.1",
96+
"@angular/core": "~21.0.1",
97+
"@angular/forms": "~21.0.1",
98+
"@angular/localize": "~21.0.1",
99+
"@angular/platform-browser": "~21.0.1",
100+
"@angular/platform-browser-dynamic": "~21.0.1",
101+
"@angular/router": "~21.0.1",
100102
"@design-factory/design-factory": "~20.0.0",
101103
"@ng-bootstrap/ng-bootstrap": "^19.0.0",
102104
"@ng-select/ng-select": "~20.0.0",
@@ -116,7 +118,6 @@
116118
"bootstrap": "5.3.7",
117119
"rxjs": "^7.8.1",
118120
"tinycolor2": "^1.6.0",
119-
"tslib": "^2.6.2",
120-
"zone.js": "~0.15.0"
121+
"tslib": "^2.6.2"
121122
}
122123
}

apps/chrome-devtools/project.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"fonts": true
4545
},
4646
"polyfills": [
47-
"zone.js",
4847
"@angular/localize/init"
4948
],
5049
"styles": [
@@ -94,7 +93,6 @@
9493
"fonts": true
9594
},
9695
"polyfills": [
97-
"zone.js",
9896
"@angular/localize/init"
9997
],
10098
"styles": [
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
import {
2+
provideZonelessChangeDetection,
3+
} from '@angular/core';
14
import {
25
bootstrapApplication,
36
} from '@angular/platform-browser';
47
import {
58
App,
69
} from './app-components/app';
710

8-
// eslint-disable-next-line no-console -- Generated by Angular
9-
bootstrapApplication(App).catch((err) => console.error(err));
11+
bootstrapApplication(App, {
12+
providers: [
13+
provideZonelessChangeDetection()
14+
]
15+
})
16+
// eslint-disable-next-line no-console -- only logger available
17+
.catch((err) => console.error(err));
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
import {
2+
provideZonelessChangeDetection,
3+
} from '@angular/core';
14
import {
25
bootstrapApplication,
36
} from '@angular/platform-browser';
47
import {
58
App,
69
} from './app-devtools/app';
710

8-
// eslint-disable-next-line no-console -- Generated by Angular
9-
bootstrapApplication(App).catch((err) => console.error(err));
11+
bootstrapApplication(App, {
12+
providers: [
13+
provideZonelessChangeDetection()
14+
]
15+
})
16+
// eslint-disable-next-line no-console -- only logger available
17+
.catch((err) => console.error(err));
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
setupZoneTestEnv,
3-
} from 'jest-preset-angular/setup-env/zone';
2+
setupZonelessTestEnv,
3+
} from 'jest-preset-angular/setup-env/zoneless';
44

5-
setupZoneTestEnv();
5+
setupZonelessTestEnv();

apps/github-cascading-app/package.json

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
},
2424
"devDependencies": {
2525
"@actions/github": "^6.0.0",
26-
"@angular-devkit/schematics": "~20.3.11",
27-
"@angular/animations": "~20.3.13",
28-
"@angular/common": "~20.3.13",
29-
"@angular/compiler": "~20.3.13",
30-
"@angular/compiler-cli": "~20.3.13",
31-
"@angular/core": "~20.3.13",
32-
"@angular/platform-browser": "~20.3.13",
33-
"@angular/platform-browser-dynamic": "~20.3.13",
26+
"@angular-devkit/schematics": "~21.0.1",
27+
"@angular/animations": "~21.0.1",
28+
"@angular/common": "~21.0.1",
29+
"@angular/compiler": "~21.0.1",
30+
"@angular/compiler-cli": "~21.0.1",
31+
"@angular/core": "~21.0.1",
32+
"@angular/platform-browser": "~21.0.1",
33+
"@angular/platform-browser-dynamic": "~21.0.1",
3434
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
35-
"@nx/eslint": "~21.6.0",
36-
"@nx/eslint-plugin": "~21.6.0",
37-
"@nx/jest": "~21.6.0",
38-
"@nx/js": "~21.6.0",
35+
"@nx/eslint": "~22.1.3",
36+
"@nx/eslint-plugin": "~22.1.3",
37+
"@nx/jest": "~22.1.3",
38+
"@nx/js": "~22.1.3",
3939
"@o3r/eslint-config": "workspace:~",
4040
"@o3r/eslint-plugin": "workspace:~",
4141
"@o3r/test-helpers": "workspace:~",
@@ -61,20 +61,19 @@
6161
"eslint-plugin-unused-imports": "~4.3.0",
6262
"globals": "^16.0.0",
6363
"ioredis": "^5.3.2",
64-
"jest": "~29.7.0",
65-
"jest-environment-jsdom": "~29.7.0",
64+
"jest": "~30.2.0",
65+
"jest-environment-jsdom": "~30.2.0",
6666
"jest-junit": "~16.0.0",
67-
"jest-util": "~29.7.0",
67+
"jest-util": "~30.2.0",
6868
"jsonc-eslint-parser": "~2.4.0",
6969
"nock": "^14.0.0",
70-
"nx": "~21.6.0",
70+
"nx": "~22.1.3",
7171
"rxjs": "^7.8.1",
7272
"smee-client": "^4.0.0",
7373
"ts-jest": "~29.4.0",
7474
"tslib": "^2.6.2",
7575
"typescript": "~5.9.2",
76-
"typescript-eslint": "~8.47.0",
77-
"zone.js": "~0.15.0"
76+
"typescript-eslint": "~8.47.0"
7877
},
7978
"engines": {
8079
"node": "^20.19.0 || ^22.17.0 || ^24.0.0"

apps/palette-generator/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
2222
"@figma/eslint-plugin-figma-plugins": "^0.16.0",
2323
"@figma/plugin-typings": "^1.107.0",
24-
"@nx/eslint-plugin": "~21.6.0",
25-
"@nx/jest": "~21.6.0",
24+
"@nx/eslint-plugin": "~22.1.3",
25+
"@nx/jest": "~22.1.3",
2626
"@o3r/build-helpers": "workspace:~",
2727
"@o3r/eslint-plugin": "workspace:~",
2828
"@o3r/test-helpers": "workspace:~",
29-
"@schematics/angular": "~20.3.11",
29+
"@schematics/angular": "~21.0.1",
3030
"@stylistic/eslint-plugin": "~5.6.0",
3131
"@types/jest": "~29.5.2",
3232
"@types/node": "~22.18.0",
@@ -47,10 +47,10 @@
4747
"globals": "^16.0.0",
4848
"html-inline-script-webpack-plugin": "^3.1.0",
4949
"html-webpack-plugin": "^5.3.2",
50-
"jest": "~29.7.0",
51-
"jest-environment-jsdom": "~29.7.0",
50+
"jest": "~30.2.0",
51+
"jest-environment-jsdom": "~30.2.0",
5252
"jest-junit": "~16.0.0",
53-
"jest-util": "~29.7.0",
53+
"jest-util": "~30.2.0",
5454
"jsonc-eslint-parser": "~2.4.0",
5555
"style-loader": "^4.0.0",
5656
"ts-jest": "~29.4.0",

apps/showcase/package.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@
3333
"@ama-sdk/core": "workspace:~",
3434
"@ama-sdk/schematics": "workspace:~",
3535
"@amadeus-it-group/tansu": "~2.0.0",
36-
"@angular/animations": "~20.3.13",
37-
"@angular/cdk": "~20.2.14",
38-
"@angular/common": "~20.3.13",
39-
"@angular/compiler": "~20.3.13",
40-
"@angular/core": "~20.3.13",
41-
"@angular/forms": "~20.3.13",
42-
"@angular/localize": "~20.3.13",
43-
"@angular/platform-browser": "~20.3.13",
44-
"@angular/platform-browser-dynamic": "~20.3.13",
45-
"@angular/router": "~20.3.13",
36+
"@angular/animations": "~21.0.1",
37+
"@angular/cdk": "~21.0.1",
38+
"@angular/common": "~21.0.1",
39+
"@angular/compiler": "~21.0.1",
40+
"@angular/core": "~21.0.1",
41+
"@angular/forms": "~21.0.1",
42+
"@angular/localize": "~21.0.1",
43+
"@angular/platform-browser": "~21.0.1",
44+
"@angular/platform-browser-dynamic": "~21.0.1",
45+
"@angular/router": "~21.0.1",
4646
"@commitlint/types": "^19.0.0",
4747
"@design-factory/design-factory": "~20.0.0",
4848
"@formatjs/intl-numberformat": "~8.15.0",
@@ -53,7 +53,7 @@
5353
"@ngrx/store": "~20.1.0",
5454
"@ngrx/store-devtools": "~20.1.0",
5555
"@ngx-translate/core": "~16.0.4",
56-
"@nx/jest": "~21.6.0",
56+
"@nx/jest": "~22.1.3",
5757
"@o3r-training/showcase-sdk": "workspace:~",
5858
"@o3r-training/training-tools": "workspace:~",
5959
"@o3r/apis-manager": "workspace:~",
@@ -85,10 +85,11 @@
8585
"globals": "^16.0.0",
8686
"globby": "^11.1.0",
8787
"intl-messageformat": "~10.7.0",
88-
"jest-preset-angular": "~14.6.0",
89-
"marked": "^15.0.0",
88+
"jest-preset-angular": "~15.0.3",
89+
"jsdom": "~27.2.0",
90+
"marked": "~17.0.0",
9091
"monaco-editor": "~0.54.0",
91-
"ngx-markdown": "^20.0.0",
92+
"ngx-markdown": "~21.0.0",
9293
"ngx-monaco-editor-v2": "^20.0.0",
9394
"ngx-monaco-tree": "~20.1.0",
9495
"pixelmatch": "^7.0.0",
@@ -99,19 +100,18 @@
99100
"sass-loader": "^16.0.0",
100101
"ts-jest": "~29.4.0",
101102
"tslib": "^2.6.2",
102-
"typescript": "~5.9.2",
103-
"zone.js": "~0.15.0"
103+
"typescript": "~5.9.2"
104104
},
105105
"devDependencies": {
106106
"@amadeus-it-group/kassette": "^1.7.0",
107-
"@angular-devkit/architect": "~0.2003.11",
108-
"@angular-devkit/build-angular": "~20.3.11",
109-
"@angular-devkit/core": "~20.3.11",
110-
"@angular-devkit/schematics": "~20.3.11",
111-
"@angular/cli": "~20.3.11",
112-
"@angular/compiler-cli": "~20.3.13",
107+
"@angular-devkit/architect": "~0.2100.1",
108+
"@angular-devkit/build-angular": "~21.0.1",
109+
"@angular-devkit/core": "~21.0.1",
110+
"@angular-devkit/schematics": "~21.0.1",
111+
"@angular/cli": "~21.0.1",
112+
"@angular/compiler-cli": "~21.0.1",
113113
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
114-
"@nx/eslint-plugin": "~21.6.0",
114+
"@nx/eslint-plugin": "~22.1.3",
115115
"@o3r-training/training-sdk": "workspace:~",
116116
"@o3r/build-helpers": "workspace:~",
117117
"@o3r/eslint-config": "workspace:~",
@@ -121,7 +121,8 @@
121121
"@o3r/test-helpers": "workspace:~",
122122
"@o3r/testing": "workspace:~",
123123
"@playwright/test": "~1.56.0",
124-
"@schematics/angular": "~20.3.11",
124+
"@schematics/angular": "~21.0.1",
125+
"@standard-schema/spec": "~1.0.0",
125126
"@stylistic/eslint-plugin": "~5.6.0",
126127
"@types/bootstrap": "^5.2.10",
127128
"@types/jest": "~29.5.2",
@@ -142,11 +143,11 @@
142143
"eslint-plugin-unused-imports": "~4.3.0",
143144
"globals": "^16.0.0",
144145
"globby": "^11.1.0",
145-
"jest": "~29.7.0",
146-
"jest-environment-jsdom": "~29.7.0",
146+
"jest": "~30.2.0",
147+
"jest-environment-jsdom": "~30.2.0",
147148
"jest-junit": "~16.0.0",
148-
"jest-preset-angular": "~14.6.0",
149-
"jest-util": "~29.7.0",
149+
"jest-preset-angular": "~15.0.3",
150+
"jest-util": "~30.2.0",
150151
"jsonc-eslint-parser": "~2.4.0",
151152
"lighthouse": "~12.8.0",
152153
"minimist": "^1.2.6",

apps/showcase/project.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"index": "apps/showcase/src/index.html",
5858
"browser": "apps/showcase/src/main.ts",
5959
"polyfills": [
60-
"zone.js",
6160
"@angular/localize/init"
6261
],
6362
"tsConfig": "apps/showcase/tsconfig.app.json",

apps/showcase/src/app/app-module.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import localeFR from '@angular/common/locales/fr';
99
import {
1010
isDevMode,
1111
NgModule,
12+
provideZonelessChangeDetection,
1213
SecurityContext,
1314
} from '@angular/core';
1415
import {
@@ -79,6 +80,7 @@ import {
7980
CLIPBOARD_OPTIONS,
8081
MARKED_EXTENSIONS,
8182
provideMarkdown,
83+
SANITIZE,
8284
} from 'ngx-markdown';
8385
import {
8486
MonacoEditorModule,
@@ -172,6 +174,7 @@ export function localizationConfigurationFactory(): Partial<LocalizationConfigur
172174
MonacoEditorModule.forRoot()
173175
],
174176
providers: [
177+
provideZonelessChangeDetection(),
175178
provideCustomComponents(new Map(), withComponent('exampleDatePickerFlavorHebrew', DatePickerHebrewInputPres)),
176179
{ provide: MESSAGE_FORMAT_CONFIG, useValue: {} },
177180
{ provide: LOGGER_CLIENT_TOKEN, useValue: new ConsoleLogger() },
@@ -197,7 +200,7 @@ export function localizationConfigurationFactory(): Partial<LocalizationConfigur
197200
}
198201
],
199202
/* Templates are only internal, no need to sanitize */
200-
sanitize: SecurityContext.NONE
203+
sanitize: { provide: SANITIZE, useValue: SecurityContext.NONE }
201204
}),
202205
{ provide: NGX_MONACO_EDITOR_CONFIG, useValue: { baseUrl: `${location.origin}${location.pathname}assets/monaco/min/vs` } }
203206
],

0 commit comments

Comments
 (0)