Open History to see the last commit
1# @tanstack/react-native-db-sqlite-persistence
2
3## 1.0.0-rc.1
4
5### Major Changes
6
7- Release the first 1.0 candidate. Remove deprecated pre-1.0 APIs and give ([#2171](https://github.com/TanStack/db/pull/2171))
8 published row metadata precedence over colliding selected fields. Structured
9 source spreads and direct source-row returns keep source attribution; new
10 functional objects and other projections receive output Collection metadata.
11 Keep the two packages accidentally released as stable 1.x on their stable
12 release lines. Both stable minor releases require `@tanstack/db@^1.0.0-rc.0`
13 for the RC health and restoration settlement APIs; upgrade DB with them.
14
15 Remove Query Collection’s automatic refetch after mutation handlers. Handlers
16 return `Promise<void>` and must await `collection.utils.refetch()` or write
17 confirmed data with the `write*` utilities; `{ refetch: false }` is removed.
18
19### Patch Changes
20
21- Updated dependencies [[`45c3329`](https://github.com/TanStack/db/commit/45c33292b2c4f09a63f856a829c1e15ca2b470aa), [`205ab71`](https://github.com/TanStack/db/commit/205ab7158d81680c3cc4f06cd9ebe62b30911a5a), [`43d4ef6`](https://github.com/TanStack/db/commit/43d4ef65cfe5c3cfbce6c56891795cd36a73cc37), [`6bf0e86`](https://github.com/TanStack/db/commit/6bf0e86dbc12e903ef28bb6711968ad06b5d5036), [`4c39add`](https://github.com/TanStack/db/commit/4c39add293adb65b4f5537628849f97083a31531), [`4c39add`](https://github.com/TanStack/db/commit/4c39add293adb65b4f5537628849f97083a31531), [`205ab71`](https://github.com/TanStack/db/commit/205ab7158d81680c3cc4f06cd9ebe62b30911a5a), [`7d9ed02`](https://github.com/TanStack/db/commit/7d9ed02e085d11e871e4b6424d47e3c0d7073023), [`b052e91`](https://github.com/TanStack/db/commit/b052e91c79201ee376771f99503566e736e3d0dd), [`45eeef8`](https://github.com/TanStack/db/commit/45eeef81a7c64966473315558f46e8a53b00e462)]:
22 - @tanstack/db-sqlite-persistence-core@1.0.0-rc.1
23
24## 0.2.37
25
26### Patch Changes
27
28- Updated dependencies [[`5a1b286`](https://github.com/TanStack/db/commit/5a1b286910bdf56917a76732ba160c99d7b1ad66)]:
29 - @tanstack/db-sqlite-persistence-core@0.4.12
30
31## 0.2.36
32
33### Patch Changes
34
35- Updated dependencies [[`92b11b0`](https://github.com/TanStack/db/commit/92b11b006edc46cea23ae4423046bf9eb29fc50e)]:
36 - @tanstack/db-sqlite-persistence-core@0.4.11
37
38## 0.2.35
39
40### Patch Changes
41
42- Updated dependencies []:
43 - @tanstack/db-sqlite-persistence-core@0.4.10
44
45## 0.2.34
46
47### Patch Changes
48
49- Recover persisted on-demand Electric and Query collections after cache claim loss by rotating their SQLite cache and reloading active subsets. Fence retired provider work and expired claims, preserve warm runs on their claimed cache generation, and forward claim lifetime options through SQLite host factories. Require explicit eager or claim-bound managed targets for SQLite adapter data operations, and forward them through Electron IPC protocol v6. Bare collection IDs no longer work at this lower-level adapter boundary. ([#2069](https://github.com/TanStack/db/pull/2069))
50
51- Updated dependencies [[`cda9d6a`](https://github.com/TanStack/db/commit/cda9d6a731e93777f1c8bfdab7d9e22f70e80dc6), [`6fa60aa`](https://github.com/TanStack/db/commit/6fa60aa7ada4d418f85cd745c9eea0af3de0efb4), [`5d2a4b0`](https://github.com/TanStack/db/commit/5d2a4b00cffa8d8b9a1b89f708b4b71c2ff46ff3)]:
52 - @tanstack/db-sqlite-persistence-core@0.4.9
53
54## 0.2.33
55
56### Patch Changes
57
58- Updated dependencies [[`8b0e1de`](https://github.com/TanStack/db/commit/8b0e1defb0ecf98ead912b3a906995398a30b510)]:
59 - @tanstack/db-sqlite-persistence-core@0.4.8
60
61## 0.2.32
62
63### Patch Changes
64
65- Updated dependencies []:
66 - @tanstack/db-sqlite-persistence-core@0.4.7
67
68## 0.2.31
69
70### Patch Changes
71
72- Updated dependencies []:
73 - @tanstack/db-sqlite-persistence-core@0.4.6
74
75## 0.2.30
76
77### Patch Changes
78
79- Updated dependencies [[`5b9d434`](https://github.com/TanStack/db/commit/5b9d4340455201a42748f6ec951d543050c51d6f), [`a37e69a`](https://github.com/TanStack/db/commit/a37e69ab6aa35fd6a2a72d727de2b5168d10b1a0), [`4777d20`](https://github.com/TanStack/db/commit/4777d205dfe292b81d047d3886d7a149f3e44552)]:
80 - @tanstack/db-sqlite-persistence-core@0.4.5
81
82## 0.2.29
83
84### Patch Changes
85
86- 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)]:
87 - @tanstack/db-sqlite-persistence-core@0.4.4
88
89## 0.2.28
90
91### Patch Changes
92
93- Updated dependencies []:
94 - @tanstack/db-sqlite-persistence-core@0.4.3
95
96## 0.2.27
97
98### Patch Changes
99
100- Updated dependencies []:
101 - @tanstack/db-sqlite-persistence-core@0.4.2
102
103## 0.2.26
104
105### Patch Changes
106
107- Updated dependencies []:
108 - @tanstack/db-sqlite-persistence-core@0.4.1
109
110## 0.2.25
111
112### Patch Changes
113
114- Updated dependencies [[`9c62ac3`](https://github.com/TanStack/db/commit/9c62ac3782779dc2a91335dd834ad8eb907db109), [`c0d123b`](https://github.com/TanStack/db/commit/c0d123b86aeb2942d0a2a70a050bf10a3b3dda48)]:
115 - @tanstack/db-sqlite-persistence-core@0.4.0
116
117## 0.2.24
118
119### Patch Changes
120
121- 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))
122 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.
123
124- 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))
125
126 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.
127
128- 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)]:
129 - @tanstack/db-sqlite-persistence-core@0.3.0
130
131## 0.2.23
132
133### Patch Changes
134
135- Updated dependencies []:
136 - @tanstack/db-sqlite-persistence-core@0.2.23
137
138## 0.2.22
139
140### Patch Changes
141
142- Updated dependencies [[`a378bd3`](https://github.com/TanStack/db/commit/a378bd3a65f6b9ed0c9a85f793b7dc2e2a59a313), [`ad043b7`](https://github.com/TanStack/db/commit/ad043b7455a5bdc549c36833bc72ddbe9ce8afed)]:
143 - @tanstack/db-sqlite-persistence-core@0.2.22
144
145## 0.2.21
146
147### Patch Changes
148
149- Updated dependencies [[`cfb01ce`](https://github.com/TanStack/db/commit/cfb01cee34de7d0378e008dc8c01c1df5253c1e2)]:
150 - @tanstack/db-sqlite-persistence-core@0.2.21
151
152## 0.2.20
153
154### Patch Changes
155
156- Updated dependencies []:
157 - @tanstack/db-sqlite-persistence-core@0.2.20
158
159## 0.2.19
160
161### Patch Changes
162
163- Updated dependencies []:
164 - @tanstack/db-sqlite-persistence-core@0.2.19
165
166## 0.2.18
167
168### Patch Changes
169
170- Updated dependencies [[`8c5838d`](https://github.com/TanStack/db/commit/8c5838ddd5f08b3c298d4458cae1ce599af80624)]:
171 - @tanstack/db-sqlite-persistence-core@0.2.18
172
173## 0.2.17
174
175### Patch Changes
176
177- Updated dependencies []:
178 - @tanstack/db-sqlite-persistence-core@0.2.17
179
180## 0.2.16
181
182### Patch Changes
183
184- Updated dependencies []:
185 - @tanstack/db-sqlite-persistence-core@0.2.16
186
187## 0.2.15
188
189### Patch Changes
190
191- Updated dependencies []:
192 - @tanstack/db-sqlite-persistence-core@0.2.15
193
194## 0.2.14
195
196### Patch Changes
197
198- Updated dependencies []:
199 - @tanstack/db-sqlite-persistence-core@0.2.14
200
201## 0.2.13
202
203### Patch Changes
204
205- Updated dependencies [[`4b9e8cd`](https://github.com/TanStack/db/commit/4b9e8cdf79551734cf526e6fa4bbdba42ec94575)]:
206 - @tanstack/db-sqlite-persistence-core@0.2.13
207
208## 0.2.12
209
210### Patch Changes
211
212- Updated dependencies []:
213 - @tanstack/db-sqlite-persistence-core@0.2.12
214
215## 0.2.11
216
217### Patch Changes
218
219- Updated dependencies []:
220 - @tanstack/db-sqlite-persistence-core@0.2.11
221
222## 0.2.10
223
224### Patch Changes
225
226- Updated dependencies []:
227 - @tanstack/db-sqlite-persistence-core@0.2.10
228
229## 0.2.9
230
231### Patch Changes
232
233- Updated dependencies []:
234 - @tanstack/db-sqlite-persistence-core@0.2.9
235
236## 0.2.8
237
238### Patch Changes
239
240- Updated dependencies []:
241 - @tanstack/db-sqlite-persistence-core@0.2.8
242
243## 0.2.7
244
245### Patch Changes
246
247- Updated dependencies []:
248 - @tanstack/db-sqlite-persistence-core@0.2.7
249
250## 0.2.6
251
252### Patch Changes
253
254- Updated dependencies [[`f7da776`](https://github.com/TanStack/db/commit/f7da77660b16cbfe30817fb5c938267d696c8d1c)]:
255 - @tanstack/db-sqlite-persistence-core@0.2.6
256
257## 0.2.5
258
259### Patch Changes
260
261- Updated dependencies []:
262 - @tanstack/db-sqlite-persistence-core@0.2.5
263
264## 0.2.4
265
266### Patch Changes
267
268- Updated dependencies []:
269 - @tanstack/db-sqlite-persistence-core@0.2.4
270
271## 0.2.3
272
273### Patch Changes
274
275- Updated dependencies []:
276 - @tanstack/db-sqlite-persistence-core@0.2.3
277
278## 0.2.2
279
280### Patch Changes
281
282- Updated dependencies []:
283 - @tanstack/db-sqlite-persistence-core@0.2.2
284
285## 0.2.1
286
287### Patch Changes
288
289- Updated dependencies [[`00389a4`](https://github.com/TanStack/db/commit/00389a47b258ad58fc3a03c5cc6f66957b9bd2d1)]:
290 - @tanstack/db-sqlite-persistence-core@0.2.1
291
292## 0.2.0
293
294### Minor Changes
295
296- 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))
297
298 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.
299
300### Patch Changes
301
302- Updated dependencies [[`58edb26`](https://github.com/TanStack/db/commit/58edb26e87de8d992594119e39a9daa6f80620f2)]:
303 - @tanstack/db-sqlite-persistence-core@0.2.0
304
305## 0.1.11
306
307### Patch Changes
308
309- Updated dependencies []:
310 - @tanstack/db-sqlite-persistence-core@0.1.11
311
312## 0.1.10
313
314### Patch Changes
315
316- Updated dependencies []:
317 - @tanstack/db-sqlite-persistence-core@0.1.10
318
319## 0.1.9
320
321### Patch Changes
322
323- Updated dependencies []:
324 - @tanstack/db-sqlite-persistence-core@0.1.9
325
326## 0.1.8
327
328### Patch Changes
329
330- Updated dependencies []:
331 - @tanstack/db-sqlite-persistence-core@0.1.8
332
333## 0.1.7
334
335### Patch Changes
336
337- Updated dependencies []:
338 - @tanstack/db-sqlite-persistence-core@0.1.7
339
340## 0.1.6
341
342### Patch Changes
343
344- Updated dependencies []:
345 - @tanstack/db-sqlite-persistence-core@0.1.6
346
347## 0.1.5
348
349### Patch Changes
350
351- Updated dependencies []:
352 - @tanstack/db-sqlite-persistence-core@0.1.5
353
354## 0.1.4
355
356### Patch Changes
357
358- Fix workspace: dependency links that were incorrectly published to npm ([#1410](https://github.com/TanStack/db/pull/1410))
359
360- Updated dependencies [[`b779b4e`](https://github.com/TanStack/db/commit/b779b4ec127dd3f6a2fef965c52d4ee876144d8b)]:
361 - @tanstack/db-sqlite-persistence-core@0.1.4
362
363## 0.1.3
364
365### Patch Changes
366
367- Fix workspace: dependency links that were incorrectly published to npm ([#1408](https://github.com/TanStack/db/pull/1408))
368
369- Updated dependencies [[`287673d`](https://github.com/TanStack/db/commit/287673da28a9b760fa3f3b7dd993297c9217c894)]:
370 - @tanstack/db-sqlite-persistence-core@0.1.3
371
372## 0.1.2
373
374### Patch Changes
375
376- Fix workspace: dependency links that were incorrectly published to npm ([#1406](https://github.com/TanStack/db/pull/1406))
377
378- Updated dependencies [[`99ad6b5`](https://github.com/TanStack/db/commit/99ad6b598729bd3bd7aef70b8f06dc4635c1f8ce)]:
379 - @tanstack/db-sqlite-persistence-core@0.1.2
380
381## 0.1.1
382
383### Patch Changes
384
385- feat(persistence): add SQLite-based offline persistence for collections ([#1358](https://github.com/TanStack/db/pull/1358))
386
387 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.
388
389 **Core persistence (`@tanstack/db-sqlite-persistence-core`)**
390 - New package providing the shared SQLite persistence runtime: hydration, streaming, transaction tracking, and applied-tx pruning
391 - SQLite core adapter with full query compilation, index management, and schema migration support
392 - Portable conformance test contracts for runtime-specific adapters
393
394 **Browser (`@tanstack/browser-db-sqlite-persistence`)**
395 - New package for browser persistence via wa-sqlite backed by OPFS
396 - Single-tab persistence with OPFS-based SQLite storage
397 - `BrowserCollectionCoordinator` for multi-tab leader-election and cross-tab sync
398
399 **Cloudflare Durable Objects (`@tanstack/cloudflare-durable-objects-db-sqlite-persistence`)**
400 - New package for SQLite persistence in Cloudflare Durable Objects runtimes
401
402 **Node (`@tanstack/node-db-sqlite-persistence`)**
403 - New package for Node persistence via SQLite
404
405 **Electron (`@tanstack/electron-db-sqlite-persistence`)**
406 - New package providing Electron main and renderer persistence bridge helpers
407
408 **Expo (`@tanstack/expo-db-sqlite-persistence`)**
409 - New package for Expo persistence via `expo-sqlite`
410
411 **React Native (`@tanstack/react-native-db-sqlite-persistence`)**
412 - New package for React Native persistence via op-sqlite
413 - Adapter with transaction deadlock prevention and runtime parity coverage
414
415 **Capacitor (`@tanstack/capacitor-db-sqlite-persistence`)**
416 - New package for Capacitor persistence via `@capacitor-community/sqlite`
417
418 **Tauri (`@tanstack/tauri-db-sqlite-persistence`)**
419 - New package for Tauri persistence via `@tauri-apps/plugin-sql`
420
421- Updated dependencies [[`e0df07e`](https://github.com/TanStack/db/commit/e0df07e1eb2eefbc829407f337cee1d443a7e9b6), [`d351c67`](https://github.com/TanStack/db/commit/d351c677d687e667450138f66ab3bd0e11e7e347)]:
422 - @tanstack/db-sqlite-persistence-core@0.1.1