Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/curly-oranges-explain.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-eager-restart-preload.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/fix-initial-ordered-fallback.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/fix-query-db-refetch-ordered-gap.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/retire-framework-live-queries.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-documents-commit.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/verify-optimistic-window-refills.md

This file was deleted.

4 changes: 2 additions & 2 deletions examples/angular/todos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@angular/forms": "^20.3.16",
"@angular/platform-browser": "^20.3.16",
"@angular/router": "^20.3.16",
"@tanstack/angular-db": "^0.2.10",
"@tanstack/db": "^0.15.0",
"@tanstack/angular-db": "^0.2.11",
"@tanstack/db": "^0.15.1",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "~0.15.0"
Expand Down
10 changes: 5 additions & 5 deletions examples/electron/offline-first/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"postinstall": "prebuild-install --runtime electron --target 41.0.0 --arch arm64 || echo 'prebuild-install failed, try: npx @electron/rebuild'"
},
"dependencies": {
"@tanstack/electron-db-sqlite-persistence": "^0.2.11",
"@tanstack/node-db-sqlite-persistence": "^0.2.35",
"@tanstack/offline-transactions": "^1.1.2",
"@tanstack/query-db-collection": "^1.4.5",
"@tanstack/react-db": "^0.5.10",
"@tanstack/electron-db-sqlite-persistence": "^0.2.12",
"@tanstack/node-db-sqlite-persistence": "^0.2.36",
"@tanstack/offline-transactions": "^1.1.3",
"@tanstack/query-db-collection": "^1.4.6",
"@tanstack/react-db": "^0.5.11",
"@tanstack/react-query": "^5.90.20",
"better-sqlite3": "^12.6.2",
"react": "^19.2.4",
Expand Down
10 changes: 5 additions & 5 deletions examples/react-native/offline-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"@op-engineering/op-sqlite": "^15.2.5",
"@react-native-async-storage/async-storage": "2.1.2",
"@react-native-community/netinfo": "11.4.1",
"@tanstack/db": "^0.15.0",
"@tanstack/offline-transactions": "^1.1.2",
"@tanstack/query-db-collection": "^1.4.5",
"@tanstack/react-db": "^0.5.10",
"@tanstack/react-native-db-sqlite-persistence": "^0.2.35",
"@tanstack/db": "^0.15.1",
"@tanstack/offline-transactions": "^1.1.3",
"@tanstack/query-db-collection": "^1.4.6",
"@tanstack/react-db": "^0.5.11",
"@tanstack/react-native-db-sqlite-persistence": "^0.2.36",
"@tanstack/react-query": "^5.90.20",
"expo": "~53.0.26",
"expo-constants": "~17.1.0",
Expand Down
10 changes: 5 additions & 5 deletions examples/react-native/shopping-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"@op-engineering/op-sqlite": "^15.2.5",
"@react-native-async-storage/async-storage": "2.1.2",
"@react-native-community/netinfo": "11.4.1",
"@tanstack/db": "^0.15.0",
"@tanstack/electric-db-collection": "^0.6.1",
"@tanstack/offline-transactions": "^1.1.2",
"@tanstack/react-db": "^0.5.10",
"@tanstack/react-native-db-sqlite-persistence": "^0.2.35",
"@tanstack/db": "^0.15.1",
"@tanstack/electric-db-collection": "^0.6.2",
"@tanstack/offline-transactions": "^1.1.3",
"@tanstack/react-db": "^0.5.11",
"@tanstack/react-native-db-sqlite-persistence": "^0.2.36",
"@tanstack/react-query": "^5.90.20",
"expo": "~53.0.26",
"expo-constants": "~17.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/action-enforcement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"dependencies": {
"@tanstack/query-core": "^5.90.20",
"@tanstack/query-db-collection": "^1.4.5",
"@tanstack/react-db": "^0.5.10",
"@tanstack/query-db-collection": "^1.4.6",
"@tanstack/react-db": "^0.5.11",
"react": "^19.2.4",
"react-dom": "^19.2.4"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/react/next-ssr-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"test:e2e": "pnpm --filter @tanstack/db build && pnpm --filter @tanstack/react-db build && playwright test"
},
"dependencies": {
"@tanstack/db": "^0.15.0",
"@tanstack/react-db": "^0.5.10",
"@tanstack/db": "^0.15.1",
"@tanstack/react-db": "^0.5.11",
"next": "^16.3.1",
"react": "^19.2.4",
"react-dom": "^19.2.4"
Expand Down
10 changes: 5 additions & 5 deletions examples/react/offline-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"build": "vite build && tsc --noEmit"
},
"dependencies": {
"@tanstack/browser-db-sqlite-persistence": "^0.2.35",
"@tanstack/db": "^0.15.0",
"@tanstack/offline-transactions": "^1.1.2",
"@tanstack/query-db-collection": "^1.4.5",
"@tanstack/react-db": "^0.5.10",
"@tanstack/browser-db-sqlite-persistence": "^0.2.36",
"@tanstack/db": "^0.15.1",
"@tanstack/offline-transactions": "^1.1.3",
"@tanstack/query-db-collection": "^1.4.6",
"@tanstack/react-db": "^0.5.11",
"@tanstack/react-query": "^5.90.20",
"@tanstack/react-router": "^1.170.41",
"@tanstack/react-router-devtools": "^1.159.5",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/paced-mutations-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/db": "^0.15.0",
"@tanstack/react-db": "^0.5.10",
"@tanstack/db": "^0.15.1",
"@tanstack/react-db": "^0.5.11",
"mitt": "^3.0.1",
"react": "^19.2.4",
"react-dom": "^19.2.4"
Expand Down
4 changes: 2 additions & 2 deletions examples/react/projects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"dependencies": {
"@tailwindcss/vite": "^4.1.18",
"@tanstack/query-core": "^5.90.20",
"@tanstack/query-db-collection": "^1.4.5",
"@tanstack/react-db": "^0.5.10",
"@tanstack/query-db-collection": "^1.4.6",
"@tanstack/react-db": "^0.5.11",
"@tanstack/react-router": "^1.170.41",
"@tanstack/react-router-devtools": "^1.159.5",
"@tanstack/react-router-with-query": "^1.130.17",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-ssr-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:e2e:hosted": "playwright test"
},
"dependencies": {
"@tanstack/react-db": "^0.5.10",
"@tanstack/react-db": "^0.5.11",
"@tanstack/react-router": "^1.170.41",
"@tanstack/react-router-with-db": "^0.1.0",
"@tanstack/react-start": "^1.168.60",
Expand Down
8 changes: 4 additions & 4 deletions examples/react/todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"private": true,
"version": "0.1.31",
"dependencies": {
"@tanstack/electric-db-collection": "^0.6.1",
"@tanstack/electric-db-collection": "^0.6.2",
"@tanstack/query-core": "^5.90.20",
"@tanstack/query-db-collection": "^1.4.5",
"@tanstack/react-db": "^0.5.10",
"@tanstack/query-db-collection": "^1.4.6",
"@tanstack/react-db": "^0.5.11",
"@tanstack/react-router": "^1.170.41",
"@tanstack/react-start": "^1.168.60",
"@tanstack/trailbase-db-collection": "^0.1.121",
"@tanstack/trailbase-db-collection": "^0.1.122",
"cors": "^2.8.6",
"drizzle-orm": "^0.45.1",
"drizzle-zod": "^0.8.3",
Expand Down
8 changes: 4 additions & 4 deletions examples/solid/todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"private": true,
"version": "0.0.39",
"dependencies": {
"@tanstack/electric-db-collection": "^0.6.1",
"@tanstack/electric-db-collection": "^0.6.2",
"@tanstack/query-core": "^5.90.20",
"@tanstack/query-db-collection": "^1.4.5",
"@tanstack/solid-db": "^0.3.10",
"@tanstack/query-db-collection": "^1.4.6",
"@tanstack/solid-db": "^0.3.11",
"@tanstack/solid-router": "^1.170.38",
"@tanstack/solid-start": "^1.168.57",
"@tanstack/trailbase-db-collection": "^0.1.121",
"@tanstack/trailbase-db-collection": "^0.1.122",
"cors": "^2.8.6",
"drizzle-orm": "^0.45.1",
"drizzle-zod": "^0.8.3",
Expand Down
9 changes: 9 additions & 0 deletions packages/angular-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @tanstack/angular-db

## 0.2.11

### Patch Changes

- Retire adapter-created live-query collections after their final subscriber leaves. Treat an undefined `gcTime` as omitted, preserve explicit values and caller-supplied collections, and retain Solid projections while their Suspense boundary is pending. ([#2172](https://github.com/TanStack/db/pull/2172))

- Updated dependencies [[`468db85`](https://github.com/TanStack/db/commit/468db85fb5deeb286d08c8d9ca73c74613766d8c), [`3c481f6`](https://github.com/TanStack/db/commit/3c481f6c0455fbfe82ea94d9cf457cf00b20d3e7), [`a09ba67`](https://github.com/TanStack/db/commit/a09ba670b0e4e51821c20b958e5257d3d7a83c9d), [`92b11b0`](https://github.com/TanStack/db/commit/92b11b006edc46cea23ae4423046bf9eb29fc50e), [`fcd539a`](https://github.com/TanStack/db/commit/fcd539a515f43ab1a2bd06163548e839d7a576f3), [`2c83fdc`](https://github.com/TanStack/db/commit/2c83fdc53bd762fa8b8d5e5a8b82e092710618be)]:
- @tanstack/db@0.15.1

## 0.2.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/angular-db",
"version": "0.2.10",
"version": "0.2.11",
"description": "Angular integration for @tanstack/db",
"author": "Ethan McDaniel",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/browser-db-sqlite-persistence/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/browser-db-sqlite-persistence

## 0.2.36

### Patch Changes

- Updated dependencies [[`92b11b0`](https://github.com/TanStack/db/commit/92b11b006edc46cea23ae4423046bf9eb29fc50e)]:
- @tanstack/db-sqlite-persistence-core@0.4.11

## 0.2.35

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-db-sqlite-persistence/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/browser-db-sqlite-persistence",
"version": "0.2.35",
"version": "0.2.36",
"description": "Browser wa-sqlite persisted collection adapter for TanStack DB",
"author": "TanStack Team",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/capacitor-db-sqlite-persistence/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/capacitor-db-sqlite-persistence

## 0.2.36

### Patch Changes

- Updated dependencies [[`92b11b0`](https://github.com/TanStack/db/commit/92b11b006edc46cea23ae4423046bf9eb29fc50e)]:
- @tanstack/db-sqlite-persistence-core@0.4.11

## 0.2.35

### Patch Changes
Expand Down
8 changes: 8 additions & 0 deletions packages/capacitor-db-sqlite-persistence/e2e/app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/capacitor-db-sqlite-persistence-e2e-app

## 0.0.48

### Patch Changes

- Updated dependencies [[`468db85`](https://github.com/TanStack/db/commit/468db85fb5deeb286d08c8d9ca73c74613766d8c), [`3c481f6`](https://github.com/TanStack/db/commit/3c481f6c0455fbfe82ea94d9cf457cf00b20d3e7), [`a09ba67`](https://github.com/TanStack/db/commit/a09ba670b0e4e51821c20b958e5257d3d7a83c9d), [`92b11b0`](https://github.com/TanStack/db/commit/92b11b006edc46cea23ae4423046bf9eb29fc50e), [`fcd539a`](https://github.com/TanStack/db/commit/fcd539a515f43ab1a2bd06163548e839d7a576f3), [`2c83fdc`](https://github.com/TanStack/db/commit/2c83fdc53bd762fa8b8d5e5a8b82e092710618be)]:
- @tanstack/db@0.15.1
- @tanstack/capacitor-db-sqlite-persistence@0.2.36

## 0.0.47

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/capacitor-db-sqlite-persistence-e2e-app",
"private": true,
"version": "0.0.47",
"version": "0.0.48",
"type": "module",
"scripts": {
"build": "vite build",
Expand Down
2 changes: 1 addition & 1 deletion packages/capacitor-db-sqlite-persistence/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/capacitor-db-sqlite-persistence",
"version": "0.2.35",
"version": "0.2.36",
"description": "Capacitor SQLite persisted collection adapter for TanStack DB",
"author": "TanStack Team",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/cloudflare-durable-objects-db-sqlite-persistence

## 0.2.36

### Patch Changes

- Updated dependencies [[`92b11b0`](https://github.com/TanStack/db/commit/92b11b006edc46cea23ae4423046bf9eb29fc50e)]:
- @tanstack/db-sqlite-persistence-core@0.4.11

## 0.2.35

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/cloudflare-durable-objects-db-sqlite-persistence",
"version": "0.2.35",
"version": "0.2.36",
"description": "Cloudflare Durable Object SQLite persisted collection adapter for TanStack DB",
"author": "TanStack Team",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions packages/db-sqlite-persistence-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @tanstack/db-sqlite-persistence-core

## 0.4.11

### Patch Changes

- Show the right ordered window after an on-demand Query Collection refetches. When a refetch changes a page that has a later page after it, or moves a page's end earlier, a row could sort past the page's end and be in neither result. Query DB now reports that through the new sync-adapter call `invalidateLoadedSubsets()`, and each ordered live query and Effect re-establishes its window with a bounded repair. A window that lies inside its own first page, such as a top-N list after an insert, skips the repair. This covers `utils.refetch()` and Query refetches such as `invalidateQueries`. An ordering repair that overlaps in-flight page or tie work now reads a bounded prefix instead of the full source. The SQLite persistence wrapper forwards the new call. Ordered live queries also keep paging when a source answers a request synchronously from its cache, and a finished repair no longer leaves a second first page that every later refetch re-reads. ([#2154](https://github.com/TanStack/db/pull/2154))

- Updated dependencies [[`468db85`](https://github.com/TanStack/db/commit/468db85fb5deeb286d08c8d9ca73c74613766d8c), [`3c481f6`](https://github.com/TanStack/db/commit/3c481f6c0455fbfe82ea94d9cf457cf00b20d3e7), [`a09ba67`](https://github.com/TanStack/db/commit/a09ba670b0e4e51821c20b958e5257d3d7a83c9d), [`92b11b0`](https://github.com/TanStack/db/commit/92b11b006edc46cea23ae4423046bf9eb29fc50e), [`fcd539a`](https://github.com/TanStack/db/commit/fcd539a515f43ab1a2bd06163548e839d7a576f3), [`2c83fdc`](https://github.com/TanStack/db/commit/2c83fdc53bd762fa8b8d5e5a8b82e092710618be)]:
- @tanstack/db@0.15.1

## 0.4.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/db-sqlite-persistence-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/db-sqlite-persistence-core",
"version": "0.4.10",
"version": "0.4.11",
"description": "SQLite persisted collection core for TanStack DB",
"author": "TanStack Team",
"license": "MIT",
Expand Down
18 changes: 18 additions & 0 deletions packages/db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @tanstack/db

## 0.15.1

### Patch Changes

- Explain whether bounded `orderBy` queries lack a field index, have mismatched comparison options, or have an index that cannot support ordered lazy loading. ([#2196](https://github.com/TanStack/db/pull/2196))

- Fix eager live-query preloads after collection cleanup so they wait for the restarted source snapshot and resolve with its rows. ([#2173](https://github.com/TanStack/db/pull/2173))

- Publish the first window of an ordered live query synchronously when a full-source fallback returns `true` after applying its rows. This prevents an empty initial result when the first ordered request cannot fill the window. ([#2159](https://github.com/TanStack/db/pull/2159))

A later full-source fallback without ordering-repair debt can also settle in the current graph turn. Explicit window moves and full-source repairs keep their existing settlement rules.

- Show the right ordered window after an on-demand Query Collection refetches. When a refetch changes a page that has a later page after it, or moves a page's end earlier, a row could sort past the page's end and be in neither result. Query DB now reports that through the new sync-adapter call `invalidateLoadedSubsets()`, and each ordered live query and Effect re-establishes its window with a bounded repair. A window that lies inside its own first page, such as a top-N list after an insert, skips the repair. This covers `utils.refetch()` and Query refetches such as `invalidateQueries`. An ordering repair that overlaps in-flight page or tie work now reads a bounded prefix instead of the full source. The SQLite persistence wrapper forwards the new call. Ordered live queries also keep paging when a source answers a request synchronously from its cache, and a finished repair no longer leaves a second first page that every later refetch re-reads. ([#2154](https://github.com/TanStack/db/pull/2154))

- Retire adapter-created live-query collections after their final subscriber leaves. Treat an undefined `gcTime` as omitted, preserve explicit values and caller-supplied collections, and retain Solid projections while their Suspense boundary is pending. ([#2172](https://github.com/TanStack/db/pull/2172))

- Publish optimistic membership departures from ordered live-query windows immediately, even when a provider refill is pending. Keep provider-backed rows private until their sync writes apply. ([#2177](https://github.com/TanStack/db/pull/2177))

## 0.15.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/db",
"version": "0.15.0",
"version": "0.15.1",
"description": "A reactive client store for building super fast apps on sync",
"author": "Kyle Mathews",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/electric-db-collection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/electric-db-collection

## 0.6.2

### Patch Changes

- Updated dependencies [[`468db85`](https://github.com/TanStack/db/commit/468db85fb5deeb286d08c8d9ca73c74613766d8c), [`3c481f6`](https://github.com/TanStack/db/commit/3c481f6c0455fbfe82ea94d9cf457cf00b20d3e7), [`a09ba67`](https://github.com/TanStack/db/commit/a09ba670b0e4e51821c20b958e5257d3d7a83c9d), [`92b11b0`](https://github.com/TanStack/db/commit/92b11b006edc46cea23ae4423046bf9eb29fc50e), [`fcd539a`](https://github.com/TanStack/db/commit/fcd539a515f43ab1a2bd06163548e839d7a576f3), [`2c83fdc`](https://github.com/TanStack/db/commit/2c83fdc53bd762fa8b8d5e5a8b82e092710618be)]:
- @tanstack/db@0.15.1

## 0.6.1

### Patch Changes
Expand Down
Loading