Open History to see the last commit
1# @tanstack/react-db
2
3## 0.1.28
4
5### Patch Changes
6
7- Updated dependencies [[`dd6cdf7`](https://github.com/TanStack/db/commit/dd6cdf7ea62d91bfb12ea8d25bdd25549259c113), [`c30a20b`](https://github.com/TanStack/db/commit/c30a20b1df39b34f18d0aa7c7b901a27fb963f36)]:
8 - @tanstack/db@0.4.6
9
10## 0.1.27
11
12### Patch Changes
13
14- Updated dependencies [[`7556fb6`](https://github.com/TanStack/db/commit/7556fb6f888b5bdc830fe6448eb3368efeb61988)]:
15 - @tanstack/db@0.4.5
16
17## 0.1.26
18
19### Patch Changes
20
21- Updated dependencies [[`56b870b`](https://github.com/TanStack/db/commit/56b870b3e63f8010b6eeebea87893b10c75a5888), [`f623990`](https://github.com/TanStack/db/commit/f62399062e4db61426ddfbbbe324c48cab2513dd), [`5f43d5f`](https://github.com/TanStack/db/commit/5f43d5f7f47614be8e71856ceb0f91733d9be627), [`05776f5`](https://github.com/TanStack/db/commit/05776f52a8ce4fe41b34fc8cace2046afc42835c), [`d27d32a`](https://github.com/TanStack/db/commit/d27d32aceb7f8fcabc07dcf1b55a84a605d2f23f)]:
22 - @tanstack/db@0.4.4
23
24## 0.1.25
25
26### Patch Changes
27
28- Updated dependencies [[`32f2212`](https://github.com/TanStack/db/commit/32f221278e2a684f3f4e1e2ace1ca98f5ecc858a)]:
29 - @tanstack/db@0.4.3
30
31## 0.1.24
32
33### Patch Changes
34
35- Updated dependencies [[`51c6bc5`](https://github.com/TanStack/db/commit/51c6bc58244ed6a3ac853e7e6af7775b33d6b65a), [`248e2c6`](https://github.com/TanStack/db/commit/248e2c6db8e9df8cf2cb225100e4ba9cb67cd534), [`ce7e2b2`](https://github.com/TanStack/db/commit/ce7e2b209ed882baa29ec86f89f1b527d6580e0b), [`1b832ff`](https://github.com/TanStack/db/commit/1b832ff9ec236e7dbe9256803e2ba12b4c9b9a30)]:
36 - @tanstack/db@0.4.2
37
38## 0.1.23
39
40### Patch Changes
41
42- Updated dependencies [[`8cd0876`](https://github.com/TanStack/db/commit/8cd0876b50bc7c1a614365318d5e74c2f32a0f80)]:
43 - @tanstack/db@0.4.1
44
45## 0.1.22
46
47### Patch Changes
48
49- Let collection.subscribeChanges return a subscription object. Move all data loading code related to optimizations into that subscription object. ([#564](https://github.com/TanStack/db/pull/564))
50
51- Updated dependencies [[`2f87216`](https://github.com/TanStack/db/commit/2f8721630e06331ca8bb2f962fbb283341103a58), [`ac6250a`](https://github.com/TanStack/db/commit/ac6250a879e95718e8d911732c10fb3388569f0f), [`2f87216`](https://github.com/TanStack/db/commit/2f8721630e06331ca8bb2f962fbb283341103a58)]:
52 - @tanstack/db@0.4.0
53
54## 0.1.21
55
56### Patch Changes
57
58- Expand `useLiveQuery` callback to support conditional queries and additional return types, enabling the ability to temporarily disable the query. ([#535](https://github.com/TanStack/db/pull/535))
59
60 **New Features:**
61 - Callback can now return `undefined` or `null` to temporarily disable the query
62 - Callback can return a pre-created `Collection` instance to use it directly
63 - Callback can return a `LiveQueryCollectionConfig` object for advanced configuration
64 - When disabled (returning `undefined`/`null`), the hook returns a specific idle state
65
66 **Usage Examples:**
67
68 ```ts
69 // Conditional queries - disable when not ready
70 const enabled = useState(false)
71 const { data, state, isIdle } = useLiveQuery((q) => {
72 if (!enabled) return undefined // Disables the query
73 return q.from({ users }).where(...)
74 }, [enabled])
75
76 /**
77 * When disabled, returns:
78 * {
79 * state: undefined,
80 * data: undefined,
81 * isIdle: true,
82 * ...
83 * }
84 */
85
86 // Return pre-created Collection
87 const { data } = useLiveQuery((q) => {
88 if (usePrebuilt) return myCollection // Use existing collection
89 return q.from({ items }).select(...)
90 }, [usePrebuilt])
91
92 // Return LiveQueryCollectionConfig
93 const { data } = useLiveQuery((q) => {
94 return {
95 query: q.from({ items }).select(...),
96 id: `my-collection`,
97 }
98 })
99 ```
100
101- Updated dependencies [[`cacfca2`](https://github.com/TanStack/db/commit/cacfca2d1b430c34a05202128fd3affa4bff54d6)]:
102 - @tanstack/db@0.3.2
103
104## 0.1.20
105
106### Patch Changes
107
108- Updated dependencies [[`5f51f35`](https://github.com/TanStack/db/commit/5f51f35d2c9543766a00cc5eea1374c62798b34e)]:
109 - @tanstack/db@0.3.1
110
111## 0.1.19
112
113### Patch Changes
114
115- Updated dependencies [[`c557a14`](https://github.com/TanStack/db/commit/c557a1488650ea9081b671a4ac278d55c59ac9cc), [`b5c87f7`](https://github.com/TanStack/db/commit/b5c87f71dbb534e4f1c660cf010e2cb6c0446ec5)]:
116 - @tanstack/db@0.3.0
117
118## 0.1.18
119
120### Patch Changes
121
122- Updated dependencies [[`b03894d`](https://github.com/TanStack/db/commit/b03894db05e063629a3660e03b31a80a48558dd5), [`3968087`](https://github.com/TanStack/db/commit/39680877fdc1993733933d2def13217bd18fa254)]:
123 - @tanstack/db@0.2.5
124
125## 0.1.17
126
127### Patch Changes
128
129- Updated dependencies [[`92febbf`](https://github.com/TanStack/db/commit/92febbf1feaa1d46f8cc4d7a4ea0d44cd5f85256), [`b487430`](https://github.com/TanStack/db/commit/b4874308813f95232f3361de539cec104ed55170)]:
130 - @tanstack/db@0.2.4
131
132## 0.1.16
133
134### Patch Changes
135
136- Updated dependencies [[`b162556`](https://github.com/TanStack/db/commit/b1625565df44b0824501297f7ef14ae1cd450b49)]:
137 - @tanstack/db@0.2.3
138
139## 0.1.15
140
141### Patch Changes
142
143- Updated dependencies [[`33515c6`](https://github.com/TanStack/db/commit/33515c69befc557add2cf828354ee378100f3977)]:
144 - @tanstack/db@0.2.2
145
146## 0.1.14
147
148### Patch Changes
149
150- Updated dependencies [[`620ebea`](https://github.com/TanStack/db/commit/620ebea96eb3fbeec66701b949de9920c4084c17)]:
151 - @tanstack/db@0.2.1
152
153## 0.1.13
154
155### Patch Changes
156
157- Updated dependencies [[`08303e6`](https://github.com/TanStack/db/commit/08303e645974db97e10b2aca0031abcbce027dd6), [`bafeaa1`](https://github.com/TanStack/db/commit/bafeaa1e9f161ac2200ce86537e442b2aa8e2a5b), [`1814f8c`](https://github.com/TanStack/db/commit/1814f8cc3c0e831c82f8053b86fbbbd737e4f34b), [`31acdf2`](https://github.com/TanStack/db/commit/31acdf2a96411da327f93f0d30fa78d884422969), [`e41ed7e`](https://github.com/TanStack/db/commit/e41ed7e1ff1d94dd3ce0c48b6321f66b8ea044fd), [`51954d8`](https://github.com/TanStack/db/commit/51954d8c5d64291d136159bce293e0ad00a19f88)]:
158 - @tanstack/db@0.2.0
159
160## 0.1.12
161
162### Patch Changes
163
164- Updated dependencies [[`cc4c34a`](https://github.com/TanStack/db/commit/cc4c34a6b40c81c83aa10c8d00dfc0a3d33c56db)]:
165 - @tanstack/db@0.1.12
166
167## 0.1.11
168
169### Patch Changes
170
171- Fixed a bug where a race condition could cause initial results not to be rendered when using `useLiveQuery`. ([#485](https://github.com/TanStack/db/pull/485))
172
173- Updated dependencies [[`b869f68`](https://github.com/TanStack/db/commit/b869f68f0109b3126509f202a38855cee38b4276)]:
174 - @tanstack/db@0.1.11
175
176## 0.1.10
177
178### Patch Changes
179
180- Updated dependencies [[`eb8fd18`](https://github.com/TanStack/db/commit/eb8fd18c50ee03b72cb06e4d7ef25f214367950b), [`e59a355`](https://github.com/TanStack/db/commit/e59a3551e75bac9dd166e14c911d9491e3a67b9a), [`074aab0`](https://github.com/TanStack/db/commit/074aab0477a7c55e9e0f19a705b96ed2619e2afb), [`d469c39`](https://github.com/TanStack/db/commit/d469c39a7bdc034fa4fbc533010573b3515f239f)]:
181 - @tanstack/db@0.1.10
182
183## 0.1.9
184
185### Patch Changes
186
187- Updated dependencies [[`d64b4a8`](https://github.com/TanStack/db/commit/d64b4a8b692a213c7ad58faaf66f5f5fd50bef66)]:
188 - @tanstack/db@0.1.9
189
190## 0.1.8
191
192### Patch Changes
193
194- Updated dependencies [[`1c5e206`](https://github.com/TanStack/db/commit/1c5e206d00d0a99f8419f0d00429b5a3c6cdc76e), [`4d20004`](https://github.com/TanStack/db/commit/4d2000488b9b5abf85c05801633297528af0eff6), [`968602e`](https://github.com/TanStack/db/commit/968602e4ffc597eaa559219daf22d6ef6321162a)]:
195 - @tanstack/db@0.1.8
196
197## 0.1.7
198
199### Patch Changes
200
201- Updated dependencies [[`48d0889`](https://github.com/TanStack/db/commit/48d088996a3f18df026aa7d2d1e7f27d1151345b), [`aecbcc3`](https://github.com/TanStack/db/commit/aecbcc32012561f1645df0bdf89a6c259058d888), [`a937f4c`](https://github.com/TanStack/db/commit/a937f4c7a5f4fc20c255e86692c5e2e80d5ebbec), [`3d60fad`](https://github.com/TanStack/db/commit/3d60fadbb9e8a1b62a9bcde947e282d653a2a270), [`79c95a3`](https://github.com/TanStack/db/commit/79c95a36f60087ffc3f9a02b76975c8bdf40acc7)]:
202 - @tanstack/db@0.1.7
203
204## 0.1.6
205
206### Patch Changes
207
208- Updated dependencies [[`ad33e9e`](https://github.com/TanStack/db/commit/ad33e9e535ca6197c2e00e2dbb59bf8e8f9bb51e)]:
209 - @tanstack/db@0.1.6
210
211## 0.1.5
212
213### Patch Changes
214
215- ensure that useLiveQuery returns a stable ref when there are no changes ([#388](https://github.com/TanStack/db/pull/388))
216
217- Updated dependencies [[`9a5a20c`](https://github.com/TanStack/db/commit/9a5a20c21fbf8286ab90e1db6d6f3315f8344a4e)]:
218 - @tanstack/db@0.1.5
219
220## 0.1.4
221
222### Patch Changes
223
224- Ensure that the ready status is correctly returned from a live query ([#390](https://github.com/TanStack/db/pull/390))
225
226- Updated dependencies [[`c90b4d8`](https://github.com/TanStack/db/commit/c90b4d85822f94f7fe72286d5c7ee07b087d0e20), [`6c1c19c`](https://github.com/TanStack/db/commit/6c1c19cedbc1d9d98396948e8e43fa0515bb8919), [`69a6d2d`](https://github.com/TanStack/db/commit/69a6d2d94c7a5510568c8b652356c62bd2b3cc76), [`6250a92`](https://github.com/TanStack/db/commit/6250a92c8045ef2fd69c107a94e05179471681d7), [`68538b4`](https://github.com/TanStack/db/commit/68538b4c446abeb992e24964f811c8900749f141)]:
227 - @tanstack/db@0.1.4
228
229## 0.1.3
230
231### Patch Changes
232
233- Updated dependencies [[`0cb7699`](https://github.com/TanStack/db/commit/0cb76999e5d6df5916694a5afeb31b928eab68e4)]:
234 - @tanstack/db@0.1.3
235
236## 0.1.2
237
238### Patch Changes
239
240- Updated dependencies [[`bb5d50e`](https://github.com/TanStack/db/commit/bb5d50e255d9114ef32b8f52eef6b15399255327), [`97b595e`](https://github.com/TanStack/db/commit/97b595e9617b1abb05c14489e3d608b314da08e8)]:
241 - @tanstack/db@0.1.2
242
243## 0.1.1
244
245### Patch Changes
246
247- Updated dependencies [[`bc2f204`](https://github.com/TanStack/db/commit/bc2f204b8cb8a4870ade00757d10f846524e2090), [`bda3f24`](https://github.com/TanStack/db/commit/bda3f24cc41504f60be0c5e071698b7735f75e28)]:
248 - @tanstack/db@0.1.1
249
250## 0.1.0
251
252### Minor Changes
253
254- 0.1 release - first beta 🎉 ([#332](https://github.com/TanStack/db/pull/332))
255
256### Patch Changes
257
258- We have moved development of the differential dataflow implementation from @electric-sql/d2mini to a new @tanstack/db-ivm package inside the tanstack db monorepo to make development simpler. ([#330](https://github.com/TanStack/db/pull/330))
259
260- Updated dependencies [[`7d2f4be`](https://github.com/TanStack/db/commit/7d2f4be95c43aad29fb61e80e5a04c58c859322b), [`f0eda36`](https://github.com/TanStack/db/commit/f0eda36cb36350399bc8835686a6c4b6ad297e45)]:
261 - @tanstack/db@0.1.0
262
263## 0.0.33
264
265### Patch Changes
266
267- Updated dependencies [[`6e8d7f6`](https://github.com/TanStack/db/commit/6e8d7f660050118e050d575913733e469e3daa8c)]:
268 - @tanstack/db@0.0.33
269
270## 0.0.32
271
272### Patch Changes
273
274- Updated dependencies [[`e04bd12`](https://github.com/TanStack/db/commit/e04bd1252f612d4638104368d17cb644cc85295b)]:
275 - @tanstack/db@0.0.32
276
277## 0.0.31
278
279### Patch Changes
280
281- Updated dependencies [[`3e9a36d`](https://github.com/TanStack/db/commit/3e9a36d2600c4f700ca7bc4f720c189a5a29387a)]:
282 - @tanstack/db@0.0.31
283
284## 0.0.30
285
286### Patch Changes
287
288- Updated dependencies [[`6bdde55`](https://github.com/TanStack/db/commit/6bdde554f36f54c0c4f4dacb74bef5da45811855)]:
289 - @tanstack/db@0.0.30
290
291## 0.0.29
292
293### Patch Changes
294
295- Updated dependencies [[`ced0657`](https://github.com/TanStack/db/commit/ced0657e72646e35343dfea8389d96e213710cdf), [`dcfef51`](https://github.com/TanStack/db/commit/dcfef51d4d94c756bf77e40e7015e47b7982c09a), [`360b0df`](https://github.com/TanStack/db/commit/360b0dfa411ba9f8a93f6b737aa1df8fb37dd036), [`608be0c`](https://github.com/TanStack/db/commit/608be0c14dc5ae9577deebf436557a1eace46733), [`5260ee3`](https://github.com/TanStack/db/commit/5260ee3098d12eccc58a5cf903ea479908681402)]:
296 - @tanstack/db@0.0.29
297
298## 0.0.28
299
300### Patch Changes
301
302- Updated dependencies [[`bb85522`](https://github.com/TanStack/db/commit/bb8552210a97dd05d3ca6fdd080a3fd25c1023a6), [`e9e8e5e`](https://github.com/TanStack/db/commit/e9e8e5e20c23fb7f98865d6b8aab05ad5322e5f7)]:
303 - @tanstack/db@0.0.28
304
305## 0.0.27
306
307### Patch Changes
308
309- Updated dependencies [[`bec8620`](https://github.com/TanStack/db/commit/bec862004deef5fdd560f70107ebd59f7c27656e)]:
310 - @tanstack/db@0.0.27
311
312## 0.0.26
313
314### Patch Changes
315
316- 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))
317
318- Updated dependencies [[`09c6995`](https://github.com/TanStack/db/commit/09c6995ea9c8e6979d077ca63cbdd6215054ae78)]:
319 - @tanstack/db@0.0.26
320
321## 0.0.25
322
323### Patch Changes
324
325- Updated dependencies [[`1758eda`](https://github.com/TanStack/db/commit/1758edab9608383d9d1470156021ee632f043e51), [`20f810e`](https://github.com/TanStack/db/commit/20f810e13a7d802bf56da6f0df89b34312ebb2fd)]:
326 - @tanstack/db@0.0.25
327
328## 0.0.24
329
330### Patch Changes
331
332- Updated dependencies [[`11215d9`](https://github.com/TanStack/db/commit/11215d9544d02e9dc6258c661ba4b5e439e479ed), [`fe42591`](https://github.com/TanStack/db/commit/fe42591bd7ea9955d67ecec4471b44cb7808e74b), [`665efe6`](https://github.com/TanStack/db/commit/665efe660c1aed68139326a2a33904968622a882)]:
333 - @tanstack/db@0.0.24
334
335## 0.0.23
336
337### Patch Changes
338
339- Updated dependencies [[`056609e`](https://github.com/TanStack/db/commit/056609ed2926e12df5ee08be5fad0a6333e787f3)]:
340 - @tanstack/db@0.0.23
341
342## 0.0.22
343
344### Patch Changes
345
346- Updated dependencies [[`aeee9a1`](https://github.com/TanStack/db/commit/aeee9a13411527bd0ebfc0a0c06989bdb904b650)]:
347 - @tanstack/db@0.0.22
348
349## 0.0.21
350
351### Patch Changes
352
353- Updated dependencies [[`8e23322`](https://github.com/TanStack/db/commit/8e233229b25eabed07cdaf12948ba913786bf4f9)]:
354 - @tanstack/db@0.0.21
355
356## 0.0.20
357
358### Patch Changes
359
360- Updated dependencies [[`f13c11e`](https://github.com/TanStack/db/commit/f13c11ed0ab27cd88b03d789b0cd953e86bd1333)]:
361 - @tanstack/db@0.0.20
362
363## 0.0.19
364
365### Patch Changes
366
367- Updated dependencies [[`9f0b0c2`](https://github.com/TanStack/db/commit/9f0b0c28ede99273eb5914be28aff55b91c50778)]:
368 - @tanstack/db@0.0.19
369
370## 0.0.18
371
372### Patch Changes
373
374- Improve jsdocs ([#243](https://github.com/TanStack/db/pull/243))
375
376- Updated dependencies [[`266bd29`](https://github.com/TanStack/db/commit/266bd29514c6c0fa9e903986ca11c5e22f4d2361)]:
377 - @tanstack/db@0.0.18
378
379## 0.0.17
380
381### Patch Changes
382
383- Updated dependencies [[`7e63d76`](https://github.com/TanStack/db/commit/7e63d7671f9df9f9fc81240c3818789d4ed0d464)]:
384 - @tanstack/db@0.0.17
385
386## 0.0.16
387
388### Patch Changes
389
390- add support for composable queries ([#232](https://github.com/TanStack/db/pull/232))
391
392- Updated dependencies [[`e478d53`](https://github.com/TanStack/db/commit/e478d5353cc8fc64e3a29dda1f86fba863cf6ce8)]:
393 - @tanstack/db@0.0.16
394
395## 0.0.15
396
397### Patch Changes
398
399- Updated dependencies [[`f5cf44b`](https://github.com/TanStack/db/commit/f5cf44b1b181afef89a80cf7b8678337a3d4a065), [`f5cf44b`](https://github.com/TanStack/db/commit/f5cf44b1b181afef89a80cf7b8678337a3d4a065)]:
400 - @tanstack/db@0.0.15
401
402## 0.0.14
403
404### Patch Changes
405
406- Updated dependencies [[`74c140d`](https://github.com/TanStack/db/commit/74c140d8744f1f7bd3f9cb940c75719574afc78f)]:
407 - @tanstack/db@0.0.14
408
409## 0.0.13
410
411### Patch Changes
412
413- feat: implement Collection Lifecycle Management ([#198](https://github.com/TanStack/db/pull/198))
414
415 Adds automatic lifecycle management for collections to optimize resource usage.
416
417 **New Features:**
418 - Added `startSync` option (defaults to `false`, set to `true` to start syncing immediately)
419 - Automatic garbage collection after `gcTime` (default 5 minutes) of inactivity
420 - Collection status tracking: "idle" | "loading" | "ready" | "error" | "cleaned-up"
421 - Manual `preload()` and `cleanup()` methods for lifecycle control
422
423 **Usage:**
424
425 ```typescript
426 const collection = createCollection({
427 startSync: false, // Enable lazy loading
428 gcTime: 300000, // Cleanup timeout (default: 5 minutes)
429 })
430
431 console.log(collection.status) // Current state
432 await collection.preload() // Ensure ready
433 await collection.cleanup() // Manual cleanup
434 ```
435
436- Add createOptimisticAction helper that replaces useOptimisticMutation ([#210](https://github.com/TanStack/db/pull/210))
437
438 An example of converting a `useOptimisticMutation` hook to `createOptimisticAction`. Now all optimistic & server mutation logic are consolidated.
439
440 ```diff
441 -import { useOptimisticMutation } from '@tanstack/react-db'
442 +import { createOptimisticAction } from '@tanstack/react-db'
443 +
444 +// Create the `addTodo` action, passing in your `mutationFn` and `onMutate`.
445 +const addTodo = createOptimisticAction<string>({
446 + onMutate: (text) => {
447 + // Instantly applies the local optimistic state.
448 + todoCollection.insert({
449 + id: uuid(),
450 + text,
451 + completed: false
452 + })
453 + },
454 + mutationFn: async (text) => {
455 + // Persist the todo to your backend
456 + const response = await fetch('/api/todos', {
457 + method: 'POST',
458 + body: JSON.stringify({ text, completed: false }),
459 + })
460 + return response.json()
461 + }
462 +})
463
464 const Todo = () => {
465 - // Create the `addTodo` mutator, passing in your `mutationFn`.
466 - const addTodo = useOptimisticMutation({ mutationFn })
467 -
468 const handleClick = () => {
469 - // Triggers the mutationFn
470 - addTodo.mutate(() =>
471 - // Instantly applies the local optimistic state.
472 - todoCollection.insert({
473 - id: uuid(),
474 - text: '🔥 Make app faster',
475 - completed: false
476 - })
477 - )
478 + // Triggers the onMutate and then the mutationFn
479 + addTodo('🔥 Make app faster')
480 }
481
482 return <Button onClick={ handleClick } />
483 }
484 ```
485
486- Updated dependencies [[`945868e`](https://github.com/TanStack/db/commit/945868e95944543ccf5d778409548679a952e249), [`0f8a008`](https://github.com/TanStack/db/commit/0f8a008be8b368f231c8518ad1adfcac08132da2), [`57b5f5d`](https://github.com/TanStack/db/commit/57b5f5de6297326a57ef205a400428af0697b48b)]:
487 - @tanstack/db@0.0.13
488
489## 0.0.12
490
491### Patch Changes
492
493- Updated dependencies [[`f6abe9b`](https://github.com/TanStack/db/commit/f6abe9b94b890487fe960bd72a89e4a75de89d46)]:
494 - @tanstack/db@0.0.12
495
496## 0.0.11
497
498### Patch Changes
499
500- Export `ElectricCollectionUtils` & allow passing generic to `createTransaction` ([#179](https://github.com/TanStack/db/pull/179))
501
502- Updated dependencies [[`66ed58b`](https://github.com/TanStack/db/commit/66ed58b66553683ff0a5241de8cde83954d18847), [`c5489ff`](https://github.com/TanStack/db/commit/c5489ff276db07a0a4b65876790ccd7f11a6f99d)]:
503 - @tanstack/db@0.0.11
504
505## 0.0.10
506
507### Patch Changes
508
509- Updated dependencies [[`38d4505`](https://github.com/TanStack/db/commit/38d45051b065b619b95849f78422e9ace8750361)]:
510 - @tanstack/db@0.0.10
511
512## 0.0.9
513
514### Patch Changes
515
516- Updated dependencies [[`2ae0b09`](https://github.com/TanStack/db/commit/2ae0b09cc52152b0044818b538e11e8ca10d0f80)]:
517 - @tanstack/db@0.0.9
518
519## 0.0.8
520
521### Patch Changes
522
523- A large refactor of the core `Collection` with: ([#155](https://github.com/TanStack/db/pull/155))
524 - a change to not use Store internally and emit fine grade changes with `subscribeChanges` and `subscribeKeyChanges` methods.
525 - changes to the `Collection` api to be more `Map` like for reads, with `get`, `has`, `size`, `entries`, `keys`, and `values`.
526 - renames `config.getId` to `config.getKey` for consistency with the `Map` like api.
527
528- Updated dependencies [[`5c538cf`](https://github.com/TanStack/db/commit/5c538cf03573512a8d1bbde96962a9f7ca014708), [`9553366`](https://github.com/TanStack/db/commit/955336604a286d7992f9506cb1c76ecf150d0432), [`b4602a0`](https://github.com/TanStack/db/commit/b4602a071cb6866bb1338e30d5802220b0d1fc49), [`02adc81`](https://github.com/TanStack/db/commit/02adc813177cbb44ab6245cc9821142e9cf97876), [`06d8ecc`](https://github.com/TanStack/db/commit/06d8eccc5aaabc194c31ea89c9b4191e2aa68180), [`c50cd51`](https://github.com/TanStack/db/commit/c50cd51ac8030b391cd9d84e8cd8b8fb57cb8ca5)]:
529 - @tanstack/db@0.0.8
530
531## 0.0.7
532
533### Patch Changes
534
535- Expose utilities on collection instances ([#161](https://github.com/TanStack/db/pull/161))
536
537 Implemented a utility exposure pattern for TanStack DB collections that allows utility functions to be passed as part of collection options and exposes them under a `.utils` namespace, with full TypeScript typing.
538 - Refactored `createCollection` in packages/db/src/collection.ts to accept options with utilities directly
539 - Added `utils` property to CollectionImpl
540 - Added TypeScript types for utility functions and utility records
541 - Changed Collection from a class to a type, updating all usages to use createCollection() instead
542 - Updated Electric/Query implementations
543 - Utilities are now ergonomically accessible under `.utils`
544 - Full TypeScript typing is preserved for both collection data and utilities
545 - API is clean and straightforward - users can call `createCollection(optionsCreator(config))` directly
546 - Zero-boilerplate TypeScript pattern that infers utility types automatically
547
548- Updated dependencies [[`8b43ad3`](https://github.com/TanStack/db/commit/8b43ad305b277560aed660c31cf1409d22ed1e47)]:
549 - @tanstack/db@0.0.7
550
551## 0.0.6
552
553### Patch Changes
554
555- Updated dependencies [[`856be72`](https://github.com/TanStack/db/commit/856be725a6299374a3a97c88b50bd5d7bb94b783), [`0455e27`](https://github.com/TanStack/db/commit/0455e27f50d69b1e1887b841dc2f262f4de4c55d), [`80fdac7`](https://github.com/TanStack/db/commit/80fdac76389ea741f5743bc788df375f63fb767b)]:
556 - @tanstack/db@0.0.6
557
558## 0.0.5
559
560### Patch Changes
561
562- Collections must have a getId function & use an id for update/delete operators ([#134](https://github.com/TanStack/db/pull/134))
563
564- the `keyBy` query operator has been removed, keying withing the query pipeline is now automatic ([#144](https://github.com/TanStack/db/pull/144))
565
566- Updated dependencies [[`1fbb844`](https://github.com/TanStack/db/commit/1fbb8447d8425d37cb9ab4f078ffab999b28b06c), [`338efc2`](https://github.com/TanStack/db/commit/338efc229c3794da5ac373b8b26143e379433407), [`ee5d026`](https://github.com/TanStack/db/commit/ee5d026715962dd0232fcaca513a8fac9189dce2), [`e7b036c`](https://github.com/TanStack/db/commit/e7b036ce6ebd17c94cc944d6d96ca2c645921c3e), [`e4feb0c`](https://github.com/TanStack/db/commit/e4feb0c214835675b47f0aa18a72d004a423df03)]:
567 - @tanstack/db@0.0.5
568
569## 0.0.4
570
571### Patch Changes
572
573- Updated dependencies [[`8ce449e`](https://github.com/TanStack/db/commit/8ce449ed6d070e9e591d1b74b0db5fed7a3fc92f)]:
574 - @tanstack/db@0.0.4
575
576## 0.0.3
577
578### Patch Changes
579
580- Updated dependencies [[`b29420b`](https://github.com/TanStack/db/commit/b29420bcdae30dfeffeef63a8753b83306a54e5a)]:
581 - @tanstack/db@0.0.3
582
583## 0.0.2
584
585### Patch Changes
586
587- Fixed an issue with injecting the optimistic state removal into the reactive live query. ([#78](https://github.com/TanStack/db/pull/78))
588
589- Updated dependencies [[`4c82edb`](https://github.com/TanStack/db/commit/4c82edb9547f26c9de44f5bf43d4385c38920672)]:
590 - @tanstack/db@0.0.2
591
592## 0.0.3
593
594### Patch Changes
595
596- Make transactions first class & move ownership of mutationFn from collections to transactions ([#53](https://github.com/TanStack/db/pull/53))
597
598- Updated dependencies [[`b42479c`](https://github.com/TanStack/db/commit/b42479cf95f9a820b36e01684b13a9179973f3d8)]:
599 - @tanstack/db@0.0.3
600
601## 0.0.2
602
603### Patch Changes
604
605- make mutationFn optional for read-only collections ([#12](https://github.com/TanStack/db/pull/12))
606
607- Updated dependencies [[`9bb6e89`](https://github.com/TanStack/db/commit/9bb6e8909cebdcd7c03091bfc12dd37f5ab2e1ea), [`8eb7e9b`](https://github.com/TanStack/db/commit/8eb7e9b1d1f569c5c064e0f440257589486b73cf)]:
608 - @tanstack/db@0.0.2
609
610## 0.0.1
611
612### Patch Changes
613
614- feat: Initial release ([#2](https://github.com/TanStack/db/pull/2))
615
616- Updated dependencies [[`2d2dd77`](https://github.com/TanStack/db/commit/2d2dd7743f715ffefaeee8e8d11173b751c7043b)]:
617 - @tanstack/db@0.0.1