Skip to content

Commit 6625d07

Browse files
authored
chore: update to Angular 21.2 (#300)
1 parent 25ee515 commit 6625d07

6 files changed

Lines changed: 5240 additions & 2679 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ Thumbs.db
4141
.nx
4242
.angular
4343
/versions.txt
44+
45+
.claude/worktrees
46+
.claude/settings.local.json

libs/ngrx-toolkit/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"url": "https://github.com/angular-architects/ngrx-toolkit"
88
},
99
"peerDependencies": {
10-
"@angular/core": "^21.0.0",
11-
"@angular/common": "^21.0.0",
10+
"@angular/core": "^21.2.0",
11+
"@angular/common": "^21.2.0",
1212
"@ngrx/signals": "^21.0.0",
1313
"@ngrx/store": "^21.0.0",
1414
"rxjs": "^7.0.0"

migrations.json

Lines changed: 14 additions & 186 deletions
Original file line numberDiff line numberDiff line change
@@ -1,200 +1,28 @@
11
{
22
"migrations": [
3-
{
4-
"version": "22.0.0-beta.1",
5-
"description": "Updates release version config based on the breaking changes in Nx v22",
6-
"implementation": "./src/migrations/update-22-0-0/release-version-config-changes",
7-
"package": "nx",
8-
"name": "22-0-0-release-version-config-changes"
9-
},
10-
{
11-
"version": "22.0.0-beta.2",
12-
"description": "Consolidates releaseTag* options into nested releaseTag object structure",
13-
"implementation": "./src/migrations/update-22-0-0/consolidate-release-tag-config",
14-
"package": "nx",
15-
"name": "22-0-0-consolidate-release-tag-config"
16-
},
173
{
184
"cli": "nx",
19-
"version": "22.1.0-beta.5",
20-
"description": "Updates the nx wrapper.",
21-
"implementation": "./src/migrations/update-22-1-0/update-nx-wrapper",
5+
"version": "22.6.0-beta.10",
6+
"description": "Adds .claude/worktrees to .gitignore",
7+
"implementation": "./src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore",
228
"package": "nx",
23-
"name": "22-1-0-update-nx-wrapper"
24-
},
25-
{
26-
"version": "21.5.0-beta.2",
27-
"description": "Migrate the legacy 'development' custom condition to a workspace-unique custom condition name.",
28-
"factory": "./src/migrations/update-21-5-0/migrate-development-custom-condition",
29-
"package": "@nx/js",
30-
"name": "migrate-development-custom-condition"
31-
},
32-
{
33-
"version": "22.0.0-beta.0",
34-
"description": "Remove the deprecated `external` and `externalBuildTargets` options from the `@nx/js:swc` and `@nx/js:tsc` executors.",
35-
"factory": "./src/migrations/update-22-0-0/remove-external-options-from-js-executors",
36-
"package": "@nx/js",
37-
"name": "remove-external-options-from-js-executors"
38-
},
39-
{
40-
"version": "22.1.0-rc.1",
41-
"description": "Removes redundant TypeScript project references from project's tsconfig.json files when runtime tsconfig files (e.g., tsconfig.lib.json, tsconfig.app.json) exist.",
42-
"factory": "./src/migrations/update-22-1-0/remove-redundant-ts-project-references",
43-
"package": "@nx/js",
44-
"name": "remove-redundant-ts-project-references"
45-
},
46-
{
47-
"version": "22.2.0-beta.2",
48-
"description": "Convert jest.config.ts files from ESM to CJS syntax (export default -> module.exports, import -> require) for projects using CommonJS resolution to ensure correct loading under Node.js type-stripping.",
49-
"implementation": "./src/migrations/update-22-2-0/convert-jest-config-to-cjs",
50-
"package": "@nx/jest",
51-
"name": "convert-jest-config-to-cjs"
52-
},
53-
{
54-
"version": "21.5.0-beta.0",
55-
"description": "Set the 'tsConfig' option to build and test targets to help with Angular migration issues.",
56-
"factory": "./src/migrations/update-21-5-0/set-tsconfig-option",
57-
"package": "@nx/angular",
58-
"name": "set-tsconfig-option"
9+
"name": "22-6-1-add-claude-worktrees-to-git-ignore"
5910
},
6011
{
6112
"cli": "nx",
62-
"version": "21.5.0-beta.2",
63-
"requires": { "@angular/core": ">=20.2.0" },
64-
"description": "Update the @angular/cli package version to ~20.2.0.",
65-
"factory": "./src/migrations/update-21-5-0/update-angular-cli",
66-
"package": "@nx/angular",
67-
"name": "update-angular-cli-version-20-2-0"
68-
},
69-
{
70-
"version": "21.5.0-beta.2",
71-
"requires": { "@angular/core": ">=20.2.0" },
72-
"description": "Remove any Karma configuration files that only contain the default content. The default configuration is automatically available without a specific project configurationfile.",
73-
"factory": "./src/migrations/update-21-5-0/remove-default-karma-configuration-files",
74-
"package": "@nx/angular",
75-
"name": "remove-default-karma-configuration-files"
13+
"version": "22.6.0-rc.0",
14+
"description": "Adds .claude/settings.local.json to .gitignore",
15+
"implementation": "./src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore",
16+
"package": "nx",
17+
"name": "22-6-0-add-claude-settings-local-to-git-ignore"
7618
},
7719
{
7820
"cli": "nx",
79-
"version": "21.6.1-beta.2",
80-
"requires": { "@angular/core": ">=20.3.0" },
81-
"description": "Update the @angular/cli package version to ~20.3.0.",
82-
"factory": "./src/migrations/update-21-6-1/update-angular-cli",
83-
"package": "@nx/angular",
84-
"name": "update-angular-cli-version-20-3-0"
85-
},
86-
{
87-
"version": "22.3.0-beta.0",
88-
"requires": { "@angular/core": ">=21.0.0" },
89-
"description": "Update the @angular/cli package version to ~21.0.0.",
90-
"factory": "./src/migrations/update-22-3-0/update-angular-cli",
91-
"package": "@nx/angular",
92-
"name": "update-angular-cli-version-21-0-0"
93-
},
94-
{
95-
"version": "22.3.0-beta.0",
96-
"requires": { "@angular/core": ">=21.0.0" },
97-
"description": "Updates webpack-based SSR configuration to use preserve module format and bundler module resolution.",
98-
"factory": "./src/migrations/update-22-3-0/update-ssr-webpack-config",
99-
"package": "@nx/angular",
100-
"name": "update-ssr-webpack-config-22-2-0"
101-
},
102-
{
103-
"version": "22.3.0-beta.0",
104-
"requires": { "@angular/core": ">=21.0.0-rc.3" },
105-
"description": "Update 'module' to 'preserve' and 'moduleResolution' to 'bundler' in TypeScript configurations for Angular projects.",
106-
"factory": "./src/migrations/update-22-3-0/update-module-resolution",
107-
"package": "@nx/angular",
108-
"name": "update-module-resolution-22-2-0"
109-
},
110-
{
111-
"version": "22.3.0-beta.0",
112-
"requires": { "@angular/core": ">=21.0.0" },
113-
"description": "Updates the 'lib' property in tsconfig files to use 'es2022' or a more modern version.",
114-
"factory": "./src/migrations/update-22-3-0/update-typescript-lib",
115-
"package": "@nx/angular",
116-
"name": "update-typescript-lib-22-2-0"
117-
},
118-
{
119-
"version": "22.3.0-beta.0",
120-
"requires": { "@angular/core": ">=21.0.0" },
121-
"description": "Update 'vitest' unit test runner option to 'vitest-analog' in generator defaults.",
122-
"factory": "./src/migrations/update-22-3-0/update-unit-test-runner-option",
123-
"package": "@nx/angular",
124-
"name": "update-unit-test-runner-option"
125-
},
126-
{
127-
"version": "22.3.0-beta.3",
128-
"requires": { "@angular/core": ">=21.0.0" },
129-
"description": "Set 'isolatedModules' to 'true' in TypeScript test configurations for Angular projects.",
130-
"factory": "./src/migrations/update-22-3-0/set-isolated-modules",
131-
"package": "@nx/angular",
132-
"name": "set-isolated-modules-22-3-0"
133-
},
134-
{
135-
"version": "22.3.0-beta.3",
136-
"requires": { "@angular/core": ">=21.0.0" },
137-
"description": "Replace 'jest-preset-angular/setup-jest' imports with the new 'setupZoneTestEnv' function.",
138-
"factory": "./src/migrations/update-22-3-0/update-jest-preset-angular-setup",
139-
"package": "@nx/angular",
140-
"name": "update-jest-preset-angular-setup"
141-
},
142-
{
143-
"version": "21.0.0",
144-
"description": "Converts the entire application to block control flow syntax",
145-
"factory": "./bundles/control-flow-migration.cjs#migrate",
146-
"package": "@angular/core",
147-
"name": "control-flow-migration"
148-
},
149-
{
150-
"version": "21.0.0",
151-
"description": "Replaces usages of the deprecated Router.getCurrentNavigation method with the Router.currentNavigation signal",
152-
"factory": "./bundles/router-current-navigation.cjs#migrate",
153-
"optional": true,
154-
"package": "@angular/core",
155-
"name": "router-current-navigation"
156-
},
157-
{
158-
"version": "21.0.0",
159-
"description": "Ensures that the Router.lastSuccessfulNavigation signal is now invoked",
160-
"factory": "./bundles/router-last-successful-navigation.cjs#migrate",
161-
"package": "@angular/core",
162-
"name": "router-last-successful-navigation"
163-
},
164-
{
165-
"version": "21.0.0",
166-
"description": "Moves imports of `ApplicationConfig` from `@angular/platform-browser` to `@angular/core`",
167-
"factory": "./bundles/application-config-core.cjs#migrate",
168-
"package": "@angular/core",
169-
"name": "application-config-core"
170-
},
171-
{
172-
"version": "21.0.0",
173-
"description": "Adds `BootstrapContext` to `bootstrapApplication` calls in `main.server.ts` to support server rendering.",
174-
"factory": "./bundles/add-bootstrap-context-to-server-main.cjs#migrate",
175-
"package": "@angular/core",
176-
"name": "add-bootstrap-context-to-server-main"
177-
},
178-
{
179-
"version": "21.0.0",
180-
"description": "Migrates deprecated bootstrap options to providers.",
181-
"factory": "./bundles/bootstrap-options-migration.cjs#migrate",
182-
"package": "@angular/core",
183-
"name": "bootstrap-options-migration"
184-
},
185-
{
186-
"version": "21.0.0-0",
187-
"description": "Updates Angular Material to v21",
188-
"factory": "./ng-update/index_bundled#updateToV21",
189-
"package": "@angular/material",
190-
"name": "migration-v21"
191-
},
192-
{
193-
"version": "21.0.0-0",
194-
"description": "Updates the Angular CDK to v21",
195-
"factory": "./ng-update/index#updateToV21",
196-
"package": "@angular/cdk",
197-
"name": "migration-v21"
21+
"version": "22.6.0-beta.11",
22+
"description": "Prompts to enable usage analytics",
23+
"implementation": "./src/migrations/update-22-6-0/enable-analytics-prompt",
24+
"package": "nx",
25+
"name": "22-6-0-enable-analytics-prompt"
19826
}
19927
]
20028
}

nx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,6 @@
8282
"style": "css"
8383
}
8484
},
85-
"useLegacyCache": true
85+
"useLegacyCache": true,
86+
"analytics": false
8687
}

package.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -18,53 +18,53 @@
1818
"pnpm": ">=10"
1919
},
2020
"dependencies": {
21-
"@angular/animations": "21.0.6",
22-
"@angular/cdk": "21.0.3",
23-
"@angular/common": "21.0.6",
24-
"@angular/compiler": "21.0.6",
25-
"@angular/core": "21.0.6",
26-
"@angular/forms": "21.0.6",
27-
"@angular/material": "21.0.3",
28-
"@angular/platform-browser": "21.0.6",
29-
"@angular/platform-browser-dynamic": "21.0.6",
30-
"@angular/router": "21.0.6",
31-
"@ngrx/signals": "21.0.0",
32-
"@ngrx/store": "21.0.0",
33-
"@nx/angular": "22.3.1",
21+
"@angular/animations": "21.2.7",
22+
"@angular/cdk": "21.2.5",
23+
"@angular/common": "21.2.7",
24+
"@angular/compiler": "21.2.7",
25+
"@angular/core": "21.2.7",
26+
"@angular/forms": "21.2.7",
27+
"@angular/material": "21.2.5",
28+
"@angular/platform-browser": "21.2.6",
29+
"@angular/platform-browser-dynamic": "21.2.7",
30+
"@angular/router": "21.2.7",
31+
"@ngrx/signals": "21.1.0",
32+
"@ngrx/store": "21.1.0",
33+
"@nx/angular": "22.6.5",
3434
"core-js": "^3.40.0",
3535
"flush-promises": "^1.0.2",
3636
"rxjs": "~7.8.0",
3737
"tslib": "^2.3.0",
3838
"zone.js": "0.16.0"
3939
},
4040
"devDependencies": {
41-
"@angular-devkit/build-angular": "21.0.3",
42-
"@angular-devkit/core": "21.0.3",
43-
"@angular-devkit/schematics": "21.0.3",
44-
"@angular/cli": "~21.0.0",
45-
"@angular/compiler-cli": "21.0.6",
46-
"@angular/language-service": "21.0.6",
41+
"@angular-devkit/build-angular": "21.2.6",
42+
"@angular-devkit/core": "21.2.6",
43+
"@angular-devkit/schematics": "21.2.6",
44+
"@angular/cli": "21.2.6",
45+
"@angular/compiler-cli": "21.2.7",
46+
"@angular/language-service": "21.2.7",
4747
"@commitlint/cli": "^19.3.0",
4848
"@commitlint/config-conventional": "^19.2.2",
4949
"@eslint/eslintrc": "^2.1.1",
5050
"@eslint/js": "~8.57.0",
51-
"@nx/devkit": "22.3.1",
52-
"@nx/eslint": "22.3.1",
53-
"@nx/eslint-plugin": "22.3.1",
54-
"@nx/jest": "22.3.1",
55-
"@nx/js": "22.3.1",
56-
"@nx/playwright": "22.3.1",
57-
"@nx/workspace": "22.3.1",
51+
"@nx/devkit": "22.6.5",
52+
"@nx/eslint": "22.6.5",
53+
"@nx/eslint-plugin": "22.6.5",
54+
"@nx/jest": "22.6.5",
55+
"@nx/js": "22.6.5",
56+
"@nx/playwright": "22.6.5",
57+
"@nx/workspace": "22.6.5",
5858
"@playwright/test": "^1.36.0",
59-
"@schematics/angular": "21.0.3",
59+
"@schematics/angular": "21.2.6",
6060
"@softarc/eslint-plugin-sheriff": "^0.15.1",
6161
"@softarc/sheriff-core": "^0.15.1",
62-
"@swc-node/register": "~1.9.1",
63-
"@swc/core": "~1.5.7",
64-
"@swc/helpers": "~0.5.11",
62+
"@swc-node/register": "1.11.1",
63+
"@swc/core": "1.15.8",
64+
"@swc/helpers": "0.5.21",
6565
"@types/jest": "30.0.0",
6666
"@types/node": "18.16.9",
67-
"angular-eslint": "21.0.1",
67+
"angular-eslint": "21.2.0",
6868
"autoprefixer": "^10.4.19",
6969
"eslint": "^9.8.0",
7070
"eslint-config-prettier": "10.1.5",
@@ -78,8 +78,8 @@
7878
"jest-util": "30.0.5",
7979
"jsonc-eslint-parser": "^2.4.0",
8080
"lint-staged": "^15.3.0",
81-
"ng-packagr": "21.0.1",
82-
"nx": "22.3.1",
81+
"ng-packagr": "21.1.0",
82+
"nx": "22.6.5",
8383
"postcss": "^8.4.39",
8484
"postcss-import": "^16.1.0",
8585
"postcss-preset-env": "^9.5.15",

0 commit comments

Comments
 (0)