@trpc/react-query 11.0.0-rc.351 → 11.0.0-rc.359
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": 54.
|
|
2
|
+
"bundleSize": 28561,
|
|
3
|
+
"bundleOrigSize": 62613,
|
|
4
|
+
"bundleReduction": 54.38,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/shared/hooks/createHooksInternal.tsx",
|
|
8
|
-
"size":
|
|
9
|
-
"origSize":
|
|
8
|
+
"size": 12873,
|
|
9
|
+
"origSize": 14940,
|
|
10
10
|
"renderedExports": [
|
|
11
11
|
"createRootHooks"
|
|
12
12
|
],
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/createTRPCReact.tsx"
|
|
16
16
|
],
|
|
17
|
-
"percent": 45,
|
|
18
|
-
"reduction": 13.
|
|
17
|
+
"percent": 45.07,
|
|
18
|
+
"reduction": 13.84
|
|
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": 13.
|
|
32
|
+
"percent": 13.24,
|
|
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": 12.
|
|
46
|
+
"percent": 12.86,
|
|
47
47
|
"reduction": 50.38
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dependents": [
|
|
60
60
|
"/src/shared/index.ts"
|
|
61
61
|
],
|
|
62
|
-
"percent": 10.
|
|
62
|
+
"percent": 10.05,
|
|
63
63
|
"reduction": 74.38
|
|
64
64
|
},
|
|
65
65
|
{
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"/src/shared/proxy/useQueriesProxy.ts",
|
|
79
79
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
80
80
|
],
|
|
81
|
-
"percent": 7
|
|
81
|
+
"percent": 7,
|
|
82
82
|
"reduction": 42.49
|
|
83
83
|
},
|
|
84
84
|
{
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"dependents": [
|
|
108
108
|
"/src/shared/index.ts"
|
|
109
109
|
],
|
|
110
|
-
"percent": 2.
|
|
110
|
+
"percent": 2.82,
|
|
111
111
|
"reduction": 23.16
|
|
112
112
|
},
|
|
113
113
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHooksInternal.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/createHooksInternal.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,KAAK,EAAY,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAM1E,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,UAAU,CAAC;AAC5E,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EAEZ,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,mCAAmC,EACnC,kCAAkC,EAClC,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,EACrB,MAAM,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC;;;;;qBAmFhC,MAAM,EAAE,SACP,OAAO;6BA6DR,MAAM,EAAE,SACP,OAAO;;;wBAsCR,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"createHooksInternal.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/createHooksInternal.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,KAAK,EAAY,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAM1E,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,UAAU,CAAC;AAC5E,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EAEZ,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,mCAAmC,EACnC,kCAAkC,EAClC,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,EACrB,MAAM,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC;;;;;qBAmFhC,MAAM,EAAE,SACP,OAAO;6BA6DR,MAAM,EAAE,SACP,OAAO;;;wBAsCR,MAAM,EAAE;4BA0CR,MAAM,EAAE,SACP,OAAO;6BA6CR,MAAM,EAAE,SACP,OAAO;qCAyER,MAAM,EAAE,SACP,OAAO;EAsHjB;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,CAC/B,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,IACnB,UAAU,CAAC,OAAO,eAAe,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC"}
|
|
@@ -159,7 +159,7 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
159
159
|
const mutationKey = [
|
|
160
160
|
path
|
|
161
161
|
];
|
|
162
|
-
const defaultOpts = queryClient.getMutationDefaults(mutationKey);
|
|
162
|
+
const defaultOpts = queryClient.defaultMutationOptions(queryClient.getMutationDefaults(mutationKey));
|
|
163
163
|
const hook = reactQuery.useMutation({
|
|
164
164
|
...opts,
|
|
165
165
|
mutationKey: mutationKey,
|
|
@@ -138,7 +138,7 @@ import { createUseQueries } from '../proxy/useQueriesProxy.mjs';
|
|
|
138
138
|
const mutationKey = [
|
|
139
139
|
path
|
|
140
140
|
];
|
|
141
|
-
const defaultOpts = queryClient.getMutationDefaults(mutationKey);
|
|
141
|
+
const defaultOpts = queryClient.defaultMutationOptions(queryClient.getMutationDefaults(mutationKey));
|
|
142
142
|
const hook = useMutation({
|
|
143
143
|
...opts,
|
|
144
144
|
mutationKey: mutationKey,
|
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.359+3bb71110f",
|
|
4
4
|
"description": "The tRPC React library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,23 +58,23 @@
|
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@tanstack/react-query": "^5.25.0",
|
|
61
|
-
"@trpc/client": "11.0.0-rc.
|
|
62
|
-
"@trpc/server": "11.0.0-rc.
|
|
61
|
+
"@trpc/client": "11.0.0-rc.359+3bb71110f",
|
|
62
|
+
"@trpc/server": "11.0.0-rc.359+3bb71110f",
|
|
63
63
|
"react": ">=18.2.0",
|
|
64
64
|
"react-dom": ">=18.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@tanstack/react-query": "^5.25.0",
|
|
68
|
-
"@trpc/client": "11.0.0-rc.
|
|
69
|
-
"@trpc/server": "11.0.0-rc.
|
|
68
|
+
"@trpc/client": "11.0.0-rc.359+3bb71110f",
|
|
69
|
+
"@trpc/server": "11.0.0-rc.359+3bb71110f",
|
|
70
70
|
"@types/express": "^4.17.17",
|
|
71
71
|
"@types/node": "^20.10.0",
|
|
72
|
-
"@types/react": "^18.
|
|
72
|
+
"@types/react": "^18.3.0",
|
|
73
73
|
"eslint": "^8.56.0",
|
|
74
74
|
"express": "^4.17.1",
|
|
75
75
|
"next": "^14.1.4",
|
|
76
|
-
"react": "^18.
|
|
77
|
-
"react-dom": "^18.
|
|
76
|
+
"react": "^18.3.0",
|
|
77
|
+
"react-dom": "^18.3.0",
|
|
78
78
|
"rollup": "^4.9.5",
|
|
79
79
|
"tsx": "^4.0.0",
|
|
80
80
|
"zod": "^3.0.0"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"funding": [
|
|
86
86
|
"https://trpc.io/sponsor"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "3bb71110fc13467b7fa1b692f949e1249488a4f3"
|
|
89
89
|
}
|
|
@@ -241,7 +241,10 @@ export function createRootHooks<
|
|
|
241
241
|
const queryClient = useQueryClient();
|
|
242
242
|
|
|
243
243
|
const mutationKey = [path];
|
|
244
|
-
|
|
244
|
+
|
|
245
|
+
const defaultOpts = queryClient.defaultMutationOptions(
|
|
246
|
+
queryClient.getMutationDefaults(mutationKey),
|
|
247
|
+
);
|
|
245
248
|
|
|
246
249
|
const hook = __useMutation(
|
|
247
250
|
{
|