@hocuspocus/provider
Advanced tools
Comparing version 2.4.0 to 2.5.0-rc.0
@@ -12,4 +12,4 @@ import Document from './Document.js'; | ||
constructor(document: Document, instance: Hocuspocus, context?: any); | ||
transact(transaction: (document: Document) => void): Promise<void>; | ||
transact(transaction: (document: Document) => void, transactionOrigin?: any): Promise<void>; | ||
disconnect(): void; | ||
} |
@@ -22,2 +22,3 @@ /// <reference types="node" /> | ||
}; | ||
unloadImmediately: boolean; | ||
}; | ||
@@ -76,2 +77,5 @@ /** | ||
* Handle update of the given document | ||
* | ||
* "connection" is not necessarily type "Connection", it's the Yjs "origin" (which is "Connection" if | ||
* the update is incoming from the provider, but can be anything if the updates is originated from an extension. | ||
*/ | ||
@@ -78,0 +82,0 @@ private handleDocumentUpdate; |
@@ -112,2 +112,10 @@ /// <reference types="node" /> | ||
/** | ||
* If set to false, respects the debounce time of `onStoreDocument` before unloading a document. | ||
* Otherwise, the document will be unloaded immediately. | ||
* | ||
* This prevents a client from DOSing the server by repeatedly connecting and disconnecting when | ||
* your onStoreDocument is rate-limited. | ||
*/ | ||
unloadImmediately: boolean; | ||
/** | ||
* options to pass to the ydoc document | ||
@@ -194,2 +202,3 @@ */ | ||
socketId: string; | ||
transactionOrigin: any; | ||
} | ||
@@ -222,2 +231,3 @@ export interface beforeHandleMessagePayload { | ||
socketId: string; | ||
transactionOrigin?: any; | ||
} | ||
@@ -224,0 +234,0 @@ export interface afterStoreDocumentPayload extends onStoreDocumentPayload { |
{ | ||
"name": "@hocuspocus/provider", | ||
"version": "2.4.0", | ||
"version": "2.5.0-rc.0", | ||
"description": "hocuspocus provider", | ||
@@ -32,3 +32,3 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/common": "^2.4.0", | ||
"@hocuspocus/common": "^2.5.0-rc.0", | ||
"@lifeomic/attempt": "^3.0.2", | ||
@@ -35,0 +35,0 @@ "lib0": "^0.2.47", |
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
741506
8430
1