Skip to content

Commit 0d60e01

Browse files
ci: Version Packages (#1109)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c1247e8 commit 0d60e01

File tree

32 files changed

+147
-71
lines changed

32 files changed

+147
-71
lines changed

.changeset/fix-on-demand-ready-timing.md

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

examples/angular/todos/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"@angular/forms": "^20.3.15",
2929
"@angular/platform-browser": "^19.2.17",
3030
"@angular/router": "^20.3.15",
31-
"@tanstack/angular-db": "^0.1.43",
32-
"@tanstack/db": "^0.5.17",
31+
"@tanstack/angular-db": "^0.1.44",
32+
"@tanstack/db": "^0.5.18",
3333
"rxjs": "^7.8.2",
3434
"tslib": "^2.8.1",
3535
"zone.js": "^0.16.0"

examples/react/offline-transactions/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"start": "node .output/server/index.mjs"
1010
},
1111
"dependencies": {
12-
"@tanstack/offline-transactions": "^1.0.7",
13-
"@tanstack/query-db-collection": "^1.0.13",
14-
"@tanstack/react-db": "^0.1.61",
12+
"@tanstack/offline-transactions": "^1.0.8",
13+
"@tanstack/query-db-collection": "^1.0.14",
14+
"@tanstack/react-db": "^0.1.62",
1515
"@tanstack/react-query": "^5.90.16",
1616
"@tanstack/react-router": "^1.144.0",
1717
"@tanstack/react-router-devtools": "^1.144.0",

examples/react/paced-mutations-demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"@tanstack/db": "^0.5.17",
13-
"@tanstack/react-db": "^0.1.61",
12+
"@tanstack/db": "^0.5.18",
13+
"@tanstack/react-db": "^0.1.62",
1414
"mitt": "^3.0.1",
1515
"react": "^19.2.3",
1616
"react-dom": "^19.2.3"

examples/react/projects/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"dependencies": {
1818
"@tailwindcss/vite": "^4.1.18",
1919
"@tanstack/query-core": "^5.90.16",
20-
"@tanstack/query-db-collection": "^1.0.13",
21-
"@tanstack/react-db": "^0.1.61",
20+
"@tanstack/query-db-collection": "^1.0.14",
21+
"@tanstack/react-db": "^0.1.62",
2222
"@tanstack/react-router": "^1.144.0",
2323
"@tanstack/react-router-devtools": "^1.144.0",
2424
"@tanstack/react-router-with-query": "^1.130.17",

examples/react/todo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"private": true,
44
"version": "0.1.24",
55
"dependencies": {
6-
"@tanstack/electric-db-collection": "^0.2.21",
6+
"@tanstack/electric-db-collection": "^0.2.22",
77
"@tanstack/query-core": "^5.90.16",
8-
"@tanstack/query-db-collection": "^1.0.13",
9-
"@tanstack/react-db": "^0.1.61",
8+
"@tanstack/query-db-collection": "^1.0.14",
9+
"@tanstack/react-db": "^0.1.62",
1010
"@tanstack/react-router": "^1.144.0",
1111
"@tanstack/react-start": "^1.145.5",
12-
"@tanstack/trailbase-db-collection": "^0.1.61",
12+
"@tanstack/trailbase-db-collection": "^0.1.62",
1313
"cors": "^2.8.5",
1414
"drizzle-orm": "^0.45.1",
1515
"drizzle-zod": "^0.8.3",

examples/solid/todo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"private": true,
44
"version": "0.0.33",
55
"dependencies": {
6-
"@tanstack/electric-db-collection": "^0.2.21",
6+
"@tanstack/electric-db-collection": "^0.2.22",
77
"@tanstack/query-core": "^5.90.16",
8-
"@tanstack/query-db-collection": "^1.0.13",
9-
"@tanstack/solid-db": "^0.1.60",
8+
"@tanstack/query-db-collection": "^1.0.14",
9+
"@tanstack/solid-db": "^0.1.61",
1010
"@tanstack/solid-router": "^1.144.0",
1111
"@tanstack/solid-start": "^1.145.5",
12-
"@tanstack/trailbase-db-collection": "^0.1.61",
12+
"@tanstack/trailbase-db-collection": "^0.1.62",
1313
"cors": "^2.8.5",
1414
"drizzle-orm": "^0.45.1",
1515
"drizzle-zod": "^0.8.3",

packages/angular-db/CHANGELOG.md

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

3+
## 0.1.44
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`c1247e8`](https://github.com/TanStack/db/commit/c1247e816950314da6d201613481577834c1d97a)]:
8+
- @tanstack/db@0.5.18
9+
310
## 0.1.43
411

512
### Patch Changes

packages/angular-db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/angular-db",
3-
"version": "0.1.43",
3+
"version": "0.1.44",
44
"description": "Angular integration for @tanstack/db",
55
"author": "Ethan McDaniel",
66
"license": "MIT",

packages/db/CHANGELOG.md

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

3+
## 0.5.18
4+
5+
### Patch Changes
6+
7+
- fix(db): prevent live query from being marked ready before subset data is loaded ([#1081](https://github.com/TanStack/db/pull/1081))
8+
9+
In on-demand sync mode, the live query collection was being marked as `ready` before
10+
the subset data finished loading. This caused `useLiveQuery` to return `isReady=true`
11+
with empty data, and `useLiveSuspenseQuery` to release suspense prematurely.
12+
13+
The root cause was a race condition: the `status:change` listener in `CollectionSubscriber`
14+
was registered _after_ the snapshot was triggered. If `loadSubset` resolved quickly
15+
(or synchronously), the `loadingSubset` status transition would be missed entirely,
16+
so `trackLoadPromise` was never called on the live query collection.
17+
18+
Changes:
19+
1. **Core fix - `onStatusChange` option**: Added `onStatusChange` callback option to
20+
`subscribeChanges()`. The listener is registered BEFORE any snapshot is requested,
21+
guaranteeing no status transitions are missed. This replaces the error-prone pattern
22+
of manually deferring snapshots and registering listeners in the correct order.
23+
2. **Ready state gating**: `updateLiveQueryStatus()` now checks `isLoadingSubset` on the
24+
live query collection before marking it ready, and listens for `loadingSubset:change`
25+
to trigger the ready check when subset loading completes.
26+
327
## 0.5.17
428

529
### Patch Changes

0 commit comments

Comments
 (0)