Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

CHANGELOG.md

140 lines6.8 KB

@tanstack/db-collection-e2e

0.0.14

Patch Changes

  • Updated dependencies [c4b9399, a1a484e, f458e05]:
    • @tanstack/db@0.5.11
    • @tanstack/query-db-collection@1.0.6
    • @tanstack/electric-db-collection@0.2.12

0.0.13

Patch Changes

  • Updated dependencies [1d19d22, aebd0fa, b3e4e80]:
    • @tanstack/electric-db-collection@0.2.11
    • @tanstack/db@0.5.10
    • @tanstack/query-db-collection@1.0.5

0.0.12

Patch Changes

  • Updated dependencies [5f474f1]:
    • @tanstack/db@0.5.9
    • @tanstack/electric-db-collection@0.2.10
    • @tanstack/query-db-collection@1.0.5

0.0.11

Patch Changes

  • Updated dependencies [03842c6]:
    • @tanstack/electric-db-collection@0.2.9

0.0.10

Patch Changes

  • Updated dependencies [954c8fe, 51c73aa]:
    • @tanstack/db@0.5.8
    • @tanstack/electric-db-collection@0.2.8
    • @tanstack/query-db-collection@1.0.5

0.0.9

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7
    • @tanstack/electric-db-collection@0.2.7
    • @tanstack/query-db-collection@1.0.5

0.0.8

Patch Changes

  • Updated dependencies [a540d7c, c8a2c16]:
    • @tanstack/query-db-collection@1.0.5
    • @tanstack/db@0.5.6
    • @tanstack/electric-db-collection@0.2.6

0.0.7

Patch Changes

  • Updated dependencies [077fc1a]:
    • @tanstack/query-db-collection@1.0.4
    • @tanstack/db@0.5.5
    • @tanstack/electric-db-collection@0.2.5

0.0.6

Patch Changes

  • Fix progressive mode to use fetchSnapshot and atomic swap (#852)

    Progressive mode was broken because requestSnapshot() injected snapshots into the stream in causally correct position, which didn't work properly with the full mode stream. This release fixes progressive mode by:

    Core Changes:

    • Use fetchSnapshot() during initial sync to fetch and apply snapshots immediately in sync transactions
    • Buffer all stream messages during initial sync (renamed flag to isBufferingInitialSync)
    • Perform atomic swap on first up-to-date: truncate snapshot data → apply buffered messages → mark ready
    • Track txids/snapshots only after atomic swap (enables correct optimistic transaction confirmation)

    Test Infrastructure:

    • Added ELECTRIC_TEST_HOOKS symbol for test control (hidden from public API)
    • Added progressiveTestControl.releaseInitialSync() to E2E test config for explicit transition control
    • Created comprehensive progressive mode E2E test suite (8 tests):
      • Explicit snapshot phase and atomic swap validation
      • Txid tracking behavior (Electric-only)
      • Multiple concurrent snapshots with deduplication
      • Incremental updates after swap
      • Predicate handling and resilience tests

    Bug Fixes:

    • Fixed type errors in test files
    • All 166 unit tests + 95 E2E tests passing
  • Updated dependencies [f66f2cf, e657a7d, f15b2a7, acb3e4f, 464805d, 2c2e4db, 15c772f]:

    • @tanstack/query-db-collection@1.0.3
    • @tanstack/electric-db-collection@0.2.4
    • @tanstack/db@0.5.4

0.0.5

Patch Changes

  • Updated dependencies [a90f95e, 846a830, 8e26dcf]:
    • @tanstack/query-db-collection@1.0.2
    • @tanstack/db@0.5.3
    • @tanstack/electric-db-collection@0.2.3

0.0.4

Patch Changes

  • Updated dependencies [99a3716]:
    • @tanstack/db@0.5.2
    • @tanstack/electric-db-collection@0.2.2
    • @tanstack/query-db-collection@1.0.1

0.0.3

Patch Changes

  • Updated dependencies [a83a818, a83a818]:
    • @tanstack/query-db-collection@1.0.1
    • @tanstack/db@0.5.1
    • @tanstack/electric-db-collection@0.2.1

0.0.2

Patch Changes