@beignet/react-query 0.0.14 → 0.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @beignet/react-query
2
2
 
3
+ ## 0.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Make workflow generators create complete app entrypoints for outbox, uploads,
8
+ and seeds, and fix React Query cursor pagination examples.
9
+
10
+ ## 0.0.15
11
+
3
12
  ## 0.0.14
4
13
 
5
14
  ## 0.0.13
package/README.md CHANGED
@@ -192,7 +192,7 @@ function InfiniteTodoList() {
192
192
  page: ({ pageParam }) => ({
193
193
  query: { cursor: pageParam ?? null },
194
194
  }),
195
- getNextPageParam: (lastPage) => lastPage.nextCursor ?? undefined,
195
+ getNextPageParam: (lastPage) => lastPage.page.nextCursor ?? undefined,
196
196
  initialPageParam: null,
197
197
  });
198
198
 
@@ -339,7 +339,7 @@ const searchOpts = rq(searchTodos).infiniteQueryOptions({
339
339
  body: { cursor: pageParam ?? null },
340
340
  }),
341
341
  initialPageParam: null as string | null,
342
- getNextPageParam: (lastPage) => lastPage.nextCursor ?? undefined,
342
+ getNextPageParam: (lastPage) => lastPage.page.nextCursor ?? undefined,
343
343
  });
344
344
  ```
345
345
 
@@ -352,7 +352,7 @@ const infiniteOpts = helper.infiniteQueryOptions({
352
352
  query: { status: "open", cursor: pageParam ?? null },
353
353
  }),
354
354
  initialPageParam: null,
355
- getNextPageParam: (lastPage) => lastPage.nextCursor ?? undefined,
355
+ getNextPageParam: (lastPage) => lastPage.page.nextCursor ?? undefined,
356
356
  });
357
357
  ```
358
358
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beignet/react-query",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "description": "TanStack Query integration for Beignet",
6
6
  "main": "./dist/index.js",