Skip to content

Commit

Permalink
docs: update indexeddb document (#4084)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored and pull[bot] committed Nov 14, 2023
1 parent eacee87 commit ec401da
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/y-indexeddb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ downloadBinary(yDoc.guid).then(blob => {
}
});
```

## LICENSE

[MPL-2.0](https://github.com/toeverything/AFFiNE/blob/master/LICENSE-MPL2.0)
3 changes: 2 additions & 1 deletion packages/y-indexeddb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "IndexedDB database adapter for Yjs",
"repository": "toeverything/AFFiNE",
"author": "toeverything",
"license": "MPL-2.0",
"keywords": [
"indexeddb",
"yjs",
Expand Down Expand Up @@ -44,6 +45,6 @@
"y-indexeddb": "^9.0.11"
},
"peerDependencies": {
"yjs": "^13.5.51"
"yjs": "^13"
}
}
4 changes: 0 additions & 4 deletions packages/y-indexeddb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ export const getMilestones = async (
return milestone.milestone;
};

/**
* We use `doc.guid` as the unique key, please make sure it not changes.
*/

export * from './provider';
export * from './shared';
export * from './utils';
3 changes: 3 additions & 0 deletions packages/y-indexeddb/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export const createIndexedDBDatasource = ({
};
};

/**
* We use `doc.guid` as the unique key, please make sure it not changes.
*/
export const createIndexedDBProvider = (
doc: Doc,
dbName: string = DEFAULT_DB_NAME
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12769,7 +12769,7 @@ __metadata:
vite-plugin-dts: 3.5.2
y-indexeddb: ^9.0.11
peerDependencies:
yjs: ^13.5.51
yjs: ^13
languageName: unknown
linkType: soft

Expand Down

0 comments on commit ec401da

Please sign in to comment.