@trpc/tanstack-react-query 11.1.2 → 11.1.3-canary.15
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.
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bundleSize": 16573,
|
|
3
|
+
"bundleOrigSize": 43782,
|
|
4
|
+
"bundleReduction": 62.15,
|
|
5
|
+
"modules": [
|
|
6
|
+
{
|
|
7
|
+
"id": "/src/internals/subscriptionOptions.ts",
|
|
8
|
+
"size": 4803,
|
|
9
|
+
"origSize": 8185,
|
|
10
|
+
"renderedExports": [
|
|
11
|
+
"trpcSubscriptionOptions",
|
|
12
|
+
"useSubscription"
|
|
13
|
+
],
|
|
14
|
+
"removedExports": [],
|
|
15
|
+
"dependents": [
|
|
16
|
+
"/src/index.ts",
|
|
17
|
+
"/src/internals/createOptionsProxy.ts"
|
|
18
|
+
],
|
|
19
|
+
"percent": 28.98,
|
|
20
|
+
"reduction": 41.32
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "/src/internals/createOptionsProxy.ts",
|
|
24
|
+
"size": 3879,
|
|
25
|
+
"origSize": 12751,
|
|
26
|
+
"renderedExports": [
|
|
27
|
+
"createTRPCOptionsProxy"
|
|
28
|
+
],
|
|
29
|
+
"removedExports": [],
|
|
30
|
+
"dependents": [
|
|
31
|
+
"/src/index.ts",
|
|
32
|
+
"/src/internals/Context.tsx"
|
|
33
|
+
],
|
|
34
|
+
"percent": 23.41,
|
|
35
|
+
"reduction": 69.58
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "/src/internals/utils.ts",
|
|
39
|
+
"size": 3118,
|
|
40
|
+
"origSize": 3526,
|
|
41
|
+
"renderedExports": [
|
|
42
|
+
"createTRPCOptionsResult",
|
|
43
|
+
"getClientArgs",
|
|
44
|
+
"buildQueryFromAsyncIterable",
|
|
45
|
+
"getQueryKeyInternal",
|
|
46
|
+
"getMutationKeyInternal",
|
|
47
|
+
"unwrapLazyArg"
|
|
48
|
+
],
|
|
49
|
+
"removedExports": [],
|
|
50
|
+
"dependents": [
|
|
51
|
+
"/src/internals/createOptionsProxy.ts",
|
|
52
|
+
"/src/internals/subscriptionOptions.ts",
|
|
53
|
+
"/src/internals/infiniteQueryOptions.ts",
|
|
54
|
+
"/src/internals/mutationOptions.ts",
|
|
55
|
+
"/src/internals/queryOptions.ts"
|
|
56
|
+
],
|
|
57
|
+
"percent": 18.81,
|
|
58
|
+
"reduction": 11.57
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "/src/internals/Context.tsx",
|
|
62
|
+
"size": 1494,
|
|
63
|
+
"origSize": 2159,
|
|
64
|
+
"renderedExports": [
|
|
65
|
+
"createTRPCContext"
|
|
66
|
+
],
|
|
67
|
+
"removedExports": [],
|
|
68
|
+
"dependents": [
|
|
69
|
+
"/src/index.ts"
|
|
70
|
+
],
|
|
71
|
+
"percent": 9.01,
|
|
72
|
+
"reduction": 30.8
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "/src/internals/mutationOptions.ts",
|
|
76
|
+
"size": 1137,
|
|
77
|
+
"origSize": 3214,
|
|
78
|
+
"renderedExports": [
|
|
79
|
+
"trpcMutationOptions"
|
|
80
|
+
],
|
|
81
|
+
"removedExports": [],
|
|
82
|
+
"dependents": [
|
|
83
|
+
"/src/internals/createOptionsProxy.ts"
|
|
84
|
+
],
|
|
85
|
+
"percent": 6.86,
|
|
86
|
+
"reduction": 64.62
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "/src/internals/queryOptions.ts",
|
|
90
|
+
"size": 1097,
|
|
91
|
+
"origSize": 5947,
|
|
92
|
+
"renderedExports": [
|
|
93
|
+
"trpcQueryOptions"
|
|
94
|
+
],
|
|
95
|
+
"removedExports": [],
|
|
96
|
+
"dependents": [
|
|
97
|
+
"/src/internals/createOptionsProxy.ts"
|
|
98
|
+
],
|
|
99
|
+
"percent": 6.62,
|
|
100
|
+
"reduction": 81.55
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "/src/internals/infiniteQueryOptions.ts",
|
|
104
|
+
"size": 1045,
|
|
105
|
+
"origSize": 7040,
|
|
106
|
+
"renderedExports": [
|
|
107
|
+
"trpcInfiniteQueryOptions"
|
|
108
|
+
],
|
|
109
|
+
"removedExports": [],
|
|
110
|
+
"dependents": [
|
|
111
|
+
"/src/internals/createOptionsProxy.ts"
|
|
112
|
+
],
|
|
113
|
+
"percent": 6.31,
|
|
114
|
+
"reduction": 85.16
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "/src/index.ts",
|
|
118
|
+
"size": 0,
|
|
119
|
+
"origSize": 960,
|
|
120
|
+
"renderedExports": [],
|
|
121
|
+
"removedExports": [],
|
|
122
|
+
"dependents": [],
|
|
123
|
+
"percent": 0,
|
|
124
|
+
"reduction": 100
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"moduleCount": 8
|
|
128
|
+
}
|
|
@@ -111,6 +111,7 @@ function useSubscription(opts) {
|
|
|
111
111
|
currentSubscriptionRef.current = ()=>{
|
|
112
112
|
subscription.unsubscribe();
|
|
113
113
|
};
|
|
114
|
+
// eslint-disable-next-line react-hooks/react-compiler
|
|
114
115
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
115
116
|
}, [
|
|
116
117
|
reactQuery.hashKey(opts.queryKey),
|
|
@@ -90,6 +90,7 @@ function useSubscription(opts) {
|
|
|
90
90
|
currentSubscriptionRef.current = ()=>{
|
|
91
91
|
subscription.unsubscribe();
|
|
92
92
|
};
|
|
93
|
+
// eslint-disable-next-line react-hooks/react-compiler
|
|
93
94
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
94
95
|
}, [
|
|
95
96
|
hashKey(opts.queryKey),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/tanstack-react-query",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.3-canary.15+420dcc579",
|
|
4
4
|
"description": "TanStack React Query Integration for tRPC",
|
|
5
5
|
"author": "juliusmarminge",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@tanstack/react-query": "^5.67.1",
|
|
52
|
-
"@trpc/client": "11.1.
|
|
53
|
-
"@trpc/server": "11.1.
|
|
52
|
+
"@trpc/client": "11.1.3-canary.15+420dcc579",
|
|
53
|
+
"@trpc/server": "11.1.3-canary.15+420dcc579",
|
|
54
54
|
"react": ">=18.2.0",
|
|
55
55
|
"react-dom": ">=18.2.0",
|
|
56
56
|
"typescript": ">=5.7.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@tanstack/react-query": "^5.74.7",
|
|
60
|
-
"@trpc/client": "11.1.
|
|
61
|
-
"@trpc/server": "11.1.
|
|
60
|
+
"@trpc/client": "11.1.3-canary.15+420dcc579",
|
|
61
|
+
"@trpc/server": "11.1.3-canary.15+420dcc579",
|
|
62
62
|
"@types/node": "^22.13.5",
|
|
63
63
|
"@types/react": "^19.1.0",
|
|
64
|
-
"eslint": "^9.
|
|
64
|
+
"eslint": "^9.26.0",
|
|
65
65
|
"event-source-polyfill": "^1.0.31",
|
|
66
66
|
"konn": "^0.7.0",
|
|
67
67
|
"react": "^19.1.0",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"rollup": "^4.34.8",
|
|
70
70
|
"tsx": "^4.19.3",
|
|
71
71
|
"typescript": "^5.8.2",
|
|
72
|
-
"vitest": "^3.
|
|
72
|
+
"vitest": "^3.1.2",
|
|
73
73
|
"ws": "^8.0.0",
|
|
74
|
-
"zod": "^3.24.
|
|
74
|
+
"zod": "^3.24.4"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"funding": [
|
|
80
80
|
"https://trpc.io/sponsor"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "420dcc5791b3d9e2213e181501779eb3b29b45fa"
|
|
83
83
|
}
|
|
@@ -226,7 +226,7 @@ export function useSubscription<TOutput, TError>(
|
|
|
226
226
|
currentSubscriptionRef.current = () => {
|
|
227
227
|
subscription.unsubscribe();
|
|
228
228
|
};
|
|
229
|
-
|
|
229
|
+
// eslint-disable-next-line react-hooks/react-compiler
|
|
230
230
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
231
231
|
}, [hashKey(opts.queryKey), opts.enabled]);
|
|
232
232
|
|