Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2354874
Handle tags and move out events
kevin-dp Dec 1, 2025
e787eb5
Unit tests for tags
kevin-dp Dec 1, 2025
5a94757
Changeset
kevin-dp Dec 1, 2025
a5aeecd
Add unit test to check with tags that are structurally equal but diff…
kevin-dp Dec 1, 2025
d03074a
Switch to string tags with values delimited by pipe character
kevin-dp Dec 1, 2025
9b57784
Remove tag from local cache when it is removed from a tag set
kevin-dp Dec 1, 2025
25fce7d
Correctly handle rows without tags in progressive mode
kevin-dp Dec 1, 2025
c145724
Add test to check that delete cleans up tags
kevin-dp Dec 1, 2025
bf523ee
Clean tracked tags for row when row is deleted
kevin-dp Dec 1, 2025
9663f50
e2e tests for move ins and out
kevin-dp Dec 2, 2025
28b0629
Fix tag indexing
kevin-dp Dec 2, 2025
7facdcb
Fix tests
kevin-dp Dec 2, 2025
8a42bd9
Renamed test
kevin-dp Dec 2, 2025
9f18498
Address feedback (part 1)
kevin-dp Dec 2, 2025
a8eb10b
Extract duplicated code
kevin-dp Dec 2, 2025
f55ca94
Removed impossible branch and fix tag unit tests to mock correct Elec…
kevin-dp Dec 2, 2025
333cc50
Fix types in tests
kevin-dp Dec 2, 2025
9f5a4d8
ci: apply automated fixes
autofix-ci[bot] Dec 8, 2025
66f12e2
Track state of rows in TX to be able to delete rows on a move out
kevin-dp Dec 8, 2025
5ba8d77
Do not rename test suite on import
kevin-dp Dec 8, 2025
89eec5b
Run e2e test suite for moves on all sync modes
kevin-dp Dec 8, 2025
3f8379c
Add some sleep time to reduce flakiness
kevin-dp Dec 8, 2025
094537a
Add some extra wait time to ensure users exist before creating posts
kevin-dp Dec 8, 2025
6de102c
Await users before inserting posts
kevin-dp Dec 8, 2025
85a4e4b
Delete a row by key on a move out such that we don't have to material…
kevin-dp Dec 11, 2025
83a8afc
ci: apply automated fixes
autofix-ci[bot] Dec 17, 2025
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: 5 additions & 0 deletions .changeset/witty-animals-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/electric-db-collection': patch
---

Support tagged rows and move out events in Electric collection.
1 change: 1 addition & 0 deletions packages/db-collection-e2e/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/e2e_test?sslmode=disable
ELECTRIC_INSECURE: true
ELECTRIC_FEATURE_FLAGS: 'allow_subqueries,tagged_subqueries'
ports:
- '3000:3000'
depends_on:
Expand Down
1 change: 1 addition & 0 deletions packages/db-collection-e2e/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ export { createCollationTestSuite } from './suites/collation.suite'
export { createMutationsTestSuite } from './suites/mutations.suite'
export { createLiveUpdatesTestSuite } from './suites/live-updates.suite'
export { createProgressiveTestSuite } from './suites/progressive.suite'
export { createMovesTestSuite } from './suites/moves.suite'
Loading
Loading