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

CHANGELOG.md

678 lines24.3 KB

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