@hocuspocus/extension-redis 2.12.3 → 2.13.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.
|
@@ -26,6 +26,7 @@ export declare const defaultConfiguration: {
|
|
|
26
26
|
*/
|
|
27
27
|
export declare class Hocuspocus {
|
|
28
28
|
configuration: Configuration;
|
|
29
|
+
loadingDocuments: Map<string, Promise<Document>>;
|
|
29
30
|
documents: Map<string, Document>;
|
|
30
31
|
server?: HocuspocusServer;
|
|
31
32
|
debugger: Debugger;
|
|
@@ -87,6 +88,7 @@ export declare class Hocuspocus {
|
|
|
87
88
|
* Create a new document by the given request
|
|
88
89
|
*/
|
|
89
90
|
createDocument(documentName: string, request: Partial<Pick<IncomingMessage, 'headers' | 'url'>>, socketId: string, connection: ConnectionConfiguration, context?: any): Promise<Document>;
|
|
91
|
+
loadDocument(documentName: string, request: Partial<Pick<IncomingMessage, 'headers' | 'url'>>, socketId: string, connection: ConnectionConfiguration, context?: any): Promise<Document>;
|
|
90
92
|
storeDocumentHooks(document: Document, hookPayload: onStoreDocumentPayload): Promise<void>;
|
|
91
93
|
/**
|
|
92
94
|
* Run the given hook on all configured extensions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hocuspocus/extension-redis",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "Scale Hocuspocus horizontally with Redis",
|
|
5
5
|
"homepage": "https://hocuspocus.dev",
|
|
6
6
|
"keywords": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/redlock": "^4.0.3"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@hocuspocus/server": "^2.
|
|
36
|
+
"@hocuspocus/server": "^2.13.0",
|
|
37
37
|
"ioredis": "^4.28.2",
|
|
38
38
|
"kleur": "^4.1.4",
|
|
39
39
|
"lodash.debounce": "^4.0.8",
|