@trpc/react-query 11.0.0-next-beta.228 → 11.0.0-next-beta.235

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,7 +1,7 @@
1
1
  {
2
2
  "bundleSize": 27639,
3
- "bundleOrigSize": 62953,
4
- "bundleReduction": 56.1,
3
+ "bundleOrigSize": 62985,
4
+ "bundleReduction": 56.12,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/shared/hooks/createHooksInternal.tsx",
@@ -20,7 +20,7 @@
20
20
  {
21
21
  "id": "/src/server/ssgProxy.ts",
22
22
  "size": 3693,
23
- "origSize": 7173,
23
+ "origSize": 7213,
24
24
  "renderedExports": [
25
25
  "createServerSideHelpers"
26
26
  ],
@@ -29,7 +29,7 @@
29
29
  "/src/server/index.ts"
30
30
  ],
31
31
  "percent": 13.36,
32
- "reduction": 48.52
32
+ "reduction": 48.8
33
33
  },
34
34
  {
35
35
  "id": "/src/utils/createUtilityFunctions.ts",
@@ -49,7 +49,7 @@
49
49
  {
50
50
  "id": "/src/shared/proxy/utilsProxy.ts",
51
51
  "size": 2745,
52
- "origSize": 10495,
52
+ "origSize": 10499,
53
53
  "renderedExports": [
54
54
  "getQueryType",
55
55
  "createReactQueryUtils",
@@ -60,7 +60,7 @@
60
60
  "/src/shared/index.ts"
61
61
  ],
62
62
  "percent": 9.93,
63
- "reduction": 73.84
63
+ "reduction": 73.85
64
64
  },
65
65
  {
66
66
  "id": "/src/internals/getQueryKey.ts",
@@ -172,7 +172,7 @@
172
172
  {
173
173
  "id": "/src/internals/context.tsx",
174
174
  "size": 154,
175
- "origSize": 6106,
175
+ "origSize": 6094,
176
176
  "renderedExports": [
177
177
  "contextProps",
178
178
  "TRPCContext"
@@ -185,7 +185,7 @@
185
185
  "/src/shared/hooks/createHooksInternal.tsx"
186
186
  ],
187
187
  "percent": 0.56,
188
- "reduction": 97.48
188
+ "reduction": 97.47
189
189
  },
190
190
  {
191
191
  "id": "/src/shared/queryClient.ts",
@@ -67,7 +67,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
67
67
  */
68
68
  fetchInfiniteQuery: (queryKey: TRPCQueryKey, opts?: TRPCFetchInfiniteQueryOptions<unknown, unknown, TRPCClientError<TRouter>>) => Promise<InfiniteData<unknown, unknown>>;
69
69
  /**
70
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
70
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
71
71
  */
72
72
  prefetchQuery: (queryKey: TRPCQueryKey, opts?: TRPCFetchQueryOptions<unknown, TRPCClientError<TRouter>>) => Promise<void>;
73
73
  /**
@@ -75,39 +75,39 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
75
75
  */
76
76
  prefetchInfiniteQuery: (queryKey: TRPCQueryKey, opts?: TRPCFetchInfiniteQueryOptions<unknown, unknown, TRPCClientError<TRouter>>) => Promise<void>;
77
77
  /**
78
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientensurequerydata
78
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientensurequerydata
79
79
  */
80
80
  ensureQueryData: (queryKey: TRPCQueryKey, opts?: TRPCFetchQueryOptions<unknown, TRPCClientError<TRouter>>) => Promise<unknown>;
81
81
  /**
82
- * @link https://tanstack.com/query/v5/docs/react/guides/query-invalidation
82
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/query-invalidation
83
83
  */
84
84
  invalidateQueries: (queryKey: TRPCQueryKey, filters?: InvalidateQueryFilters, options?: InvalidateOptions) => Promise<void>;
85
85
  /**
86
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientresetqueries
86
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientresetqueries
87
87
  */
88
88
  resetQueries: (queryKey: TRPCQueryKey, filters?: QueryFilters, options?: ResetOptions) => Promise<void>;
89
89
  /**
90
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientrefetchqueries
90
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientrefetchqueries
91
91
  */
92
92
  refetchQueries: (queryKey: TRPCQueryKey, filters?: RefetchQueryFilters, options?: RefetchOptions) => Promise<void>;
93
93
  /**
94
- * @link https://tanstack.com/query/v5/docs/react/guides/query-cancellation
94
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/query-cancellation
95
95
  */
96
96
  cancelQuery: (queryKey: TRPCQueryKey, options?: CancelOptions) => Promise<void>;
97
97
  /**
98
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientsetquerydata
98
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientsetquerydata
99
99
  */
100
100
  setQueryData: (queryKey: TRPCQueryKey, updater: Updater<unknown, unknown>, options?: SetDataOptions) => void;
101
101
  /**
102
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientgetquerydata
102
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientgetquerydata
103
103
  */
104
104
  getQueryData: (queryKey: TRPCQueryKey) => unknown;
105
105
  /**
106
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientsetquerydata
106
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientsetquerydata
107
107
  */
108
108
  setInfiniteQueryData: (queryKey: TRPCQueryKey, updater: Updater<InfiniteData<unknown> | undefined, InfiniteData<unknown> | undefined>, options?: SetDataOptions) => void;
109
109
  /**
110
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientgetquerydata
110
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientgetquerydata
111
111
  */
112
112
  getInfiniteQueryData: (queryKey: TRPCQueryKey) => InfiniteData<unknown> | undefined;
113
113
  }
@@ -14,19 +14,19 @@ interface CreateSSGHelpersExternal<TRouter extends AnyRouter> {
14
14
  type CreateServerSideHelpersOptions<TRouter extends AnyRouter> = CreateTRPCReactQueryClientConfig & (CreateSSGHelpersExternal<TRouter> | CreateSSGHelpersInternal<TRouter>);
15
15
  type DecorateProcedure<TConfig extends AnyRootConfig, TProcedure extends AnyProcedure> = {
16
16
  /**
17
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
17
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
18
18
  */
19
19
  fetch(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchQueryOptions<inferTransformedProcedureOutput<TConfig, TProcedure>, TRPCClientError<TConfig>>): Promise<inferTransformedProcedureOutput<TConfig, TProcedure>>;
20
20
  /**
21
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
21
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
22
22
  */
23
23
  fetchInfinite(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TConfig, TProcedure>, TRPCClientError<TConfig>>): Promise<InfiniteData<inferTransformedProcedureOutput<TConfig, TProcedure>, NonNullable<ExtractCursorType<inferProcedureInput<TProcedure>>> | null>>;
24
24
  /**
25
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
25
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
26
26
  */
27
27
  prefetch(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchQueryOptions<inferTransformedProcedureOutput<TConfig, TProcedure>, TRPCClientError<TConfig>>): Promise<void>;
28
28
  /**
29
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
29
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
30
30
  */
31
31
  prefetchInfinite(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TConfig, TProcedure>, TRPCClientError<TConfig>>): Promise<void>;
32
32
  };
@@ -22,7 +22,7 @@ type DecorateProcedure<TConfig extends AnyRootConfig, TProcedure extends AnyQuer
22
22
  */
23
23
  prefetchInfinite(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchInfiniteQueryOptions<inferProcedureInput<TProcedure>, inferTransformedProcedureOutput<TConfig, TProcedure>, TRPCClientError<TConfig>>): Promise<void>;
24
24
  /**
25
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientensurequerydata
25
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientensurequerydata
26
26
  */
27
27
  ensureData(input: inferProcedureInput<TProcedure>, opts?: TRPCFetchQueryOptions<inferTransformedProcedureOutput<TConfig, TProcedure>, TRPCClientError<TConfig>>): Promise<inferTransformedProcedureOutput<TConfig, TProcedure>>;
28
28
  /**
@@ -74,7 +74,7 @@ type DecorateRouter = {
74
74
  /**
75
75
  * Invalidate the full router
76
76
  * @link https://trpc.io/docs/v10/useContext#query-invalidation
77
- * @link https://tanstack.com/query/v5/docs/react/guides/query-invalidation
77
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/query-invalidation
78
78
  */
79
79
  invalidate(input?: undefined, filters?: InvalidateQueryFilters, options?: InvalidateOptions): Promise<void>;
80
80
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/react-query",
3
- "version": "11.0.0-next-beta.228+38f3240e9",
3
+ "version": "11.0.0-next-beta.235+652c51320",
4
4
  "description": "The tRPC React library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -58,15 +58,15 @@
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@tanstack/react-query": "^5.0.0",
61
- "@trpc/client": "11.0.0-next-beta.228+38f3240e9",
62
- "@trpc/server": "11.0.0-next-beta.228+38f3240e9",
61
+ "@trpc/client": "11.0.0-next-beta.235+652c51320",
62
+ "@trpc/server": "11.0.0-next-beta.235+652c51320",
63
63
  "react": ">=18.2.0",
64
64
  "react-dom": ">=18.2.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@tanstack/react-query": "^5.0.0",
68
- "@trpc/client": "11.0.0-next-beta.228+38f3240e9",
69
- "@trpc/server": "11.0.0-next-beta.228+38f3240e9",
68
+ "@trpc/client": "11.0.0-next-beta.235+652c51320",
69
+ "@trpc/server": "11.0.0-next-beta.235+652c51320",
70
70
  "@types/express": "^4.17.17",
71
71
  "@types/node": "^20.10.0",
72
72
  "@types/react": "^18.2.33",
@@ -85,5 +85,5 @@
85
85
  "funding": [
86
86
  "https://trpc.io/sponsor"
87
87
  ],
88
- "gitHead": "38f3240e90b089d5e6edd037061c35c00af4c9ba"
88
+ "gitHead": "652c5132051d720aa6c8102381ab6b792ad62938"
89
89
  }
@@ -135,7 +135,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
135
135
  >,
136
136
  ) => Promise<InfiniteData<unknown, unknown>>;
137
137
  /**
138
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
138
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
139
139
  */
140
140
  prefetchQuery: (
141
141
  queryKey: TRPCQueryKey,
@@ -155,7 +155,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
155
155
  ) => Promise<void>;
156
156
 
157
157
  /**
158
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientensurequerydata
158
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientensurequerydata
159
159
  */
160
160
  ensureQueryData: (
161
161
  queryKey: TRPCQueryKey,
@@ -163,7 +163,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
163
163
  ) => Promise<unknown>;
164
164
 
165
165
  /**
166
- * @link https://tanstack.com/query/v5/docs/react/guides/query-invalidation
166
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/query-invalidation
167
167
  */
168
168
  invalidateQueries: (
169
169
  queryKey: TRPCQueryKey,
@@ -172,7 +172,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
172
172
  ) => Promise<void>;
173
173
 
174
174
  /**
175
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientresetqueries
175
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientresetqueries
176
176
  */
177
177
  resetQueries: (
178
178
  queryKey: TRPCQueryKey,
@@ -181,7 +181,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
181
181
  ) => Promise<void>;
182
182
 
183
183
  /**
184
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientrefetchqueries
184
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientrefetchqueries
185
185
  */
186
186
  refetchQueries: (
187
187
  queryKey: TRPCQueryKey,
@@ -190,7 +190,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
190
190
  ) => Promise<void>;
191
191
 
192
192
  /**
193
- * @link https://tanstack.com/query/v5/docs/react/guides/query-cancellation
193
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/query-cancellation
194
194
  */
195
195
  cancelQuery: (
196
196
  queryKey: TRPCQueryKey,
@@ -198,7 +198,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
198
198
  ) => Promise<void>;
199
199
 
200
200
  /**
201
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientsetquerydata
201
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientsetquerydata
202
202
  */
203
203
  setQueryData: (
204
204
  queryKey: TRPCQueryKey,
@@ -207,11 +207,11 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
207
207
  ) => void;
208
208
 
209
209
  /**
210
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientgetquerydata
210
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientgetquerydata
211
211
  */
212
212
  getQueryData: (queryKey: TRPCQueryKey) => unknown;
213
213
  /**
214
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientsetquerydata
214
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientsetquerydata
215
215
  */
216
216
  setInfiniteQueryData: (
217
217
  queryKey: TRPCQueryKey,
@@ -223,7 +223,7 @@ export interface TRPCQueryUtils<TRouter extends AnyRouter> {
223
223
  ) => void;
224
224
 
225
225
  /**
226
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientgetquerydata
226
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientgetquerydata
227
227
  */
228
228
  getInfiniteQueryData: (
229
229
  queryKey: TRPCQueryKey,
@@ -53,7 +53,7 @@ type DecorateProcedure<
53
53
  TProcedure extends AnyProcedure,
54
54
  > = {
55
55
  /**
56
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
56
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
57
57
  */
58
58
  fetch(
59
59
  input: inferProcedureInput<TProcedure>,
@@ -64,7 +64,7 @@ type DecorateProcedure<
64
64
  ): Promise<inferTransformedProcedureOutput<TConfig, TProcedure>>;
65
65
 
66
66
  /**
67
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
67
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
68
68
  */
69
69
  fetchInfinite(
70
70
  input: inferProcedureInput<TProcedure>,
@@ -81,7 +81,7 @@ type DecorateProcedure<
81
81
  >;
82
82
 
83
83
  /**
84
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
84
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
85
85
  */
86
86
  prefetch(
87
87
  input: inferProcedureInput<TProcedure>,
@@ -92,7 +92,7 @@ type DecorateProcedure<
92
92
  ): Promise<void>;
93
93
 
94
94
  /**
95
- * @link https://tanstack.com/query/v5/docs/react/guides/prefetching
95
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/prefetching
96
96
  */
97
97
  prefetchInfinite(
98
98
  input: inferProcedureInput<TProcedure>,
@@ -94,7 +94,7 @@ type DecorateProcedure<
94
94
  ): Promise<void>;
95
95
 
96
96
  /**
97
- * @link https://tanstack.com/query/v5/docs/react/reference/QueryClient#queryclientensurequerydata
97
+ * @link https://tanstack.com/query/v5/docs/reference/QueryClient#queryclientensurequerydata
98
98
  */
99
99
  ensureData(
100
100
  input: inferProcedureInput<TProcedure>,
@@ -215,7 +215,7 @@ type DecorateRouter = {
215
215
  /**
216
216
  * Invalidate the full router
217
217
  * @link https://trpc.io/docs/v10/useContext#query-invalidation
218
- * @link https://tanstack.com/query/v5/docs/react/guides/query-invalidation
218
+ * @link https://tanstack.com/query/v5/docs/framework/react/guides/query-invalidation
219
219
  */
220
220
  invalidate(
221
221
  input?: undefined,