Skip to content

Commit 42c4aef

Browse files
committed
feat(): upgrade to latest nx and angular
1 parent 4c4c530 commit 42c4aef

3 files changed

Lines changed: 3290 additions & 1598 deletions

File tree

migrations.json

Lines changed: 8 additions & 236 deletions
Original file line numberDiff line numberDiff line change
@@ -1,248 +1,20 @@
11
{
22
"migrations": [
33
{
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"
4+
"version": "22.3.2-beta.0",
5+
"requires": { "@angular/build": ">=21.0.0" },
6+
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.",
7+
"implementation": "./src/migrations/update-22-1-0/create-ai-instructions-for-vitest-4",
8+
"package": "@nx/vitest",
9+
"name": "update-22-3-2"
910
},
1011
{
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-
},
17-
{
18-
"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",
22-
"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.1.0-beta.6",
48-
"requires": { "cypress": ">=15.0.0" },
49-
"description": "Renames `cy.exec().its('code')` usages to the new `exitCode` property introduced in Cypress v15.",
50-
"implementation": "./src/migrations/update-22-1-0/rename-cy-exec-code-property",
51-
"package": "@nx/cypress",
52-
"name": "rename-cy-exec-code-property"
53-
},
54-
{
55-
"version": "22.1.0-beta.6",
56-
"requires": { "cypress": ">=15.0.0" },
57-
"description": "Updates the deprecated `Cypress.SelectorPlayground` API to `Cypress.ElementSelector` and removes the unsupported `onElement` option.",
58-
"implementation": "./src/migrations/update-22-1-0/update-selector-playground-api",
59-
"package": "@nx/cypress",
60-
"name": "update-selector-playground-api"
61-
},
62-
{
63-
"version": "22.1.0-beta.6",
64-
"requires": { "cypress": ">=15.0.0" },
65-
"description": "For Angular component testing projects below v18, switches to the fallback `@cypress/angular` harness required by Cypress v15.",
66-
"implementation": "./src/migrations/update-22-1-0/update-angular-component-testing-support",
67-
"package": "@nx/cypress",
68-
"name": "update-angular-component-testing-support"
69-
},
70-
{
71-
"version": "21.3.0-beta.3",
72-
"description": "Rename the CLI option `testPathPattern` to `testPathPatterns`.",
73-
"implementation": "./src/migrations/update-21-3-0/rename-test-path-pattern",
74-
"package": "@nx/jest",
75-
"name": "rename-test-path-pattern"
76-
},
77-
{
78-
"version": "21.3.0-beta.3",
12+
"version": "22.3.2-beta.0",
7913
"requires": { "jest": ">=30.0.0" },
8014
"description": "Replace removed matcher aliases in Jest v30 with their corresponding matcher",
8115
"implementation": "./src/migrations/update-21-3-0/replace-removed-matcher-aliases",
8216
"package": "@nx/jest",
83-
"name": "replace-removed-matcher-aliases"
84-
},
85-
{
86-
"version": "22.2.0-beta.2",
87-
"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.",
88-
"implementation": "./src/migrations/update-22-2-0/convert-jest-config-to-cjs",
89-
"package": "@nx/jest",
90-
"name": "convert-jest-config-to-cjs"
91-
},
92-
{
93-
"cli": "nx",
94-
"version": "21.3.0-beta.4",
95-
"requires": { "@angular/core": ">=20.1.0" },
96-
"description": "Update the @angular/cli package version to ~20.1.0.",
97-
"factory": "./src/migrations/update-21-3-0/update-angular-cli",
98-
"package": "@nx/angular",
99-
"name": "update-angular-cli-version-20-1-0"
100-
},
101-
{
102-
"version": "21.5.0-beta.0",
103-
"description": "Set the 'tsConfig' option to build and test targets to help with Angular migration issues.",
104-
"factory": "./src/migrations/update-21-5-0/set-tsconfig-option",
105-
"package": "@nx/angular",
106-
"name": "set-tsconfig-option"
107-
},
108-
{
109-
"cli": "nx",
110-
"version": "21.5.0-beta.2",
111-
"requires": { "@angular/core": ">=20.2.0" },
112-
"description": "Update the @angular/cli package version to ~20.2.0.",
113-
"factory": "./src/migrations/update-21-5-0/update-angular-cli",
114-
"package": "@nx/angular",
115-
"name": "update-angular-cli-version-20-2-0"
116-
},
117-
{
118-
"version": "21.5.0-beta.2",
119-
"requires": { "@angular/core": ">=20.2.0" },
120-
"description": "Remove any Karma configuration files that only contain the default content. The default configuration is automatically available without a specific project configurationfile.",
121-
"factory": "./src/migrations/update-21-5-0/remove-default-karma-configuration-files",
122-
"package": "@nx/angular",
123-
"name": "remove-default-karma-configuration-files"
124-
},
125-
{
126-
"cli": "nx",
127-
"version": "21.6.1-beta.2",
128-
"requires": { "@angular/core": ">=20.3.0" },
129-
"description": "Update the @angular/cli package version to ~20.3.0.",
130-
"factory": "./src/migrations/update-21-6-1/update-angular-cli",
131-
"package": "@nx/angular",
132-
"name": "update-angular-cli-version-20-3-0"
133-
},
134-
{
135-
"version": "22.3.0-beta.0",
136-
"requires": { "@angular/core": ">=21.0.0" },
137-
"description": "Update the @angular/cli package version to ~21.0.0.",
138-
"factory": "./src/migrations/update-22-3-0/update-angular-cli",
139-
"package": "@nx/angular",
140-
"name": "update-angular-cli-version-21-0-0"
141-
},
142-
{
143-
"version": "22.3.0-beta.0",
144-
"requires": { "@angular/core": ">=21.0.0" },
145-
"description": "Updates webpack-based SSR configuration to use preserve module format and bundler module resolution.",
146-
"factory": "./src/migrations/update-22-3-0/update-ssr-webpack-config",
147-
"package": "@nx/angular",
148-
"name": "update-ssr-webpack-config-22-2-0"
149-
},
150-
{
151-
"version": "22.3.0-beta.0",
152-
"requires": { "@angular/core": ">=21.0.0-rc.3" },
153-
"description": "Update 'module' to 'preserve' and 'moduleResolution' to 'bundler' in TypeScript configurations for Angular projects.",
154-
"factory": "./src/migrations/update-22-3-0/update-module-resolution",
155-
"package": "@nx/angular",
156-
"name": "update-module-resolution-22-2-0"
157-
},
158-
{
159-
"version": "22.3.0-beta.0",
160-
"requires": { "@angular/core": ">=21.0.0" },
161-
"description": "Updates the 'lib' property in tsconfig files to use 'es2022' or a more modern version.",
162-
"factory": "./src/migrations/update-22-3-0/update-typescript-lib",
163-
"package": "@nx/angular",
164-
"name": "update-typescript-lib-22-2-0"
165-
},
166-
{
167-
"version": "22.3.0-beta.0",
168-
"requires": { "@angular/core": ">=21.0.0" },
169-
"description": "Update 'vitest' unit test runner option to 'vitest-analog' in generator defaults.",
170-
"factory": "./src/migrations/update-22-3-0/update-unit-test-runner-option",
171-
"package": "@nx/angular",
172-
"name": "update-unit-test-runner-option"
173-
},
174-
{
175-
"version": "22.3.0-beta.3",
176-
"requires": { "@angular/core": ">=21.0.0" },
177-
"description": "Set 'isolatedModules' to 'true' in TypeScript test configurations for Angular projects.",
178-
"factory": "./src/migrations/update-22-3-0/set-isolated-modules",
179-
"package": "@nx/angular",
180-
"name": "set-isolated-modules-22-3-0"
181-
},
182-
{
183-
"version": "22.3.0-beta.3",
184-
"requires": { "@angular/core": ">=21.0.0" },
185-
"description": "Replace 'jest-preset-angular/setup-jest' imports with the new 'setupZoneTestEnv' function.",
186-
"factory": "./src/migrations/update-22-3-0/update-jest-preset-angular-setup",
187-
"package": "@nx/angular",
188-
"name": "update-jest-preset-angular-setup"
189-
},
190-
{
191-
"version": "21.0.0",
192-
"description": "Converts the entire application to block control flow syntax",
193-
"factory": "./bundles/control-flow-migration.cjs#migrate",
194-
"package": "@angular/core",
195-
"name": "control-flow-migration"
196-
},
197-
{
198-
"version": "21.0.0",
199-
"description": "Replaces usages of the deprecated Router.getCurrentNavigation method with the Router.currentNavigation signal",
200-
"factory": "./bundles/router-current-navigation.cjs#migrate",
201-
"optional": true,
202-
"package": "@angular/core",
203-
"name": "router-current-navigation"
204-
},
205-
{
206-
"version": "21.0.0",
207-
"description": "Ensures that the Router.lastSuccessfulNavigation signal is now invoked",
208-
"factory": "./bundles/router-last-successful-navigation.cjs#migrate",
209-
"package": "@angular/core",
210-
"name": "router-last-successful-navigation"
211-
},
212-
{
213-
"version": "21.0.0",
214-
"description": "Moves imports of `ApplicationConfig` from `@angular/platform-browser` to `@angular/core`",
215-
"factory": "./bundles/application-config-core.cjs#migrate",
216-
"package": "@angular/core",
217-
"name": "application-config-core"
218-
},
219-
{
220-
"version": "21.0.0",
221-
"description": "Adds `BootstrapContext` to `bootstrapApplication` calls in `main.server.ts` to support server rendering.",
222-
"factory": "./bundles/add-bootstrap-context-to-server-main.cjs#migrate",
223-
"package": "@angular/core",
224-
"name": "add-bootstrap-context-to-server-main"
225-
},
226-
{
227-
"version": "21.0.0",
228-
"description": "Migrates deprecated bootstrap options to providers.",
229-
"factory": "./bundles/bootstrap-options-migration.cjs#migrate",
230-
"package": "@angular/core",
231-
"name": "bootstrap-options-migration"
232-
},
233-
{
234-
"version": "21.0.0-0",
235-
"description": "Updates Angular Material to v21",
236-
"factory": "./ng-update/index_bundled#updateToV21",
237-
"package": "@angular/material",
238-
"name": "migration-v21"
239-
},
240-
{
241-
"version": "21.0.0-0",
242-
"description": "Updates the Angular CDK to v21",
243-
"factory": "./ng-update/index#updateToV21",
244-
"package": "@angular/cdk",
245-
"name": "migration-v21"
17+
"name": "replace-removed-matcher-aliases-v22-3"
24618
}
24719
]
24820
}

package.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@
2020
"dependencies": {
2121
"@actions/core": "^1.10.1",
2222
"@actions/github": "^6.0.0",
23-
"@angular/animations": "21.1.0",
24-
"@angular/cdk": "21.1.0",
25-
"@angular/common": "21.1.0",
26-
"@angular/compiler": "21.1.0",
27-
"@angular/core": "21.1.0",
28-
"@angular/forms": "21.1.0",
29-
"@angular/material": "21.1.0",
30-
"@angular/platform-browser": "21.1.0",
31-
"@angular/platform-browser-dynamic": "21.1.0",
32-
"@angular/platform-server": "21.1.0",
33-
"@angular/router": "21.1.0",
34-
"@angular/ssr": "21.1.0",
23+
"@angular/animations": "21.2.2",
24+
"@angular/cdk": "21.2.1",
25+
"@angular/common": "21.2.2",
26+
"@angular/compiler": "21.2.2",
27+
"@angular/core": "21.2.2",
28+
"@angular/forms": "21.2.2",
29+
"@angular/material": "21.2.1",
30+
"@angular/platform-browser": "21.2.2",
31+
"@angular/platform-browser-dynamic": "21.2.2",
32+
"@angular/platform-server": "21.2.2",
33+
"@angular/router": "21.2.2",
34+
"@angular/ssr": "21.2.1",
3535
"@ngneat/falso": "7.2.0",
3636
"@ngrx/component-store": "21.0.0",
3737
"@ngrx/operators": "21.0.0",
38-
"@nx/angular": "22.3.1",
39-
"@swc/helpers": "0.5.12",
38+
"@nx/angular": "22.5.4",
39+
"@swc/helpers": "0.5.19",
4040
"@tanstack/angular-query-experimental": "5.90.16",
4141
"express": "^4.21.2",
4242
"rxjs": "7.8.1",
@@ -45,37 +45,37 @@
4545
"zone.js": "0.16.0"
4646
},
4747
"devDependencies": {
48-
"@analogjs/vite-plugin-angular": "^2.2.3",
49-
"@analogjs/vitest-angular": "^2.2.3",
50-
"@angular-devkit/build-angular": "21.1.0",
51-
"@angular-devkit/core": "21.1.0",
52-
"@angular-devkit/schematics": "21.1.0",
53-
"angular-eslint": "21.1.0",
54-
"@angular/build": "21.1.0",
55-
"@angular/cli": "21.1.0",
56-
"@angular/compiler-cli": "21.1.0",
57-
"@angular/language-service": "21.1.0",
48+
"@analogjs/vite-plugin-angular": "2.2.3",
49+
"@analogjs/vitest-angular": "2.2.3",
50+
"@angular-devkit/build-angular": "21.2.1",
51+
"@angular-devkit/core": "21.2.1",
52+
"@angular-devkit/schematics": "21.2.1",
53+
"angular-eslint": "21.3.0",
54+
"@angular/build": "21.2.1",
55+
"@angular/cli": "21.2.1",
56+
"@angular/compiler-cli": "21.2.2",
57+
"@angular/language-service": "21.2.2",
5858
"@commitlint/cli": "^17.2.0",
5959
"@commitlint/config-conventional": "^17.2.0",
6060
"@cypress/webpack-dev-server": "5.4.1",
6161
"@eslint/eslintrc": "^2.1.1",
6262
"@hirez_io/observer-spy": "^2.2.0",
6363
"@ngrx/schematics": "19.0.1",
64-
"@nx/cypress": "22.3.1",
65-
"@nx/devkit": "22.3.1",
66-
"@nx/eslint": "22.3.1",
67-
"@nx/eslint-plugin": "22.3.1",
68-
"@nx/jest": "22.3.1",
69-
"@nx/js": "22.3.1",
70-
"@nx/plugin": "22.3.1",
71-
"@nx/vite": "22.3.1",
72-
"@nx/vitest": "22.3.1",
73-
"@nx/web": "22.3.1",
74-
"@nx/workspace": "22.3.1",
75-
"@schematics/angular": "21.1.0",
76-
"@swc-node/register": "1.9.2",
77-
"@swc/cli": "0.6.0",
78-
"@swc/core": "1.10.0",
64+
"@nx/cypress": "22.5.4",
65+
"@nx/devkit": "22.5.4",
66+
"@nx/eslint": "22.5.4",
67+
"@nx/eslint-plugin": "22.5.4",
68+
"@nx/jest": "22.5.4",
69+
"@nx/js": "22.5.4",
70+
"@nx/plugin": "22.5.4",
71+
"@nx/vite": "22.5.4",
72+
"@nx/vitest": "22.5.4",
73+
"@nx/web": "22.5.4",
74+
"@nx/workspace": "22.5.4",
75+
"@schematics/angular": "21.2.1",
76+
"@swc-node/register": "1.11.1",
77+
"@swc/cli": "0.7.10",
78+
"@swc/core": "1.15.8",
7979
"@tailwindcss/forms": "0.5.9",
8080
"@testing-library/angular": "19.0.0",
8181
"@testing-library/cypress": "10.1.0",
@@ -105,7 +105,7 @@
105105
"jsonc-eslint-parser": "^2.1.0",
106106
"lint-staged": "^13.0.3",
107107
"ng-packagr": "21.0.1",
108-
"nx": "22.3.1",
108+
"nx": "22.5.4",
109109
"playwright": "1.58.2",
110110
"postcss": "^8.4.5",
111111
"postcss-import": "~14.1.0",

0 commit comments

Comments
 (0)