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

CHANGELOG.md

147 lines7.8 KB

@tanstack/db-sqlite-persistence-core

0.2.2

Patch Changes

  • Updated dependencies [307fdf8]:
    • @tanstack/db@0.6.10

0.2.1

Patch Changes

  • Use a safe randomUUID helper that falls back to crypto.getRandomValues when crypto.randomUUID is unavailable (non-secure browser contexts such as dev servers reached via a LAN IP over HTTP). Fixes #1541. (#1593)

  • Updated dependencies [2147345, 00389a4]:

    • @tanstack/db@0.6.9

0.2.0

Minor Changes

  • SQLite persistence wrappers now prune the applied_tx replay log by default so SQLite files no longer grow without bound. When prune options are omitted, wrappers that construct the shared SQLite core adapter apply appliedTxPruneMaxRows: 1_000 and appliedTxPruneMaxAgeSeconds: 86_400 (24h). Both remain overridable, and passing 0 disables that limit. The defaults are exported as DEFAULT_APPLIED_TX_PRUNE_MAX_ROWS and DEFAULT_APPLIED_TX_PRUNE_MAX_AGE_SECONDS from the shared SQLite core package and re-exported by wrapper packages. (#1572)

    The shared SQLite core adapter now treats applied_tx as a bounded replay cache during pullSince recovery. If a recovery request starts before the retained replay window, pullSince returns requiresFullReload: true instead of returning partial deltas.

Patch Changes

  • Updated dependencies [3827b62]:
    • @tanstack/db@0.6.8

0.1.11

Patch Changes

0.1.10

Patch Changes

  • Updated dependencies [4e9ab39]:
    • @tanstack/db@0.6.6

0.1.9

Patch Changes

0.1.8

Patch Changes

  • Updated dependencies [1e69dd6]:
    • @tanstack/db@0.6.4

0.1.7

Patch Changes

0.1.6

Patch Changes

0.1.5

Patch Changes

  • Updated dependencies [8b7fb1a]:
    • @tanstack/db@0.6.1

0.1.4

Patch Changes

  • Fix workspace: dependency links that were incorrectly published to npm (#1410)

0.1.3

Patch Changes

  • Fix workspace: dependency links that were incorrectly published to npm (#1408)

0.1.2

Patch Changes

  • Fix workspace: dependency links that were incorrectly published to npm (#1406)

0.1.1

Patch Changes

  • fix(persistence): harden persisted startup, truncate metadata semantics, and resume identity matching (#1380)

    • Restore persisted wrapper markReady fallback behavior so startup failures do not leave collections stuck in loading state
    • Replace load cancellation reference identity tracking with deterministic load keys for loadSubset / unloadSubset
    • Document intentional truncate behavior where collection-scoped metadata writes are preserved across truncate transactions
    • Tighten SQLite applied_tx migration handling to only ignore duplicate-column add errors
    • Stabilize Electric shape identity serialization so persisted resume compatibility does not depend on object key insertion order
  • feat(persistence): add SQLite-based offline persistence for collections (#1358)

    Adds a new persistence layer that durably stores collection data in SQLite, enabling applications to survive page reloads and app restarts across browser, Node, mobile, desktop, and edge runtimes.

    Core persistence (@tanstack/db-sqlite-persistence-core)

    • New package providing the shared SQLite persistence runtime: hydration, streaming, transaction tracking, and applied-tx pruning
    • SQLite core adapter with full query compilation, index management, and schema migration support
    • Portable conformance test contracts for runtime-specific adapters

    Browser (@tanstack/browser-db-sqlite-persistence)

    • New package for browser persistence via wa-sqlite backed by OPFS
    • Single-tab persistence with OPFS-based SQLite storage
    • BrowserCollectionCoordinator for multi-tab leader-election and cross-tab sync

    Cloudflare Durable Objects (@tanstack/cloudflare-durable-objects-db-sqlite-persistence)

    • New package for SQLite persistence in Cloudflare Durable Objects runtimes

    Node (@tanstack/node-db-sqlite-persistence)

    • New package for Node persistence via SQLite

    Electron (@tanstack/electron-db-sqlite-persistence)

    • New package providing Electron main and renderer persistence bridge helpers

    Expo (@tanstack/expo-db-sqlite-persistence)

    • New package for Expo persistence via expo-sqlite

    React Native (@tanstack/react-native-db-sqlite-persistence)

    • New package for React Native persistence via op-sqlite
    • Adapter with transaction deadlock prevention and runtime parity coverage

    Capacitor (@tanstack/capacitor-db-sqlite-persistence)

    • New package for Capacitor persistence via @capacitor-community/sqlite

    Tauri (@tanstack/tauri-db-sqlite-persistence)

    • New package for Tauri persistence via @tauri-apps/plugin-sql
  • Updated dependencies [f60384b, b8abc02, 09c7afc, bb09eb1, 179d666, 43ecbfa, 055fd94, 055fd94, 055fd94, 055fd94, 85f5435, b65d8f7, e0df07e, 9952921, d351c67]:

    • @tanstack/db@0.6.0