@falcondev-oss/trpc-vue-query 0.5.0-rc.5 → 0.5.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +9 -9
package/dist/index.d.cts
CHANGED
|
@@ -5,11 +5,12 @@ import { Unsubscribable } from '@trpc/server/observable';
|
|
|
5
5
|
import { ProcedureOptions } from '@trpc/server/unstable-core-do-not-import';
|
|
6
6
|
import { MaybeRefOrGetter, UnwrapRef } from 'vue';
|
|
7
7
|
|
|
8
|
+
type inferAsyncIterableYield<T> = T extends AsyncIterable<infer U> ? U : T;
|
|
8
9
|
type TRPCSubscriptionObserver<TValue, TError> = {
|
|
9
10
|
onStarted: (opts: {
|
|
10
11
|
context: OperationContext | undefined;
|
|
11
12
|
}) => void;
|
|
12
|
-
onData: (value: TValue) => void;
|
|
13
|
+
onData: (value: inferAsyncIterableYield<TValue>) => void;
|
|
13
14
|
onError: (err: TError) => void;
|
|
14
15
|
onStopped: () => void;
|
|
15
16
|
onComplete: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,12 @@ import { Unsubscribable } from '@trpc/server/observable';
|
|
|
5
5
|
import { ProcedureOptions } from '@trpc/server/unstable-core-do-not-import';
|
|
6
6
|
import { MaybeRefOrGetter, UnwrapRef } from 'vue';
|
|
7
7
|
|
|
8
|
+
type inferAsyncIterableYield<T> = T extends AsyncIterable<infer U> ? U : T;
|
|
8
9
|
type TRPCSubscriptionObserver<TValue, TError> = {
|
|
9
10
|
onStarted: (opts: {
|
|
10
11
|
context: OperationContext | undefined;
|
|
11
12
|
}) => void;
|
|
12
|
-
onData: (value: TValue) => void;
|
|
13
|
+
onData: (value: inferAsyncIterableYield<TValue>) => void;
|
|
13
14
|
onError: (err: TError) => void;
|
|
14
15
|
onStopped: () => void;
|
|
15
16
|
onComplete: () => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@falcondev-oss/trpc-vue-query",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.0-rc.
|
|
4
|
+
"version": "0.5.0-rc.6",
|
|
5
5
|
"description": "A tRPC wrapper around '@tanstack/vue-query'",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "github:falcondev-oss/trpc-vue-query",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@louishaftmann/eslint-config": "^4.0.3",
|
|
42
42
|
"@louishaftmann/lintstaged-config": "^4.0.3",
|
|
43
43
|
"@louishaftmann/prettier-config": "^4.0.3",
|
|
44
|
-
"@tanstack/vue-query": "^5.
|
|
45
|
-
"@trpc/client": "11.0.0-rc.
|
|
46
|
-
"@trpc/server": "11.0.0-rc.
|
|
44
|
+
"@tanstack/vue-query": "^5.59.6",
|
|
45
|
+
"@trpc/client": "11.0.0-rc.566",
|
|
46
|
+
"@trpc/server": "11.0.0-rc.566",
|
|
47
47
|
"@types/eslint": "^9.6.1",
|
|
48
48
|
"@types/eslint__eslintrc": "^2.1.2",
|
|
49
49
|
"@types/ws": "^8.5.12",
|
|
50
|
-
"@vitest/ui": "^2.1.
|
|
51
|
-
"eslint": "^9.
|
|
50
|
+
"@vitest/ui": "^2.1.2",
|
|
51
|
+
"eslint": "^9.12.0",
|
|
52
52
|
"husky": "^9.1.6",
|
|
53
53
|
"lint-staged": "^15.2.10",
|
|
54
54
|
"prettier": "^3.3.3",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"tsup": "^8.3.0",
|
|
57
57
|
"tsx": "^4.19.1",
|
|
58
58
|
"type-fest": "^4.26.1",
|
|
59
|
-
"typescript": "^5.6.
|
|
60
|
-
"vitest": "^2.1.
|
|
61
|
-
"vue": "^3.5.
|
|
59
|
+
"typescript": "^5.6.3",
|
|
60
|
+
"vitest": "^2.1.2",
|
|
61
|
+
"vue": "^3.5.11",
|
|
62
62
|
"ws": "^8.18.0",
|
|
63
63
|
"zod": "^3.23.8"
|
|
64
64
|
},
|