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
47 changes: 0 additions & 47 deletions .changeset/poor-wasps-stand.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smooth-windows-jump.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.8

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7
- @tanstack/angular-db@0.1.12

## 0.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/todos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "todos",
"version": "0.0.7",
"version": "0.0.8",
"scripts": {
"ng": "ng",
"start": "ng serve",
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.14",
"@tanstack/query-core": "^5.90.2",
"@tanstack/query-db-collection": "^0.2.27",
"@tanstack/react-db": "^0.1.28",
"@tanstack/query-db-collection": "^0.2.28",
"@tanstack/react-db": "^0.1.29",
"@tanstack/react-router": "^1.132.41",
"@tanstack/react-router-devtools": "^1.132.41",
"@tanstack/react-router-with-query": "^1.130.17",
Expand Down
10 changes: 10 additions & 0 deletions examples/react/todo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# examples/react/todo

## 0.1.7

### Patch Changes

- Updated dependencies [[`3cb5180`](https://github.com/TanStack/db/commit/3cb51805d999c3e62bebcd71e9135b28fee38010)]:
- @tanstack/electric-db-collection@0.1.31
- @tanstack/query-db-collection@0.2.28
- @tanstack/react-db@0.1.29
- @tanstack/trailbase-db-collection@0.1.29

## 0.1.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/react/todo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/db-example-react-todo",
"private": true,
"version": "0.1.6",
"version": "0.1.7",
"dependencies": {
"@tanstack/electric-db-collection": "workspace:^",
"@tanstack/query-core": "^5.90.2",
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.12

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.1.11

### 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,7 +1,7 @@
{
"name": "@tanstack/angular-db",
"description": "Angular integration for @tanstack/db",
"version": "0.1.11",
"version": "0.1.12",
"author": "Ethan McDaniel",
"license": "MIT",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @tanstack/db

## 0.4.7

### Patch Changes

- Add acceptMutations utility for local collections in manual transactions. Local-only and local-storage collections now expose `utils.acceptMutations(transaction, collection)` that must be called in manual transaction `mutationFn` to persist mutations. ([#638](https://github.com/TanStack/db/pull/638))

## 0.4.6

### 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,7 +1,7 @@
{
"name": "@tanstack/db",
"description": "A reactive client store for building super fast apps on sync",
"version": "0.4.6",
"version": "0.4.7",
"dependencies": {
"@standard-schema/spec": "^1.0.0",
"@tanstack/db-ivm": "workspace:*"
Expand Down
48 changes: 48 additions & 0 deletions packages/electric-db-collection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# @tanstack/electric-db-collection

## 0.1.31

### Patch Changes

- feat: Add awaitMatch utility and reduce default timeout (#402) ([#499](https://github.com/TanStack/db/pull/499))

Adds a new `awaitMatch` utility function to support custom synchronization matching logic when transaction IDs (txids) are not available. Also reduces the default timeout for `awaitTxId` from 30 seconds to 5 seconds for faster feedback.

**New Features:**
- New utility method: `collection.utils.awaitMatch(matchFn, timeout?)` - Wait for custom match logic
- Export `isChangeMessage` and `isControlMessage` helper functions for custom match functions
- Type: `MatchFunction<T>` for custom match functions

**Changes:**
- Default timeout for `awaitTxId` reduced from 30 seconds to 5 seconds

**Example Usage:**

```typescript
import { isChangeMessage } from "@tanstack/electric-db-collection"

const todosCollection = createCollection(
electricCollectionOptions({
onInsert: async ({ transaction, collection }) => {
const newItem = transaction.mutations[0].modified
await api.todos.create(newItem)

// Wait for sync using custom match logic
await collection.utils.awaitMatch(
(message) =>
isChangeMessage(message) &&
message.headers.operation === "insert" &&
message.value.text === newItem.text,
5000 // timeout in ms (optional, defaults to 5000)
)
},
})
)
```

**Benefits:**
- Supports backends that can't provide transaction IDs
- Flexible heuristic-based matching
- Faster feedback on sync issues with reduced timeout

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.1.30

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electric-db-collection/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/electric-db-collection",
"description": "ElectricSQL collection for TanStack DB",
"version": "0.1.30",
"version": "0.1.31",
"dependencies": {
"@electric-sql/client": "^1.0.14",
"@standard-schema/spec": "^1.0.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/query-db-collection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/query-db-collection

## 0.2.28

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.2.27

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/query-db-collection/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/query-db-collection",
"description": "TanStack Query collection for TanStack DB",
"version": "0.2.27",
"version": "0.2.28",
"dependencies": {
"@standard-schema/spec": "^1.0.0",
"@tanstack/db": "workspace:*"
Expand Down
7 changes: 7 additions & 0 deletions packages/react-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/react-db

## 0.1.29

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.1.28

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-db/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/react-db",
"description": "React integration for @tanstack/db",
"version": "0.1.28",
"version": "0.1.29",
"author": "Kyle Mathews",
"license": "MIT",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/rxdb-db-collection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/rxdb-db-collection

## 0.1.18

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.1.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/rxdb-db-collection/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/rxdb-db-collection",
"description": "RxDB collection for TanStack DB",
"version": "0.1.17",
"version": "0.1.18",
"dependencies": {
"rxdb": "16.19.1",
"@standard-schema/spec": "^1.0.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/solid-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/react-db

## 0.1.29

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.1.28

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-db/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/solid-db",
"description": "Solid integration for @tanstack/db",
"version": "0.1.28",
"version": "0.1.29",
"author": "Kyle Mathews",
"license": "MIT",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/svelte-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/svelte-db

## 0.1.29

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.1.28

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-db/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/svelte-db",
"description": "Svelte integration for @tanstack/db",
"version": "0.1.28",
"version": "0.1.29",
"dependencies": {
"@tanstack/db": "workspace:*"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/trailbase-db-collection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/trailbase-db-collection

## 0.1.29

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.1.28

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/trailbase-db-collection/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/trailbase-db-collection",
"description": "TrailBase collection for TanStack DB",
"version": "0.1.28",
"version": "0.1.29",
"dependencies": {
"@standard-schema/spec": "^1.0.0",
"@tanstack/db": "workspace:*",
Expand Down
7 changes: 7 additions & 0 deletions packages/vue-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/vue-db

## 0.0.62

### Patch Changes

- Updated dependencies [[`6692aad`](https://github.com/TanStack/db/commit/6692aad4267e127b71ce595529080d6fc0aa2066)]:
- @tanstack/db@0.4.7

## 0.0.61

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-db/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/vue-db",
"description": "Vue integration for @tanstack/db",
"version": "0.0.61",
"version": "0.0.62",
"author": "Kyle Mathews",
"license": "MIT",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.