Dexie v4.2.0-rc.1
Release Candidate of dexie@4.2
In contrast to previous 4.1.x betas, we've extracted the Y.js support from the "dexie" package into "y-dexie".
Migration from 4.1.x-beta
Only if the experimental Y.js support from 4.1.x beta was used, a migration is needed:
npm install y-dexie- Instead of
import { DexieYProvider } from 'dexie'-->import { DexieYProvider } from 'y-dexie' - Instead of
DexieyYProvider<Y.Doc>-->DexieYProvider. - No need to pass
Yto Dexie constructor, but instead, pass theyDexieaddon:
With dexieCloud addon, make sure to pass yDexie first:import yDexie from 'y-dexie'; ... const db = new Dexie('foo', { addons: [yDexie] });{ addons: [yDexie, dexieCloud] } - Declare Y.Doc properties as
prop:Y.Docinstead of justprop:Ydb.version(1).stores({ friends: ` ++id, name, age, friendNotes: Y.Doc` // where friendNotes holds the Y.Doc instance });
If you need a sample PR of these changes, have a look at https://github.com/dexie/dexie-cloud-starter/pull/8
What's Changed since 4.1.0-beta.43
- New npm package "y-dexie" and removed the Y.js code from the "dexie" library. https://github.com/dexie/Dexie.js/pull/2180
- Fix Named Export 'Dexie' Not Found in Production with Vite/Vinxi by @thijssmudde in https://github.com/dexie/Dexie.js/pull/2155
- fix: 'Dexie' Not Found in Production with Vite/Vinxi dexie-react-hooks by @Contraboi in https://github.com/dexie/Dexie.js/pull/2162
New Contributors
- @thijssmudde made their first contribution in https://github.com/dexie/Dexie.js/pull/2155
- @davbl made their first contribution in https://github.com/dexie/Dexie.js/pull/2165
- @Contraboi made their first contribution in https://github.com/dexie/Dexie.js/pull/2162
Full Changelog: https://github.com/dexie/Dexie.js/compare/19a17782f51186c7d0ac00bd18fbc66124429dca...a572b5748e77108b9a4ee010cc19a77e20415bf3