@tanstack/db 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/db",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "A reactive client store for building super fast apps on sync",
5
5
  "author": "Kyle Mathews",
6
6
  "license": "MIT",
@@ -286,7 +286,8 @@ const messagesWithContent = createLiveQueryCollection((q) =>
286
286
  ### Includes rules
287
287
 
288
288
  - The subquery **must** have a `where` clause with an `eq()` correlating a parent alias with a child alias. The library extracts this automatically as the join condition.
289
- - `toArray()` and `concat(toArray())` require the subquery to use a **scalar** `select` (e.g., `select(({ c }) => c.text)`), not an object select.
289
+ - `toArray()` works with both scalar selects (e.g., `select(({ c }) => c.text)` `string[]`) and object selects (e.g., `select(({ c }) => ({ id: c.id, title: c.title }))` `Array<{id, title}>`).
290
+ - `concat(toArray())` requires a **scalar** `select` to concatenate into a string.
290
291
  - Collection includes (bare subquery) require an **object** `select`.
291
292
  - Includes subqueries are compiled into the same incremental pipeline as the parent query -- they are not separate live queries.
292
293