@hocuspocus/extension-sqlite 2.10.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,7 +45,7 @@ export declare class TiptapCollabProvider extends HocuspocusProvider {
45
45
  private getThreadIndex;
46
46
  getThread<Data, CommentData>(id: string): TCollabThread<Data, CommentData> | null;
47
47
  private getYThread;
48
- createThread(data: Omit<TCollabThread, '_id' | 'createdAt' | 'updatedAt' | 'comments'>): TCollabThread | null;
48
+ createThread(data: Omit<TCollabThread, 'id' | 'createdAt' | 'updatedAt' | 'comments'>): TCollabThread | null;
49
49
  updateThread(id: TCollabThread['id'], data: Partial<Pick<TCollabThread, 'data' | 'resolvedAt'>>): TCollabThread | null;
50
50
  deleteThread(id: TCollabThread['id']): void;
51
51
  getThreadComments(threadId: TCollabThread['id']): TCollabComment[] | null;
@@ -87,7 +87,7 @@ export declare class Document extends Doc {
87
87
  /**
88
88
  * Broadcast stateless message to all connections
89
89
  */
90
- broadcastStateless(payload: string): void;
90
+ broadcastStateless(payload: string, filter?: (conn: Connection) => boolean): void;
91
91
  destroy(): void;
92
92
  }
93
93
  export default Document;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hocuspocus/extension-sqlite",
3
3
  "description": "a generic Hocuspocus persistence driver for the sqlite",
4
- "version": "2.10.0",
4
+ "version": "2.11.0",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
7
7
  "hocuspocus",
@@ -27,7 +27,7 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@hocuspocus/extension-database": "^2.10.0",
30
+ "@hocuspocus/extension-database": "^2.11.0",
31
31
  "kleur": "^4.1.4",
32
32
  "sqlite3": "^5.0.11"
33
33
  },