Skip to content

Commit 5ab979c

Browse files
ci: Version Packages (#711)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 16dbfe3 commit 5ab979c

File tree

8 files changed

+49
-44
lines changed

8 files changed

+49
-44
lines changed

.changeset/fix-query-collection-default-options.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

.changeset/fix-write-delete-in-handlers.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/react/projects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"@tailwindcss/vite": "^4.1.14",
1919
"@tanstack/query-core": "^5.90.5",
20-
"@tanstack/query-db-collection": "^0.2.33",
20+
"@tanstack/query-db-collection": "^0.2.34",
2121
"@tanstack/react-db": "^0.1.34",
2222
"@tanstack/react-router": "^1.133.15",
2323
"@tanstack/react-router-devtools": "^1.133.15",

examples/react/todo/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# examples/react/todo
22

3+
## 0.1.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`16dbfe3`](https://github.com/TanStack/db/commit/16dbfe34d5a5c075211453566f3a0453aa0ee76f), [`5950583`](https://github.com/TanStack/db/commit/595058384c88730f325ac23415bdb0643eea89fa)]:
8+
- @tanstack/query-db-collection@0.2.34
9+
310
## 0.1.12
411

512
### Patch Changes

examples/react/todo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tanstack/db-example-react-todo",
33
"private": true,
4-
"version": "0.1.12",
4+
"version": "0.1.13",
55
"dependencies": {
66
"@tanstack/electric-db-collection": "workspace:^",
77
"@tanstack/query-core": "^5.90.5",

packages/query-db-collection/CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# @tanstack/query-db-collection
22

3+
## 0.2.34
4+
5+
### Patch Changes
6+
7+
- Fix queryCollectionOptions to respect QueryClient defaultOptions when not overridden ([#707](https://github.com/TanStack/db/pull/707))
8+
9+
Previously, when creating a QueryClient with defaultOptions (e.g., staleTime, retry, refetchOnWindowFocus), these options were ignored by queryCollectionOptions unless explicitly specified again in the collection config. This required duplicating configuration and prevented users from setting global defaults.
10+
11+
Now, queryCollectionOptions properly respects the QueryClient's defaultOptions as fallbacks. Options explicitly provided in queryCollectionOptions will still override the defaults.
12+
13+
Example - this now works as expected:
14+
15+
```typescript
16+
const dbQueryClient = new QueryClient({
17+
defaultOptions: {
18+
queries: {
19+
refetchOnWindowFocus: false,
20+
staleTime: Infinity,
21+
},
22+
},
23+
})
24+
25+
queryCollectionOptions({
26+
id: "wallet-accounts",
27+
queryKey: ["wallet-accounts"],
28+
queryClient: dbQueryClient,
29+
// staleTime: Infinity is now inherited from defaultOptions
30+
})
31+
```
32+
33+
- Fix writeDelete/writeUpdate validation to check synced store only ([#708](https://github.com/TanStack/db/pull/708))
34+
35+
Fixed issue where calling `writeDelete()` or `writeUpdate()` inside mutation handlers (like `onDelete`) would throw errors when optimistic updates were active. These write operations now correctly validate against the synced store only, not the combined view (synced + optimistic).
36+
37+
This allows patterns like calling `writeDelete()` inside an `onDelete` handler to work correctly, enabling users to write directly to the synced store while the mutation is being persisted to the backend.
38+
39+
Fixes #706
40+
341
## 0.2.33
442

543
### Patch Changes

packages/query-db-collection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tanstack/query-db-collection",
33
"description": "TanStack Query collection for TanStack DB",
4-
"version": "0.2.33",
4+
"version": "0.2.34",
55
"dependencies": {
66
"@standard-schema/spec": "^1.0.0",
77
"@tanstack/db": "workspace:*"

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)