@hocuspocus/extension-database
Advanced tools
Comparing version 2.0.4 to 2.0.5
import RedisClient, { ClusterNode, ClusterOptions, RedisOptions } from 'ioredis'; | ||
import Redlock from 'redlock'; | ||
import { Document, Extension, afterLoadDocumentPayload, afterStoreDocumentPayload, onDisconnectPayload, onStoreDocumentPayload, onAwarenessUpdatePayload, onChangePayload, Debugger, onConfigurePayload, onListenPayload, beforeBroadcastStatelessPayload } from '@hocuspocus/server'; | ||
import { Extension, afterLoadDocumentPayload, afterStoreDocumentPayload, onDisconnectPayload, onStoreDocumentPayload, onAwarenessUpdatePayload, onChangePayload, Debugger, onConfigurePayload, onListenPayload, beforeBroadcastStatelessPayload, Hocuspocus } from '@hocuspocus/server'; | ||
export type RedisInstance = RedisClient.Cluster | RedisClient.Redis; | ||
@@ -61,3 +61,3 @@ export interface Configuration { | ||
sub: RedisInstance; | ||
documents: Map<string, Document>; | ||
instance: Hocuspocus; | ||
redlock: Redlock; | ||
@@ -112,3 +112,3 @@ locks: Map<string, Redlock.Lock>; | ||
*/ | ||
onDisconnect: ({ document, documentName }: onDisconnectPayload) => Promise<void>; | ||
onDisconnect: ({ documentName }: onDisconnectPayload) => Promise<void>; | ||
beforeBroadcastStateless(data: beforeBroadcastStatelessPayload): Promise<number>; | ||
@@ -115,0 +115,0 @@ /** |
{ | ||
"name": "@hocuspocus/extension-database", | ||
"description": "a generic Hocuspocus persistence driver for the database", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"homepage": "https://hocuspocus.dev", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@hocuspocus/server": "^2.0.4" | ||
"@hocuspocus/server": "^2.0.5" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66724
Updated@hocuspocus/server@^2.0.5