Skip to content
Open
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/five-turtles-yell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-bats-camp.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/live-query-observer.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/live-query-order-only-move.md

This file was deleted.

8 changes: 8 additions & 0 deletions examples/angular/todos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# todos

## 0.0.19

### Patch Changes

- Updated dependencies [[`ad88d07`](https://github.com/TanStack/db/commit/ad88d0751db9723dfb9f164ebfcef88d52b6efa3), [`7e7abda`](https://github.com/TanStack/db/commit/7e7abda73a7ab313f9ec6a413fad00f300e79fb3)]:
- @tanstack/db@0.7.0
- @tanstack/angular-db@0.1.78

## 0.0.18

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions examples/angular/todos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "todos",
"version": "0.0.18",
"version": "0.0.19",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down Expand Up @@ -28,8 +28,8 @@
"@angular/forms": "^20.3.16",
"@angular/platform-browser": "^20.3.16",
"@angular/router": "^20.3.16",
"@tanstack/angular-db": "^0.1.77",
"@tanstack/db": "^0.6.17",
"@tanstack/angular-db": "^0.1.78",
"@tanstack/db": "^0.7.0",
"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 40.2.1 --arch arm64 || echo 'prebuild-install failed, try: npx @electron/rebuild'"
},
"dependencies": {
"@tanstack/electron-db-sqlite-persistence": "^0.1.21",
"@tanstack/node-db-sqlite-persistence": "^0.2.9",
"@tanstack/offline-transactions": "^1.0.42",
"@tanstack/query-db-collection": "^1.2.1",
"@tanstack/react-db": "^0.1.95",
"@tanstack/electron-db-sqlite-persistence": "^0.1.22",
"@tanstack/node-db-sqlite-persistence": "^0.2.10",
"@tanstack/offline-transactions": "^1.0.43",
"@tanstack/query-db-collection": "^1.2.2",
"@tanstack/react-db": "^0.1.96",
"@tanstack/react-query": "^5.90.20",
"better-sqlite3": "^12.6.2",
"react": "^19.2.4",
Expand Down
11 changes: 11 additions & 0 deletions examples/react-native/offline-transactions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# offline-transactions-react-native

## 1.0.4

### Patch Changes

- Updated dependencies [[`ad88d07`](https://github.com/TanStack/db/commit/ad88d0751db9723dfb9f164ebfcef88d52b6efa3), [`7e7abda`](https://github.com/TanStack/db/commit/7e7abda73a7ab313f9ec6a413fad00f300e79fb3)]:
- @tanstack/db@0.7.0
- @tanstack/react-db@0.1.96
- @tanstack/offline-transactions@1.0.43
- @tanstack/query-db-collection@1.2.2
- @tanstack/react-native-db-sqlite-persistence@0.2.10

## 1.0.3

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions examples/react-native/offline-transactions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "offline-transactions-react-native",
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"main": "expo-router/entry",
"scripts": {
Expand All @@ -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.6.17",
"@tanstack/offline-transactions": "^1.0.42",
"@tanstack/query-db-collection": "^1.2.1",
"@tanstack/react-db": "^0.1.95",
"@tanstack/react-native-db-sqlite-persistence": "^0.2.9",
"@tanstack/db": "^0.7.0",
"@tanstack/offline-transactions": "^1.0.43",
"@tanstack/query-db-collection": "^1.2.2",
"@tanstack/react-db": "^0.1.96",
"@tanstack/react-native-db-sqlite-persistence": "^0.2.10",
"@tanstack/react-query": "^5.90.20",
"expo": "~53.0.26",
"expo-constants": "~17.1.0",
Expand Down
11 changes: 11 additions & 0 deletions examples/react-native/shopping-list/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# shopping-list-react-native

## 1.0.4

### Patch Changes

- Updated dependencies [[`ad88d07`](https://github.com/TanStack/db/commit/ad88d0751db9723dfb9f164ebfcef88d52b6efa3), [`7e7abda`](https://github.com/TanStack/db/commit/7e7abda73a7ab313f9ec6a413fad00f300e79fb3)]:
- @tanstack/db@0.7.0
- @tanstack/react-db@0.1.96
- @tanstack/electric-db-collection@0.3.16
- @tanstack/offline-transactions@1.0.43
- @tanstack/react-native-db-sqlite-persistence@0.2.10

## 1.0.3

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions examples/react-native/shopping-list/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shopping-list-react-native",
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"main": "expo-router/entry",
"scripts": {
Expand All @@ -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.6.17",
"@tanstack/electric-db-collection": "^0.3.15",
"@tanstack/offline-transactions": "^1.0.42",
"@tanstack/react-db": "^0.1.95",
"@tanstack/react-native-db-sqlite-persistence": "^0.2.9",
"@tanstack/db": "^0.7.0",
"@tanstack/electric-db-collection": "^0.3.16",
"@tanstack/offline-transactions": "^1.0.43",
"@tanstack/react-db": "^0.1.96",
"@tanstack/react-native-db-sqlite-persistence": "^0.2.10",
"@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/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.9",
"@tanstack/db": "^0.6.17",
"@tanstack/offline-transactions": "^1.0.42",
"@tanstack/query-db-collection": "^1.2.1",
"@tanstack/react-db": "^0.1.95",
"@tanstack/browser-db-sqlite-persistence": "^0.2.10",
"@tanstack/db": "^0.7.0",
"@tanstack/offline-transactions": "^1.0.43",
"@tanstack/query-db-collection": "^1.2.2",
"@tanstack/react-db": "^0.1.96",
"@tanstack/react-query": "^5.90.20",
"@tanstack/react-router": "^1.159.5",
"@tanstack/react-router-devtools": "^1.159.5",
Expand Down
8 changes: 8 additions & 0 deletions examples/react/paced-mutations-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/db-example-paced-mutations-demo

## 0.0.9

### Patch Changes

- Updated dependencies [[`ad88d07`](https://github.com/TanStack/db/commit/ad88d0751db9723dfb9f164ebfcef88d52b6efa3), [`7e7abda`](https://github.com/TanStack/db/commit/7e7abda73a7ab313f9ec6a413fad00f300e79fb3)]:
- @tanstack/db@0.7.0
- @tanstack/react-db@0.1.96

## 0.0.8

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions examples/react/paced-mutations-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/db-example-paced-mutations-demo",
"version": "0.0.8",
"version": "0.0.9",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/db": "^0.6.17",
"@tanstack/react-db": "^0.1.95",
"@tanstack/db": "^0.7.0",
"@tanstack/react-db": "^0.1.96",
"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.2.1",
"@tanstack/react-db": "^0.1.95",
"@tanstack/query-db-collection": "^1.2.2",
"@tanstack/react-db": "^0.1.96",
"@tanstack/react-router": "^1.159.5",
"@tanstack/react-router-devtools": "^1.159.5",
"@tanstack/react-router-with-query": "^1.130.17",
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.25",
"dependencies": {
"@tanstack/electric-db-collection": "^0.3.15",
"@tanstack/electric-db-collection": "^0.3.16",
"@tanstack/query-core": "^5.90.20",
"@tanstack/query-db-collection": "^1.2.1",
"@tanstack/react-db": "^0.1.95",
"@tanstack/query-db-collection": "^1.2.2",
"@tanstack/react-db": "^0.1.96",
"@tanstack/react-router": "^1.159.5",
"@tanstack/react-start": "^1.159.5",
"@tanstack/trailbase-db-collection": "^0.1.95",
"@tanstack/trailbase-db-collection": "^0.1.96",
"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.35",
"dependencies": {
"@tanstack/electric-db-collection": "^0.3.15",
"@tanstack/electric-db-collection": "^0.3.16",
"@tanstack/query-core": "^5.90.20",
"@tanstack/query-db-collection": "^1.2.1",
"@tanstack/solid-db": "^0.2.31",
"@tanstack/query-db-collection": "^1.2.2",
"@tanstack/solid-db": "^0.2.32",
"@tanstack/solid-router": "^1.159.5",
"@tanstack/solid-start": "^1.159.5",
"@tanstack/trailbase-db-collection": "^0.1.95",
"@tanstack/trailbase-db-collection": "^0.1.96",
"cors": "^2.8.6",
"drizzle-orm": "^0.45.1",
"drizzle-zod": "^0.8.3",
Expand Down
15 changes: 15 additions & 0 deletions packages/angular-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @tanstack/angular-db

## 0.1.78

### Patch Changes

- Add an internal shared live-query observer and migrate all five framework adapters to it ([#1642](https://github.com/TanStack/db/pull/1642))

Introduces `createLiveQueryObserver` in `@tanstack/db`: given a resolved live-query collection (or `null` for a disabled query) it owns the subscription lifecycle every adapter used to re-implement — change and status subscriptions, a snapshot with stable identity per state revision for wholesale consumers, and delivery of the raw `ChangeMessage[]` for granular consumers. React, Vue, Svelte, Solid, and Angular's live-query hooks now materialize from the observer instead of their own hand-rolled subscription/status/snapshot machinery, keeping each adapter's native reactivity and each adapter's data-loading policy (wholesale adapters subscribe without initial state; granular adapters seed from it).

The observer is an **internal, unstable contract** for TanStack DB's official adapters — it is exported so the adapter packages can consume it, but it is not a public extension point yet and its API may change in any release.

The migration also fixes several live-query lifecycle defects: status-only transitions (`error`, `cleaned-up`) now reach mounted consumers; snapshot identity is stable across unsubscribe/resubscribe and stays fresh while detached; dispatch is FIFO and non-reentrant with subscriptions identified by record rather than callback; disposing during the synchronous initial replay no longer leaks the collection subscription; subscribing after dispose throws instead of registering a dead listener; Solid guards its async resource continuations against superseded collections; and constructing an observer no longer activates sync. Observers activate on their first committed subscription unless an adapter has already started a pre-created collection supplied directly or returned from a callback.

- Updated dependencies [[`ad88d07`](https://github.com/TanStack/db/commit/ad88d0751db9723dfb9f164ebfcef88d52b6efa3), [`7e7abda`](https://github.com/TanStack/db/commit/7e7abda73a7ab313f9ec6a413fad00f300e79fb3)]:
- @tanstack/db@0.7.0

## 0.1.77

### 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.1.77",
"version": "0.1.78",
"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.10

### Patch Changes

- Updated dependencies []:
- @tanstack/db-sqlite-persistence-core@0.2.10

## 0.2.9

### 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.9",
"version": "0.2.10",
"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.10

### Patch Changes

- Updated dependencies []:
- @tanstack/db-sqlite-persistence-core@0.2.10

## 0.2.9

### 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.22

### Patch Changes

- Updated dependencies [[`ad88d07`](https://github.com/TanStack/db/commit/ad88d0751db9723dfb9f164ebfcef88d52b6efa3), [`7e7abda`](https://github.com/TanStack/db/commit/7e7abda73a7ab313f9ec6a413fad00f300e79fb3)]:
- @tanstack/db@0.7.0
- @tanstack/capacitor-db-sqlite-persistence@0.2.10

## 0.0.21

### 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.21",
"version": "0.0.22",
"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.9",
"version": "0.2.10",
"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.10

### Patch Changes

- Updated dependencies []:
- @tanstack/db-sqlite-persistence-core@0.2.10

## 0.2.9

### 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.9",
"version": "0.2.10",
"description": "Cloudflare Durable Object SQLite persisted collection adapter for TanStack DB",
"author": "TanStack Team",
"license": "MIT",
Expand Down
Loading