@hocuspocus/extension-redis
Advanced tools
Comparing version 1.0.0-beta.6 to 1.0.0-beta.7
@@ -11,2 +11,3 @@ /// <reference types="node" /> | ||
port: number; | ||
address: string; | ||
timeout: number; | ||
@@ -13,0 +14,0 @@ debounce: number; |
@@ -33,6 +33,2 @@ /// <reference types="node" /> | ||
onAuthenticate?(data: onAuthenticatePayload): Promise<any>; | ||
/** | ||
* @deprecated onCreateDocument is deprecated, use onLoadDocument instead | ||
*/ | ||
onCreateDocument?(data: onLoadDocumentPayload): Promise<any>; | ||
onLoadDocument?(data: onLoadDocumentPayload): Promise<any>; | ||
@@ -49,7 +45,3 @@ afterLoadDocument?(data: onLoadDocumentPayload): Promise<any>; | ||
} | ||
export declare type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | | ||
/** | ||
* @deprecated onCreateDocument is deprecated, use onLoadDocument instead | ||
*/ | ||
'onCreateDocument' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'onDestroy'; | ||
export declare type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'onDestroy'; | ||
export declare type HookPayload = onConfigurePayload | onListenPayload | onUpgradePayload | onConnectPayload | connectedPayload | onAuthenticatePayload | onLoadDocumentPayload | onChangePayload | onStoreDocumentPayload | afterStoreDocumentPayload | onAwarenessUpdatePayload | onRequestPayload | onDisconnectPayload | onDestroyPayload; | ||
@@ -68,4 +60,8 @@ export interface Configuration extends Extension { | ||
*/ | ||
port: number | null; | ||
port?: number; | ||
/** | ||
* The address which the server listens on. | ||
*/ | ||
address?: string; | ||
/** | ||
* Defines in which interval the server sends a ping, and closes the connection when no pong is sent back. | ||
@@ -72,0 +68,0 @@ */ |
import { Hocuspocus, Configuration } from '@hocuspocus/server'; | ||
export declare const newHocuspocus: (options?: Partial<Configuration> | undefined) => Hocuspocus; | ||
export declare const newHocuspocus: (options?: Partial<Configuration> | undefined) => Promise<Hocuspocus>; |
{ | ||
"name": "@hocuspocus/extension-redis", | ||
"version": "1.0.0-beta.6", | ||
"version": "1.0.0-beta.7", | ||
"description": "Scale Hocuspocus horizontally with Redis", | ||
@@ -35,3 +35,3 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^1.0.0-beta.6", | ||
"@hocuspocus/server": "^1.0.0-beta.7", | ||
"ioredis": "^4.28.2", | ||
@@ -41,3 +41,3 @@ "kleur": "^4.1.4", | ||
"redlock": "^4.2.0", | ||
"uuid": "^8.3.2" | ||
"uuid": "^9.0.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "peerDependencies": { |
107454
2178
- Removeduuid@8.3.2(transitive)
Updateduuid@^9.0.0