@trpc/react-query 11.0.0-rc.449 → 11.0.0-rc.455
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction":
|
|
2
|
+
"bundleSize": 32664,
|
|
3
|
+
"bundleOrigSize": 69357,
|
|
4
|
+
"bundleReduction": 52.9,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/shared/hooks/createHooksInternal.tsx",
|
|
8
|
-
"size":
|
|
9
|
-
"origSize":
|
|
8
|
+
"size": 13967,
|
|
9
|
+
"origSize": 15878,
|
|
10
10
|
"renderedExports": [
|
|
11
11
|
"createRootHooks"
|
|
12
12
|
],
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/createTRPCReact.tsx"
|
|
16
16
|
],
|
|
17
|
-
"percent": 42.
|
|
18
|
-
"reduction":
|
|
17
|
+
"percent": 42.76,
|
|
18
|
+
"reduction": 12.04
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"id": "/src/utils/createUtilityFunctions.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"/src/createTRPCQueryUtils.tsx",
|
|
30
30
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
31
31
|
],
|
|
32
|
-
"percent": 11.
|
|
32
|
+
"percent": 11.58,
|
|
33
33
|
"reduction": 6.34
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependents": [
|
|
44
44
|
"/src/server/index.ts"
|
|
45
45
|
],
|
|
46
|
-
"percent": 10.
|
|
46
|
+
"percent": 10.67,
|
|
47
47
|
"reduction": 52.58
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
],
|
|
56
56
|
"removedExports": [],
|
|
57
57
|
"dependents": [],
|
|
58
|
-
"percent": 9.
|
|
58
|
+
"percent": 9.89,
|
|
59
59
|
"reduction": 39.66
|
|
60
60
|
},
|
|
61
61
|
{
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"dependents": [
|
|
72
72
|
"/src/shared/index.ts"
|
|
73
73
|
],
|
|
74
|
-
"percent": 8.
|
|
74
|
+
"percent": 8.67,
|
|
75
75
|
"reduction": 74.84
|
|
76
76
|
},
|
|
77
77
|
{
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"/src/shared/proxy/useQueriesProxy.ts",
|
|
92
92
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
93
93
|
],
|
|
94
|
-
"percent": 6.
|
|
94
|
+
"percent": 6.12,
|
|
95
95
|
"reduction": 42.79
|
|
96
96
|
},
|
|
97
97
|
{
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"dependents": [
|
|
107
107
|
"/src/index.ts"
|
|
108
108
|
],
|
|
109
|
-
"percent": 2.
|
|
109
|
+
"percent": 2.68,
|
|
110
110
|
"reduction": 89.53
|
|
111
111
|
},
|
|
112
112
|
{
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"dependents": [
|
|
121
121
|
"/src/shared/index.ts"
|
|
122
122
|
],
|
|
123
|
-
"percent": 2.
|
|
123
|
+
"percent": 2.39,
|
|
124
124
|
"reduction": 24
|
|
125
125
|
},
|
|
126
126
|
{
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"/src/shared/index.ts",
|
|
136
136
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
137
137
|
],
|
|
138
|
-
"percent": 1.
|
|
138
|
+
"percent": 1.74,
|
|
139
139
|
"reduction": 82.1
|
|
140
140
|
},
|
|
141
141
|
{
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"/src/shared/hooks/createHooksInternal.tsx",
|
|
152
152
|
"/src/utils/createUtilityFunctions.ts"
|
|
153
153
|
],
|
|
154
|
-
"percent": 1.
|
|
154
|
+
"percent": 1.45,
|
|
155
155
|
"reduction": 17.31
|
|
156
156
|
},
|
|
157
157
|
{
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"dependents": [
|
|
212
212
|
"/src/shared/index.ts"
|
|
213
213
|
],
|
|
214
|
-
"percent": 0.
|
|
214
|
+
"percent": 0.39,
|
|
215
215
|
"reduction": 74.9
|
|
216
216
|
},
|
|
217
217
|
{
|
|
@@ -117,7 +117,9 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
117
117
|
...ssrOpts?.trpc,
|
|
118
118
|
...shouldAbortOnUnmount ? {
|
|
119
119
|
signal: queryFunctionContext.signal
|
|
120
|
-
} : {
|
|
120
|
+
} : {
|
|
121
|
+
signal: null
|
|
122
|
+
}
|
|
121
123
|
}
|
|
122
124
|
};
|
|
123
125
|
const result = await client.query(...getClientArgs.getClientArgs(queryKey, actualOpts));
|
|
@@ -161,7 +163,9 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
161
163
|
trpc: {
|
|
162
164
|
...shouldAbortOnUnmount ? {
|
|
163
165
|
signal: queryFunctionContext.signal
|
|
164
|
-
} : {
|
|
166
|
+
} : {
|
|
167
|
+
signal: null
|
|
168
|
+
}
|
|
165
169
|
}
|
|
166
170
|
};
|
|
167
171
|
return context.client.query(...getClientArgs.getClientArgs(queryKey, actualOpts));
|
|
@@ -276,7 +280,9 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
276
280
|
...ssrOpts?.trpc,
|
|
277
281
|
...shouldAbortOnUnmount ? {
|
|
278
282
|
signal: queryFunctionContext.signal
|
|
279
|
-
} : {
|
|
283
|
+
} : {
|
|
284
|
+
signal: null
|
|
285
|
+
}
|
|
280
286
|
}
|
|
281
287
|
};
|
|
282
288
|
return client.query(...getClientArgs.getClientArgs(queryKey, actualOpts, {
|
|
@@ -96,7 +96,9 @@ import { createUseQueries } from '../proxy/useQueriesProxy.mjs';
|
|
|
96
96
|
...ssrOpts?.trpc,
|
|
97
97
|
...shouldAbortOnUnmount ? {
|
|
98
98
|
signal: queryFunctionContext.signal
|
|
99
|
-
} : {
|
|
99
|
+
} : {
|
|
100
|
+
signal: null
|
|
101
|
+
}
|
|
100
102
|
}
|
|
101
103
|
};
|
|
102
104
|
const result = await client.query(...getClientArgs(queryKey, actualOpts));
|
|
@@ -140,7 +142,9 @@ import { createUseQueries } from '../proxy/useQueriesProxy.mjs';
|
|
|
140
142
|
trpc: {
|
|
141
143
|
...shouldAbortOnUnmount ? {
|
|
142
144
|
signal: queryFunctionContext.signal
|
|
143
|
-
} : {
|
|
145
|
+
} : {
|
|
146
|
+
signal: null
|
|
147
|
+
}
|
|
144
148
|
}
|
|
145
149
|
};
|
|
146
150
|
return context.client.query(...getClientArgs(queryKey, actualOpts));
|
|
@@ -255,7 +259,9 @@ import { createUseQueries } from '../proxy/useQueriesProxy.mjs';
|
|
|
255
259
|
...ssrOpts?.trpc,
|
|
256
260
|
...shouldAbortOnUnmount ? {
|
|
257
261
|
signal: queryFunctionContext.signal
|
|
258
|
-
} : {
|
|
262
|
+
} : {
|
|
263
|
+
signal: null
|
|
264
|
+
}
|
|
259
265
|
}
|
|
260
266
|
};
|
|
261
267
|
return client.query(...getClientArgs(queryKey, actualOpts, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/react-query",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.455+244538dd3",
|
|
4
4
|
"description": "The tRPC React library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,15 +64,15 @@
|
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@tanstack/react-query": "^5.49.2",
|
|
67
|
-
"@trpc/client": "11.0.0-rc.
|
|
68
|
-
"@trpc/server": "11.0.0-rc.
|
|
67
|
+
"@trpc/client": "11.0.0-rc.455+244538dd3",
|
|
68
|
+
"@trpc/server": "11.0.0-rc.455+244538dd3",
|
|
69
69
|
"react": ">=18.2.0",
|
|
70
70
|
"react-dom": ">=18.2.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@tanstack/react-query": "^5.49.2",
|
|
74
|
-
"@trpc/client": "11.0.0-rc.
|
|
75
|
-
"@trpc/server": "11.0.0-rc.
|
|
74
|
+
"@trpc/client": "11.0.0-rc.455+244538dd3",
|
|
75
|
+
"@trpc/server": "11.0.0-rc.455+244538dd3",
|
|
76
76
|
"@types/express": "^4.17.17",
|
|
77
77
|
"@types/node": "^20.10.0",
|
|
78
78
|
"@types/react": "^18.3.1",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"funding": [
|
|
93
93
|
"https://trpc.io/sponsor"
|
|
94
94
|
],
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "244538dd3d42c0df05c7a491def21562e3cce253"
|
|
96
96
|
}
|
|
@@ -178,7 +178,7 @@ export function createRootHooks<
|
|
|
178
178
|
...ssrOpts?.trpc,
|
|
179
179
|
...(shouldAbortOnUnmount
|
|
180
180
|
? { signal: queryFunctionContext.signal }
|
|
181
|
-
: {}),
|
|
181
|
+
: { signal: null }),
|
|
182
182
|
},
|
|
183
183
|
};
|
|
184
184
|
|
|
@@ -243,7 +243,7 @@ export function createRootHooks<
|
|
|
243
243
|
trpc: {
|
|
244
244
|
...(shouldAbortOnUnmount
|
|
245
245
|
? { signal: queryFunctionContext.signal }
|
|
246
|
-
: {}),
|
|
246
|
+
: { signal: null }),
|
|
247
247
|
},
|
|
248
248
|
};
|
|
249
249
|
|
|
@@ -400,7 +400,7 @@ export function createRootHooks<
|
|
|
400
400
|
...ssrOpts?.trpc,
|
|
401
401
|
...(shouldAbortOnUnmount
|
|
402
402
|
? { signal: queryFunctionContext.signal }
|
|
403
|
-
: {}),
|
|
403
|
+
: { signal: null }),
|
|
404
404
|
},
|
|
405
405
|
};
|
|
406
406
|
|