Skip to content

Commit 7a11061

Browse files
authored
chore: 🤖 upgrade to angular v18 (#775)
* chore: 🤖 upgrade to nx v19
1 parent 6c042cc commit 7a11061

File tree

6 files changed

+9580
-7738
lines changed

6 files changed

+9580
-7738
lines changed

apps/transloco-playground/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
/>
1414
</head>
1515
<body>
16-
<app-root />
16+
<app-root></app-root>
1717
</body>
1818
</html>

libs/transloco/src/lib/tests/inline-loaders.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { createFactory } from './directive/shared';
2222

2323
const inlineLoaders = provideTranslocoScope(inlineScope);
2424

25-
function updateView<T>(spectator: Spectator<T>, service: TranslocoService) {
25+
function updateView<T>(spectator: Spectator<T> | SpectatorHost<T>, service: TranslocoService) {
2626
runLoader();
2727
spectator.detectChanges();
2828
expect(spectator.query('span')).toHaveText('Todos Title English');

migrations.json

Lines changed: 8 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -1,197 +1,13 @@
11
{
22
"migrations": [
33
{
4-
"cli": "nx",
5-
"version": "16.8.0-beta.3",
6-
"description": "Escape $ in env variables",
7-
"implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
8-
"package": "nx",
9-
"name": "16.8.0-escape-dollar-sign-env"
10-
},
11-
{
12-
"cli": "nx",
13-
"version": "17.0.0-beta.1",
14-
"description": "Updates the default cache directory to .nx/cache",
15-
"implementation": "./src/migrations/update-17-0-0/move-cache-directory",
16-
"package": "nx",
17-
"name": "17.0.0-move-cache-directory"
18-
},
19-
{
20-
"cli": "nx",
21-
"version": "17.0.0-beta.3",
22-
"description": "Use minimal config for tasksRunnerOptions",
23-
"implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options",
24-
"package": "nx",
25-
"name": "17.0.0-use-minimal-config-for-tasks-runner-options"
26-
},
27-
{
28-
"version": "17.0.0-rc.1",
29-
"description": "Migration for v17.0.0-rc.1",
30-
"implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope",
31-
"package": "nx",
32-
"name": "rm-default-collection-npm-scope"
33-
},
34-
{
35-
"version": "17.1.0-beta.2",
36-
"description": "Move jest executor options to nx.json targetDefaults",
37-
"implementation": "./src/migrations/update-17-1-0/move-options-to-target-defaults",
38-
"package": "@nx/jest",
39-
"name": "move-options-to-target-defaults"
40-
},
41-
{
42-
"cli": "nx",
43-
"version": "17-2-6-beta.1",
44-
"description": "Rename workspace rules from @nx/workspace/name to @nx/workspace-name",
45-
"implementation": "./src/migrations/update-17-2-6-rename-workspace-rules/rename-workspace-rules",
46-
"package": "@nx/eslint-plugin",
47-
"name": "update-17-2-6-rename-workspace-rules"
48-
},
49-
{
50-
"cli": "nx",
51-
"version": "16.8.2-beta.0",
52-
"description": "Remove invalid options (strict, noInterop) for ES6 type modules.",
53-
"factory": "./src/migrations/update-16-8-2/update-swcrc",
54-
"package": "@nx/js",
55-
"name": "16-8-2-update-swcrc"
56-
},
57-
{
58-
"cli": "nx",
59-
"version": "17.0.2",
60-
"description": "Remove deprecated build options",
61-
"implementation": "./src/migrations/update-17-0-0/remove-deprecated-build-options",
62-
"package": "@nx/js",
63-
"name": "update-17-0-0-remove-deprecated-build-options"
64-
},
65-
{
66-
"cli": "nx",
67-
"version": "16.8.0-beta.4",
68-
"description": "Update to Cypress v13. Most noteable change is video recording is off by default. This migration will only update if the workspace is already on Cypress v12. https://docs.cypress.io/guides/references/migration-guide#Migrating-to-Cypress-130",
69-
"implementation": "./src/migrations/update-16-8-0/cypress-13",
70-
"package": "@nx/cypress",
71-
"name": "update-16-8-0-cypress-13"
72-
},
73-
{
74-
"cli": "nx",
75-
"version": "16.7.0-beta.6",
76-
"requires": {
77-
"@angular/core": ">=16.2.0"
78-
},
79-
"description": "Update the @angular/cli package version to ~16.2.0.",
80-
"factory": "./src/migrations/update-16-7-0/update-angular-cli",
81-
"package": "@nx/angular",
82-
"name": "update-angular-cli-version-16-2-0"
83-
},
84-
{
85-
"cli": "nx",
86-
"version": "17.1.0-beta.5",
87-
"requires": {
88-
"@angular/core": ">=17.0.0"
89-
},
90-
"description": "Update the @angular/cli package version to ~17.0.0.",
91-
"factory": "./src/migrations/update-17-1-0/update-angular-cli",
92-
"package": "@nx/angular",
93-
"name": "update-angular-cli-version-17-0-0"
94-
},
95-
{
96-
"cli": "nx",
97-
"version": "17.1.0-beta.5",
98-
"requires": {
99-
"@angular/core": ">=17.0.0"
100-
},
101-
"description": "Rename 'browserTarget' to 'buildTarget'.",
102-
"factory": "./src/migrations/update-17-1-0/browser-target-to-build-target",
103-
"package": "@nx/angular",
104-
"name": "rename-browser-target-to-build-target"
105-
},
106-
{
107-
"cli": "nx",
108-
"version": "17.1.0-beta.5",
109-
"requires": {
110-
"@angular/core": ">=17.0.0"
111-
},
112-
"description": "Replace usages of '@nguniversal/builders' with '@angular-devkit/build-angular'.",
113-
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-builders",
114-
"package": "@nx/angular",
115-
"name": "replace-nguniversal-builders"
116-
},
117-
{
118-
"cli": "nx",
119-
"version": "17.1.0-beta.5",
120-
"requires": {
121-
"@angular/core": ">=17.0.0"
122-
},
123-
"description": "Replace usages of '@nguniversal/' packages with '@angular/ssr'.",
124-
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-engines",
125-
"package": "@nx/angular",
126-
"name": "replace-nguniversal-engines"
127-
},
128-
{
129-
"cli": "nx",
130-
"version": "17.1.0-beta.5",
131-
"requires": {
132-
"@angular/core": ">=17.0.0"
133-
},
134-
"description": "Replace the deep imports from 'zone.js/dist/zone' and 'zone.js/dist/zone-testing' with 'zone.js' and 'zone.js/testing'.",
135-
"factory": "./src/migrations/update-17-1-0/update-zone-js-deep-import",
136-
"package": "@nx/angular",
137-
"name": "update-zone-js-deep-import"
138-
},
139-
{
140-
"cli": "nx",
141-
"version": "17.2.0-beta.2",
142-
"description": "Rename '@nx/angular:webpack-dev-server' executor to '@nx/angular:dev-server'",
143-
"factory": "./src/migrations/update-17-2-0/rename-webpack-dev-server",
144-
"package": "@nx/angular",
145-
"name": "rename-webpack-dev-server-executor"
146-
},
147-
{
148-
"version": "16.8.0",
149-
"description": "update-16-8-0-add-ignored-files",
150-
"implementation": "./src/migrations/update-16-8-0-add-ignored-files/update-16-8-0-add-ignored-files",
151-
"package": "@nx/eslint",
152-
"name": "update-16-8-0-add-ignored-files"
153-
},
154-
{
155-
"version": "17.0.0-beta.7",
156-
"description": "update-17-0-0-rename-to-eslint",
157-
"implementation": "./src/migrations/update-17-0-0-rename-to-eslint/update-17-0-0-rename-to-eslint",
158-
"package": "@nx/eslint",
159-
"name": "update-17-0-0-rename-to-eslint"
160-
},
161-
{
162-
"version": "17.1.0-beta.1",
163-
"description": "Updates for @typescript-utils/utils v6.9.1+",
164-
"implementation": "./src/migrations/update-17-1-0/update-typescript-eslint",
165-
"package": "@nx/eslint",
166-
"name": "update-typescript-eslint"
167-
},
168-
{
169-
"version": "17.2.0-beta.0",
170-
"description": "Simplify eslintFilePatterns",
171-
"implementation": "./src/migrations/update-17-2-0/simplify-eslint-patterns",
172-
"package": "@nx/eslint",
173-
"name": "simplify-eslint-patterns"
174-
},
175-
{
176-
"version": "17.0.0",
177-
"description": "Angular v17 introduces a new control flow syntax that uses the @ and } characters. This migration replaces the existing usages with their corresponding HTML entities.",
178-
"factory": "./migrations/block-template-entities/bundle",
179-
"package": "@angular/core",
180-
"name": "block-template-entities"
181-
},
182-
{
183-
"version": "17.0.0",
184-
"description": "CompilerOption.useJit and CompilerOption.missingTranslation are unused under Ivy. This migration removes their usage",
185-
"factory": "./migrations/compiler-options/bundle",
186-
"package": "@angular/core",
187-
"name": "migration-v17-compiler-options"
188-
},
189-
{
190-
"version": "17.0.0",
191-
"description": "Updates `TransferState`, `makeStateKey`, `StateKey` imports from `@angular/platform-browser` to `@angular/core`.",
192-
"factory": "./migrations/transfer-state/bundle",
193-
"package": "@angular/core",
194-
"name": "migration-transfer-state"
4+
"version": "18.0.0",
5+
"factory": "./use-application-builder/migration",
6+
"description": "Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration",
7+
"optional": true,
8+
"documentation": "tools/cli/build-system-migration",
9+
"package": "@angular/cli",
10+
"name": "use-application-builder"
19511
}
19612
]
197-
}
13+
}

0 commit comments

Comments
 (0)