Dexie v4.0.1-alpha.10
Pre-releaseBetter SSR support for NextJS and SvelteKit
This release (and related dexie-react-hooks release) comes with better behavior of liveQuery(). useLiveQuery() and useObservable() in SSR environments, as it makes sure that calling these from a node runtime without any indexedDB envirnomnent will result in a no-op. The result: Use these tools the same in Next.js as in vanilla React and in SvelteKIT as in vanilla Svelte - no need to check for SSR in application code anymore and no need to dynamically imported components doing dexie queries.
We also fixed the typings of our Observables returned from liveQuery() to be type-compatible with Svelte Readables (this was an issue when consuming liveQuery()
results in Svelte using typescript).
Svelte users should install this prerelase of dexie instead of the stable version, but NextJS users may stay on the stable version of dexie if they prefer, and just upgrade dexie-react-hooks.
Full Next.js Support
- Fixed more node errors that prevented nextjs SSR 19cdf0b
- Better nextjs support for useLiveQuery(): 39484a3
- Allow normal import of dexie-cloud-addon in nextjs: e18ee07
Full SvelteKit Support
- #1691 Sveltekit fixes
Other fixes
- Fix transaction typings #1685
We've also released...
[email protected]
- Better nextjs support for useLiveQuery(): 39484a3
[email protected]
- move rxjs deps out from peerDependencies and into ordinary dependencies
- #1675 Dexie Cloud and NextJS improvements
- #1691 Sveltekit fixes
[email protected]
- progressCallback Problem? #1678