Open History to see the last commit
1# @tanstack/react-native-db-sqlite-persistence
2
3## 0.2.29
4
5### Patch Changes
6
7- Updated dependencies [[`dbffea1`](https://github.com/TanStack/db/commit/dbffea1fd4dcba669e4bb959629e2837c3970fbe), [`b6c8540`](https://github.com/TanStack/db/commit/b6c85403cf60aa10e2328f27b3adb04aae718eac), [`4b83aa7`](https://github.com/TanStack/db/commit/4b83aa7e18742a036cc55ef9570e3a9d1d222074), [`eac6e8b`](https://github.com/TanStack/db/commit/eac6e8b6a6150b8e48bdbe61365bceec1e768eb1)]:
8 - @tanstack/db-sqlite-persistence-core@0.4.4
9
10## 0.2.28
11
12### Patch Changes
13
14- Updated dependencies []:
15 - @tanstack/db-sqlite-persistence-core@0.4.3
16
17## 0.2.27
18
19### Patch Changes
20
21- Updated dependencies []:
22 - @tanstack/db-sqlite-persistence-core@0.4.2
23
24## 0.2.26
25
26### Patch Changes
27
28- Updated dependencies []:
29 - @tanstack/db-sqlite-persistence-core@0.4.1
30
31## 0.2.25
32
33### Patch Changes
34
35- Updated dependencies [[`9c62ac3`](https://github.com/TanStack/db/commit/9c62ac3782779dc2a91335dd834ad8eb907db109), [`c0d123b`](https://github.com/TanStack/db/commit/c0d123b86aeb2942d0a2a70a050bf10a3b3dda48)]:
36 - @tanstack/db-sqlite-persistence-core@0.4.0
37
38## 0.2.24
39
40### Patch Changes
41
42- Decode op-sqlite row arrays and columnar results losslessly, and reject malformed or unknown result envelopes instead of treating them as empty results. ([#1848](https://github.com/TanStack/db/pull/1848))
43 Custom wrappers that return a genuinely ambiguous bare array can set `arrayResultMode` to `rows` or `statement-results`; without that authoritative mode, the driver rejects instead of silently reshaping data.
44
45- 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](https://github.com/TanStack/db/pull/1846))
46
47 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.
48
49- Updated dependencies [[`6e151b0`](https://github.com/TanStack/db/commit/6e151b0e57d63e2535cdf8e02518690d453214bc), [`5108acf`](https://github.com/TanStack/db/commit/5108acf47a0724691a06af8a660014776f9cf716), [`fef53f8`](https://github.com/TanStack/db/commit/fef53f8be7f1cb68f00639a4c3206a6598663de4), [`4b9617c`](https://github.com/TanStack/db/commit/4b9617cfd36c4f0ec14ad55dd6eaa92a2e8c9a8d), [`f09868f`](https://github.com/TanStack/db/commit/f09868ffba3ea401a9b182cc90282435bf832e3c), [`d3c38c8`](https://github.com/TanStack/db/commit/d3c38c8f4e83cef4545e8011dc3419be1fcf527a), [`5218f0c`](https://github.com/TanStack/db/commit/5218f0c385f61ccfa08ff366fb6f487528702017), [`98639f0`](https://github.com/TanStack/db/commit/98639f03a0071ab712d2277ee7e59e33ec6c760d), [`2781581`](https://github.com/TanStack/db/commit/27815817c56b3bca1823703dbd9893a0ef86f6d2), [`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88), [`f473a36`](https://github.com/TanStack/db/commit/f473a36201abe9af43d36a83492a2649668756d8), [`510cb53`](https://github.com/TanStack/db/commit/510cb538c4706e21a4d70046bf2ab2753f47bfa8)]:
50 - @tanstack/db-sqlite-persistence-core@0.3.0
51
52## 0.2.23
53
54### Patch Changes
55
56- Updated dependencies []:
57 - @tanstack/db-sqlite-persistence-core@0.2.23
58
59## 0.2.22
60
61### Patch Changes
62
63- Updated dependencies [[`a378bd3`](https://github.com/TanStack/db/commit/a378bd3a65f6b9ed0c9a85f793b7dc2e2a59a313), [`ad043b7`](https://github.com/TanStack/db/commit/ad043b7455a5bdc549c36833bc72ddbe9ce8afed)]:
64 - @tanstack/db-sqlite-persistence-core@0.2.22
65
66## 0.2.21
67
68### Patch Changes
69
70- Updated dependencies [[`cfb01ce`](https://github.com/TanStack/db/commit/cfb01cee34de7d0378e008dc8c01c1df5253c1e2)]:
71 - @tanstack/db-sqlite-persistence-core@0.2.21
72
73## 0.2.20
74
75### Patch Changes
76
77- Updated dependencies []:
78 - @tanstack/db-sqlite-persistence-core@0.2.20
79
80## 0.2.19
81
82### Patch Changes
83
84- Updated dependencies []:
85 - @tanstack/db-sqlite-persistence-core@0.2.19
86
87## 0.2.18
88
89### Patch Changes
90
91- Updated dependencies [[`8c5838d`](https://github.com/TanStack/db/commit/8c5838ddd5f08b3c298d4458cae1ce599af80624)]:
92 - @tanstack/db-sqlite-persistence-core@0.2.18
93
94## 0.2.17
95
96### Patch Changes
97
98- Updated dependencies []:
99 - @tanstack/db-sqlite-persistence-core@0.2.17
100
101## 0.2.16
102
103### Patch Changes
104
105- Updated dependencies []:
106 - @tanstack/db-sqlite-persistence-core@0.2.16
107
108## 0.2.15
109
110### Patch Changes
111
112- Updated dependencies []:
113 - @tanstack/db-sqlite-persistence-core@0.2.15
114
115## 0.2.14
116
117### Patch Changes
118
119- Updated dependencies []:
120 - @tanstack/db-sqlite-persistence-core@0.2.14
121
122## 0.2.13
123
124### Patch Changes
125
126- Updated dependencies [[`4b9e8cd`](https://github.com/TanStack/db/commit/4b9e8cdf79551734cf526e6fa4bbdba42ec94575)]:
127 - @tanstack/db-sqlite-persistence-core@0.2.13
128
129## 0.2.12
130
131### Patch Changes
132
133- Updated dependencies []:
134 - @tanstack/db-sqlite-persistence-core@0.2.12
135
136## 0.2.11
137
138### Patch Changes
139
140- Updated dependencies []:
141 - @tanstack/db-sqlite-persistence-core@0.2.11
142
143## 0.2.10
144
145### Patch Changes
146
147- Updated dependencies []:
148 - @tanstack/db-sqlite-persistence-core@0.2.10
149
150## 0.2.9
151
152### Patch Changes
153
154- Updated dependencies []:
155 - @tanstack/db-sqlite-persistence-core@0.2.9
156
157## 0.2.8
158
159### Patch Changes
160
161- Updated dependencies []:
162 - @tanstack/db-sqlite-persistence-core@0.2.8
163
164## 0.2.7
165
166### Patch Changes
167
168- Updated dependencies []:
169 - @tanstack/db-sqlite-persistence-core@0.2.7
170
171## 0.2.6
172
173### Patch Changes
174
175- Updated dependencies [[`f7da776`](https://github.com/TanStack/db/commit/f7da77660b16cbfe30817fb5c938267d696c8d1c)]:
176 - @tanstack/db-sqlite-persistence-core@0.2.6
177
178## 0.2.5
179
180### Patch Changes
181
182- Updated dependencies []:
183 - @tanstack/db-sqlite-persistence-core@0.2.5
184
185## 0.2.4
186
187### Patch Changes
188
189- Updated dependencies []:
190 - @tanstack/db-sqlite-persistence-core@0.2.4
191
192## 0.2.3
193
194### Patch Changes
195
196- Updated dependencies []:
197 - @tanstack/db-sqlite-persistence-core@0.2.3
198
199## 0.2.2
200
201### Patch Changes
202
203- Updated dependencies []:
204 - @tanstack/db-sqlite-persistence-core@0.2.2
205
206## 0.2.1
207
208### Patch Changes
209
210- Updated dependencies [[`00389a4`](https://github.com/TanStack/db/commit/00389a47b258ad58fc3a03c5cc6f66957b9bd2d1)]:
211 - @tanstack/db-sqlite-persistence-core@0.2.1
212
213## 0.2.0
214
215### Minor Changes
216
217- 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))
218
219 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.
220
221### Patch Changes
222
223- Updated dependencies [[`58edb26`](https://github.com/TanStack/db/commit/58edb26e87de8d992594119e39a9daa6f80620f2)]:
224 - @tanstack/db-sqlite-persistence-core@0.2.0
225
226## 0.1.11
227
228### Patch Changes
229
230- Updated dependencies []:
231 - @tanstack/db-sqlite-persistence-core@0.1.11
232
233## 0.1.10
234
235### Patch Changes
236
237- Updated dependencies []:
238 - @tanstack/db-sqlite-persistence-core@0.1.10
239
240## 0.1.9
241
242### Patch Changes
243
244- Updated dependencies []:
245 - @tanstack/db-sqlite-persistence-core@0.1.9
246
247## 0.1.8
248
249### Patch Changes
250
251- Updated dependencies []:
252 - @tanstack/db-sqlite-persistence-core@0.1.8
253
254## 0.1.7
255
256### Patch Changes
257
258- Updated dependencies []:
259 - @tanstack/db-sqlite-persistence-core@0.1.7
260
261## 0.1.6
262
263### Patch Changes
264
265- Updated dependencies []:
266 - @tanstack/db-sqlite-persistence-core@0.1.6
267
268## 0.1.5
269
270### Patch Changes
271
272- Updated dependencies []:
273 - @tanstack/db-sqlite-persistence-core@0.1.5
274
275## 0.1.4
276
277### Patch Changes
278
279- Fix workspace: dependency links that were incorrectly published to npm ([#1410](https://github.com/TanStack/db/pull/1410))
280
281- Updated dependencies [[`b779b4e`](https://github.com/TanStack/db/commit/b779b4ec127dd3f6a2fef965c52d4ee876144d8b)]:
282 - @tanstack/db-sqlite-persistence-core@0.1.4
283
284## 0.1.3
285
286### Patch Changes
287
288- Fix workspace: dependency links that were incorrectly published to npm ([#1408](https://github.com/TanStack/db/pull/1408))
289
290- Updated dependencies [[`287673d`](https://github.com/TanStack/db/commit/287673da28a9b760fa3f3b7dd993297c9217c894)]:
291 - @tanstack/db-sqlite-persistence-core@0.1.3
292
293## 0.1.2
294
295### Patch Changes
296
297- Fix workspace: dependency links that were incorrectly published to npm ([#1406](https://github.com/TanStack/db/pull/1406))
298
299- Updated dependencies [[`99ad6b5`](https://github.com/TanStack/db/commit/99ad6b598729bd3bd7aef70b8f06dc4635c1f8ce)]:
300 - @tanstack/db-sqlite-persistence-core@0.1.2
301
302## 0.1.1
303
304### Patch Changes
305
306- feat(persistence): add SQLite-based offline persistence for collections ([#1358](https://github.com/TanStack/db/pull/1358))
307
308 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.
309
310 **Core persistence (`@tanstack/db-sqlite-persistence-core`)**
311 - New package providing the shared SQLite persistence runtime: hydration, streaming, transaction tracking, and applied-tx pruning
312 - SQLite core adapter with full query compilation, index management, and schema migration support
313 - Portable conformance test contracts for runtime-specific adapters
314
315 **Browser (`@tanstack/browser-db-sqlite-persistence`)**
316 - New package for browser persistence via wa-sqlite backed by OPFS
317 - Single-tab persistence with OPFS-based SQLite storage
318 - `BrowserCollectionCoordinator` for multi-tab leader-election and cross-tab sync
319
320 **Cloudflare Durable Objects (`@tanstack/cloudflare-durable-objects-db-sqlite-persistence`)**
321 - New package for SQLite persistence in Cloudflare Durable Objects runtimes
322
323 **Node (`@tanstack/node-db-sqlite-persistence`)**
324 - New package for Node persistence via SQLite
325
326 **Electron (`@tanstack/electron-db-sqlite-persistence`)**
327 - New package providing Electron main and renderer persistence bridge helpers
328
329 **Expo (`@tanstack/expo-db-sqlite-persistence`)**
330 - New package for Expo persistence via `expo-sqlite`
331
332 **React Native (`@tanstack/react-native-db-sqlite-persistence`)**
333 - New package for React Native persistence via op-sqlite
334 - Adapter with transaction deadlock prevention and runtime parity coverage
335
336 **Capacitor (`@tanstack/capacitor-db-sqlite-persistence`)**
337 - New package for Capacitor persistence via `@capacitor-community/sqlite`
338
339 **Tauri (`@tanstack/tauri-db-sqlite-persistence`)**
340 - New package for Tauri persistence via `@tauri-apps/plugin-sql`
341
342- Updated dependencies [[`e0df07e`](https://github.com/TanStack/db/commit/e0df07e1eb2eefbc829407f337cee1d443a7e9b6), [`d351c67`](https://github.com/TanStack/db/commit/d351c677d687e667450138f66ab3bd0e11e7e347)]:
343 - @tanstack/db-sqlite-persistence-core@0.1.1