Skip to content

Commit c080581

Browse files
authored
feat(deps): update peerDependencies to 20.x.x (#211)
* chore(deps): update `peerDependencies` to `20.x.x` * chore: [nx migration] control-flow-migration * chore: [nx migration] update-angular-cli-version-19-1-0 * chore: [nx migration] update-angular-cli-version-19-2-0 * chore: [nx migration] set-continuous-option * chore: [nx migration] remove-legacy-cache * chore: [nx migration] 21-1-0-add-ignore-entries-for-nx-rule-files * chore: [nx migration] update-angular-cli-version-20-0-0 * chore: [nx migration] set-generator-defaults-for-previous-style-guide * chore(deps): bump versions to their respective minor version * fix(query): remove `notifiers` options on `setOptions` of queryObserver Somewhere in the span of the minor version that was set before, they've changed the `setOptions` to only accept a options object. Test seem to run fine and manually testing dont show any unwanted sideeffects * refactor(query): removed `TQueryData` from most of query functions ... ... because it seems that tanstack has removed them in some later version from the one that was set before the update to NG 20.0.2 * chore(playground): remove unused imports to remove warnings while building * chore: update nx to `21.2.0` from `21.2.0-beta.5` additionally setting the node version of the ci workflow to 22 to mitigate a building error * chore: bump packaged versions
1 parent 59eca0d commit c080581

File tree

17 files changed

+7924
-6098
lines changed

17 files changed

+7924
-6098
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
${{ runner.os }}-
2626
- uses: actions/setup-node@v4
2727
with:
28-
node-version: '18'
28+
node-version: '22'
2929
cache: 'npm'
3030

3131
- name: Install dependencies

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ Thumbs.db
4141
.nx/cache
4242
.nx/workspace-data
4343
.angular
44+
.cursor/rules/nx-rules.mdc
45+
.github/instructions/nx.instructions.md

devtools/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngneat/query-devtools",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Developer tools to interact with and visualize the ngneat/query cache",
55
"license": "MIT",
66
"repository": "ngneat/query",
@@ -10,8 +10,8 @@
1010
"url": "https://github.com/sponsors/ngneat"
1111
},
1212
"peerDependencies": {
13-
"@angular/core": ">=16.0.0 <20.0.0",
14-
"@tanstack/query-devtools": "5.61.4"
13+
"@angular/core": ">=16.0.0 <=20.x.x",
14+
"@tanstack/query-devtools": "5.80.0"
1515
},
1616
"dependencies": {
1717
"tslib": "^2.4.0"

migrations.json

Lines changed: 94 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,209 +1,165 @@
11
{
22
"migrations": [
33
{
4-
"cli": "nx",
5-
"version": "19.2.0-beta.2",
6-
"description": "Updates the default workspace data directory to .nx/workspace-data",
7-
"implementation": "./src/migrations/update-19-2-0/move-workspace-data-directory",
4+
"version": "21.0.0-beta.8",
5+
"description": "Removes the legacy cache configuration from nx.json",
6+
"implementation": "./src/migrations/update-21-0-0/remove-legacy-cache",
87
"package": "nx",
9-
"name": "19-2-0-move-graph-cache-directory"
8+
"name": "remove-legacy-cache"
109
},
1110
{
12-
"cli": "nx",
13-
"version": "19.2.2-beta.0",
14-
"description": "Updates the nx wrapper.",
15-
"implementation": "./src/migrations/update-17-3-0/update-nxw",
11+
"version": "21.0.0-beta.8",
12+
"description": "Removes the legacy cache configuration from nx.json",
13+
"implementation": "./src/migrations/update-21-0-0/remove-custom-tasks-runner",
1614
"package": "nx",
17-
"name": "19-2-2-update-nx-wrapper"
15+
"name": "remove-custom-tasks-runner"
1816
},
1917
{
20-
"version": "19.2.4-beta.0",
21-
"description": "Set project name in nx.json explicitly",
22-
"implementation": "./src/migrations/update-19-2-4/set-project-name",
23-
"x-repair-skip": true,
18+
"version": "21.0.0-beta.11",
19+
"description": "Updates release version config based on the breaking changes in Nx v21",
20+
"implementation": "./src/migrations/update-21-0-0/release-version-config-changes",
2421
"package": "nx",
25-
"name": "19-2-4-set-project-name"
22+
"name": "release-version-config-changes"
2623
},
2724
{
28-
"version": "20.0.0-beta.7",
29-
"description": "Migration for v20.0.0-beta.7",
30-
"implementation": "./src/migrations/update-20-0-0/move-use-daemon-process",
25+
"version": "21.0.0-beta.11",
26+
"description": "Updates release changelog config based on the breaking changes in Nx v21",
27+
"implementation": "./src/migrations/update-21-0-0/release-changelog-config-changes",
3128
"package": "nx",
32-
"name": "move-use-daemon-process"
29+
"name": "release-changelog-config-changes"
3330
},
3431
{
35-
"version": "20.0.1",
36-
"description": "Set `useLegacyCache` to true for migrating workspaces",
37-
"implementation": "./src/migrations/update-20-0-1/use-legacy-cache",
38-
"x-repair-skip": true,
32+
"version": "21.1.0-beta.2",
33+
"description": "Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present",
34+
"implementation": "./src/migrations/update-21-1-0/add-gitignore-entry",
3935
"package": "nx",
40-
"name": "use-legacy-cache"
36+
"name": "21-1-0-add-ignore-entries-for-nx-rule-files"
4137
},
4238
{
43-
"version": "20.2.0-beta.5",
44-
"description": "Update TypeScript ESLint packages to v8.13.0 if they are already on v8",
45-
"implementation": "./src/migrations/update-20-2-0/update-typescript-eslint-v8-13-0",
39+
"version": "20.3.0-beta.1",
40+
"description": "Update ESLint flat config to include .cjs, .mjs, .cts, and .mts files in overrides (if needed)",
41+
"implementation": "./src/migrations/update-20-3-0/add-file-extensions-to-overrides",
4642
"package": "@nx/eslint",
47-
"name": "update-typescript-eslint-v8.13.0"
43+
"name": "add-file-extensions-to-overrides"
4844
},
4945
{
5046
"cli": "nx",
51-
"version": "20.0.0-beta.5",
52-
"description": "replace getJestProjects with getJestProjectsAsync",
53-
"implementation": "./src/migrations/update-20-0-0/replace-getJestProjects-with-getJestProjectsAsync",
47+
"version": "21.0.0-beta.9",
48+
"description": "Replace usage of `getJestProjects` with `getJestProjectsAsync`.",
49+
"implementation": "./src/migrations/update-21-0-0/replace-getJestProjects-with-getJestProjectsAsync",
5450
"package": "@nx/jest",
55-
"name": "replace-getJestProjects-with-getJestProjectsAsync"
56-
},
57-
{
58-
"cli": "nx",
59-
"version": "19.6.0-beta.0",
60-
"description": "Use serve-static or preview for webServerCommand.",
61-
"implementation": "./src/migrations/update-19-6-0/use-serve-static-preview-for-command",
62-
"package": "@nx/playwright",
63-
"name": "19-6-0-use-serve-static-preview-for-command"
64-
},
65-
{
66-
"cli": "nx",
67-
"version": "19.6.0-beta.1",
68-
"description": "Add inferred ciTargetNames to targetDefaults with dependsOn to ensure dependent application builds are scheduled before atomized tasks.",
69-
"implementation": "./src/migrations/update-19-6-0/add-e2e-ci-target-defaults",
70-
"package": "@nx/playwright",
71-
"name": "update-19-6-0-add-e2e-ci-target-defaults"
72-
},
73-
{
74-
"cli": "nx",
75-
"version": "19.2.1-beta.0",
76-
"requires": { "@angular-eslint/eslint-plugin": ">=18.0.0" },
77-
"description": "Installs the '@typescript-eslint/utils' package when having installed '@angular-eslint/eslint-plugin' or '@angular-eslint/eslint-plugin-template' with version >=18.0.0.",
78-
"factory": "./src/migrations/update-19-2-1/add-typescript-eslint-utils",
79-
"package": "@nx/angular",
80-
"name": "add-typescript-eslint-utils"
81-
},
82-
{
83-
"cli": "nx",
84-
"version": "19.5.0-beta.1",
85-
"requires": { "@angular/core": ">=18.1.0" },
86-
"description": "Update the @angular/cli package version to ~18.1.0.",
87-
"factory": "./src/migrations/update-19-5-0/update-angular-cli",
88-
"package": "@nx/angular",
89-
"name": "update-angular-cli-version-18-1-0"
51+
"name": "replace-getJestProjects-with-getJestProjectsAsync-v21"
9052
},
9153
{
92-
"cli": "nx",
93-
"version": "19.6.0-beta.4",
94-
"description": "Ensure Module Federation DTS is turned off by default.",
95-
"factory": "./src/migrations/update-19-6-0/turn-off-dts-by-default",
96-
"package": "@nx/angular",
97-
"name": "update-19-6-0"
54+
"version": "21.0.0-beta.10",
55+
"description": "Remove the previously deprecated and unused `tsConfig` option from the `@nx/jest:jest` executor.",
56+
"implementation": "./src/migrations/update-21-0-0/remove-tsconfig-option-from-jest-executor",
57+
"package": "@nx/jest",
58+
"name": "remove-tsconfig-option-from-jest-executor"
9859
},
9960
{
10061
"cli": "nx",
101-
"version": "19.6.0-beta.7",
102-
"requires": { "@angular/core": ">=18.2.0" },
103-
"description": "Update the @angular/cli package version to ~18.2.0.",
104-
"factory": "./src/migrations/update-19-6-0/update-angular-cli",
62+
"version": "20.3.0-beta.2",
63+
"description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
64+
"factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package",
10565
"package": "@nx/angular",
106-
"name": "update-angular-cli-version-18-2-0"
66+
"name": "ensure-nx-module-federation-package"
10767
},
10868
{
10969
"cli": "nx",
110-
"version": "19.6.1-beta.0",
111-
"description": "Ensure Target Defaults are set correctly for Module Federation.",
112-
"factory": "./src/migrations/update-19-6-1/ensure-depends-on-for-mf",
70+
"version": "20.4.0-beta.1",
71+
"requires": { "@angular/core": ">=19.1.0" },
72+
"description": "Update the @angular/cli package version to ~19.1.0.",
73+
"factory": "./src/migrations/update-20-4-0/update-angular-cli",
11374
"package": "@nx/angular",
114-
"name": "update-19-6-1-ensure-module-federation-target-defaults"
75+
"name": "update-angular-cli-version-19-1-0"
11576
},
11677
{
11778
"cli": "nx",
118-
"version": "20.2.0-beta.2",
119-
"description": "Update the ModuleFederationConfig import use @nx/module-federation.",
120-
"factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package",
79+
"version": "20.5.0-beta.5",
80+
"requires": { "@angular/core": ">=19.2.0" },
81+
"description": "Update the @angular/cli package version to ~19.2.0.",
82+
"factory": "./src/migrations/update-20-5-0/update-angular-cli",
12183
"package": "@nx/angular",
122-
"name": "update-20-2-0-update-module-federation-config-import"
84+
"name": "update-angular-cli-version-19-2-0"
12385
},
12486
{
12587
"cli": "nx",
126-
"version": "20.2.0-beta.2",
127-
"description": "Update the withModuleFederation import use @nx/module-federation/angular.",
128-
"factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package",
88+
"version": "21.0.0-beta.3",
89+
"description": "Set the `continuous` option to `true` for continuous tasks.",
90+
"factory": "./src/migrations/update-21-0-0/set-continuous-option",
12991
"package": "@nx/angular",
130-
"name": "update-20-2-0-update-with-module-federation-import"
92+
"name": "set-continuous-option"
13193
},
13294
{
13395
"cli": "nx",
134-
"version": "20.2.0-beta.5",
135-
"requires": { "@angular/core": ">=19.0.0" },
136-
"description": "Update the @angular/cli package version to ~19.0.0.",
137-
"factory": "./src/migrations/update-20-2-0/update-angular-cli",
96+
"version": "21.2.0-beta.3",
97+
"requires": { "@angular/core": ">=20.0.0" },
98+
"description": "Update the @angular/cli package version to ~20.0.0.",
99+
"factory": "./src/migrations/update-21-2-0/update-angular-cli",
138100
"package": "@nx/angular",
139-
"name": "update-angular-cli-version-19-0-0"
101+
"name": "update-angular-cli-version-20-0-0"
140102
},
141103
{
142-
"cli": "nx",
143-
"version": "20.2.0-beta.5",
144-
"requires": { "@angular/core": ">=19.0.0" },
145-
"description": "Add the '@angular/localize/init' polyfill to the 'polyfills' option of targets using esbuild-based executors.",
146-
"factory": "./src/migrations/update-20-2-0/add-localize-polyfill-to-targets",
104+
"version": "21.2.0-beta.3",
105+
"requires": { "@angular/core": ">=20.0.0" },
106+
"description": "Migrate imports of `provideServerRendering` from `@angular/platform-server` to `@angular/ssr`.",
107+
"factory": "./src/migrations/update-21-2-0/migrate-provide-server-rendering-import",
147108
"package": "@nx/angular",
148-
"name": "add-localize-polyfill-to-targets"
109+
"name": "migrate-provide-server-rendering-import"
149110
},
150111
{
151-
"cli": "nx",
152-
"version": "20.2.0-beta.5",
153-
"requires": { "@angular/core": ">=19.0.0" },
154-
"description": "Update '@angular/ssr' import paths to use the new '/node' entry point when 'CommonEngine' is detected.",
155-
"factory": "./src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point",
112+
"version": "21.2.0-beta.3",
113+
"requires": { "@angular/core": ">=20.0.0" },
114+
"description": "Replace `provideServerRouting` and `provideServerRoutesConfig` with `provideServerRendering` using `withRoutes`.",
115+
"factory": "./src/migrations/update-21-2-0/replace-provide-server-routing",
156116
"package": "@nx/angular",
157-
"name": "update-angular-ssr-imports-to-use-node-entry-point"
117+
"name": "replace-provide-server-routing"
158118
},
159119
{
160-
"cli": "nx",
161-
"version": "20.2.0-beta.6",
162-
"requires": { "@angular/core": ">=19.0.0" },
163-
"description": "Disable the Angular ESLint prefer-standalone rule if not set.",
164-
"factory": "./src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone",
120+
"version": "21.2.0-beta.3",
121+
"requires": { "@angular/core": ">=20.0.0" },
122+
"description": "Update the generator defaults to maintain the previous style guide behavior.",
123+
"factory": "./src/migrations/update-21-2-0/set-generator-defaults-for-previous-style-guide",
165124
"package": "@nx/angular",
166-
"name": "disable-angular-eslint-prefer-standalone"
125+
"name": "set-generator-defaults-for-previous-style-guide"
167126
},
168127
{
169-
"cli": "nx",
170-
"version": "20.2.0-beta.8",
171-
"requires": { "@angular/core": ">=19.0.0" },
172-
"description": "Remove Angular ESLint rules that were removed in v19.0.0.",
173-
"factory": "./src/migrations/update-20-2-0/remove-angular-eslint-rules",
128+
"version": "21.2.0-beta.3",
129+
"requires": { "@angular/core": ">=20.0.0" },
130+
"description": "Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this here: https://www.typescriptlang.org/tsconfig/#moduleResolution.",
131+
"factory": "./src/migrations/update-21-2-0/update-module-resolution",
174132
"package": "@nx/angular",
175-
"name": "remove-angular-eslint-rules"
133+
"name": "update-module-resolution"
176134
},
177135
{
178-
"cli": "nx",
179-
"version": "20.2.0-beta.8",
180-
"requires": { "@angular/core": ">=19.0.0" },
181-
"description": "Remove the deprecated 'tailwindConfig' option from ng-packagr executors. Tailwind CSS configurations located at the project or workspace root will be picked up automatically.",
182-
"factory": "./src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors",
183-
"package": "@nx/angular",
184-
"name": "remove-tailwind-config-from-ng-packagr-executors"
136+
"version": "20.0.0",
137+
"description": "Replaces usages of the deprecated InjectFlags enum",
138+
"factory": "./bundles/inject-flags.cjs#migrate",
139+
"package": "@angular/core",
140+
"name": "inject-flags"
185141
},
186142
{
187-
"version": "19.0.0",
188-
"description": "Updates non-standalone Directives, Component and Pipes to 'standalone:false' and removes 'standalone:true' from those who are standalone",
189-
"factory": "./bundles/explicit-standalone-flag#migrate",
143+
"version": "20.0.0",
144+
"description": "Replaces usages of the deprecated TestBed.get method with TestBed.inject",
145+
"factory": "./bundles/test-bed-get.cjs#migrate",
190146
"package": "@angular/core",
191-
"name": "explicit-standalone-flag"
147+
"name": "test-bed-get"
192148
},
193149
{
194-
"version": "19.0.0",
195-
"description": "Updates ExperimentalPendingTasks to PendingTasks",
196-
"factory": "./bundles/pending-tasks#migrate",
150+
"version": "20.0.0",
151+
"description": "Converts the entire application to block control flow syntax",
152+
"factory": "./bundles/control-flow-migration.cjs#migrate",
153+
"optional": true,
197154
"package": "@angular/core",
198-
"name": "pending-tasks"
155+
"name": "control-flow-migration"
199156
},
200157
{
201-
"version": "19.0.0",
202-
"description": "Replaces `APP_INITIALIZER`, `ENVIRONMENT_INITIALIZER` & `PLATFORM_INITIALIZER` respectively with `provideAppInitializer`, `provideEnvironmentInitializer` & `providePlatformInitializer`.",
203-
"factory": "./bundles/provide-initializer#migrate",
204-
"optional": true,
158+
"version": "20.0.0",
159+
"description": "Moves imports of `DOCUMENT` from `@angular/common` to `@angular/core`",
160+
"factory": "./bundles/document-core.cjs#migrate",
205161
"package": "@angular/core",
206-
"name": "provide-initializer"
162+
"name": "document-core"
207163
}
208164
]
209165
}

0 commit comments

Comments
 (0)