@hocuspocus/extension-sqlite 2.0.4 → 2.0.6

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.
@@ -1,6 +1,6 @@
1
1
  import RedisClient, { ClusterNode, ClusterOptions, RedisOptions } from 'ioredis';
2
2
  import Redlock from 'redlock';
3
- import { Document, Extension, afterLoadDocumentPayload, afterStoreDocumentPayload, onDisconnectPayload, onStoreDocumentPayload, onAwarenessUpdatePayload, onChangePayload, Debugger, onConfigurePayload, onListenPayload, beforeBroadcastStatelessPayload } from '@hocuspocus/server';
3
+ import { Extension, afterLoadDocumentPayload, afterStoreDocumentPayload, onDisconnectPayload, onStoreDocumentPayload, onAwarenessUpdatePayload, onChangePayload, Debugger, onConfigurePayload, onListenPayload, beforeBroadcastStatelessPayload, Hocuspocus } from '@hocuspocus/server';
4
4
  export type RedisInstance = RedisClient.Cluster | RedisClient.Redis;
5
5
  export interface Configuration {
6
6
  /**
@@ -58,7 +58,7 @@ export declare class Redis implements Extension {
58
58
  configuration: Configuration;
59
59
  pub: RedisInstance;
60
60
  sub: RedisInstance;
61
- documents: Map<string, Document>;
61
+ instance: Hocuspocus;
62
62
  redlock: Redlock;
63
63
  locks: Map<string, Redlock.Lock>;
64
64
  logger: Debugger;
@@ -108,7 +108,7 @@ export declare class Redis implements Extension {
108
108
  * Make sure to *not* listen for further changes, when there’s
109
109
  * noone connected anymore.
110
110
  */
111
- onDisconnect: ({ document, documentName }: onDisconnectPayload) => Promise<void>;
111
+ onDisconnect: ({ documentName }: onDisconnectPayload) => Promise<void>;
112
112
  beforeBroadcastStateless(data: beforeBroadcastStatelessPayload): Promise<number>;
113
113
  /**
114
114
  * Kill the Redlock connection immediately.
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.0.4",
4
+ "version": "2.0.6",
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": "^2.0.4",
29
+ "@hocuspocus/extension-database": "^2.0.6",
30
30
  "kleur": "^4.1.4",
31
31
  "sqlite3": "^5.0.11"
32
32
  },