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

CHANGELOG.md

344 lines11.8 KB

@tanstack/electron-db-sqlite-persistence

0.2.5

Patch Changes

0.2.4

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.4.3

0.2.3

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.4.2

0.2.2

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.4.1

0.2.1

Patch Changes

  • Updated dependencies [9c62ac3, c0d123b]:
    • @tanstack/db-sqlite-persistence-core@0.4.0

0.2.0

Minor Changes

  • Preserve persisted resume integrity with atomic SQLite baseline evidence and stale-writer rejection, expose persistence sync metadata as one versioned capability, and refresh uncertified Electric baselines before publishing resumed data. (#1846)

    This changes the public persistence contracts: custom PersistenceAdapter implementations must now implement loadResumeSnapshot, and SyncMetadataApi.persistence is required with null explicitly representing no persistence. Custom sync wrappers that receive metadata must forward metadata.persistence unchanged so consumers receive either that sentinel or the complete versioned capability. A direct sync invocation may still omit the optional metadata object entirely, which consumers treat as no persistence. The Electron bridge now transports the atomic resume snapshot through IPC protocol v2; Electron main and renderer integrations must upgrade together because mixed v1/v2 peers fail closed. Node and React Native persistence instances that wrap one database handle now share transaction admission so concurrent collection startup cannot overlap transactions on that connection.

Patch Changes

  • Require coordinators to route complete committed transactions through the per-collection persistence owner, with named fail-stop errors for indeterminate commits and durability failures. Add clone-safe remote-subset leases with exact release, recursive wire validation, and matching Browser and Electron coordination. (#1845)

  • Request an existing leader's route before the first coordinated write, without sending the mutation. Let leader election finish during scheduled hydration, and reject writes queued under a former leader before persistence. (#1899)

  • Schedule complete SQLite hydration units fairly without holding coordinator work inside the local hydration scope. Fence stale startup rows after a coordinator reset. Preserve per-Collection leader adapter routing, mutation results across transport retries, terminal coordinator disposal, real-adapter restart order, and promise-discovered shared scheduling. (#1868)

  • Updated dependencies [6e151b0, 5108acf, fef53f8, 4b9617c, f09868f, d3c38c8, 5218f0c, 98639f0, 2781581, 3d96614, f473a36, 510cb53]:

    • @tanstack/db-sqlite-persistence-core@0.3.0

0.1.35

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.23

0.1.34

Patch Changes

  • Updated dependencies [a378bd3, ad043b7]:
    • @tanstack/db-sqlite-persistence-core@0.2.22

0.1.33

Patch Changes

  • Updated dependencies [cfb01ce]:
    • @tanstack/db-sqlite-persistence-core@0.2.21

0.1.32

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.20

0.1.31

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.19

0.1.30

Patch Changes

  • Updated dependencies [8c5838d]:
    • @tanstack/db-sqlite-persistence-core@0.2.18

0.1.29

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.17

0.1.28

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.16

0.1.27

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.15

0.1.26

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.14

0.1.25

Patch Changes

  • Updated dependencies [4b9e8cd]:
    • @tanstack/db-sqlite-persistence-core@0.2.13

0.1.24

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.12

0.1.23

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.11

0.1.22

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.10

0.1.21

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.9

0.1.20

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.8

0.1.19

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.7

0.1.18

Patch Changes

  • Updated dependencies [f7da776]:
    • @tanstack/db-sqlite-persistence-core@0.2.6

0.1.17

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.5

0.1.16

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.4

0.1.15

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.3

0.1.14

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.2.2

0.1.13

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 [00389a4]:

    • @tanstack/db-sqlite-persistence-core@0.2.1

0.1.12

Patch Changes

  • Updated dependencies [58edb26]:
    • @tanstack/db-sqlite-persistence-core@0.2.0

0.1.11

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.1.11

0.1.10

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.1.10

0.1.9

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.1.9

0.1.8

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.1.8

0.1.7

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.1.7

0.1.6

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.1.6

0.1.5

Patch Changes

  • Updated dependencies []:
    • @tanstack/db-sqlite-persistence-core@0.1.5

0.1.4

Patch Changes

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

  • Updated dependencies [b779b4e]:

    • @tanstack/db-sqlite-persistence-core@0.1.4

0.1.3

Patch Changes

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

  • Updated dependencies [287673d]:

    • @tanstack/db-sqlite-persistence-core@0.1.3

0.1.2

Patch Changes

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

  • Updated dependencies [99ad6b5]:

    • @tanstack/db-sqlite-persistence-core@0.1.2

0.1.1

Patch Changes

  • 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 [e0df07e, d351c67]:

    • @tanstack/db-sqlite-persistence-core@0.1.1