mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +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",
|
"description": "IndexedDB database adapter for Yjs",
|
||||||
"repository": "toeverything/AFFiNE",
|
"repository": "toeverything/AFFiNE",
|
||||||
"author": "toeverything",
|
"author": "toeverything",
|
||||||
|
"license": "MPL-2.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"indexeddb",
|
"indexeddb",
|
||||||
"yjs",
|
"yjs",
|
||||||
@@ -44,6 +45,6 @@
|
|||||||
"y-indexeddb": "^9.0.11"
|
"y-indexeddb": "^9.0.11"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"yjs": "^13.5.51"
|
"yjs": "^13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,10 +129,6 @@ export const getMilestones = async (
|
|||||||
return milestone.milestone;
|
return milestone.milestone;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* We use `doc.guid` as the unique key, please make sure it not changes.
|
|
||||||
*/
|
|
||||||
|
|
||||||
export * from './provider';
|
export * from './provider';
|
||||||
export * from './shared';
|
export * from './shared';
|
||||||
export * from './utils';
|
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 = (
|
export const createIndexedDBProvider = (
|
||||||
doc: Doc,
|
doc: Doc,
|
||||||
dbName: string = DEFAULT_DB_NAME
|
dbName: string = DEFAULT_DB_NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user