@trpc/react-query 11.0.0-rc.567 → 11.0.0-rc.569

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": 36970,
3
- "bundleOrigSize": 80417,
4
- "bundleReduction": 54.03,
2
+ "bundleSize": 36952,
3
+ "bundleOrigSize": 80399,
4
+ "bundleReduction": 54.04,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/shared/hooks/createHooksInternal.tsx",
8
- "size": 16336,
9
- "origSize": 18423,
8
+ "size": 16318,
9
+ "origSize": 18405,
10
10
  "renderedExports": [
11
11
  "createRootHooks"
12
12
  ],
@@ -14,8 +14,8 @@
14
14
  "dependents": [
15
15
  "/src/createTRPCReact.tsx"
16
16
  ],
17
- "percent": 44.19,
18
- "reduction": 11.33
17
+ "percent": 44.16,
18
+ "reduction": 11.34
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": 12.47,
32
+ "percent": 12.48,
33
33
  "reduction": 2.31
34
34
  },
35
35
  {
@@ -43,7 +43,7 @@
43
43
  "dependents": [
44
44
  "/src/server/index.ts"
45
45
  ],
46
- "percent": 9.54,
46
+ "percent": 9.55,
47
47
  "reduction": 52.18
48
48
  },
49
49
  {
@@ -71,7 +71,7 @@
71
71
  ],
72
72
  "removedExports": [],
73
73
  "dependents": [],
74
- "percent": 8.74,
74
+ "percent": 8.75,
75
75
  "reduction": 39.66
76
76
  },
77
77
  {
@@ -93,7 +93,7 @@
93
93
  "/src/shared/proxy/useQueriesProxy.ts",
94
94
  "/src/shared/hooks/createHooksInternal.tsx"
95
95
  ],
96
- "percent": 6.77,
96
+ "percent": 6.78,
97
97
  "reduction": 40.22
98
98
  },
99
99
  {
@@ -125,7 +125,7 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
125
125
  const result = await client.query(...getClientArgs.getClientArgs(queryKey, actualOpts));
126
126
  if (unstableCoreDoNotImport.isAsyncIterable(result)) {
127
127
  const queryCache = queryClient.getQueryCache();
128
- const query = queryCache.build(queryFunctionContext.queryKey, {
128
+ const query = queryCache.build(queryClient, {
129
129
  queryKey
130
130
  });
131
131
  query.setState({
@@ -104,7 +104,7 @@ import { createUseQueries } from '../proxy/useQueriesProxy.mjs';
104
104
  const result = await client.query(...getClientArgs(queryKey, actualOpts));
105
105
  if (isAsyncIterable(result)) {
106
106
  const queryCache = queryClient.getQueryCache();
107
- const query = queryCache.build(queryFunctionContext.queryKey, {
107
+ const query = queryCache.build(queryClient, {
108
108
  queryKey
109
109
  });
110
110
  query.setState({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/react-query",
3
- "version": "11.0.0-rc.567+6a4d42917",
3
+ "version": "11.0.0-rc.569+8049266de",
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.54.1",
67
- "@trpc/client": "11.0.0-rc.567+6a4d42917",
68
- "@trpc/server": "11.0.0-rc.567+6a4d42917",
67
+ "@trpc/client": "11.0.0-rc.569+8049266de",
68
+ "@trpc/server": "11.0.0-rc.569+8049266de",
69
69
  "react": ">=18.2.0",
70
70
  "react-dom": ">=18.2.0"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@tanstack/react-query": "^5.54.1",
74
- "@trpc/client": "11.0.0-rc.567+6a4d42917",
75
- "@trpc/server": "11.0.0-rc.567+6a4d42917",
74
+ "@trpc/client": "11.0.0-rc.569+8049266de",
75
+ "@trpc/server": "11.0.0-rc.569+8049266de",
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": "6a4d4291712c31c98c3375b4ac36266670c27388"
95
+ "gitHead": "8049266dee912f1d98542f6baf750ee11b45b5ad"
96
96
  }
@@ -195,7 +195,7 @@ export function createRootHooks<
195
195
  if (isAsyncIterable(result)) {
196
196
  const queryCache = queryClient.getQueryCache();
197
197
 
198
- const query = queryCache.build(queryFunctionContext.queryKey, {
198
+ const query = queryCache.build(queryClient, {
199
199
  queryKey,
200
200
  });
201
201