mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
docs: update indexeddb document (#4084)
This commit is contained in:
@@ -32,3 +32,7 @@ downloadBinary(yDoc.guid).then(blob => {
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
## LICENSE
|
||||
|
||||
[MPL-2.0](https://github.com/toeverything/AFFiNE/blob/master/LICENSE-MPL2.0)
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"description": "IndexedDB database adapter for Yjs",
|
||||
"repository": "toeverything/AFFiNE",
|
||||
"author": "toeverything",
|
||||
"license": "MPL-2.0",
|
||||
"keywords": [
|
||||
"indexeddb",
|
||||
"yjs",
|
||||
@@ -44,6 +45,6 @@
|
||||
"y-indexeddb": "^9.0.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"yjs": "^13.5.51"
|
||||
"yjs": "^13"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user