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

@hocuspocus/extension-database

Package Overview
Dependencies
Maintainers
5
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 2.3.1 to 2.4.0-rc.0

12

dist/packages/provider/src/HocuspocusProvider.d.ts

@@ -24,4 +24,9 @@ import * as mutex from 'lib0/mutex';

* An Awareness instance to keep the presence state of all clients.
*
* You can disable sharing awareness information by passing `null`.
* Note that having no awareness information shared across all connections will break our ping checks
* and thus trigger reconnects. You should always have at least one Provider with enabled awareness per
* socket connection, or ensure that the Provider receives messages before running into `HocuspocusProviderWebsocket.messageReconnectTimeout`.
*/
awareness: Awareness;
awareness: Awareness | null;
/**

@@ -72,2 +77,5 @@ * A token that’s sent to the backend for authentication purposes.

}
export declare class AwarenessError extends Error {
code: number;
}
export declare class HocuspocusProvider extends EventEmitter {

@@ -99,3 +107,3 @@ configuration: CompleteHocuspocusProviderConfiguration;

get document(): Y.Doc;
get awareness(): Awareness;
get awareness(): Awareness | null;
get hasUnsyncedChanges(): boolean;

@@ -102,0 +110,0 @@ incrementUnsyncedChanges(): void;

2

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

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

/**
* Check if the Document is empty
* Check if the Document (XMLFragment or Map) is empty
*/

@@ -30,0 +30,0 @@ isEmpty(fieldName: string): boolean;

@@ -10,6 +10,9 @@ import { Decoder } from 'lib0/decoding';

/**
* Access to the reply.
* Private encoder; can be undefined.
*
* Lazy creation of the encoder speeds up IncomingMessages that need only a decoder.
*/
encoder: Encoder;
private encoderInternal?;
constructor(input: any);
get encoder(): Encoder;
readVarUint8Array(): Uint8Array;

@@ -16,0 +19,0 @@ readVarUint(): number;

{
"name": "@hocuspocus/extension-database",
"description": "a generic Hocuspocus persistence driver for the database",
"version": "2.3.1",
"version": "2.4.0-rc.0",
"homepage": "https://hocuspocus.dev",

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

"dependencies": {
"@hocuspocus/server": "^2.3.1"
"@hocuspocus/server": "^2.4.0-rc.0"
},

@@ -33,0 +33,0 @@ "peerDependencies": {

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