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
24 changes: 0 additions & 24 deletions .changeset/khaki-ties-shout.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/open-zebras-remain.md

This file was deleted.

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.0.37

### Patch Changes

- Updated dependencies []:
- @tanstack/[email protected]
- @tanstack/[email protected]
- @tanstack/[email protected]
- @tanstack/[email protected]

## 0.0.36

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions examples/react/todo/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@tanstack/db-example-react-todo",
"private": true,
"version": "0.0.36",
"version": "0.0.37",
"dependencies": {
"@tanstack/electric-db-collection": "^0.0.12",
"@tanstack/electric-db-collection": "^0.0.13",
"@tanstack/query-core": "^5.75.7",
"@tanstack/query-db-collection": "^0.0.12",
"@tanstack/react-db": "^0.0.30",
"@tanstack/query-db-collection": "^0.0.13",
"@tanstack/react-db": "^0.0.31",
"@tanstack/react-router": "^1.125.6",
"@tanstack/react-start": "^1.126.1",
"@tanstack/trailbase-db-collection": "^0.0.6",
"@tanstack/trailbase-db-collection": "^0.0.7",
"cors": "^2.8.5",
"drizzle-orm": "^0.40.1",
"drizzle-zod": "^0.7.0",
Expand Down
22 changes: 22 additions & 0 deletions packages/db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @tanstack/db

## 0.0.31

### Patch Changes

- Fix UI responsiveness issue with rapid user interactions in collections ([#308](https://github.com/TanStack/db/pull/308))

Fixed a critical issue where rapid user interactions (like clicking multiple checkboxes quickly) would cause the UI to become unresponsive when using collections with slow backend responses. The problem occurred when optimistic updates would back up and the UI would stop reflecting user actions.

**Root Causes:**

- Event filtering logic was blocking ALL events for keys with recent sync operations, including user-initiated actions
- Event batching was queuing user actions instead of immediately updating the UI during high-frequency operations

**Solution:**

- Added `triggeredByUserAction` parameter to `recomputeOptimisticState()` to distinguish user actions from sync operations
- Modified event filtering to allow user-initiated actions to bypass sync status checks
- Enhanced `emitEvents()` with `forceEmit` parameter to skip batching for immediate user action feedback
- Updated all user action code paths to properly identify themselves as user-triggered

This ensures the UI remains responsive during rapid user interactions while maintaining the performance benefits of event batching and duplicate event filtering for sync operations.

## 0.0.30

### 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.0.30",
"version": "0.0.31",
"dependencies": {
"@electric-sql/d2mini": "^0.1.7",
"@standard-schema/spec": "^1.0.0"
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.0.13

### Patch Changes

- Updated dependencies [[`3e9a36d`](https://github.com/TanStack/db/commit/3e9a36d2600c4f700ca7bc4f720c189a5a29387a)]:
- @tanstack/[email protected]

## 0.0.12

### 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": "Electric SQL collection for TanStack DB",
"version": "0.0.12",
"version": "0.0.13",
"dependencies": {
"@electric-sql/client": "1.0.0",
"@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.0.13

### Patch Changes

- Updated dependencies [[`3e9a36d`](https://github.com/TanStack/db/commit/3e9a36d2600c4f700ca7bc4f720c189a5a29387a)]:
- @tanstack/[email protected]

## 0.0.12

### 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.0.12",
"version": "0.0.13",
"dependencies": {
"@tanstack/db": "workspace:*",
"@tanstack/query-core": "^5.75.7"
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.0.31

### Patch Changes

- Updated dependencies [[`3e9a36d`](https://github.com/TanStack/db/commit/3e9a36d2600c4f700ca7bc4f720c189a5a29387a)]:
- @tanstack/[email protected]

## 0.0.30

### 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.0.30",
"version": "0.0.31",
"author": "Kyle Mathews",
"license": "MIT",
"repository": {
Expand Down
29 changes: 29 additions & 0 deletions packages/svelte-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# @tanstack/svelte-db

## 0.0.1

### Patch Changes

- Add Svelte support ([#91](https://github.com/TanStack/db/pull/91))

Usage example:

```svelte
<script lang="ts">
import { useLiveQuery } from "@tanstack/svelte-db"
import { eq } from "@tanstack/db"
import { todoCollection } from "$lib/collections"

const todosQuery = useLiveQuery((query) =>
query
.from({ todos: todoCollection })
.where(({ todos }) => eq(todos.completed, false))
)
</script>


<List items={todosQuery.data} />
```

- Updated dependencies [[`3e9a36d`](https://github.com/TanStack/db/commit/3e9a36d2600c4f700ca7bc4f720c189a5a29387a)]:
- @tanstack/[email protected]
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.0.0",
"version": "0.0.1",
"scripts": {
"build": "svelte-package --input ./src --output ./dist --tsconfig ./tsconfig.build.json",
"test": "npx vitest --run",
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.0.7

### Patch Changes

- Updated dependencies [[`3e9a36d`](https://github.com/TanStack/db/commit/3e9a36d2600c4f700ca7bc4f720c189a5a29387a)]:
- @tanstack/[email protected]

## 0.0.6

### 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.0.6",
"version": "0.0.7",
"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.30

### Patch Changes

- Updated dependencies [[`3e9a36d`](https://github.com/TanStack/db/commit/3e9a36d2600c4f700ca7bc4f720c189a5a29387a)]:
- @tanstack/[email protected]

## 0.0.29

### 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.29",
"version": "0.0.30",
"author": "Kyle Mathews",
"license": "MIT",
"repository": {
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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