@orpc/tanstack-query 2.0.0-beta.14 → 2.0.0-beta.16

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.
package/README.md CHANGED
@@ -107,7 +107,6 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
107
107
  </tr>
108
108
  <tr>
109
109
  <td align="center"><a href="https://github.com/christ12938?ref=orpc" target="_blank" rel="noopener" title="christ12938"><img src="https://avatars.githubusercontent.com/u/25758598?v=4" width="139" alt="christ12938"/><br />christ12938</a></td>
110
- <td align="center"><a href="https://github.com/peter-adam-dy?ref=orpc" target="_blank" rel="noopener" title="Peter Adam"><img src="https://avatars.githubusercontent.com/u/132129459?u=4f3dbbb3b443990b56acb7d6a5d11ed2c555f6db&amp;v=4" width="139" alt="Peter Adam"/><br />Peter Adam</a></td>
111
110
  <td align="center"><a href="https://github.com/Ryanjso?ref=orpc" target="_blank" rel="noopener" title="Ryan Soderberg"><img src="https://avatars.githubusercontent.com/u/39172778?u=5ed913c31d57e7221b75784abcad48c7ebddde27&amp;v=4" width="139" alt="Ryan Soderberg"/><br />Ryan Soderberg</a></td>
112
111
  <td align="center"><a href="https://github.com/itigoore01?ref=orpc" target="_blank" rel="noopener" title="shota"><img src="https://avatars.githubusercontent.com/u/11831107?u=c976a6dc7e055eb026304c46c99100ed22b0c8e0&amp;v=4" width="139" alt="shota"/><br />shota</a></td>
113
112
  </tr>
@@ -168,6 +167,7 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
168
167
  <a href="https://github.com/nguyenlc1993?ref=orpc" target="_blank" rel="noopener" title="Lê Cao Nguyên"><img src="https://avatars.githubusercontent.com/u/13871971?u=83c8b69d9e35b589c4e1f066cc113b1d9461386f&amp;v=4" width="32" height="32" alt="Lê Cao Nguyên" /></a>
169
168
  <a href="https://github.com/wobsoriano?ref=orpc" target="_blank" rel="noopener" title="Robert Soriano"><img src="https://avatars.githubusercontent.com/u/13049130?u=6d72104182e7c9ed25934815313fb69107332111&amp;v=4" width="32" height="32" alt="Robert Soriano" /></a>
170
169
  <a href="https://github.com/SKostyukovich?ref=orpc" target="_blank" rel="noopener" title="SKostyukovich"><img src="https://avatars.githubusercontent.com/u/10700067?v=4" width="32" height="32" alt="SKostyukovich" /></a>
170
+ <a href="https://github.com/peter-adam-dy?ref=orpc" target="_blank" rel="noopener" title="Peter Adam"><img src="https://avatars.githubusercontent.com/u/132129459?u=4f3dbbb3b443990b56acb7d6a5d11ed2c555f6db&amp;v=4" width="32" height="32" alt="Peter Adam" /></a>
171
171
  <a href="https://github.com/FabworksHQ?ref=orpc" target="_blank" rel="noopener" title="Fabworks"><img src="https://avatars.githubusercontent.com/u/160179500?v=4" width="32" height="32" alt="Fabworks" /></a>
172
172
  <a href="https://github.com/NovakAnton?ref=orpc" target="_blank" rel="noopener" title="Novak Antonijevic"><img src="https://avatars.githubusercontent.com/u/157126729?u=ae49fa22292d55c0434ff0ca008206155b18663b&amp;v=4" width="32" height="32" alt="Novak Antonijevic" /></a>
173
173
  <a href="https://github.com/laduniestu?ref=orpc" target="_blank" rel="noopener" title="Laduni Estu Syalwa"><img src="https://avatars.githubusercontent.com/u/44757637?u=a2fc1ea8f7d827a96721176f79d30592d1c48059&amp;v=4" width="32" height="32" alt="Laduni Estu Syalwa" /></a>
@@ -175,7 +175,7 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
175
175
  <a href="https://github.com/illarionvk?ref=orpc" target="_blank" rel="noopener" title="Illarion Koperski"><img src="https://avatars.githubusercontent.com/u/5012724?u=7cfa13652f7ac5fb3c56d880e3eb3fbe40c3ea34&amp;v=4" width="32" height="32" alt="Illarion Koperski" /></a>
176
176
  <a href="https://github.com/steelbrain?ref=orpc" target="_blank" rel="noopener" title="Anees Iqbal"><img src="https://avatars.githubusercontent.com/u/4278113?u=22b80b5399eed68ac76cd58b02961b0481f1db11&amp;v=4" width="32" height="32" alt="Anees Iqbal" /></a>
177
177
  <a href="https://github.com/Scrumplex?ref=orpc" target="_blank" rel="noopener" title="Sefa Eyeoglu"><img src="https://avatars.githubusercontent.com/u/11587657?u=ab503582165c0bbff0cca47ce31c9450bb1553c9&amp;v=4" width="32" height="32" alt="Sefa Eyeoglu" /></a>
178
- <a href="https://github.com/nattstack?ref=orpc" target="_blank" rel="noopener" title="Natt"><img src="https://avatars.githubusercontent.com/u/31426677?u=fa9dbb8b3e66eb0ea3c88db5dc07f31c8c5418fe&amp;v=4" width="32" height="32" alt="Natt" /></a>
178
+ <a href="https://github.com/nattstack?ref=orpc" target="_blank" rel="noopener" title="NΛTT"><img src="https://avatars.githubusercontent.com/u/31426677?u=fa9dbb8b3e66eb0ea3c88db5dc07f31c8c5418fe&amp;v=4" width="32" height="32" alt="NΛTT" /></a>
179
179
  <a href="https://github.com/ChromeGG?ref=orpc" target="_blank" rel="noopener" title="Adam Tkaczyk"><img src="https://avatars.githubusercontent.com/u/39050595?u=a58ca6042a6950e94e6e92442db76ef584279bc0&amp;v=4" width="32" height="32" alt="Adam Tkaczyk" /></a>
180
180
  <a href="https://github.com/plancraft?ref=orpc" target="_blank" rel="noopener" title="plancraft"><img src="https://avatars.githubusercontent.com/u/46482287?v=4" width="32" height="32" alt="plancraft" /></a>
181
181
  </p>
package/dist/index.d.mts CHANGED
@@ -228,7 +228,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
228
228
  */
229
229
  streamedKey(...rest: MaybeOptionalOptions<StreamedKeyOptions<TInput>>): DataTag<QueryKey, InferStreamedQueryOutput<TOutput>, TError>;
230
230
  /**
231
- * Configure queries for [Event Iterator](https://orpc.dev/docs/event-iterator).
231
+ * Configure queries for [AsyncIteratorObject](https://orpc.dev/docs/async-iterator-object).
232
232
  * This is built on [TanStack Query streamedQuery](https://tanstack.com/query/latest/docs/reference/streamedQuery)
233
233
  * and works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
234
234
  */
@@ -238,7 +238,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
238
238
  */
239
239
  liveKey(...rest: MaybeOptionalOptions<QueryKeyOptions<TInput>>): DataTag<QueryKey, InferLiveQueryOutput<TOutput>, TError>;
240
240
  /**
241
- * Configure live queries for [Event Iterator](https://orpc.dev/docs/event-iterator).
241
+ * Configure live queries for [AsyncIteratorObject](https://orpc.dev/docs/async-iterator-object).
242
242
  * Unlike `.streamedOptions` which accumulates chunks, live queries replace the entire result with each new chunk received.
243
243
  * Works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
244
244
  */
package/dist/index.d.ts CHANGED
@@ -228,7 +228,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
228
228
  */
229
229
  streamedKey(...rest: MaybeOptionalOptions<StreamedKeyOptions<TInput>>): DataTag<QueryKey, InferStreamedQueryOutput<TOutput>, TError>;
230
230
  /**
231
- * Configure queries for [Event Iterator](https://orpc.dev/docs/event-iterator).
231
+ * Configure queries for [AsyncIteratorObject](https://orpc.dev/docs/async-iterator-object).
232
232
  * This is built on [TanStack Query streamedQuery](https://tanstack.com/query/latest/docs/reference/streamedQuery)
233
233
  * and works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
234
234
  */
@@ -238,7 +238,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
238
238
  */
239
239
  liveKey(...rest: MaybeOptionalOptions<QueryKeyOptions<TInput>>): DataTag<QueryKey, InferLiveQueryOutput<TOutput>, TError>;
240
240
  /**
241
- * Configure live queries for [Event Iterator](https://orpc.dev/docs/event-iterator).
241
+ * Configure live queries for [AsyncIteratorObject](https://orpc.dev/docs/async-iterator-object).
242
242
  * Unlike `.streamedOptions` which accumulates chunks, live queries replace the entire result with each new chunk received.
243
243
  * Works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
244
244
  */
package/dist/index.mjs CHANGED
@@ -191,7 +191,7 @@ class ProcedureUtils {
191
191
  return queryKey;
192
192
  }
193
193
  /**
194
- * Configure queries for [Event Iterator](https://orpc.dev/docs/event-iterator).
194
+ * Configure queries for [AsyncIteratorObject](https://orpc.dev/docs/async-iterator-object).
195
195
  * This is built on [TanStack Query streamedQuery](https://tanstack.com/query/latest/docs/reference/streamedQuery)
196
196
  * and works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
197
197
  */
@@ -232,7 +232,7 @@ class ProcedureUtils {
232
232
  async (queryContext) => {
233
233
  const output = await this.call(input, { signal: queryContext.signal, context });
234
234
  if (!isAsyncIteratorObject(output)) {
235
- throw new Error("streamedQuery requires an event iterator output");
235
+ throw new Error("streamedQuery requires an AsyncIteratorObject output");
236
236
  }
237
237
  return output;
238
238
  },
@@ -258,7 +258,7 @@ class ProcedureUtils {
258
258
  return queryKey;
259
259
  }
260
260
  /**
261
- * Configure live queries for [Event Iterator](https://orpc.dev/docs/event-iterator).
261
+ * Configure live queries for [AsyncIteratorObject](https://orpc.dev/docs/async-iterator-object).
262
262
  * Unlike `.streamedOptions` which accumulates chunks, live queries replace the entire result with each new chunk received.
263
263
  * Works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
264
264
  */
@@ -301,7 +301,7 @@ class ProcedureUtils {
301
301
  context
302
302
  });
303
303
  if (!isAsyncIteratorObject(output)) {
304
- throw new Error("liveQuery requires an event iterator output");
304
+ throw new Error("liveQuery requires an AsyncIteratorObject output");
305
305
  }
306
306
  return output;
307
307
  })(fnContext2);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/tanstack-query",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.14",
4
+ "version": "2.0.0-beta.16",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.dev",
7
7
  "repository": {
@@ -29,10 +29,10 @@
29
29
  "@tanstack/query-core": ">=5.80.2"
30
30
  },
31
31
  "dependencies": {
32
- "@orpc/client": "2.0.0-beta.14",
33
- "@orpc/shared": "2.0.0-beta.14",
34
- "@orpc/openapi": "2.0.0-beta.14",
35
- "@orpc/contract": "2.0.0-beta.14"
32
+ "@orpc/openapi": "2.0.0-beta.16",
33
+ "@orpc/contract": "2.0.0-beta.16",
34
+ "@orpc/client": "2.0.0-beta.16",
35
+ "@orpc/shared": "2.0.0-beta.16"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@angular/core": "^22.0.1",