@tanstack/db-ivm#
0.1.18#
Patch Changes#
- Fix Temporal objects breaking live query updates when used with joins. Temporal objects (e.g.
Temporal.PlainDate) have no enumerable properties, so the structural hash function produced identical hashes for all Temporal values, causing join index updates to be silently swallowed. Also add Temporal support to value normalization for join key matching and to the comparator for correct sort ordering. (#1370)
0.1.17#
Patch Changes#
- Add string support to
min()andmax()aggregate functions. These functions now work with strings using lexicographic comparison, matching standard SQL behavior. (#1120)
0.1.16#
Patch Changes#
- Add
groupedOrderByWithFractionalIndexoperator. This operator groups elements by a providedgroupKeyFnand applies ordering and limits independently to each group. Each group maintains its own sorted collection with independent limit/offset, which is useful for hierarchical data projections where child collections need to enforce limits within each parent's slice of the stream rather than across the entire dataset. (#997)
0.1.15#
Patch Changes#
- Adds a GroupedTopKWithFractionalIndexOperator that maintains separate topK windows for each group. (#993)
0.1.14#
Patch Changes#
Use row keys for stable tie-breaking in ORDER BY operations instead of hash-based object IDs. (#957)
Previously, when multiple rows had equal ORDER BY values, tie-breaking used
globalObjectIdGenerator.getId(key)which could produce hash collisions and wasn't stable across page reloads for object references. Now, the row key (which is alwaysstring | numberand unique per row) is used directly for tie-breaking, ensuring deterministic and stable ordering.This also simplifies the internal
TaggedValuetype from a 3-tuple[K, V, Tag]to a 2-tuple[K, V], removing unnecessary complexity.
0.1.13#
Patch Changes#
Fix Uint8Array/Buffer comparison to work by content instead of reference. This enables proper equality checks for binary IDs like ULIDs in WHERE clauses using the
eqfunction. (#779)Fix bug with setWindow on ordered queries that have no limit. (#763)
0.1.12#
Patch Changes#
- Fix bug with setWindow on ordered queries that have no limit. (#701)
0.1.11#
Patch Changes#
Add
utils.setWindow()method to live query collections to dynamically change limit and offset on ordered queries. (#663)You can now change the pagination window of an ordered live query without recreating the collection:
const users = createLiveQueryCollection((q) => q .from({ user: usersCollection }) .orderBy(({ user }) => user.name, 'asc') .limit(10) .offset(0), ) users.utils.setWindow({ offset: 10, limit: 10 })
0.1.10#
Patch Changes#
- Redesign of the join operators with direct algorithms for major performance improvements by replacing composition-based joins (inner+anti) with implementation using mass tracking. Delivers significant performance gains while maintaining full correctness for all join types (inner, left, right, full, anti). (#571)
0.1.9#
Patch Changes#
- Add support for Date objects to min/max aggregates and range queries when using an index. (#428)
0.1.8#
Patch Changes#
Fix a bug with distinct operator (#564)
Change the ivm indexes to use a three level
key->prefix->hash->valuestructure, only falling back to structural hashing when there are multiple values for a single prefix. This removes all hashing during the initial run of a query delivering a 2-3x speedup. (#549)
0.1.7#
Patch Changes#
- Fix memory leak that results in linear memory growth with incremental changes over time. Thanks to @sorenbs for finding and fixing this. (#550)
0.1.6#
Patch Changes#
- optimise key loading into query graph (#526)
0.1.5#
Patch Changes#
- Fix bug where different numbers would hash to the same value. This caused distinct not to work properly. (#525)
0.1.4#
Patch Changes#
- Check typeof Buffer before instanceof to avoid ReferenceError in browsers (#519)
0.1.3#
Patch Changes#
fix count aggregate function (evaluate only not null field values like SQL count) (#453)
Hybrid index implementation to track values and their multiplicities (#489)
Replace JSON.stringify based hash function by structural hashing function. (#491)
0.1.2#
Patch Changes#
Optimize order by to lazily load ordered data if a range index is available on the field that is being ordered on. (#410)
Optimize joins to use index on the join key when available. (#335)
0.1.1#
Patch Changes#
- Fix bug with orderBy that resulted in query results having less rows than the configured limit. (#405)
0.1.0#
Minor Changes#
- 0.1 release - first beta π (#332)
Patch Changes#
- 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)