Skip to content

Commit a708fd1

Browse files
committed
fix: move @tanstack/vue-query to peer deps
1 parent 7cbe14c commit a708fd1

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
},
4444
"dependencies": {
4545
"@nuxt/kit": "^3.2.3",
46-
"@tanstack/vue-query": "^4.26.0",
4746
"@types/lodash.debounce": "^4.0.7",
4847
"defu": "^6.1.2",
4948
"knitwork": "^1.0.0",
@@ -59,5 +58,8 @@
5958
"nuxt": "^3.2.3",
6059
"type-fest": "^3.6.1",
6160
"vitest": "^0.29.2"
61+
},
62+
"peerDependencies": {
63+
"@tanstack/vue-query": "^4.26.0"
6264
}
6365
}

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { writeFile } from "node:fs/promises";
22
import { defineNuxtModule, addPlugin, createResolver, addTemplate, addImports } from "@nuxt/kit";
3-
import { QueryClient } from "@tanstack/vue-query";
3+
import type { QueryClient } from "@tanstack/vue-query";
44
import { defu } from "defu";
55
import type { Nitro } from "nitropack";
66
import { join } from "node:path";

src/runtime/composables/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { EmptyObject, ConditionalExcept } from "type-fest";
1+
import type { EmptyObject, ConditionalExcept } from "type-fest";
22
import type { RouterMethod } from "h3";
3-
import { MaybeRefDeep } from "@tanstack/vue-query/build/lib/types";
3+
import type { MaybeRefDeep } from "@tanstack/vue-query/build/lib/types";
44
import type { InternalApiQuery, InternalApiBody, InternalApiParameters } from "nuxt-vue-query";
55
import type { InternalApi } from "nitropack";
66

src/runtime/composables/useMutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { RouterMethod } from "h3";
22
import { useMutation } from "@tanstack/vue-query";
3-
import { VueMutationObserverOptions } from "@tanstack/vue-query/build/lib/useMutation";
3+
import type { VueMutationObserverOptions } from "@tanstack/vue-query/build/lib/useMutation";
44
import getUrl from "../utils/get-url";
55
import type { Response, URLParamsWithBody, Request, URLWithParams, Body } from "./types";
66

0 commit comments

Comments
 (0)