@beignet/react-query 0.0.56 → 0.0.58
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 +12 -0
- package/README.md +2 -1
- package/package.json +1 -1
- package/skills/client/SKILL.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @beignet/react-query
|
|
2
2
|
|
|
3
|
+
## 0.0.58
|
|
4
|
+
|
|
5
|
+
## 0.0.57
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- 868c18e: Keep undeclared query parameters out of route binder input and declare the
|
|
10
|
+
starter's pagination query transport. Align client examples with its query arguments. Preserve app-owned test helpers during
|
|
11
|
+
generation after formatting or customization. Reject SQLite root transaction
|
|
12
|
+
reentry without hanging, keep transaction-scoped operations atomic, and handle
|
|
13
|
+
Postgres idle pool errors through provider observability with lifecycle cleanup.
|
|
14
|
+
|
|
3
15
|
## 0.0.56
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ import { rq } from "@/client";
|
|
|
85
85
|
import { createTodo, listTodos } from "@/features/todos/contracts";
|
|
86
86
|
|
|
87
87
|
export function TodoList() {
|
|
88
|
-
const todos = useQuery(rq(listTodos).queryOptions());
|
|
88
|
+
const todos = useQuery(rq(listTodos).queryOptions({ query: {} }));
|
|
89
89
|
const create = useMutation(
|
|
90
90
|
rq(createTodo).mutationOptions({
|
|
91
91
|
invalidates: () => [rq(listTodos).contractFilter()],
|
|
@@ -471,6 +471,7 @@ const rq = createReactQuery(apiClient, {
|
|
|
471
471
|
});
|
|
472
472
|
|
|
473
473
|
rq(listTodos).queryOptions({
|
|
474
|
+
query: {},
|
|
474
475
|
headers: { "X-Workspace-Preview": "workspace-1", Authorization: "Bearer ..." },
|
|
475
476
|
});
|
|
476
477
|
// queryKey: ["beignet", "todos", "listTodos", "GET /todos",
|
package/package.json
CHANGED
package/skills/client/SKILL.md
CHANGED
|
@@ -40,7 +40,7 @@ Import contracts, the root `rq` adapter, and TanStack hooks in the component.
|
|
|
40
40
|
Inside its body, pass options directly to the hooks:
|
|
41
41
|
|
|
42
42
|
```ts
|
|
43
|
-
const todos = useQuery(rq(listTodos).queryOptions());
|
|
43
|
+
const todos = useQuery(rq(listTodos).queryOptions({ query: {} }));
|
|
44
44
|
const create = useMutation(
|
|
45
45
|
rq(createTodo).mutationOptions({
|
|
46
46
|
invalidates: () => [rq(listTodos).contractFilter()],
|
|
@@ -61,7 +61,7 @@ import { rq } from "@/client";
|
|
|
61
61
|
import { listTodos } from "@/features/todos/contracts";
|
|
62
62
|
|
|
63
63
|
export function listTodosQueryOptions() {
|
|
64
|
-
return rq(listTodos).queryOptions({ staleTime: 30_000 });
|
|
64
|
+
return rq(listTodos).queryOptions({ query: {}, staleTime: 30_000 });
|
|
65
65
|
}
|
|
66
66
|
```
|
|
67
67
|
|