@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.
Files changed (57) hide show
  1. package/api-report/local-driver.api.md +1 -1
  2. package/dist/local-driver-untrimmed.d.ts +1 -1
  3. package/dist/localDeltaStorageService.d.ts.map +1 -1
  4. package/dist/localDeltaStorageService.js.map +1 -1
  5. package/dist/localDocumentDeltaConnection.d.ts +2 -2
  6. package/dist/localDocumentDeltaConnection.d.ts.map +1 -1
  7. package/dist/localDocumentDeltaConnection.js.map +1 -1
  8. package/dist/localDocumentService.d.ts +1 -1
  9. package/dist/localDocumentService.d.ts.map +1 -1
  10. package/dist/localDocumentService.js +2 -2
  11. package/dist/localDocumentService.js.map +1 -1
  12. package/dist/localDocumentServiceFactory.d.ts +2 -2
  13. package/dist/localDocumentServiceFactory.d.ts.map +1 -1
  14. package/dist/localDocumentServiceFactory.js +1 -1
  15. package/dist/localDocumentServiceFactory.js.map +1 -1
  16. package/dist/localDocumentStorageService.d.ts +2 -2
  17. package/dist/localDocumentStorageService.d.ts.map +1 -1
  18. package/dist/localDocumentStorageService.js +1 -1
  19. package/dist/localDocumentStorageService.js.map +1 -1
  20. package/dist/localResolver.d.ts.map +1 -1
  21. package/dist/localResolver.js.map +1 -1
  22. package/dist/localSessionStorageDb.d.ts +4 -0
  23. package/dist/localSessionStorageDb.d.ts.map +1 -1
  24. package/dist/localSessionStorageDb.js +2 -2
  25. package/dist/localSessionStorageDb.js.map +1 -1
  26. package/lib/local-driver-untrimmed.d.ts +1 -1
  27. package/lib/localDeltaStorageService.d.ts.map +1 -1
  28. package/lib/localDeltaStorageService.js.map +1 -1
  29. package/lib/localDocumentDeltaConnection.d.ts +2 -2
  30. package/lib/localDocumentDeltaConnection.d.ts.map +1 -1
  31. package/lib/localDocumentDeltaConnection.js.map +1 -1
  32. package/lib/localDocumentService.d.ts +1 -1
  33. package/lib/localDocumentService.d.ts.map +1 -1
  34. package/lib/localDocumentService.js +2 -2
  35. package/lib/localDocumentService.js.map +1 -1
  36. package/lib/localDocumentServiceFactory.d.ts +2 -2
  37. package/lib/localDocumentServiceFactory.d.ts.map +1 -1
  38. package/lib/localDocumentServiceFactory.js +1 -1
  39. package/lib/localDocumentServiceFactory.js.map +1 -1
  40. package/lib/localDocumentStorageService.d.ts +2 -2
  41. package/lib/localDocumentStorageService.d.ts.map +1 -1
  42. package/lib/localDocumentStorageService.js +2 -2
  43. package/lib/localDocumentStorageService.js.map +1 -1
  44. package/lib/localResolver.d.ts.map +1 -1
  45. package/lib/localResolver.js.map +1 -1
  46. package/lib/localSessionStorageDb.d.ts +4 -0
  47. package/lib/localSessionStorageDb.d.ts.map +1 -1
  48. package/lib/localSessionStorageDb.js.map +1 -1
  49. package/lib/test/localResolverTest.spec.js.map +1 -1
  50. package/package.json +18 -15
  51. package/src/localDeltaStorageService.ts +1 -1
  52. package/src/localDocumentDeltaConnection.ts +3 -3
  53. package/src/localDocumentService.ts +4 -4
  54. package/src/localDocumentServiceFactory.ts +3 -3
  55. package/src/localDocumentStorageService.ts +7 -7
  56. package/src/localResolver.ts +2 -2
  57. 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: any): void {
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 { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
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 { ISummaryTree, NackErrorType } from "@fluidframework/protocol-definitions";
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 { buildGitTreeHierarchy } from "@fluidframework/protocol-base";
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
@@ -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 { IResolvedUrl, IUrlResolver, DriverHeader } from "@fluidframework/driver-definitions";
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";