npm dexie 4.0.1-alpha.10
Dexie v4.0.1-alpha.10

latest releases: 4.1.0-beta.43, 4.0.11, 4.1.0-alpha.23...
23 months ago

Better 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

Other fixes

  • Fix transaction typings #1685

We've also released...

dexie-react-hooks@1.1.3

  • Better nextjs support for useLiveQuery(): 39484a3

dexie-cloud-addon@4.0.1-beta.33

  • move rxjs deps out from peerDependencies and into ordinary dependencies
  • #1675 Dexie Cloud and NextJS improvements
  • #1691 Sveltekit fixes

dexie-export-import@4.0.7

  • progressCallback Problem? #1678

Don't miss a new dexie release

NewReleases is sending notifications on new releases.