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

CHANGELOG.md

648 lines21.2 KB

1# examples/react/todo
2​
3## 0.1.28
4​
5### Patch Changes
6​
7- 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)]:
8 - @tanstack/electric-db-collection@0.4.9
9 - @tanstack/trailbase-db-collection@0.1.108
10 - @tanstack/react-db@0.4.0
11 - @tanstack/query-db-collection@1.2.14
12​
13## 0.1.27
14​
15### Patch Changes
16​
17- Updated dependencies [[`4b9e8cd`](https://github.com/TanStack/db/commit/4b9e8cdf79551734cf526e6fa4bbdba42ec94575)]:
18 - @tanstack/react-db@0.3.0
19 - @tanstack/electric-db-collection@0.4.0
20 - @tanstack/query-db-collection@1.2.5
21 - @tanstack/trailbase-db-collection@0.1.99
22​
23## 0.1.26
24​
25### Patch Changes
26​
27- Updated dependencies [[`424382b`](https://github.com/TanStack/db/commit/424382b3a80c6b3556701b433c26c8a60fc8d1af)]:
28 - @tanstack/react-db@0.2.0
29 - @tanstack/electric-db-collection@0.3.17
30 - @tanstack/query-db-collection@1.2.3
31 - @tanstack/trailbase-db-collection@0.1.97
32​
33## 0.1.25
34​
35### Patch Changes
36​
37- Updated dependencies [[`cde8af1`](https://github.com/TanStack/db/commit/cde8af1f21308e5206601f10e9aa0a7c258f66dc), [`6428fe3`](https://github.com/TanStack/db/commit/6428fe3c4dae5e126bf12ce50c0467b2f1cb6f69)]:
38 - @tanstack/electric-db-collection@0.3.0
39 - @tanstack/react-db@0.1.80
40 - @tanstack/query-db-collection@1.0.33
41 - @tanstack/trailbase-db-collection@0.1.80
42​
43## 0.1.24
44​
45### Patch Changes
46​
47- 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)]:
48 - @tanstack/electric-db-collection@0.2.0
49 - @tanstack/query-db-collection@1.0.0
50 - @tanstack/react-db@0.1.44
51 - @tanstack/trailbase-db-collection@0.1.44
52​
53## 0.1.23
54​
55### Patch Changes
56​
57- Updated dependencies [[`503f0b2`](https://github.com/TanStack/db/commit/503f0b2311f3054cda65b10b933d34b03eef6b04), [`1367756`](https://github.com/TanStack/db/commit/1367756d0a68447405c5f5c1a3cca30ab0558d74)]:
58 - @tanstack/query-db-collection@0.3.0
59 - @tanstack/electric-db-collection@0.1.44
60 - @tanstack/react-db@0.1.43
61 - @tanstack/trailbase-db-collection@0.1.42
62​
63## 0.1.22
64​
65### Patch Changes
66​
67- Updated dependencies []:
68 - @tanstack/electric-db-collection@0.1.43
69 - @tanstack/query-db-collection@0.2.42
70 - @tanstack/react-db@0.1.42
71 - @tanstack/trailbase-db-collection@0.1.41
72​
73## 0.1.21
74​
75### Patch Changes
76​
77- Updated dependencies [[`5b6437b`](https://github.com/TanStack/db/commit/5b6437b5c316740c77b7ab7ebd41565a375c7f2e)]:
78 - @tanstack/react-db@0.1.41
79​
80## 0.1.20
81​
82### Patch Changes
83​
84- Updated dependencies []:
85 - @tanstack/electric-db-collection@0.1.42
86 - @tanstack/query-db-collection@0.2.41
87 - @tanstack/react-db@0.1.40
88 - @tanstack/trailbase-db-collection@0.1.40
89​
90## 0.1.19
91​
92### Patch Changes
93​
94- Updated dependencies []:
95 - @tanstack/electric-db-collection@0.1.41
96 - @tanstack/query-db-collection@0.2.40
97 - @tanstack/react-db@0.1.39
98 - @tanstack/trailbase-db-collection@0.1.39
99​
100## 0.1.18
101​
102### Patch Changes
103​
104- Updated dependencies [[`cb25623`](https://github.com/TanStack/db/commit/cb256234c9cd8df7771808b147e5afc2be56f51f)]:
105 - @tanstack/react-db@0.1.38
106 - @tanstack/electric-db-collection@0.1.40
107 - @tanstack/query-db-collection@0.2.39
108 - @tanstack/trailbase-db-collection@0.1.38
109​
110## 0.1.17
111​
112### Patch Changes
113​
114- Updated dependencies []:
115 - @tanstack/electric-db-collection@0.1.39
116 - @tanstack/query-db-collection@0.2.38
117 - @tanstack/react-db@0.1.37
118 - @tanstack/trailbase-db-collection@0.1.37
119​
120## 0.1.16
121​
122### Patch Changes
123​
124- Updated dependencies [[`c2a5c28`](https://github.com/TanStack/db/commit/c2a5c28919733ee33cbd57903d3ed81656a0d842)]:
125 - @tanstack/query-db-collection@0.2.37
126​
127## 0.1.15
128​
129### Patch Changes
130​
131- Updated dependencies []:
132 - @tanstack/electric-db-collection@0.1.38
133 - @tanstack/query-db-collection@0.2.36
134 - @tanstack/react-db@0.1.36
135 - @tanstack/trailbase-db-collection@0.1.36
136​
137## 0.1.14
138​
139### Patch Changes
140​
141- Updated dependencies []:
142 - @tanstack/electric-db-collection@0.1.37
143 - @tanstack/query-db-collection@0.2.35
144 - @tanstack/react-db@0.1.35
145 - @tanstack/trailbase-db-collection@0.1.35
146​
147## 0.1.13
148​
149### Patch Changes
150​
151- Updated dependencies [[`16dbfe3`](https://github.com/TanStack/db/commit/16dbfe34d5a5c075211453566f3a0453aa0ee76f), [`5950583`](https://github.com/TanStack/db/commit/595058384c88730f325ac23415bdb0643eea89fa)]:
152 - @tanstack/query-db-collection@0.2.34
153​
154## 0.1.12
155​
156### Patch Changes
157​
158- Updated dependencies []:
159 - @tanstack/electric-db-collection@0.1.36
160 - @tanstack/query-db-collection@0.2.33
161 - @tanstack/react-db@0.1.34
162 - @tanstack/trailbase-db-collection@0.1.34
163​
164## 0.1.11
165​
166### Patch Changes
167​
168- Updated dependencies [[`5566b26`](https://github.com/TanStack/db/commit/5566b26100abdae9b4a041f048aeda1dd726e904)]:
169 - @tanstack/react-db@0.1.33
170 - @tanstack/electric-db-collection@0.1.35
171 - @tanstack/query-db-collection@0.2.32
172 - @tanstack/trailbase-db-collection@0.1.33
173​
174## 0.1.10
175​
176### Patch Changes
177​
178- Updated dependencies [[`b0687ab`](https://github.com/TanStack/db/commit/b0687ab4c1476362d7a25e3c1704ab0fb0385455)]:
179 - @tanstack/react-db@0.1.32
180 - @tanstack/electric-db-collection@0.1.34
181 - @tanstack/query-db-collection@0.2.31
182 - @tanstack/trailbase-db-collection@0.1.32
183​
184## 0.1.9
185​
186### Patch Changes
187​
188- Updated dependencies []:
189 - @tanstack/electric-db-collection@0.1.33
190 - @tanstack/query-db-collection@0.2.30
191 - @tanstack/react-db@0.1.31
192 - @tanstack/trailbase-db-collection@0.1.31
193​
194## 0.1.8
195​
196### Patch Changes
197​
198- Updated dependencies [[`44555b7`](https://github.com/TanStack/db/commit/44555b733a1a4d38d8126bf8da51d4b44f898298)]:
199 - @tanstack/react-db@0.1.30
200 - @tanstack/electric-db-collection@0.1.32
201 - @tanstack/query-db-collection@0.2.29
202 - @tanstack/trailbase-db-collection@0.1.30
203​
204## 0.1.7
205​
206### Patch Changes
207​
208- Updated dependencies [[`3cb5180`](https://github.com/TanStack/db/commit/3cb51805d999c3e62bebcd71e9135b28fee38010)]:
209 - @tanstack/electric-db-collection@0.1.31
210 - @tanstack/query-db-collection@0.2.28
211 - @tanstack/react-db@0.1.29
212 - @tanstack/trailbase-db-collection@0.1.29
213​
214## 0.1.6
215​
216### Patch Changes
217​
218- Updated dependencies [[`c30a20b`](https://github.com/TanStack/db/commit/c30a20b1df39b34f18d0aa7c7b901a27fb963f36)]:
219 - @tanstack/electric-db-collection@0.1.30
220 - @tanstack/query-db-collection@0.2.27
221 - @tanstack/react-db@0.1.28
222 - @tanstack/trailbase-db-collection@0.1.28
223​
224## 0.1.5
225​
226### Patch Changes
227​
228- Updated dependencies [[`a8624c8`](https://github.com/TanStack/db/commit/a8624c8770f5e85ce92e8417e56a56be039cb0c4)]:
229 - @tanstack/electric-db-collection@0.1.29
230 - @tanstack/query-db-collection@0.2.26
231 - @tanstack/react-db@0.1.27
232 - @tanstack/trailbase-db-collection@0.1.27
233​
234## 0.1.4
235​
236### Patch Changes
237​
238- Updated dependencies [[`b38bd76`](https://github.com/TanStack/db/commit/b38bd768560966af67f859a28d4e15a0f877a199)]:
239 - @tanstack/query-db-collection@0.2.25
240 - @tanstack/electric-db-collection@0.1.28
241 - @tanstack/react-db@0.1.26
242 - @tanstack/trailbase-db-collection@0.1.26
243​
244## 0.1.3
245​
246### Patch Changes
247​
248- Updated dependencies []:
249 - @tanstack/electric-db-collection@0.1.27
250 - @tanstack/query-db-collection@0.2.24
251 - @tanstack/react-db@0.1.25
252 - @tanstack/trailbase-db-collection@0.1.25
253​
254## 0.1.2
255​
256### Patch Changes
257​
258- 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)]:
259 - @tanstack/query-db-collection@0.2.23
260 - @tanstack/electric-db-collection@0.1.26
261 - @tanstack/react-db@0.1.24
262 - @tanstack/trailbase-db-collection@0.1.24
263​
264## 0.1.1
265​
266### Patch Changes
267​
268- Updated dependencies [[`1220d7e`](https://github.com/TanStack/db/commit/1220d7eb6b544f05c2ea2f629ee75f969ebcda40)]:
269 - @tanstack/query-db-collection@0.2.0
270​
271## 0.1.0
272​
273### Minor Changes
274​
275- 0.1 release - first beta 🎉 ([#332](https://github.com/TanStack/db/pull/332))
276​
277### Patch Changes
278​
279- Updated dependencies [[`7d2f4be`](https://github.com/TanStack/db/commit/7d2f4be95c43aad29fb61e80e5a04c58c859322b), [`f0eda36`](https://github.com/TanStack/db/commit/f0eda36cb36350399bc8835686a6c4b6ad297e45)]:
280 - @tanstack/electric-db-collection@0.1.0
281 - @tanstack/query-db-collection@0.1.0
282 - @tanstack/react-db@0.1.0
283 - @tanstack/trailbase-db-collection@0.1.0
284​
285## 0.0.39
286​
287### Patch Changes
288​
289- Updated dependencies []:
290 - @tanstack/electric-db-collection@0.0.15
291 - @tanstack/query-db-collection@0.0.15
292 - @tanstack/react-db@0.0.33
293 - @tanstack/trailbase-db-collection@0.0.9
294​
295## 0.0.38
296​
297### Patch Changes
298​
299- Updated dependencies [[`e04bd12`](https://github.com/TanStack/db/commit/e04bd1252f612d4638104368d17cb644cc85295b)]:
300 - @tanstack/query-db-collection@0.0.14
301 - @tanstack/electric-db-collection@0.0.14
302 - @tanstack/react-db@0.0.32
303 - @tanstack/trailbase-db-collection@0.0.8
304​
305## 0.0.37
306​
307### Patch Changes
308​
309- Updated dependencies []:
310 - @tanstack/electric-db-collection@0.0.13
311 - @tanstack/query-db-collection@0.0.13
312 - @tanstack/react-db@0.0.31
313 - @tanstack/trailbase-db-collection@0.0.7
314​
315## 0.0.36
316​
317### Patch Changes
318​
319- Updated dependencies []:
320 - @tanstack/electric-db-collection@0.0.12
321 - @tanstack/query-db-collection@0.0.12
322 - @tanstack/react-db@0.0.30
323 - @tanstack/trailbase-db-collection@0.0.6
324​
325## 0.0.35
326​
327### Patch Changes
328​
329- Updated dependencies [[`5260ee3`](https://github.com/TanStack/db/commit/5260ee3098d12eccc58a5cf903ea479908681402)]:
330 - @tanstack/trailbase-db-collection@0.0.5
331 - @tanstack/electric-db-collection@0.0.11
332 - @tanstack/query-db-collection@0.0.11
333 - @tanstack/react-db@0.0.29
334​
335## 0.0.34
336​
337### Patch Changes
338​
339- Updated dependencies []:
340 - @tanstack/electric-db-collection@0.0.10
341 - @tanstack/query-db-collection@0.0.10
342 - @tanstack/react-db@0.0.28
343 - @tanstack/trailbase-db-collection@0.0.4
344​
345## 0.0.33
346​
347### Patch Changes
348​
349- Updated dependencies []:
350 - @tanstack/electric-db-collection@0.0.9
351 - @tanstack/query-db-collection@0.0.9
352 - @tanstack/react-db@0.0.27
353 - @tanstack/trailbase-db-collection@0.0.3
354​
355## 0.0.32
356​
357### Patch Changes
358​
359- 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))
360​
361- Updated dependencies [[`09c6995`](https://github.com/TanStack/db/commit/09c6995ea9c8e6979d077ca63cbdd6215054ae78)]:
362 - @tanstack/trailbase-db-collection@0.0.2
363 - @tanstack/electric-db-collection@0.0.8
364 - @tanstack/query-db-collection@0.0.8
365 - @tanstack/react-db@0.0.26
366​
367## 0.0.31
368​
369### Patch Changes
370​
371- Updated dependencies [[`20f810e`](https://github.com/TanStack/db/commit/20f810e13a7d802bf56da6f0df89b34312ebb2fd)]:
372 - @tanstack/electric-db-collection@0.0.7
373 - @tanstack/query-db-collection@0.0.7
374 - @tanstack/react-db@0.0.25
375​
376## 0.0.30
377​
378### Patch Changes
379​
380- Updated dependencies []:
381 - @tanstack/electric-db-collection@0.0.6
382 - @tanstack/query-db-collection@0.0.6
383 - @tanstack/react-db@0.0.24
384​
385## 0.0.29
386​
387### Patch Changes
388​
389- Updated dependencies []:
390 - @tanstack/electric-db-collection@0.0.5
391 - @tanstack/query-db-collection@0.0.5
392 - @tanstack/react-db@0.0.23
393​
394## 0.0.28
395​
396### Patch Changes
397​
398- Updated dependencies []:
399 - @tanstack/electric-db-collection@0.0.4
400 - @tanstack/query-db-collection@0.0.4
401 - @tanstack/react-db@0.0.22
402​
403## 0.0.27
404​
405### Patch Changes
406​
407- Move Collections to their own packages ([#252](https://github.com/TanStack/db/pull/252))
408 - Move local-only and local-storage collections to main `@tanstack/db` package
409 - Create new `@tanstack/electric-db-collection` package for ElectricSQL integration
410 - Create new `@tanstack/query-db-collection` package for TanStack Query integration
411 - Delete `@tanstack/db-collections` package (removed from repo)
412 - Update example app and documentation to use new package structure
413​
414 Why?
415 - Better separation of concerns
416 - Independent versioning for each collection type
417 - Cleaner dependencies (electric collections don't need query deps, etc.)
418 - Easier to add more collection types moving forward
419​
420- Updated dependencies [[`8e23322`](https://github.com/TanStack/db/commit/8e233229b25eabed07cdaf12948ba913786bf4f9)]:
421 - @tanstack/electric-db-collection@0.0.3
422 - @tanstack/query-db-collection@0.0.3
423 - @tanstack/react-db@0.0.21
424​
425## 0.0.26
426​
427### Patch Changes
428​
429- Updated dependencies []:
430 - @tanstack/db-collections@0.0.24
431 - @tanstack/react-db@0.0.20
432​
433## 0.0.25
434​
435### Patch Changes
436​
437- - [Breaking change for the Electric Collection]: Use numbers for txid ([#245](https://github.com/TanStack/db/pull/245))
438 - misc type fixes
439- Updated dependencies [[`9f0b0c2`](https://github.com/TanStack/db/commit/9f0b0c28ede99273eb5914be28aff55b91c50778)]:
440 - @tanstack/db-collections@0.0.23
441 - @tanstack/react-db@0.0.19
442​
443## 0.0.24
444​
445### Patch Changes
446​
447- Updated dependencies [[`266bd29`](https://github.com/TanStack/db/commit/266bd29514c6c0fa9e903986ca11c5e22f4d2361)]:
448 - @tanstack/db-collections@0.0.22
449 - @tanstack/react-db@0.0.18
450​
451## 0.0.23
452​
453### Patch Changes
454​
455- Updated dependencies [[`1c9e867`](https://github.com/TanStack/db/commit/1c9e8676405b71a45831456c7119420975ae1456)]:
456 - @tanstack/db-collections@0.0.21
457 - @tanstack/react-db@0.0.17
458​
459## 0.0.22
460​
461### Patch Changes
462​
463- Updated dependencies [[`e478d53`](https://github.com/TanStack/db/commit/e478d5353cc8fc64e3a29dda1f86fba863cf6ce8)]:
464 - @tanstack/react-db@0.0.16
465 - @tanstack/db-collections@0.0.20
466​
467## 0.0.21
468​
469### Patch Changes
470​
471- Updated dependencies [[`0912a7c`](https://github.com/TanStack/db/commit/0912a7c165325e6981f0b702c169004e08d57f75)]:
472 - @tanstack/db-collections@0.0.19
473 - @tanstack/react-db@0.0.15
474​
475## 0.0.20
476​
477### Patch Changes
478​
479- Updated dependencies [[`0dede0a`](https://github.com/TanStack/db/commit/0dede0ab75e66df9797d5c898defdc66685c6f91)]:
480 - @tanstack/db-collections@0.0.18
481​
482## 0.0.19
483​
484### Patch Changes
485​
486- Updated dependencies []:
487 - @tanstack/db-collections@0.0.17
488 - @tanstack/react-db@0.0.14
489​
490## 0.0.18
491​
492### Patch Changes
493​
494- Updated dependencies [[`945868e`](https://github.com/TanStack/db/commit/945868e95944543ccf5d778409548679a952e249), [`57b5f5d`](https://github.com/TanStack/db/commit/57b5f5de6297326a57ef205a400428af0697b48b)]:
495 - @tanstack/react-db@0.0.13
496 - @tanstack/db-collections@0.0.16
497​
498## 0.0.17
499​
500### Patch Changes
501​
502- Updated dependencies [[`5cafaf4`](https://github.com/TanStack/db/commit/5cafaf4f73018599ce799778029833d3fa83dbc9)]:
503 - @tanstack/db-collections@0.0.15
504​
505## 0.0.16
506​
507### Patch Changes
508​
509- Updated dependencies [[`f6abe9b`](https://github.com/TanStack/db/commit/f6abe9b94b890487fe960bd72a89e4a75de89d46)]:
510 - @tanstack/db-collections@0.0.14
511 - @tanstack/react-db@0.0.12
512​
513## 0.0.15
514​
515### Patch Changes
516​
517- Export `ElectricCollectionUtils` & allow passing generic to `createTransaction` ([#179](https://github.com/TanStack/db/pull/179))
518​
519- Updated dependencies [[`c5489ff`](https://github.com/TanStack/db/commit/c5489ff276db07a0a4b65876790ccd7f11a6f99d)]:
520 - @tanstack/db-collections@0.0.13
521 - @tanstack/react-db@0.0.11
522​
523## 0.0.14
524​
525### Patch Changes
526​
527- Updated dependencies []:
528 - @tanstack/db-collections@0.0.12
529 - @tanstack/react-db@0.0.10
530​
531## 0.0.13
532​
533### Patch Changes
534​
535- Updated dependencies []:
536 - @tanstack/db-collections@0.0.11
537 - @tanstack/react-db@0.0.9
538​
539## 0.0.12
540​
541### Patch Changes
542​
543- Type PendingMutation whenever possible ([#163](https://github.com/TanStack/db/pull/163))
544​
545- Updated dependencies [[`5c538cf`](https://github.com/TanStack/db/commit/5c538cf03573512a8d1bbde96962a9f7ca014708), [`b4602a0`](https://github.com/TanStack/db/commit/b4602a071cb6866bb1338e30d5802220b0d1fc49)]:
546 - @tanstack/db-collections@0.0.10
547 - @tanstack/react-db@0.0.8
548​
549## 0.0.11
550​
551### Patch Changes
552​
553- Updated dependencies [[`8b43ad3`](https://github.com/TanStack/db/commit/8b43ad305b277560aed660c31cf1409d22ed1e47)]:
554 - @tanstack/db-collections@0.0.9
555 - @tanstack/react-db@0.0.7
556​
557## 0.0.10
558​
559### Patch Changes
560​
561- 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))
562​
563 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.
564​
565 Key changes:
566 - **`@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.
567 - **`@tanstack/db-collections`**:
568 - `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 }`.
569 - `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.
570 - **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.
571​
572 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.
573​
574 ***
575​
576 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.
577 - 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.
578 - 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.
579​
580- Updated dependencies [[`80fdac7`](https://github.com/TanStack/db/commit/80fdac76389ea741f5743bc788df375f63fb767b)]:
581 - @tanstack/db-collections@0.0.8
582 - @tanstack/react-db@0.0.6
583​
584## 0.0.9
585​
586### Patch Changes
587​
588- Collections must have a getId function & use an id for update/delete operators ([#134](https://github.com/TanStack/db/pull/134))
589​
590- Switch to Collection options factories instead of extending the Collection class ([#145](https://github.com/TanStack/db/pull/145))
591​
592 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.
593​
594- 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)]:
595 - @tanstack/db-collections@0.0.7
596 - @tanstack/react-db@0.0.5
597​
598## 0.0.8
599​
600### Patch Changes
601​
602- Updated dependencies []:
603 - @tanstack/db-collections@0.0.6
604 - @tanstack/react-db@0.0.4
605​
606## 0.0.7
607​
608### Patch Changes
609​
610- Updated dependencies [[`0bbf4c4`](https://github.com/TanStack/db/commit/0bbf4c46e01b382a70a437f05dfc09c9ff749a15)]:
611 - @tanstack/db-collections@0.0.5
612​
613## 0.0.6
614​
615### Patch Changes
616​
617- Updated dependencies [[`2d0fcf1`](https://github.com/TanStack/db/commit/2d0fcf16a61a3fcd6a7220b5501640cc0f67218f)]:
618 - @tanstack/db-collections@0.0.4
619​
620## 0.0.5
621​
622### Patch Changes
623​
624- Updated dependencies []:
625 - @tanstack/db-collections@0.0.3
626 - @tanstack/react-db@0.0.3
627​
628## 0.0.4
629​
630### Patch Changes
631​
632- Updated dependencies [[`4c82edb`](https://github.com/TanStack/db/commit/4c82edb9547f26c9de44f5bf43d4385c38920672), [`4c82edb`](https://github.com/TanStack/db/commit/4c82edb9547f26c9de44f5bf43d4385c38920672)]:
633 - @tanstack/react-db@0.0.2
634 - @tanstack/db-collections@0.0.2
635​
636## 0.0.3
637​
638### Patch Changes
639​
640- Updated dependencies [[`b42479c`](https://github.com/TanStack/db/commit/b42479cf95f9a820b36e01684b13a9179973f3d8)]:
641 - @tanstack/react-db@0.0.3
642​
643## 0.0.2
644​
645### Patch Changes
646​
647- Updated dependencies [[`9bb6e89`](https://github.com/TanStack/db/commit/9bb6e8909cebdcd7c03091bfc12dd37f5ab2e1ea)]:
648 - @tanstack/react-db@0.0.2