@hocuspocus/extension-throttle
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-throttle", | ||
"version": "2.3.1", | ||
"version": "2.4.0-rc.0", | ||
"description": "hocuspocus throttle extension", | ||
@@ -31,5 +31,5 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^2.3.1" | ||
"@hocuspocus/server": "^2.4.0-rc.0" | ||
}, | ||
"gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
84378
2004
1