@hocuspocus/extension-sqlite 1.0.0-alpha.17 → 1.0.0-alpha.18

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.
@@ -75,7 +75,7 @@ export declare class Redis implements Extension {
75
75
  /**
76
76
  * Handle awareness update messages received directly by this Hocuspocus instance.
77
77
  */
78
- onAwarenessUpdate({ documentName, awareness }: onAwarenessUpdatePayload): Promise<number>;
78
+ onAwarenessUpdate({ documentName, awareness, added, updated, removed, }: onAwarenessUpdatePayload): Promise<number>;
79
79
  /**
80
80
  * Handle incoming messages published on all subscribed document channels.
81
81
  * Note that this will also include messages from ourselves as it is not possible
@@ -110,6 +110,7 @@ export declare class HocuspocusProvider extends EventEmitter {
110
110
  shouldConnect: boolean;
111
111
  status: WebSocketStatus;
112
112
  isSynced: boolean;
113
+ unsyncedChanges: number;
113
114
  isAuthenticated: boolean;
114
115
  lastMessageReceived: number;
115
116
  mux: mutex.mutex;
@@ -128,6 +129,7 @@ export declare class HocuspocusProvider extends EventEmitter {
128
129
  rejectConnectionAttempt(): void;
129
130
  get document(): Y.Doc;
130
131
  get awareness(): Awareness;
132
+ get hasUnsyncedChanges(): boolean;
131
133
  checkConnection(): void;
132
134
  forceSync(): void;
133
135
  boundBeforeUnload: () => void;
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": "1.0.0-alpha.17",
4
+ "version": "1.0.0-alpha.18",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
7
7
  "hocuspocus",
@@ -26,7 +26,7 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@hocuspocus/extension-database": "^1.0.0-alpha.17",
29
+ "@hocuspocus/extension-database": "^1.0.0-alpha.18",
30
30
  "kleur": "^4.1.4",
31
31
  "sqlite3": "^5.0.2"
32
32
  },
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "@types/sqlite3": "^3.1.8"
38
38
  },
39
- "gitHead": "af278e7c5d91c74afefd9234379c8179c8b91e6d"
39
+ "gitHead": "02845d914742af88c8ef034adf072fcaadb48208"
40
40
  }