@hocuspocus/extension-database 1.0.0-alpha.18 → 1.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/packages/server/src/Connection.d.ts +7 -0
- package/dist/packages/server/src/Document.d.ts +1 -0
- package/dist/tests/{extension-rocksdb/onLoadDocument.d.ts → server/websocketError.d.ts} +0 -0
- package/dist/tests/utils/retryableAssertion.d.ts +2 -0
- package/package.json +3 -3
- package/dist/packages/extension-rocksdb/src/index.d.ts +0 -22
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/sponsors/ueberdosis)
|
|
6
6
|
|
|
7
7
|
## Introduction
|
|
8
|
-
hocuspocus is an opinionated collaborative editing backend for [
|
|
8
|
+
hocuspocus is an opinionated collaborative editing backend for [Tiptap](https://github.com/ueberdosis/tiptap) – based on [Y.js](https://github.com/yjs/yjs), a CRDT framework with a powerful abstraction of shared data.
|
|
9
9
|
|
|
10
10
|
## Offical Documentation
|
|
11
11
|
Documentation can be found in the [GitHub repository](https://github.com/ueberdosis/hocuspocus).
|
|
@@ -49,6 +49,13 @@ export declare class Connection {
|
|
|
49
49
|
* @private
|
|
50
50
|
*/
|
|
51
51
|
private handleMessage;
|
|
52
|
+
/**
|
|
53
|
+
* Handle a ws instance error, which is required to prevent
|
|
54
|
+
* the server from crashing when one happens
|
|
55
|
+
* See https://github.com/websockets/ws/issues/1777#issuecomment-660803472
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
private handleError;
|
|
52
59
|
/**
|
|
53
60
|
* Get the underlying connection instance
|
|
54
61
|
* @deprecated
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hocuspocus/extension-database",
|
|
3
3
|
"description": "a generic Hocuspocus persistence driver for the database",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.20",
|
|
5
5
|
"homepage": "https://hocuspocus.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"hocuspocus",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@hocuspocus/server": "^1.0.0-alpha.
|
|
29
|
+
"@hocuspocus/server": "^1.0.0-alpha.106",
|
|
30
30
|
"yjs": "^13.5.29"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "6074a6cb832b40bc579f28db2823ba5723887312"
|
|
36
36
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Extension, onLoadDocumentPayload } from '@hocuspocus/server';
|
|
2
|
-
import { LeveldbPersistence } from 'y-leveldb';
|
|
3
|
-
export interface Configuration {
|
|
4
|
-
options: object | undefined;
|
|
5
|
-
path: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class RocksDB implements Extension {
|
|
8
|
-
configuration: Configuration;
|
|
9
|
-
provider: LeveldbPersistence;
|
|
10
|
-
/**
|
|
11
|
-
* Constructor
|
|
12
|
-
*/
|
|
13
|
-
constructor(configuration?: Partial<Configuration>);
|
|
14
|
-
/**
|
|
15
|
-
* onLoadDocument hook
|
|
16
|
-
*/
|
|
17
|
-
onLoadDocument(data: onLoadDocumentPayload): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* store updates in y-leveldb persistence
|
|
20
|
-
*/
|
|
21
|
-
store(documentName: string, update: Uint8Array): Promise<any>;
|
|
22
|
-
}
|