Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hocuspocus/extension-database

Package Overview
Dependencies
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocuspocus/extension-database - npm Package Compare versions

Comparing version 1.0.0-alpha.16 to 1.0.0-alpha.17

6

dist/packages/extension-redis/src/Redis.d.ts
import RedisClient from 'ioredis';
import Redlock from 'redlock';
import { Document, Extension, afterLoadDocumentPayload, afterStoreDocumentPayload, onDisconnectPayload, onStoreDocumentPayload, onAwarenessUpdatePayload, Debugger, onConfigurePayload, onListenPayload } from '@hocuspocus/server';
import { Document, Extension, afterLoadDocumentPayload, afterStoreDocumentPayload, onDisconnectPayload, onStoreDocumentPayload, onAwarenessUpdatePayload, onChangePayload, Debugger, onConfigurePayload, onListenPayload } from '@hocuspocus/server';
export interface Configuration {

@@ -86,2 +86,6 @@ /**

/**
* if the ydoc changed, we'll need to inform other Hocuspocus servers about it.
*/
onChange(data: onChangePayload): Promise<any>;
/**
* Make sure to *not* listen for further changes, when there’s

@@ -88,0 +92,0 @@ * noone connected anymore.

@@ -123,2 +123,3 @@ import * as Y from 'yjs';

setConfiguration(configuration?: Partial<HocuspocusProviderConfiguration>): void;
boundConnect: () => Promise<void>;
connect(): Promise<void>;

@@ -133,2 +134,4 @@ createWebSocketConnection(): Promise<unknown>;

forceSync(): void;
boundBeforeUnload: () => void;
beforeUnload(): void;
registerEventListeners(): void;

@@ -153,2 +156,3 @@ documentUpdateHandler(update: Uint8Array, origin: any): void;

get broadcastChannel(): string;
boundBroadcastChannelSubscriber: (data: ArrayBuffer) => void;
broadcastChannelSubscriber(data: ArrayBuffer): void;

@@ -155,0 +159,0 @@ subscribeToBroadcastChannel(): void;

2

dist/packages/server/src/Document.d.ts

@@ -22,3 +22,3 @@ import WebSocket from 'ws';

*/
constructor(name: string, logger: Debugger);
constructor(name: string, logger: Debugger, yDocOptions: {});
/**

@@ -25,0 +25,0 @@ * Check if the Document is empty

@@ -15,2 +15,6 @@ /// <reference types="node" />

quiet: boolean;
yDocOptions: {
gc: boolean;
gcFilter: () => boolean;
};
};

@@ -17,0 +21,0 @@ /**

@@ -11,4 +11,4 @@ import { Awareness } from 'y-protocols/awareness';

apply(document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): void;
readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): 0 | 2 | 1;
readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): 0 | 2 | 1;
applyQueryAwarenessMessage(awareness: Awareness, reply?: (message: Uint8Array) => void): void;
}

@@ -10,2 +10,3 @@ import { Encoder } from 'lib0/encoding';

createSyncMessage(): OutgoingMessage;
createSyncReplyMessage(): OutgoingMessage;
createAwarenessUpdateMessage(awareness: Awareness, changedClients?: Array<any>): OutgoingMessage;

@@ -12,0 +13,0 @@ writeQueryAwareness(): OutgoingMessage;

@@ -12,3 +12,4 @@ /// <reference types="node" />

Auth = 2,
QueryAwareness = 3
QueryAwareness = 3,
SyncReply = 4
}

@@ -84,2 +85,9 @@ export interface AwarenessUpdate {

/**
* options to pass to the ydoc document
*/
yDocOptions: {
gc: boolean;
gcFilter: () => boolean;
};
/**
* Function which returns the (customized) document name based on the request

@@ -86,0 +94,0 @@ */

{
"name": "@hocuspocus/extension-database",
"description": "a generic Hocuspocus persistence driver for the database",
"version": "1.0.0-alpha.16",
"version": "1.0.0-alpha.17",
"homepage": "https://hocuspocus.dev",

@@ -29,3 +29,3 @@ "keywords": [

"dependencies": {
"@hocuspocus/server": "^1.0.0-alpha.102",
"@hocuspocus/server": "^1.0.0-alpha.103",
"yjs": "^13.5.29"

@@ -36,3 +36,3 @@ },

},
"gitHead": "450e12c89b027bc62683f151330a98074cd8e8fb"
"gitHead": "af278e7c5d91c74afefd9234379c8179c8b91e6d"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc