@fluidframework/replay-driver 2.0.0-dev-rc.5.0.0.263932 → 2.0.0-dev-rc.5.0.0.267932
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/api-report/replay-driver.api.md +24 -20
- package/dist/emptyDeltaStorageService.d.ts +1 -1
- package/dist/emptyDeltaStorageService.d.ts.map +1 -1
- package/dist/emptyDeltaStorageService.js.map +1 -1
- package/dist/replayController.d.ts +8 -8
- package/dist/replayController.d.ts.map +1 -1
- package/dist/replayController.js.map +1 -1
- package/dist/replayDocumentDeltaConnection.d.ts +2 -2
- package/dist/replayDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/replayDocumentDeltaConnection.js +3 -3
- package/dist/replayDocumentDeltaConnection.js.map +1 -1
- package/dist/replayDocumentService.d.ts +9 -9
- package/dist/replayDocumentService.d.ts.map +1 -1
- package/dist/replayDocumentService.js.map +1 -1
- package/dist/replayDocumentServiceFactory.d.ts +1 -1
- package/dist/replayDocumentServiceFactory.d.ts.map +1 -1
- package/dist/replayDocumentServiceFactory.js.map +1 -1
- package/dist/storageImplementations.d.ts +2 -2
- package/dist/storageImplementations.d.ts.map +1 -1
- package/dist/storageImplementations.js.map +1 -1
- package/lib/emptyDeltaStorageService.d.ts +1 -1
- package/lib/emptyDeltaStorageService.d.ts.map +1 -1
- package/lib/emptyDeltaStorageService.js.map +1 -1
- package/lib/replayController.d.ts +8 -8
- package/lib/replayController.d.ts.map +1 -1
- package/lib/replayController.js.map +1 -1
- package/lib/replayDocumentDeltaConnection.d.ts +2 -2
- package/lib/replayDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/replayDocumentDeltaConnection.js +2 -2
- package/lib/replayDocumentDeltaConnection.js.map +1 -1
- package/lib/replayDocumentService.d.ts +9 -9
- package/lib/replayDocumentService.d.ts.map +1 -1
- package/lib/replayDocumentService.js.map +1 -1
- package/lib/replayDocumentServiceFactory.d.ts +1 -1
- package/lib/replayDocumentServiceFactory.d.ts.map +1 -1
- package/lib/replayDocumentServiceFactory.js.map +1 -1
- package/lib/storageImplementations.d.ts +2 -2
- package/lib/storageImplementations.d.ts.map +1 -1
- package/lib/storageImplementations.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +12 -13
- package/src/emptyDeltaStorageService.ts +1 -1
- package/src/replayController.ts +15 -8
- package/src/replayDocumentDeltaConnection.ts +6 -6
- package/src/replayDocumentService.ts +19 -12
- package/src/replayDocumentServiceFactory.ts +1 -1
- package/src/storageImplementations.ts +3 -6
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
7
|
+
import { IClient } from "@fluidframework/driver-definitions";
|
|
8
|
+
import {
|
|
9
|
+
IDocumentServiceEvents,
|
|
10
|
+
IDocumentService,
|
|
11
|
+
IDocumentStorageService,
|
|
12
|
+
IDocumentDeltaConnection,
|
|
13
|
+
IResolvedUrl,
|
|
14
|
+
IDocumentDeltaStorageService,
|
|
15
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
9
16
|
|
|
10
17
|
import { EmptyDeltaStorageService } from "./emptyDeltaStorageService.js";
|
|
11
18
|
import { ReplayController } from "./replayController.js";
|
|
@@ -18,14 +25,14 @@ import { ReplayDocumentDeltaConnection } from "./replayDocumentDeltaConnection.j
|
|
|
18
25
|
* @internal
|
|
19
26
|
*/
|
|
20
27
|
export class ReplayDocumentService
|
|
21
|
-
extends TypedEventEmitter<
|
|
28
|
+
extends TypedEventEmitter<IDocumentServiceEvents>
|
|
22
29
|
// eslint-disable-next-line import/namespace
|
|
23
|
-
implements
|
|
30
|
+
implements IDocumentService
|
|
24
31
|
{
|
|
25
32
|
public static async create(
|
|
26
|
-
documentService:
|
|
33
|
+
documentService: IDocumentService,
|
|
27
34
|
controller: ReplayController,
|
|
28
|
-
): Promise<
|
|
35
|
+
): Promise<IDocumentService> {
|
|
29
36
|
const useController = await controller.initStorage(documentService);
|
|
30
37
|
if (!useController) {
|
|
31
38
|
return documentService;
|
|
@@ -39,8 +46,8 @@ export class ReplayDocumentService
|
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
constructor(
|
|
42
|
-
private readonly controller:
|
|
43
|
-
private readonly deltaStorage:
|
|
49
|
+
private readonly controller: IDocumentStorageService,
|
|
50
|
+
private readonly deltaStorage: IDocumentDeltaConnection,
|
|
44
51
|
) {
|
|
45
52
|
super();
|
|
46
53
|
}
|
|
@@ -48,7 +55,7 @@ export class ReplayDocumentService
|
|
|
48
55
|
public dispose() {}
|
|
49
56
|
|
|
50
57
|
// TODO: Issue-2109 Implement detach container api or put appropriate comment.
|
|
51
|
-
public get resolvedUrl():
|
|
58
|
+
public get resolvedUrl(): IResolvedUrl {
|
|
52
59
|
throw new Error("Not implemented");
|
|
53
60
|
}
|
|
54
61
|
|
|
@@ -56,7 +63,7 @@ export class ReplayDocumentService
|
|
|
56
63
|
* Connects to a storage endpoint for snapshot service and blobs.
|
|
57
64
|
* @returns returns the dummy document storage service for replay driver.
|
|
58
65
|
*/
|
|
59
|
-
public async connectToStorage(): Promise<
|
|
66
|
+
public async connectToStorage(): Promise<IDocumentStorageService> {
|
|
60
67
|
return this.controller;
|
|
61
68
|
}
|
|
62
69
|
|
|
@@ -64,7 +71,7 @@ export class ReplayDocumentService
|
|
|
64
71
|
* Connects to a delta storage endpoint for getting ops between a range.
|
|
65
72
|
* @returns returns the dummy document delta storage service for replay driver.
|
|
66
73
|
*/
|
|
67
|
-
public async connectToDeltaStorage(): Promise<
|
|
74
|
+
public async connectToDeltaStorage(): Promise<IDocumentDeltaStorageService> {
|
|
68
75
|
return new EmptyDeltaStorageService();
|
|
69
76
|
}
|
|
70
77
|
|
|
@@ -74,7 +81,7 @@ export class ReplayDocumentService
|
|
|
74
81
|
* @param client - Client that connects to socket.
|
|
75
82
|
* @returns returns the delta stream service which replay ops from --from to --to arguments.
|
|
76
83
|
*/
|
|
77
|
-
public async connectToDeltaStream(client: IClient): Promise<
|
|
84
|
+
public async connectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection> {
|
|
78
85
|
return this.deltaStorage;
|
|
79
86
|
}
|
|
80
87
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
|
+
import { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
7
8
|
import {
|
|
8
9
|
IDocumentService,
|
|
9
10
|
IDocumentServiceFactory,
|
|
10
11
|
IResolvedUrl,
|
|
11
12
|
} from "@fluidframework/driver-definitions/internal";
|
|
12
|
-
import { ISummaryTree } from "@fluidframework/protocol-definitions";
|
|
13
13
|
import { createChildLogger } from "@fluidframework/telemetry-utils/internal";
|
|
14
14
|
|
|
15
15
|
import { ReplayController } from "./replayController.js";
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
7
7
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
|
+
import { IClient, ISummaryTree } from "@fluidframework/driver-definitions";
|
|
8
9
|
import {
|
|
9
10
|
IDocumentDeltaConnection,
|
|
10
11
|
IDocumentDeltaStorageService,
|
|
@@ -13,15 +14,11 @@ import {
|
|
|
13
14
|
IDocumentServiceFactory,
|
|
14
15
|
IDocumentStorageService,
|
|
15
16
|
IResolvedUrl,
|
|
16
|
-
} from "@fluidframework/driver-definitions/internal";
|
|
17
|
-
import { buildSnapshotTree } from "@fluidframework/driver-utils/internal";
|
|
18
|
-
import {
|
|
19
|
-
IClient,
|
|
20
17
|
ISnapshotTree,
|
|
21
|
-
ISummaryTree,
|
|
22
18
|
ITree,
|
|
23
19
|
IVersion,
|
|
24
|
-
} from "@fluidframework/
|
|
20
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
21
|
+
import { buildSnapshotTree } from "@fluidframework/driver-utils/internal";
|
|
25
22
|
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
26
23
|
|
|
27
24
|
import { EmptyDeltaStorageService } from "./emptyDeltaStorageService.js";
|