Open History to see the last commit
1# @tanstack/react-native-db-sqlite-persistence
2
3## 0.2.2
4
5### Patch Changes
6
7- Updated dependencies []:
8 - @tanstack/db-sqlite-persistence-core@0.2.2
9
10## 0.2.1
11
12### Patch Changes
13
14- Updated dependencies [[`00389a4`](https://github.com/TanStack/db/commit/00389a47b258ad58fc3a03c5cc6f66957b9bd2d1)]:
15 - @tanstack/db-sqlite-persistence-core@0.2.1
16
17## 0.2.0
18
19### Minor Changes
20
21- 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](https://github.com/TanStack/db/pull/1572))
22
23 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.
24
25### Patch Changes
26
27- Updated dependencies [[`58edb26`](https://github.com/TanStack/db/commit/58edb26e87de8d992594119e39a9daa6f80620f2)]:
28 - @tanstack/db-sqlite-persistence-core@0.2.0
29
30## 0.1.11
31
32### Patch Changes
33
34- Updated dependencies []:
35 - @tanstack/db-sqlite-persistence-core@0.1.11
36
37## 0.1.10
38
39### Patch Changes
40
41- Updated dependencies []:
42 - @tanstack/db-sqlite-persistence-core@0.1.10
43
44## 0.1.9
45
46### Patch Changes
47
48- Updated dependencies []:
49 - @tanstack/db-sqlite-persistence-core@0.1.9
50
51## 0.1.8
52
53### Patch Changes
54
55- Updated dependencies []:
56 - @tanstack/db-sqlite-persistence-core@0.1.8
57
58## 0.1.7
59
60### Patch Changes
61
62- Updated dependencies []:
63 - @tanstack/db-sqlite-persistence-core@0.1.7
64
65## 0.1.6
66
67### Patch Changes
68
69- Updated dependencies []:
70 - @tanstack/db-sqlite-persistence-core@0.1.6
71
72## 0.1.5
73
74### Patch Changes
75
76- Updated dependencies []:
77 - @tanstack/db-sqlite-persistence-core@0.1.5
78
79## 0.1.4
80
81### Patch Changes
82
83- Fix workspace: dependency links that were incorrectly published to npm ([#1410](https://github.com/TanStack/db/pull/1410))
84
85- Updated dependencies [[`b779b4e`](https://github.com/TanStack/db/commit/b779b4ec127dd3f6a2fef965c52d4ee876144d8b)]:
86 - @tanstack/db-sqlite-persistence-core@0.1.4
87
88## 0.1.3
89
90### Patch Changes
91
92- Fix workspace: dependency links that were incorrectly published to npm ([#1408](https://github.com/TanStack/db/pull/1408))
93
94- Updated dependencies [[`287673d`](https://github.com/TanStack/db/commit/287673da28a9b760fa3f3b7dd993297c9217c894)]:
95 - @tanstack/db-sqlite-persistence-core@0.1.3
96
97## 0.1.2
98
99### Patch Changes
100
101- Fix workspace: dependency links that were incorrectly published to npm ([#1406](https://github.com/TanStack/db/pull/1406))
102
103- Updated dependencies [[`99ad6b5`](https://github.com/TanStack/db/commit/99ad6b598729bd3bd7aef70b8f06dc4635c1f8ce)]:
104 - @tanstack/db-sqlite-persistence-core@0.1.2
105
106## 0.1.1
107
108### Patch Changes
109
110- feat(persistence): add SQLite-based offline persistence for collections ([#1358](https://github.com/TanStack/db/pull/1358))
111
112 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.
113
114 **Core persistence (`@tanstack/db-sqlite-persistence-core`)**
115 - New package providing the shared SQLite persistence runtime: hydration, streaming, transaction tracking, and applied-tx pruning
116 - SQLite core adapter with full query compilation, index management, and schema migration support
117 - Portable conformance test contracts for runtime-specific adapters
118
119 **Browser (`@tanstack/browser-db-sqlite-persistence`)**
120 - New package for browser persistence via wa-sqlite backed by OPFS
121 - Single-tab persistence with OPFS-based SQLite storage
122 - `BrowserCollectionCoordinator` for multi-tab leader-election and cross-tab sync
123
124 **Cloudflare Durable Objects (`@tanstack/cloudflare-durable-objects-db-sqlite-persistence`)**
125 - New package for SQLite persistence in Cloudflare Durable Objects runtimes
126
127 **Node (`@tanstack/node-db-sqlite-persistence`)**
128 - New package for Node persistence via SQLite
129
130 **Electron (`@tanstack/electron-db-sqlite-persistence`)**
131 - New package providing Electron main and renderer persistence bridge helpers
132
133 **Expo (`@tanstack/expo-db-sqlite-persistence`)**
134 - New package for Expo persistence via `expo-sqlite`
135
136 **React Native (`@tanstack/react-native-db-sqlite-persistence`)**
137 - New package for React Native persistence via op-sqlite
138 - Adapter with transaction deadlock prevention and runtime parity coverage
139
140 **Capacitor (`@tanstack/capacitor-db-sqlite-persistence`)**
141 - New package for Capacitor persistence via `@capacitor-community/sqlite`
142
143 **Tauri (`@tanstack/tauri-db-sqlite-persistence`)**
144 - New package for Tauri persistence via `@tauri-apps/plugin-sql`
145
146- Updated dependencies [[`e0df07e`](https://github.com/TanStack/db/commit/e0df07e1eb2eefbc829407f337cee1d443a7e9b6), [`d351c67`](https://github.com/TanStack/db/commit/d351c677d687e667450138f66ab3bd0e11e7e347)]:
147 - @tanstack/db-sqlite-persistence-core@0.1.1