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/brave-foxes-dance.md

This file was deleted.

18 changes: 0 additions & 18 deletions .changeset/export-extract-context.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/fix-invalid-where-expression.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/fix-progressive-must-refetch.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/quick-tables-glow.md

This file was deleted.

39 changes: 0 additions & 39 deletions .changeset/some-wombats-rest.md

This file was deleted.

57 changes: 0 additions & 57 deletions .changeset/suspense-live-query-undefined-support.md

This file was deleted.

26 changes: 0 additions & 26 deletions .changeset/svelte-findone-support.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-pens-glow.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/sync-on-demand-collection-fix.md

This file was deleted.

23 changes: 0 additions & 23 deletions .changeset/where-callback-subscribe-changes.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 @@ -28,8 +28,8 @@
"@angular/forms": "^20.3.15",
"@angular/platform-browser": "^19.2.17",
"@angular/router": "^20.3.15",
"@tanstack/angular-db": "^0.1.42",
"@tanstack/db": "^0.5.16",
"@tanstack/angular-db": "^0.1.43",
"@tanstack/db": "^0.5.17",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "^0.16.0"
Expand Down
6 changes: 3 additions & 3 deletions examples/react/offline-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"start": "node .output/server/index.mjs"
},
"dependencies": {
"@tanstack/offline-transactions": "^1.0.6",
"@tanstack/query-db-collection": "^1.0.12",
"@tanstack/react-db": "^0.1.60",
"@tanstack/offline-transactions": "^1.0.7",
"@tanstack/query-db-collection": "^1.0.13",
"@tanstack/react-db": "^0.1.61",
"@tanstack/react-query": "^5.90.16",
"@tanstack/react-router": "^1.144.0",
"@tanstack/react-router-devtools": "^1.144.0",
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.5.16",
"@tanstack/react-db": "^0.1.60",
"@tanstack/db": "^0.5.17",
"@tanstack/react-db": "^0.1.61",
"mitt": "^3.0.1",
"react": "^19.2.3",
"react-dom": "^19.2.3"
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.16",
"@tanstack/query-db-collection": "^1.0.12",
"@tanstack/react-db": "^0.1.60",
"@tanstack/query-db-collection": "^1.0.13",
"@tanstack/react-db": "^0.1.61",
"@tanstack/react-router": "^1.144.0",
"@tanstack/react-router-devtools": "^1.144.0",
"@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.24",
"dependencies": {
"@tanstack/electric-db-collection": "^0.2.20",
"@tanstack/electric-db-collection": "^0.2.21",
"@tanstack/query-core": "^5.90.16",
"@tanstack/query-db-collection": "^1.0.12",
"@tanstack/react-db": "^0.1.60",
"@tanstack/query-db-collection": "^1.0.13",
"@tanstack/react-db": "^0.1.61",
"@tanstack/react-router": "^1.144.0",
"@tanstack/react-start": "^1.145.5",
"@tanstack/trailbase-db-collection": "^0.1.60",
"@tanstack/trailbase-db-collection": "^0.1.61",
"cors": "^2.8.5",
"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.33",
"dependencies": {
"@tanstack/electric-db-collection": "^0.2.20",
"@tanstack/electric-db-collection": "^0.2.21",
"@tanstack/query-core": "^5.90.16",
"@tanstack/query-db-collection": "^1.0.12",
"@tanstack/solid-db": "^0.1.59",
"@tanstack/query-db-collection": "^1.0.13",
"@tanstack/solid-db": "^0.1.60",
"@tanstack/solid-router": "^1.144.0",
"@tanstack/solid-start": "^1.145.5",
"@tanstack/trailbase-db-collection": "^0.1.60",
"@tanstack/trailbase-db-collection": "^0.1.61",
"cors": "^2.8.5",
"drizzle-orm": "^0.45.1",
"drizzle-zod": "^0.8.3",
Expand Down
7 changes: 7 additions & 0 deletions packages/angular-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/angular-db

## 0.1.43

### Patch Changes

- Updated dependencies [[`f795a67`](https://github.com/TanStack/db/commit/f795a674f21659ef46ff370d4f3b9903a596bcaf), [`d542667`](https://github.com/TanStack/db/commit/d542667a3440415d8e6cbb449b20abd3cbd6855c), [`6503c09`](https://github.com/TanStack/db/commit/6503c091a259208331f471dca29abf086e881147), [`b1cc4a7`](https://github.com/TanStack/db/commit/b1cc4a7e018ffb6804ae7f1c99e9c6eb4bb22812)]:
- @tanstack/[email protected]

## 0.1.42

### 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.42",
"version": "0.1.43",
"description": "Angular integration for @tanstack/db",
"author": "Ethan McDaniel",
"license": "MIT",
Expand Down
52 changes: 52 additions & 0 deletions packages/db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# @tanstack/db

## 0.5.17

### Patch Changes

- Export `QueryResult` helper type for easily extracting query result types (similar to Zod's `z.infer`). ([#1096](https://github.com/TanStack/db/pull/1096))

```typescript
import { Query, QueryResult } from '@tanstack/db'

const myQuery = new Query()
.from({ users })
.select(({ users }) => ({ name: users.name }))

// Extract the result type - clean and simple!
type MyQueryResult = QueryResult<typeof myQuery>
```

Also exports `ExtractContext` for advanced use cases where you need the full context type.

- Add validation for where() and having() expressions to catch JavaScript operator usage ([#1082](https://github.com/TanStack/db/pull/1082))

When users accidentally use JavaScript's comparison operators (`===`, `!==`, `<`, `>`, etc.) in `where()` or `having()` callbacks instead of query builder functions (`eq`, `gt`, etc.), the query builder now throws a helpful `InvalidWhereExpressionError` with clear guidance.

Previously, this mistake would result in a confusing "Unknown expression type: undefined" error at query compilation time. Now users get immediate feedback with an example of the correct syntax:

```
❌ .where(({ user }) => user.id === 'abc')
✅ .where(({ user }) => eq(user.id, 'abc'))
```

- Fix asymmetric behavior in `deepEquals` when comparing different special types (Date, RegExp, Map, Set, TypedArray, Temporal, Array). Previously, comparing values like `deepEquals(Date, Temporal.Duration)` could return a different result than `deepEquals(Temporal.Duration, Date)`. Now both directions correctly return `false` for mismatched types, ensuring `deepEquals` is a proper equivalence relation. ([#1018](https://github.com/TanStack/db/pull/1018))

- Add `where` callback option to `subscribeChanges` for ergonomic filtering ([#943](https://github.com/TanStack/db/pull/943))

Instead of manually constructing IR with `PropRef`:

```ts
import { eq, PropRef } from '@tanstack/db'
collection.subscribeChanges(callback, {
whereExpression: eq(new PropRef(['status']), 'active'),
})
```

You can now use a callback with query builder functions:

```ts
import { eq } from '@tanstack/db'
collection.subscribeChanges(callback, {
where: (row) => eq(row.status, 'active'),
})
```

## 0.5.16

### Patch 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.5.16",
"version": "0.5.17",
"description": "A reactive client store for building super fast apps on sync",
"author": "Kyle Mathews",
"license": "MIT",
Expand Down
Loading