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