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

CHANGELOG.md

377 lines13.0 KB

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