Open History to see the last commit
1# examples/react/todo
2
3## 0.1.30
4
5### Patch Changes
6
7- Updated dependencies [[`9c62ac3`](https://github.com/TanStack/db/commit/9c62ac3782779dc2a91335dd834ad8eb907db109), [`f7c0afe`](https://github.com/TanStack/db/commit/f7c0afe1d28b2a8805695e84a383c3bc5496b63e), [`c879ba6`](https://github.com/TanStack/db/commit/c879ba6d855914e5c0cac49af7a007eb5cabe7e4)]:
8 - @tanstack/react-db@0.5.0
9 - @tanstack/query-db-collection@1.3.1
10 - @tanstack/electric-db-collection@0.5.1
11 - @tanstack/trailbase-db-collection@0.1.111
12
13## 0.1.29
14
15### Patch Changes
16
17- Updated dependencies [[`179d003`](https://github.com/TanStack/db/commit/179d003a14a13ddf48ffacd22b15c25087f7c5f4), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`fef53f8`](https://github.com/TanStack/db/commit/fef53f8be7f1cb68f00639a4c3206a6598663de4), [`b4494fd`](https://github.com/TanStack/db/commit/b4494fd34ac58c1b0fd102a41b097dbf4dd97b80), [`8ca04e7`](https://github.com/TanStack/db/commit/8ca04e747fde178bae76d21bc16ae057c9714a17), [`d3c38c8`](https://github.com/TanStack/db/commit/d3c38c8f4e83cef4545e8011dc3419be1fcf527a), [`91a2cbf`](https://github.com/TanStack/db/commit/91a2cbfb88fccc5f19f864b69632cfb8e95ed449), [`5218f0c`](https://github.com/TanStack/db/commit/5218f0c385f61ccfa08ff366fb6f487528702017), [`fdcb078`](https://github.com/TanStack/db/commit/fdcb078a083b9c12327e8b1f68bd49e3429fb89e), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`f5b29c2`](https://github.com/TanStack/db/commit/f5b29c2a2d6796b9d2e4511caf156cadaf1aea3a), [`34c78be`](https://github.com/TanStack/db/commit/34c78be670b215a994394a73bdfb800a48c91ddd), [`47004bd`](https://github.com/TanStack/db/commit/47004bdda57abcfb63cb03ec6ce6397779012db5), [`825acc5`](https://github.com/TanStack/db/commit/825acc5ff3b703354088e81b3161d0cc830650cf), [`510cb53`](https://github.com/TanStack/db/commit/510cb538c4706e21a4d70046bf2ab2753f47bfa8), [`efb84d8`](https://github.com/TanStack/db/commit/efb84d800fd162842815e872d088d070db5407e3), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]:
18 - @tanstack/query-db-collection@1.3.0
19 - @tanstack/electric-db-collection@0.5.0
20 - @tanstack/react-db@0.4.2
21 - @tanstack/trailbase-db-collection@0.1.110
22
23## 0.1.28
24
25### Patch Changes
26
27- Updated dependencies [[`a378bd3`](https://github.com/TanStack/db/commit/a378bd3a65f6b9ed0c9a85f793b7dc2e2a59a313), [`15c4ba0`](https://github.com/TanStack/db/commit/15c4ba044072df572d6805b76872d419f985aeeb), [`6e60d30`](https://github.com/TanStack/db/commit/6e60d30a0e19642eeda72895722afdfca6cec749)]:
28 - @tanstack/electric-db-collection@0.4.9
29 - @tanstack/trailbase-db-collection@0.1.108
30 - @tanstack/react-db@0.4.0
31 - @tanstack/query-db-collection@1.2.14
32
33## 0.1.27
34
35### Patch Changes
36
37- Updated dependencies [[`4b9e8cd`](https://github.com/TanStack/db/commit/4b9e8cdf79551734cf526e6fa4bbdba42ec94575)]:
38 - @tanstack/react-db@0.3.0
39 - @tanstack/electric-db-collection@0.4.0
40 - @tanstack/query-db-collection@1.2.5
41 - @tanstack/trailbase-db-collection@0.1.99
42
43## 0.1.26
44
45### Patch Changes
46
47- Updated dependencies [[`424382b`](https://github.com/TanStack/db/commit/424382b3a80c6b3556701b433c26c8a60fc8d1af)]:
48 - @tanstack/react-db@0.2.0
49 - @tanstack/electric-db-collection@0.3.17
50 - @tanstack/query-db-collection@1.2.3
51 - @tanstack/trailbase-db-collection@0.1.97
52
53## 0.1.25
54
55### Patch Changes
56
57- Updated dependencies [[`cde8af1`](https://github.com/TanStack/db/commit/cde8af1f21308e5206601f10e9aa0a7c258f66dc), [`6428fe3`](https://github.com/TanStack/db/commit/6428fe3c4dae5e126bf12ce50c0467b2f1cb6f69)]:
58 - @tanstack/electric-db-collection@0.3.0
59 - @tanstack/react-db@0.1.80
60 - @tanstack/query-db-collection@1.0.33
61 - @tanstack/trailbase-db-collection@0.1.80
62
63## 0.1.24
64
65### Patch Changes
66
67- Updated dependencies [[`1afb027`](https://github.com/TanStack/db/commit/1afb027dbf3e34292a418fc549f799c4e0ce8922), [`f9d11fc`](https://github.com/TanStack/db/commit/f9d11fc3d7297c61feb3c6876cb2f436edbb5b34), [`58f119a`](https://github.com/TanStack/db/commit/58f119ac4f1b05dbfff8617f59f53973abdb1920), [`8f746db`](https://github.com/TanStack/db/commit/8f746db61ff160eae9834e0b9d83c40ef315ae12), [`7aceffa`](https://github.com/TanStack/db/commit/7aceffa46e746cff3dee51230dd2f9e09cb24137)]:
68 - @tanstack/electric-db-collection@0.2.0
69 - @tanstack/query-db-collection@1.0.0
70 - @tanstack/react-db@0.1.44
71 - @tanstack/trailbase-db-collection@0.1.44
72
73## 0.1.23
74
75### Patch Changes
76
77- Updated dependencies [[`503f0b2`](https://github.com/TanStack/db/commit/503f0b2311f3054cda65b10b933d34b03eef6b04), [`1367756`](https://github.com/TanStack/db/commit/1367756d0a68447405c5f5c1a3cca30ab0558d74)]:
78 - @tanstack/query-db-collection@0.3.0
79 - @tanstack/electric-db-collection@0.1.44
80 - @tanstack/react-db@0.1.43
81 - @tanstack/trailbase-db-collection@0.1.42
82
83## 0.1.22
84
85### Patch Changes
86
87- Updated dependencies []:
88 - @tanstack/electric-db-collection@0.1.43
89 - @tanstack/query-db-collection@0.2.42
90 - @tanstack/react-db@0.1.42
91 - @tanstack/trailbase-db-collection@0.1.41
92
93## 0.1.21
94
95### Patch Changes
96
97- Updated dependencies [[`5b6437b`](https://github.com/TanStack/db/commit/5b6437b5c316740c77b7ab7ebd41565a375c7f2e)]:
98 - @tanstack/react-db@0.1.41
99
100## 0.1.20
101
102### Patch Changes
103
104- Updated dependencies []:
105 - @tanstack/electric-db-collection@0.1.42
106 - @tanstack/query-db-collection@0.2.41
107 - @tanstack/react-db@0.1.40
108 - @tanstack/trailbase-db-collection@0.1.40
109
110## 0.1.19
111
112### Patch Changes
113
114- Updated dependencies []:
115 - @tanstack/electric-db-collection@0.1.41
116 - @tanstack/query-db-collection@0.2.40
117 - @tanstack/react-db@0.1.39
118 - @tanstack/trailbase-db-collection@0.1.39
119
120## 0.1.18
121
122### Patch Changes
123
124- Updated dependencies [[`cb25623`](https://github.com/TanStack/db/commit/cb256234c9cd8df7771808b147e5afc2be56f51f)]:
125 - @tanstack/react-db@0.1.38
126 - @tanstack/electric-db-collection@0.1.40
127 - @tanstack/query-db-collection@0.2.39
128 - @tanstack/trailbase-db-collection@0.1.38
129
130## 0.1.17
131
132### Patch Changes
133
134- Updated dependencies []:
135 - @tanstack/electric-db-collection@0.1.39
136 - @tanstack/query-db-collection@0.2.38
137 - @tanstack/react-db@0.1.37
138 - @tanstack/trailbase-db-collection@0.1.37
139
140## 0.1.16
141
142### Patch Changes
143
144- Updated dependencies [[`c2a5c28`](https://github.com/TanStack/db/commit/c2a5c28919733ee33cbd57903d3ed81656a0d842)]:
145 - @tanstack/query-db-collection@0.2.37
146
147## 0.1.15
148
149### Patch Changes
150
151- Updated dependencies []:
152 - @tanstack/electric-db-collection@0.1.38
153 - @tanstack/query-db-collection@0.2.36
154 - @tanstack/react-db@0.1.36
155 - @tanstack/trailbase-db-collection@0.1.36
156
157## 0.1.14
158
159### Patch Changes
160
161- Updated dependencies []:
162 - @tanstack/electric-db-collection@0.1.37
163 - @tanstack/query-db-collection@0.2.35
164 - @tanstack/react-db@0.1.35
165 - @tanstack/trailbase-db-collection@0.1.35
166
167## 0.1.13
168
169### Patch Changes
170
171- Updated dependencies [[`16dbfe3`](https://github.com/TanStack/db/commit/16dbfe34d5a5c075211453566f3a0453aa0ee76f), [`5950583`](https://github.com/TanStack/db/commit/595058384c88730f325ac23415bdb0643eea89fa)]:
172 - @tanstack/query-db-collection@0.2.34
173
174## 0.1.12
175
176### Patch Changes
177
178- Updated dependencies []:
179 - @tanstack/electric-db-collection@0.1.36
180 - @tanstack/query-db-collection@0.2.33
181 - @tanstack/react-db@0.1.34
182 - @tanstack/trailbase-db-collection@0.1.34
183
184## 0.1.11
185
186### Patch Changes
187
188- Updated dependencies [[`5566b26`](https://github.com/TanStack/db/commit/5566b26100abdae9b4a041f048aeda1dd726e904)]:
189 - @tanstack/react-db@0.1.33
190 - @tanstack/electric-db-collection@0.1.35
191 - @tanstack/query-db-collection@0.2.32
192 - @tanstack/trailbase-db-collection@0.1.33
193
194## 0.1.10
195
196### Patch Changes
197
198- Updated dependencies [[`b0687ab`](https://github.com/TanStack/db/commit/b0687ab4c1476362d7a25e3c1704ab0fb0385455)]:
199 - @tanstack/react-db@0.1.32
200 - @tanstack/electric-db-collection@0.1.34
201 - @tanstack/query-db-collection@0.2.31
202 - @tanstack/trailbase-db-collection@0.1.32
203
204## 0.1.9
205
206### Patch Changes
207
208- Updated dependencies []:
209 - @tanstack/electric-db-collection@0.1.33
210 - @tanstack/query-db-collection@0.2.30
211 - @tanstack/react-db@0.1.31
212 - @tanstack/trailbase-db-collection@0.1.31
213
214## 0.1.8
215
216### Patch Changes
217
218- Updated dependencies [[`44555b7`](https://github.com/TanStack/db/commit/44555b733a1a4d38d8126bf8da51d4b44f898298)]:
219 - @tanstack/react-db@0.1.30
220 - @tanstack/electric-db-collection@0.1.32
221 - @tanstack/query-db-collection@0.2.29
222 - @tanstack/trailbase-db-collection@0.1.30
223
224## 0.1.7
225
226### Patch Changes
227
228- Updated dependencies [[`3cb5180`](https://github.com/TanStack/db/commit/3cb51805d999c3e62bebcd71e9135b28fee38010)]:
229 - @tanstack/electric-db-collection@0.1.31
230 - @tanstack/query-db-collection@0.2.28
231 - @tanstack/react-db@0.1.29
232 - @tanstack/trailbase-db-collection@0.1.29
233
234## 0.1.6
235
236### Patch Changes
237
238- Updated dependencies [[`c30a20b`](https://github.com/TanStack/db/commit/c30a20b1df39b34f18d0aa7c7b901a27fb963f36)]:
239 - @tanstack/electric-db-collection@0.1.30
240 - @tanstack/query-db-collection@0.2.27
241 - @tanstack/react-db@0.1.28
242 - @tanstack/trailbase-db-collection@0.1.28
243
244## 0.1.5
245
246### Patch Changes
247
248- Updated dependencies [[`a8624c8`](https://github.com/TanStack/db/commit/a8624c8770f5e85ce92e8417e56a56be039cb0c4)]:
249 - @tanstack/electric-db-collection@0.1.29
250 - @tanstack/query-db-collection@0.2.26
251 - @tanstack/react-db@0.1.27
252 - @tanstack/trailbase-db-collection@0.1.27
253
254## 0.1.4
255
256### Patch Changes
257
258- Updated dependencies [[`b38bd76`](https://github.com/TanStack/db/commit/b38bd768560966af67f859a28d4e15a0f877a199)]:
259 - @tanstack/query-db-collection@0.2.25
260 - @tanstack/electric-db-collection@0.1.28
261 - @tanstack/react-db@0.1.26
262 - @tanstack/trailbase-db-collection@0.1.26
263
264## 0.1.3
265
266### Patch Changes
267
268- Updated dependencies []:
269 - @tanstack/electric-db-collection@0.1.27
270 - @tanstack/query-db-collection@0.2.24
271 - @tanstack/react-db@0.1.25
272 - @tanstack/trailbase-db-collection@0.1.25
273
274## 0.1.2
275
276### Patch Changes
277
278- Updated dependencies [[`a064cb4`](https://github.com/TanStack/db/commit/a064cb42b69da45a306213ab1ef96590d4420575), [`1b832ff`](https://github.com/TanStack/db/commit/1b832ff9ec236e7dbe9256803e2ba12b4c9b9a30), [`271960d`](https://github.com/TanStack/db/commit/271960d65255294870503f0f92b706e1a73f26ba)]:
279 - @tanstack/query-db-collection@0.2.23
280 - @tanstack/electric-db-collection@0.1.26
281 - @tanstack/react-db@0.1.24
282 - @tanstack/trailbase-db-collection@0.1.24
283
284## 0.1.1
285
286### Patch Changes
287
288- Updated dependencies [[`1220d7e`](https://github.com/TanStack/db/commit/1220d7eb6b544f05c2ea2f629ee75f969ebcda40)]:
289 - @tanstack/query-db-collection@0.2.0
290
291## 0.1.0
292
293### Minor Changes
294
295- 0.1 release - first beta 🎉 ([#332](https://github.com/TanStack/db/pull/332))
296
297### Patch Changes
298
299- Updated dependencies [[`7d2f4be`](https://github.com/TanStack/db/commit/7d2f4be95c43aad29fb61e80e5a04c58c859322b), [`f0eda36`](https://github.com/TanStack/db/commit/f0eda36cb36350399bc8835686a6c4b6ad297e45)]:
300 - @tanstack/electric-db-collection@0.1.0
301 - @tanstack/query-db-collection@0.1.0
302 - @tanstack/react-db@0.1.0
303 - @tanstack/trailbase-db-collection@0.1.0
304
305## 0.0.39
306
307### Patch Changes
308
309- Updated dependencies []:
310 - @tanstack/electric-db-collection@0.0.15
311 - @tanstack/query-db-collection@0.0.15
312 - @tanstack/react-db@0.0.33
313 - @tanstack/trailbase-db-collection@0.0.9
314
315## 0.0.38
316
317### Patch Changes
318
319- Updated dependencies [[`e04bd12`](https://github.com/TanStack/db/commit/e04bd1252f612d4638104368d17cb644cc85295b)]:
320 - @tanstack/query-db-collection@0.0.14
321 - @tanstack/electric-db-collection@0.0.14
322 - @tanstack/react-db@0.0.32
323 - @tanstack/trailbase-db-collection@0.0.8
324
325## 0.0.37
326
327### Patch Changes
328
329- Updated dependencies []:
330 - @tanstack/electric-db-collection@0.0.13
331 - @tanstack/query-db-collection@0.0.13
332 - @tanstack/react-db@0.0.31
333 - @tanstack/trailbase-db-collection@0.0.7
334
335## 0.0.36
336
337### Patch Changes
338
339- Updated dependencies []:
340 - @tanstack/electric-db-collection@0.0.12
341 - @tanstack/query-db-collection@0.0.12
342 - @tanstack/react-db@0.0.30
343 - @tanstack/trailbase-db-collection@0.0.6
344
345## 0.0.35
346
347### Patch Changes
348
349- Updated dependencies [[`5260ee3`](https://github.com/TanStack/db/commit/5260ee3098d12eccc58a5cf903ea479908681402)]:
350 - @tanstack/trailbase-db-collection@0.0.5
351 - @tanstack/electric-db-collection@0.0.11
352 - @tanstack/query-db-collection@0.0.11
353 - @tanstack/react-db@0.0.29
354
355## 0.0.34
356
357### Patch Changes
358
359- Updated dependencies []:
360 - @tanstack/electric-db-collection@0.0.10
361 - @tanstack/query-db-collection@0.0.10
362 - @tanstack/react-db@0.0.28
363 - @tanstack/trailbase-db-collection@0.0.4
364
365## 0.0.33
366
367### Patch Changes
368
369- Updated dependencies []:
370 - @tanstack/electric-db-collection@0.0.9
371 - @tanstack/query-db-collection@0.0.9
372 - @tanstack/react-db@0.0.27
373 - @tanstack/trailbase-db-collection@0.0.3
374
375## 0.0.32
376
377### Patch Changes
378
379- Add initial release of TrailBase collection for TanStack DB. TrailBase is a blazingly fast, open-source alternative to Firebase built on Rust, SQLite, and V8. It provides type-safe REST and realtime APIs with sub-millisecond latencies, integrated authentication, and flexible access control - all in a single executable. This collection type enables seamless integration with TrailBase backends for high-performance real-time applications. ([#228](https://github.com/TanStack/db/pull/228))
380
381- Updated dependencies [[`09c6995`](https://github.com/TanStack/db/commit/09c6995ea9c8e6979d077ca63cbdd6215054ae78)]:
382 - @tanstack/trailbase-db-collection@0.0.2
383 - @tanstack/electric-db-collection@0.0.8
384 - @tanstack/query-db-collection@0.0.8
385 - @tanstack/react-db@0.0.26
386
387## 0.0.31
388
389### Patch Changes
390
391- Updated dependencies [[`20f810e`](https://github.com/TanStack/db/commit/20f810e13a7d802bf56da6f0df89b34312ebb2fd)]:
392 - @tanstack/electric-db-collection@0.0.7
393 - @tanstack/query-db-collection@0.0.7
394 - @tanstack/react-db@0.0.25
395
396## 0.0.30
397
398### Patch Changes
399
400- Updated dependencies []:
401 - @tanstack/electric-db-collection@0.0.6
402 - @tanstack/query-db-collection@0.0.6
403 - @tanstack/react-db@0.0.24
404
405## 0.0.29
406
407### Patch Changes
408
409- Updated dependencies []:
410 - @tanstack/electric-db-collection@0.0.5
411 - @tanstack/query-db-collection@0.0.5
412 - @tanstack/react-db@0.0.23
413
414## 0.0.28
415
416### Patch Changes
417
418- Updated dependencies []:
419 - @tanstack/electric-db-collection@0.0.4
420 - @tanstack/query-db-collection@0.0.4
421 - @tanstack/react-db@0.0.22
422
423## 0.0.27
424
425### Patch Changes
426
427- Move Collections to their own packages ([#252](https://github.com/TanStack/db/pull/252))
428 - Move local-only and local-storage collections to main `@tanstack/db` package
429 - Create new `@tanstack/electric-db-collection` package for ElectricSQL integration
430 - Create new `@tanstack/query-db-collection` package for TanStack Query integration
431 - Delete `@tanstack/db-collections` package (removed from repo)
432 - Update example app and documentation to use new package structure
433
434 Why?
435 - Better separation of concerns
436 - Independent versioning for each collection type
437 - Cleaner dependencies (electric collections don't need query deps, etc.)
438 - Easier to add more collection types moving forward
439
440- Updated dependencies [[`8e23322`](https://github.com/TanStack/db/commit/8e233229b25eabed07cdaf12948ba913786bf4f9)]:
441 - @tanstack/electric-db-collection@0.0.3
442 - @tanstack/query-db-collection@0.0.3
443 - @tanstack/react-db@0.0.21
444
445## 0.0.26
446
447### Patch Changes
448
449- Updated dependencies []:
450 - @tanstack/db-collections@0.0.24
451 - @tanstack/react-db@0.0.20
452
453## 0.0.25
454
455### Patch Changes
456
457- - [Breaking change for the Electric Collection]: Use numbers for txid ([#245](https://github.com/TanStack/db/pull/245))
458 - misc type fixes
459- Updated dependencies [[`9f0b0c2`](https://github.com/TanStack/db/commit/9f0b0c28ede99273eb5914be28aff55b91c50778)]:
460 - @tanstack/db-collections@0.0.23
461 - @tanstack/react-db@0.0.19
462
463## 0.0.24
464
465### Patch Changes
466
467- Updated dependencies [[`266bd29`](https://github.com/TanStack/db/commit/266bd29514c6c0fa9e903986ca11c5e22f4d2361)]:
468 - @tanstack/db-collections@0.0.22
469 - @tanstack/react-db@0.0.18
470
471## 0.0.23
472
473### Patch Changes
474
475- Updated dependencies [[`1c9e867`](https://github.com/TanStack/db/commit/1c9e8676405b71a45831456c7119420975ae1456)]:
476 - @tanstack/db-collections@0.0.21
477 - @tanstack/react-db@0.0.17
478
479## 0.0.22
480
481### Patch Changes
482
483- Updated dependencies [[`e478d53`](https://github.com/TanStack/db/commit/e478d5353cc8fc64e3a29dda1f86fba863cf6ce8)]:
484 - @tanstack/react-db@0.0.16
485 - @tanstack/db-collections@0.0.20
486
487## 0.0.21
488
489### Patch Changes
490
491- Updated dependencies [[`0912a7c`](https://github.com/TanStack/db/commit/0912a7c165325e6981f0b702c169004e08d57f75)]:
492 - @tanstack/db-collections@0.0.19
493 - @tanstack/react-db@0.0.15
494
495## 0.0.20
496
497### Patch Changes
498
499- Updated dependencies [[`0dede0a`](https://github.com/TanStack/db/commit/0dede0ab75e66df9797d5c898defdc66685c6f91)]:
500 - @tanstack/db-collections@0.0.18
501
502## 0.0.19
503
504### Patch Changes
505
506- Updated dependencies []:
507 - @tanstack/db-collections@0.0.17
508 - @tanstack/react-db@0.0.14
509
510## 0.0.18
511
512### Patch Changes
513
514- Updated dependencies [[`945868e`](https://github.com/TanStack/db/commit/945868e95944543ccf5d778409548679a952e249), [`57b5f5d`](https://github.com/TanStack/db/commit/57b5f5de6297326a57ef205a400428af0697b48b)]:
515 - @tanstack/react-db@0.0.13
516 - @tanstack/db-collections@0.0.16
517
518## 0.0.17
519
520### Patch Changes
521
522- Updated dependencies [[`5cafaf4`](https://github.com/TanStack/db/commit/5cafaf4f73018599ce799778029833d3fa83dbc9)]:
523 - @tanstack/db-collections@0.0.15
524
525## 0.0.16
526
527### Patch Changes
528
529- Updated dependencies [[`f6abe9b`](https://github.com/TanStack/db/commit/f6abe9b94b890487fe960bd72a89e4a75de89d46)]:
530 - @tanstack/db-collections@0.0.14
531 - @tanstack/react-db@0.0.12
532
533## 0.0.15
534
535### Patch Changes
536
537- Export `ElectricCollectionUtils` & allow passing generic to `createTransaction` ([#179](https://github.com/TanStack/db/pull/179))
538
539- Updated dependencies [[`c5489ff`](https://github.com/TanStack/db/commit/c5489ff276db07a0a4b65876790ccd7f11a6f99d)]:
540 - @tanstack/db-collections@0.0.13
541 - @tanstack/react-db@0.0.11
542
543## 0.0.14
544
545### Patch Changes
546
547- Updated dependencies []:
548 - @tanstack/db-collections@0.0.12
549 - @tanstack/react-db@0.0.10
550
551## 0.0.13
552
553### Patch Changes
554
555- Updated dependencies []:
556 - @tanstack/db-collections@0.0.11
557 - @tanstack/react-db@0.0.9
558
559## 0.0.12
560
561### Patch Changes
562
563- Type PendingMutation whenever possible ([#163](https://github.com/TanStack/db/pull/163))
564
565- Updated dependencies [[`5c538cf`](https://github.com/TanStack/db/commit/5c538cf03573512a8d1bbde96962a9f7ca014708), [`b4602a0`](https://github.com/TanStack/db/commit/b4602a071cb6866bb1338e30d5802220b0d1fc49)]:
566 - @tanstack/db-collections@0.0.10
567 - @tanstack/react-db@0.0.8
568
569## 0.0.11
570
571### Patch Changes
572
573- Updated dependencies [[`8b43ad3`](https://github.com/TanStack/db/commit/8b43ad305b277560aed660c31cf1409d22ed1e47)]:
574 - @tanstack/db-collections@0.0.9
575 - @tanstack/react-db@0.0.7
576
577## 0.0.10
578
579### Patch Changes
580
581- This change introduces a more streamlined and intuitive API for handling mutations by allowing `onInsert`, `onUpdate`, and `onDelete` handlers to be defined directly on the collection configuration. ([#156](https://github.com/TanStack/db/pull/156))
582
583 When `collection.insert()`, `.update()`, or `.delete()` are called outside of an explicit transaction (i.e., not within `useOptimisticMutation`), the library now automatically creates a single-operation transaction and invokes the corresponding handler to persist the change.
584
585 Key changes:
586 - **`@tanstack/db`**: The `Collection` class now supports `onInsert`, `onUpdate`, and `onDelete` in its configuration. Direct calls to mutation methods will throw an error if the corresponding handler is not defined.
587 - **`@tanstack/db-collections`**:
588 - `queryCollectionOptions` now accepts the new handlers and will automatically `refetch` the collection's query after a handler successfully completes. This behavior can be disabled if the handler returns `{ refetch: false }`.
589 - `electricCollectionOptions` also accepts the new handlers. These handlers are now required to return an object with a transaction ID (`{ txid: string }`). The collection then automatically waits for this `txid` to be synced back before resolving the mutation, ensuring consistency.
590 - **Breaking Change**: Calling `collection.insert()`, `.update()`, or `.delete()` without being inside a `useOptimisticMutation` callback and without a corresponding persistence handler (`onInsert`, etc.) configured on the collection will now throw an error.
591
592 This new pattern simplifies the most common use cases, making the code more declarative. The `useOptimisticMutation` hook remains available for more complex scenarios, such as transactions involving multiple mutations across different collections.
593
594 ***
595
596 The documentation and the React Todo example application have been significantly refactored to adopt the new direct persistence handler pattern as the primary way to perform mutations.
597 - The `README.md` and `docs/overview.md` files have been updated to de-emphasize `useOptimisticMutation` for simple writes. They now showcase the much simpler API of calling `collection.insert()` directly and defining persistence logic in the collection's configuration.
598 - The React Todo example (`examples/react/todo/src/App.tsx`) has been completely overhauled. All instances of `useOptimisticMutation` have been removed and replaced with the new `onInsert`, `onUpdate`, and `onDelete` handlers, resulting in cleaner and more concise code.
599
600- Updated dependencies [[`80fdac7`](https://github.com/TanStack/db/commit/80fdac76389ea741f5743bc788df375f63fb767b)]:
601 - @tanstack/db-collections@0.0.8
602 - @tanstack/react-db@0.0.6
603
604## 0.0.9
605
606### Patch Changes
607
608- Collections must have a getId function & use an id for update/delete operators ([#134](https://github.com/TanStack/db/pull/134))
609
610- Switch to Collection options factories instead of extending the Collection class ([#145](https://github.com/TanStack/db/pull/145))
611
612 This refactors `ElectricCollection` and `QueryCollection` into factory functions (`electricCollectionOptions` and `queryCollectionOptions`) that return standard `CollectionConfig` objects and utility functions. Also adds a `createCollection` function to standardize collection instantiation.
613
614- Updated dependencies [[`1fbb844`](https://github.com/TanStack/db/commit/1fbb8447d8425d37cb9ab4f078ffab999b28b06c), [`ee5d026`](https://github.com/TanStack/db/commit/ee5d026715962dd0232fcaca513a8fac9189dce2), [`e4feb0c`](https://github.com/TanStack/db/commit/e4feb0c214835675b47f0aa18a72d004a423df03)]:
615 - @tanstack/db-collections@0.0.7
616 - @tanstack/react-db@0.0.5
617
618## 0.0.8
619
620### Patch Changes
621
622- Updated dependencies []:
623 - @tanstack/db-collections@0.0.6
624 - @tanstack/react-db@0.0.4
625
626## 0.0.7
627
628### Patch Changes
629
630- Updated dependencies [[`0bbf4c4`](https://github.com/TanStack/db/commit/0bbf4c46e01b382a70a437f05dfc09c9ff749a15)]:
631 - @tanstack/db-collections@0.0.5
632
633## 0.0.6
634
635### Patch Changes
636
637- Updated dependencies [[`2d0fcf1`](https://github.com/TanStack/db/commit/2d0fcf16a61a3fcd6a7220b5501640cc0f67218f)]:
638 - @tanstack/db-collections@0.0.4
639
640## 0.0.5
641
642### Patch Changes
643
644- Updated dependencies []:
645 - @tanstack/db-collections@0.0.3
646 - @tanstack/react-db@0.0.3
647
648## 0.0.4
649
650### Patch Changes
651
652- Updated dependencies [[`4c82edb`](https://github.com/TanStack/db/commit/4c82edb9547f26c9de44f5bf43d4385c38920672), [`4c82edb`](https://github.com/TanStack/db/commit/4c82edb9547f26c9de44f5bf43d4385c38920672)]:
653 - @tanstack/react-db@0.0.2
654 - @tanstack/db-collections@0.0.2
655
656## 0.0.3
657
658### Patch Changes
659
660- Updated dependencies [[`b42479c`](https://github.com/TanStack/db/commit/b42479cf95f9a820b36e01684b13a9179973f3d8)]:
661 - @tanstack/react-db@0.0.3
662
663## 0.0.2
664
665### Patch Changes
666
667- Updated dependencies [[`9bb6e89`](https://github.com/TanStack/db/commit/9bb6e8909cebdcd7c03091bfc12dd37f5ab2e1ea)]:
668 - @tanstack/react-db@0.0.2