There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
docs: update indexeddb document (#4084)
Alex Yang06d5ecd59752
diff --git a/packages/y-indexeddb/README.md b/packages/y-indexeddb/README.mdindex 70ee0fa8de..d3f56096b9 100644--- a/packages/y-indexeddb/README.md+++ b/packages/y-indexeddb/README.md@@ -32,3 +32,7 @@ downloadBinary(yDoc.guid).then(blob => {}});```++## LICENSE++[MPL-2.0](https://github.com/toeverything/AFFiNE/blob/master/LICENSE-MPL2.0)diff --git a/packages/y-indexeddb/package.json b/packages/y-indexeddb/package.jsonindex f60e9f9fff..1e7b54df49 100644--- a/packages/y-indexeddb/package.json+++ b/packages/y-indexeddb/package.json@@ -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"}}diff --git a/packages/y-indexeddb/src/index.ts b/packages/y-indexeddb/src/index.tsindex b30169f121..396cf8dcbc 100644--- a/packages/y-indexeddb/src/index.ts+++ b/packages/y-indexeddb/src/index.ts@@ -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';diff --git a/packages/y-indexeddb/src/provider.ts b/packages/y-indexeddb/src/provider.tsindex d0ca4640fa..1c7fd9e624 100644--- a/packages/y-indexeddb/src/provider.ts+++ b/packages/y-indexeddb/src/provider.ts@@ -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_NAMEdiff --git a/yarn.lock b/yarn.lockindex af3411783a..930477efd1 100644--- a/yarn.lock+++ b/yarn.lock@@ -12769,7 +12769,7 @@ __metadata:vite-plugin-dts: 3.5.2y-indexeddb: ^9.0.11peerDependencies:- yjs: ^13.5.51+ yjs: ^13languageName: unknownlinkType: soft