This is a maintenance release that resolves a bug in useLiveQuery caching and includes a TypeScript typing enhancement.
Related Package Releases
| Package | Version |
|---|---|
| dexie | 4.4.4 |
| dexie-cloud-addon | 4.4.13 (no change) |
| dexie-react-hooks | 4.4.0 (no change) |
| y-dexie | 4.4.0 (no change) |
Bug Fixes
dexie@4.4.4
- fix:
useLiveQueryfails to detect updates when mutating queried objects in-place and callingput()— In default/cloned cache mode (cache: 'cloned'), mutating queried objects in-place and subsequently callingput()on them would pollute the cache directly, preventing subsequent live-queries from detecting the change because the "before" and "after" states in the cache became identical. Live-queries now deeply clone results on read to completely isolate query results from in-place consumer mutations. (#2310). Reported in #2309 by @laukaichung. Fixed by @liz709 and @dfahlander .
Other Changes
dexie@4.4.4
- fix: typescript typings - add missing table4 parameter to transaction method — Added the missing
table4parameter to the typescript type definition ofDexie.transaction(), aligning it with other table parameters. Contributed by @renbaoshuo (#2311)