@hocuspocus/extension-database
Advanced tools
Comparing version 2.3.1 to 2.4.0-rc.0
@@ -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; |
@@ -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": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
72282
1893
1