@fluidframework/local-driver 2.0.0-dev-rc.2.0.0.245554 → 2.0.0-dev-rc.3.0.0.250606
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/local-driver.api.md +1 -1
- package/dist/local-driver-untrimmed.d.ts +1 -1
- package/dist/localDeltaStorageService.d.ts.map +1 -1
- package/dist/localDeltaStorageService.js.map +1 -1
- package/dist/localDocumentDeltaConnection.d.ts +2 -2
- package/dist/localDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/localDocumentDeltaConnection.js.map +1 -1
- package/dist/localDocumentService.d.ts +1 -1
- package/dist/localDocumentService.d.ts.map +1 -1
- package/dist/localDocumentService.js +2 -2
- package/dist/localDocumentService.js.map +1 -1
- package/dist/localDocumentServiceFactory.d.ts +2 -2
- package/dist/localDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localDocumentServiceFactory.js +1 -1
- package/dist/localDocumentServiceFactory.js.map +1 -1
- package/dist/localDocumentStorageService.d.ts +2 -2
- package/dist/localDocumentStorageService.d.ts.map +1 -1
- package/dist/localDocumentStorageService.js +1 -1
- package/dist/localDocumentStorageService.js.map +1 -1
- package/dist/localResolver.d.ts.map +1 -1
- package/dist/localResolver.js.map +1 -1
- package/dist/localSessionStorageDb.d.ts +4 -0
- package/dist/localSessionStorageDb.d.ts.map +1 -1
- package/dist/localSessionStorageDb.js +2 -2
- package/dist/localSessionStorageDb.js.map +1 -1
- package/lib/local-driver-untrimmed.d.ts +1 -1
- package/lib/localDeltaStorageService.d.ts.map +1 -1
- package/lib/localDeltaStorageService.js.map +1 -1
- package/lib/localDocumentDeltaConnection.d.ts +2 -2
- package/lib/localDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/localDocumentDeltaConnection.js.map +1 -1
- package/lib/localDocumentService.d.ts +1 -1
- package/lib/localDocumentService.d.ts.map +1 -1
- package/lib/localDocumentService.js +2 -2
- package/lib/localDocumentService.js.map +1 -1
- package/lib/localDocumentServiceFactory.d.ts +2 -2
- package/lib/localDocumentServiceFactory.d.ts.map +1 -1
- package/lib/localDocumentServiceFactory.js +1 -1
- package/lib/localDocumentServiceFactory.js.map +1 -1
- package/lib/localDocumentStorageService.d.ts +2 -2
- package/lib/localDocumentStorageService.d.ts.map +1 -1
- package/lib/localDocumentStorageService.js +2 -2
- package/lib/localDocumentStorageService.js.map +1 -1
- package/lib/localResolver.d.ts.map +1 -1
- package/lib/localResolver.js.map +1 -1
- package/lib/localSessionStorageDb.d.ts +4 -0
- package/lib/localSessionStorageDb.d.ts.map +1 -1
- package/lib/localSessionStorageDb.js.map +1 -1
- package/lib/test/localResolverTest.spec.js.map +1 -1
- package/package.json +18 -15
- package/src/localDeltaStorageService.ts +1 -1
- package/src/localDocumentDeltaConnection.ts +3 -3
- package/src/localDocumentService.ts +4 -4
- package/src/localDocumentServiceFactory.ts +3 -3
- package/src/localDocumentStorageService.ts +7 -7
- package/src/localResolver.ts +2 -2
- package/src/localSessionStorageDb.ts +1 -0
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { IDocumentDeltaStorageService, IStream } from "@fluidframework/driver-definitions";
|
|
7
|
+
import { streamFromMessages } from "@fluidframework/driver-utils";
|
|
7
8
|
import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
|
|
8
9
|
import { IDatabaseManager } from "@fluidframework/server-services-core";
|
|
9
|
-
import { streamFromMessages } from "@fluidframework/driver-utils";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Provides access to the underlying delta storage on the server for local driver.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
6
7
|
import { DocumentDeltaConnection } from "@fluidframework/driver-base";
|
|
7
8
|
import {
|
|
8
9
|
IClient,
|
|
@@ -10,11 +11,10 @@ import {
|
|
|
10
11
|
IDocumentMessage,
|
|
11
12
|
NackErrorType,
|
|
12
13
|
} from "@fluidframework/protocol-definitions";
|
|
13
|
-
import { createChildLogger } from "@fluidframework/telemetry-utils";
|
|
14
14
|
import { LocalWebSocketServer } from "@fluidframework/server-local-server";
|
|
15
15
|
import { IWebSocketServer } from "@fluidframework/server-services-core";
|
|
16
|
+
import { createChildLogger } from "@fluidframework/telemetry-utils";
|
|
16
17
|
import type { Socket } from "socket.io-client";
|
|
17
|
-
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
18
18
|
|
|
19
19
|
const testProtocolVersions = ["^0.3.0", "^0.2.0", "^0.1.0"];
|
|
20
20
|
|
|
@@ -80,7 +80,7 @@ export class LocalDocumentDeltaConnection extends DocumentDeltaConnection {
|
|
|
80
80
|
/**
|
|
81
81
|
* Submits a new signal to the server
|
|
82
82
|
*/
|
|
83
|
-
public submitSignal(message:
|
|
83
|
+
public submitSignal(message: string): void {
|
|
84
84
|
this.emitMessages("submitSignal", [[message]]);
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
7
|
+
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
8
|
import {
|
|
8
9
|
IDocumentDeltaConnection,
|
|
9
10
|
IDocumentDeltaStorageService,
|
|
@@ -15,13 +16,12 @@ import {
|
|
|
15
16
|
} from "@fluidframework/driver-definitions";
|
|
16
17
|
import { IClient } from "@fluidframework/protocol-definitions";
|
|
17
18
|
import { ITokenProvider } from "@fluidframework/routerlicious-driver";
|
|
19
|
+
import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
|
|
18
20
|
import { GitManager } from "@fluidframework/server-services-client";
|
|
19
21
|
import { TestHistorian } from "@fluidframework/server-test-utils";
|
|
20
|
-
import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
|
|
21
|
-
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
22
|
-
import { LocalDocumentStorageService } from "./localDocumentStorageService.js";
|
|
23
|
-
import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.js";
|
|
24
22
|
import { LocalDeltaStorageService } from "./localDeltaStorageService.js";
|
|
23
|
+
import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.js";
|
|
24
|
+
import { LocalDocumentStorageService } from "./localDocumentStorageService.js";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Basic implementation of a document service for local use.
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
6
7
|
import {
|
|
7
8
|
IDocumentService,
|
|
8
9
|
IDocumentServiceFactory,
|
|
9
10
|
IDocumentServicePolicies,
|
|
10
11
|
IResolvedUrl,
|
|
11
12
|
} from "@fluidframework/driver-definitions";
|
|
12
|
-
import {
|
|
13
|
+
import { ISummaryTree, NackErrorType } from "@fluidframework/protocol-definitions";
|
|
13
14
|
import { DefaultTokenProvider } from "@fluidframework/routerlicious-driver";
|
|
14
15
|
import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
|
|
15
|
-
import {
|
|
16
|
+
import { createDocument } from "./localCreateDocument.js";
|
|
16
17
|
import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.js";
|
|
17
18
|
import { createLocalDocumentService } from "./localDocumentService.js";
|
|
18
|
-
import { createDocument } from "./localCreateDocument.js";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Implementation of document service factory for local use.
|
|
@@ -4,19 +4,21 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
|
-
bufferToString,
|
|
8
7
|
IsoBuffer,
|
|
9
|
-
stringToBuffer,
|
|
10
8
|
Uint8ArrayToString,
|
|
9
|
+
bufferToString,
|
|
10
|
+
stringToBuffer,
|
|
11
11
|
} from "@fluid-internal/client-utils";
|
|
12
|
+
import { assert } from "@fluidframework/core-utils";
|
|
12
13
|
import {
|
|
13
14
|
IDocumentStorageService,
|
|
14
15
|
IDocumentStorageServicePolicies,
|
|
15
16
|
IResolvedUrl,
|
|
16
|
-
ISummaryContext,
|
|
17
|
-
type ISnapshotFetchOptions,
|
|
18
17
|
type ISnapshot,
|
|
18
|
+
type ISnapshotFetchOptions,
|
|
19
|
+
ISummaryContext,
|
|
19
20
|
} from "@fluidframework/driver-definitions";
|
|
21
|
+
import { buildGitTreeHierarchy } from "@fluidframework/protocol-base";
|
|
20
22
|
import {
|
|
21
23
|
ICreateBlobResponse,
|
|
22
24
|
ISnapshotTreeEx,
|
|
@@ -24,14 +26,12 @@ import {
|
|
|
24
26
|
ISummaryTree,
|
|
25
27
|
IVersion,
|
|
26
28
|
} from "@fluidframework/protocol-definitions";
|
|
27
|
-
import {
|
|
29
|
+
import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
|
|
28
30
|
import {
|
|
29
31
|
GitManager,
|
|
30
32
|
ISummaryUploadManager,
|
|
31
33
|
SummaryTreeUploadManager,
|
|
32
34
|
} from "@fluidframework/server-services-client";
|
|
33
|
-
import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
|
|
34
|
-
import { assert } from "@fluidframework/core-utils";
|
|
35
35
|
import { createDocument } from "./localCreateDocument.js";
|
|
36
36
|
|
|
37
37
|
const minTTLInSeconds = 24 * 60 * 60; // Same TTL as ODSP
|
package/src/localResolver.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { assert } from "@fluidframework/core-utils";
|
|
7
6
|
import { IRequest } from "@fluidframework/core-interfaces";
|
|
8
|
-
import {
|
|
7
|
+
import { assert } from "@fluidframework/core-utils";
|
|
8
|
+
import { DriverHeader, IResolvedUrl, IUrlResolver } from "@fluidframework/driver-definitions";
|
|
9
9
|
import { ScopeType } from "@fluidframework/protocol-definitions";
|
|
10
10
|
import { generateToken } from "./auth.js";
|
|
11
11
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
+
|
|
5
6
|
import { EventEmitter } from "@fluid-internal/client-utils";
|
|
6
7
|
import { ICollection, IDb } from "@fluidframework/server-services-core";
|
|
7
8
|
import { ITestDbFactory } from "@fluidframework/server-test-utils";
|