Skip to content

Commit 5109f56

Browse files
author
Florian PAUL
committed
chore: upgrade angular 21
1 parent cfdcf50 commit 5109f56

File tree

150 files changed

+4875
-4529
lines changed

Some content is hidden

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

150 files changed

+4875
-4529
lines changed

apps/chrome-devtools/package.json

Lines changed: 25 additions & 25 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.13",
33-
"@angular-devkit/schematics": "~20.3.13",
34-
"@angular/cli": "~20.3.13",
35-
"@angular/compiler": "~20.3.15",
36-
"@angular/compiler-cli": "~20.3.15",
32+
"@angular-devkit/build-angular": "~21.0.2",
33+
"@angular-devkit/schematics": "~21.0.2",
34+
"@angular/cli": "~21.0.2",
35+
"@angular/compiler": "~21.0.3",
36+
"@angular/compiler-cli": "~21.0.3",
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.3.3",
39+
"@nx/jest": "~22.3.3",
4040
"@o3r/build-helpers": "workspace:~",
4141
"@o3r/eslint-config": "workspace:~",
4242
"@o3r/eslint-plugin": "workspace:~",
@@ -45,13 +45,14 @@
4545
"@o3r/rules-engine": "workspace:~",
4646
"@o3r/test-helpers": "workspace:~",
4747
"@playwright/test": "~1.57.0",
48-
"@schematics/angular": "~20.3.13",
48+
"@schematics/angular": "~21.0.2",
49+
"@standard-schema/spec": "~1.0.0",
4950
"@stylistic/eslint-plugin": "~5.6.0",
5051
"@types/chrome": "^0.1.0",
5152
"@types/jest": "~30.0.0",
5253
"@types/tinycolor2": "^1.4.6",
5354
"@typescript-eslint/parser": "~8.47.0",
54-
"angular-eslint": "~20.6.0",
55+
"angular-eslint": "~21.0.1",
5556
"archiver": "^7.0.0",
5657
"chokidar": "^4.0.3",
5758
"chrome-webstore-upload": "^4.0.3",
@@ -74,11 +75,11 @@
7475
"jest-junit": "~16.0.0",
7576
"jest-preset-angular": "~16.0.0",
7677
"jest-util": "~30.2.0",
77-
"jsdom": "^26.1.0",
78+
"jsdom": "~27.3.0",
7879
"jsonc-eslint-parser": "~2.4.0",
7980
"lighthouse": "~13.0.0",
8081
"minimist": "^1.2.6",
81-
"nx": "~21.6.0",
82+
"nx": "~22.3.3",
8283
"playwright-lighthouse": "~4.0.0",
8384
"rimraf": "^6.0.1",
8485
"ts-jest": "~29.4.0",
@@ -90,19 +91,19 @@
9091
"@agnos-ui/angular-bootstrap": "~0.9.0",
9192
"@agnos-ui/core-bootstrap": "~0.9.0",
9293
"@amadeus-it-group/tansu": "~2.0.0",
93-
"@angular/animations": "~20.3.15",
94-
"@angular/common": "~20.3.15",
95-
"@angular/core": "~20.3.15",
96-
"@angular/forms": "~20.3.15",
97-
"@angular/localize": "~20.3.15",
98-
"@angular/platform-browser": "~20.3.15",
99-
"@angular/platform-browser-dynamic": "~20.3.15",
100-
"@angular/router": "~20.3.15",
101-
"@design-factory/design-factory": "~20.0.0",
102-
"@ng-bootstrap/ng-bootstrap": "^19.0.0",
94+
"@angular/animations": "~21.0.3",
95+
"@angular/common": "~21.0.3",
96+
"@angular/core": "~21.0.3",
97+
"@angular/forms": "~21.0.3",
98+
"@angular/localize": "~21.0.3",
99+
"@angular/platform-browser": "~21.0.3",
100+
"@angular/platform-browser-dynamic": "~21.0.3",
101+
"@angular/router": "~21.0.3",
102+
"@design-factory/design-factory": "~20.0.2",
103+
"@ng-bootstrap/ng-bootstrap": "^19.0.1",
103104
"@ng-select/ng-select": "~20.0.0",
104-
"@ngrx/entity": "~20.1.0",
105-
"@ngrx/store": "~20.1.0",
105+
"@ngrx/entity": "~21.0.0",
106+
"@ngrx/store": "~21.0.0",
106107
"@o3r/application": "workspace:~",
107108
"@o3r/components": "workspace:~",
108109
"@o3r/configuration": "workspace:~",
@@ -117,7 +118,6 @@
117118
"bootstrap": "5.3.7",
118119
"rxjs": "^7.8.1",
119120
"tinycolor2": "^1.6.0",
120-
"tslib": "^2.6.2",
121-
"zone.js": "~0.15.0"
121+
"tslib": "^2.6.2"
122122
}
123123
}

apps/chrome-devtools/project.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"fonts": true
4848
},
4949
"polyfills": [
50-
"zone.js",
5150
"@angular/localize/init"
5251
],
5352
"styles": [
@@ -100,7 +99,6 @@
10099
"fonts": true
101100
},
102101
"polyfills": [
103-
"zone.js",
104102
"@angular/localize/init"
105103
],
106104
"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: 15 additions & 16 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.13",
27-
"@angular/animations": "~20.3.15",
28-
"@angular/common": "~20.3.15",
29-
"@angular/compiler": "~20.3.15",
30-
"@angular/compiler-cli": "~20.3.15",
31-
"@angular/core": "~20.3.15",
32-
"@angular/platform-browser": "~20.3.15",
33-
"@angular/platform-browser-dynamic": "~20.3.15",
26+
"@angular-devkit/schematics": "~21.0.2",
27+
"@angular/animations": "~21.0.3",
28+
"@angular/common": "~21.0.3",
29+
"@angular/compiler": "~21.0.3",
30+
"@angular/compiler-cli": "~21.0.3",
31+
"@angular/core": "~21.0.3",
32+
"@angular/platform-browser": "~21.0.3",
33+
"@angular/platform-browser-dynamic": "~21.0.3",
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.3.3",
36+
"@nx/eslint-plugin": "~22.3.3",
37+
"@nx/jest": "~22.3.3",
38+
"@nx/js": "~22.3.3",
3939
"@o3r/eslint-config": "workspace:~",
4040
"@o3r/eslint-plugin": "workspace:~",
4141
"@o3r/test-helpers": "workspace:~",
@@ -46,7 +46,7 @@
4646
"@types/node": "~24.10.0",
4747
"@types/semver": "^7.3.13",
4848
"@typescript-eslint/parser": "~8.47.0",
49-
"angular-eslint": "~20.6.0",
49+
"angular-eslint": "~21.0.1",
5050
"cpy-cli": "^6.0.0",
5151
"ejs": "~3.1.9",
5252
"eslint": "~9.39.0",
@@ -67,14 +67,13 @@
6767
"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.3.3",
7171
"rxjs": "^7.8.1",
7272
"smee-client": "^5.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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
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.3.3",
25+
"@nx/jest": "~22.3.3",
2626
"@o3r/build-helpers": "workspace:~",
2727
"@o3r/eslint-plugin": "workspace:~",
2828
"@o3r/test-helpers": "workspace:~",
29-
"@schematics/angular": "~20.3.13",
29+
"@schematics/angular": "~21.0.2",
3030
"@stylistic/eslint-plugin": "~5.6.0",
3131
"@types/jest": "~30.0.0",
3232
"@types/node": "~24.10.0",
3333
"@typescript-eslint/parser": "~8.47.0",
34-
"angular-eslint": "~20.6.0",
34+
"angular-eslint": "~21.0.1",
3535
"cpy-cli": "^6.0.0",
3636
"esbuild": "~0.25.1",
3737
"eslint": "~9.39.0",

apps/showcase/package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,27 @@
3333
"@ama-sdk/core": "workspace:~",
3434
"@ama-sdk/schematics": "workspace:~",
3535
"@amadeus-it-group/tansu": "~2.0.0",
36-
"@angular/animations": "~20.3.15",
37-
"@angular/cdk": "~20.2.14",
38-
"@angular/common": "~20.3.15",
39-
"@angular/compiler": "~20.3.15",
40-
"@angular/core": "~20.3.15",
41-
"@angular/forms": "~20.3.15",
42-
"@angular/localize": "~20.3.15",
43-
"@angular/platform-browser": "~20.3.15",
44-
"@angular/platform-browser-dynamic": "~20.3.15",
45-
"@angular/router": "~20.3.15",
36+
"@angular/animations": "~21.0.3",
37+
"@angular/cdk": "~21.0.2",
38+
"@angular/common": "~21.0.3",
39+
"@angular/compiler": "~21.0.3",
40+
"@angular/core": "~21.0.3",
41+
"@angular/forms": "~21.0.3",
42+
"@angular/localize": "~21.0.3",
43+
"@angular/platform-browser": "~21.0.3",
44+
"@angular/platform-browser-dynamic": "~21.0.3",
45+
"@angular/router": "~21.0.3",
4646
"@commitlint/types": "^20.2.0",
47-
"@design-factory/design-factory": "~20.0.0",
47+
"@design-factory/design-factory": "~20.0.2",
4848
"@formatjs/intl-numberformat": "~8.15.0",
49-
"@ng-bootstrap/ng-bootstrap": "^19.0.0",
49+
"@ng-bootstrap/ng-bootstrap": "^19.0.1",
5050
"@ng-select/ng-select": "~20.0.0",
51-
"@ngrx/effects": "~20.1.0",
52-
"@ngrx/entity": "~20.1.0",
53-
"@ngrx/store": "~20.1.0",
54-
"@ngrx/store-devtools": "~20.1.0",
51+
"@ngrx/effects": "~21.0.0",
52+
"@ngrx/entity": "~21.0.0",
53+
"@ngrx/store": "~21.0.0",
54+
"@ngrx/store-devtools": "~21.0.0",
5555
"@ngx-translate/core": "~16.0.4",
56-
"@nx/jest": "~21.6.0",
56+
"@nx/jest": "~22.3.3",
5757
"@o3r-training/showcase-sdk": "workspace:~",
5858
"@o3r-training/training-tools": "workspace:~",
5959
"@o3r/apis-manager": "workspace:~",
@@ -87,10 +87,10 @@
8787
"intl-messageformat": "~10.7.0",
8888
"jest-preset-angular": "~16.0.0",
8989
"jest-util": "~30.2.0",
90-
"jsdom": "^26.1.0",
91-
"marked": "^15.0.0",
90+
"jsdom": "~27.3.0",
91+
"marked": "~17.0.0",
9292
"monaco-editor": "~0.54.0",
93-
"ngx-markdown": "^20.0.0",
93+
"ngx-markdown": "~21.0.1",
9494
"ngx-monaco-editor-v2": "^20.0.0",
9595
"ngx-monaco-tree": "~20.1.0",
9696
"pixelmatch": "^7.0.0",
@@ -101,19 +101,18 @@
101101
"sass-loader": "^16.0.0",
102102
"ts-jest": "~29.4.0",
103103
"tslib": "^2.6.2",
104-
"typescript": "~5.9.2",
105-
"zone.js": "~0.15.0"
104+
"typescript": "~5.9.2"
106105
},
107106
"devDependencies": {
108107
"@amadeus-it-group/kassette": "^1.7.0",
109-
"@angular-devkit/architect": "0.2003.13",
110-
"@angular-devkit/build-angular": "~20.3.13",
111-
"@angular-devkit/core": "~20.3.13",
112-
"@angular-devkit/schematics": "~20.3.13",
113-
"@angular/cli": "~20.3.13",
114-
"@angular/compiler-cli": "~20.3.15",
108+
"@angular-devkit/architect": "~0.2100.2",
109+
"@angular-devkit/build-angular": "~21.0.2",
110+
"@angular-devkit/core": "~21.0.2",
111+
"@angular-devkit/schematics": "~21.0.2",
112+
"@angular/cli": "~21.0.2",
113+
"@angular/compiler-cli": "~21.0.3",
115114
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
116-
"@nx/eslint-plugin": "~21.6.0",
115+
"@nx/eslint-plugin": "~22.3.3",
117116
"@o3r-training/training-sdk": "workspace:~",
118117
"@o3r/build-helpers": "workspace:~",
119118
"@o3r/eslint-config": "workspace:~",
@@ -123,14 +122,15 @@
123122
"@o3r/test-helpers": "workspace:~",
124123
"@o3r/testing": "workspace:~",
125124
"@playwright/test": "~1.57.0",
126-
"@schematics/angular": "~20.3.13",
125+
"@schematics/angular": "~21.0.2",
126+
"@standard-schema/spec": "~1.0.0",
127127
"@stylistic/eslint-plugin": "~5.6.0",
128128
"@types/bootstrap": "^5.2.10",
129129
"@types/jest": "~30.0.0",
130130
"@types/node": "~24.10.0",
131131
"@typescript-eslint/parser": "~8.47.0",
132132
"@webcontainer/api": "~1.6.0",
133-
"angular-eslint": "~20.6.0",
133+
"angular-eslint": "~21.0.1",
134134
"concurrently": "^9.1.0",
135135
"eslint": "~9.39.0",
136136
"eslint-import-resolver-node": "~0.3.9",
@@ -149,7 +149,7 @@
149149
"jest-junit": "~16.0.0",
150150
"jest-preset-angular": "~16.0.0",
151151
"jest-util": "~30.2.0",
152-
"jsdom": "^26.1.0",
152+
"jsdom": "~27.3.0",
153153
"jsonc-eslint-parser": "~2.4.0",
154154
"lighthouse": "~13.0.0",
155155
"minimist": "^1.2.6",

apps/showcase/project.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"index": "apps/showcase/src/index.html",
5656
"browser": "apps/showcase/src/main.ts",
5757
"polyfills": [
58-
"zone.js",
5958
"@angular/localize/init"
6059
],
6160
"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)