Skip to content

Commit

Permalink
Fix: MissingAPIError("awarenessProtocol was not provided...") when Yj…
Browse files Browse the repository at this point in the history
…s integration isn't used.
  • Loading branch information
David Fahlander committed Oct 14, 2024
1 parent 17e9c1b commit 3166136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/dexie-cloud/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dexie-cloud-addon",
"version": "4.1.0-alpha.3",
"version": "4.1.0-alpha.5",
"description": "Dexie addon that syncs with to Dexie Cloud",
"main": "dist/umd/dexie-cloud-addon.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion addons/dexie-cloud/src/yjs/createYHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import { isEagerSyncDisabled } from '../isEagerSyncDisabled';
type YDoc = import('yjs').Doc;

export function createYHandler(db: DexieCloudDB) {
const awap = getAwarenessLibrary(db);
return (provider: DexieYProvider<YDoc>) => {
const awap = getAwarenessLibrary(db);
const doc = provider.doc;
const { parentTable, parentId, parentProp, updatesTable } =
doc.meta as DexieYDocMeta;
Expand Down

0 comments on commit 3166136

Please sign in to comment.