@fluidframework/file-driver 2.0.0-dev-rc.1.0.0.225277 → 2.0.0-dev-rc.1.0.0.232845

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/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @fluidframework/file-driver
2
2
 
3
+ ## 2.0.0-rc.1.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Updated server dependencies ([#19122](https://github.com/microsoft/FluidFramework/issues/19122)) [25366b4229](https://github.com/microsoft/FluidFramework/commits/25366b422918cb43685c5f328b50450749592902)
8
+
9
+ The following Fluid server dependencies have been updated to the latest version, 3.0.0. [See the full changelog.](https://github.com/microsoft/FluidFramework/releases/tag/server_v3.0.0)
10
+
11
+ - @fluidframework/gitresources
12
+ - @fluidframework/server-kafka-orderer
13
+ - @fluidframework/server-lambdas
14
+ - @fluidframework/server-lambdas-driver
15
+ - @fluidframework/server-local-server
16
+ - @fluidframework/server-memory-orderer
17
+ - @fluidframework/protocol-base
18
+ - @fluidframework/server-routerlicious
19
+ - @fluidframework/server-routerlicious-base
20
+ - @fluidframework/server-services
21
+ - @fluidframework/server-services-client
22
+ - @fluidframework/server-services-core
23
+ - @fluidframework/server-services-ordering-kafkanode
24
+ - @fluidframework/server-services-ordering-rdkafka
25
+ - @fluidframework/server-services-ordering-zookeeper
26
+ - @fluidframework/server-services-shared
27
+ - @fluidframework/server-services-telemetry
28
+ - @fluidframework/server-services-utils
29
+ - @fluidframework/server-test-utils
30
+ - tinylicious
31
+
32
+ - Updated @fluidframework/protocol-definitions ([#19122](https://github.com/microsoft/FluidFramework/issues/19122)) [25366b4229](https://github.com/microsoft/FluidFramework/commits/25366b422918cb43685c5f328b50450749592902)
33
+
34
+ The @fluidframework/protocol-definitions dependency has been upgraded to v3.1.0. [See the full
35
+ changelog.](https://github.com/microsoft/FluidFramework/blob/main/common/lib/protocol-definitions/CHANGELOG.md#310)
36
+
3
37
  ## 2.0.0-internal.8.0.0
4
38
 
5
39
  Dependency updates only.
package/README.md CHANGED
@@ -13,12 +13,6 @@ When taking a dependency on a Fluid Framework library, we recommend using a `^`
13
13
  While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
14
14
  library consumers should always prefer `^`.
15
15
 
16
- Note that when depending on a library version of the form `2.0.0-internal.x.y.z`, called the Fluid internal version scheme,
17
- you must use a `>= <` dependency range (such as `>=2.0.0-internal.x.y.z <2.0.0-internal.w.0.0` where `w` is `x+1`).
18
- Standard `^` and `~` ranges will not work as expected.
19
- See the [@fluid-tools/version-tools](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/version-tools/README.md)
20
- package for more information including tools to convert between version schemes.
21
-
22
16
  <!-- prettier-ignore-end -->
23
17
 
24
18
  <!-- AUTO-GENERATED-CONTENT:END -->
@@ -22,6 +22,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
22
22
  import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
23
23
  import { ISignalClient } from '@fluidframework/protocol-definitions';
24
24
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
25
+ import { ISnapshot } from '@fluidframework/driver-definitions';
26
+ import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
25
27
  import { IStream } from '@fluidframework/driver-definitions';
26
28
  import { ISummaryContext } from '@fluidframework/driver-definitions';
27
29
  import { ISummaryTree } from '@fluidframework/protocol-definitions';
@@ -63,6 +65,7 @@ export const FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(B
63
65
  buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
64
66
  repositoryUrl: string;
65
67
  readonly policies?: IDocumentStorageServicePolicies | undefined;
68
+ getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
66
69
  createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
67
70
  downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
68
71
  readonly disposed?: boolean | undefined;
@@ -99,6 +102,7 @@ export const FluidFetchReaderFileSnapshotWriter: {
99
102
  buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
100
103
  repositoryUrl: string;
101
104
  readonly policies?: IDocumentStorageServicePolicies | undefined;
105
+ getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
102
106
  createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
103
107
  downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
104
108
  readonly disposed?: boolean | undefined;
@@ -16,6 +16,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
16
16
  import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
17
  import { ISignalClient } from '@fluidframework/protocol-definitions';
18
18
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
19
+ import { ISnapshot } from '@fluidframework/driver-definitions';
20
+ import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
19
21
  import { IStream } from '@fluidframework/driver-definitions';
20
22
  import { ISummaryContext } from '@fluidframework/driver-definitions';
21
23
  import { ISummaryTree } from '@fluidframework/protocol-definitions';
@@ -16,6 +16,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
16
16
  import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
17
  import { ISignalClient } from '@fluidframework/protocol-definitions';
18
18
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
19
+ import { ISnapshot } from '@fluidframework/driver-definitions';
20
+ import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
19
21
  import { IStream } from '@fluidframework/driver-definitions';
20
22
  import { ISummaryContext } from '@fluidframework/driver-definitions';
21
23
  import { ISummaryTree } from '@fluidframework/protocol-definitions';
@@ -16,6 +16,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
16
16
  import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
17
  import { ISignalClient } from '@fluidframework/protocol-definitions';
18
18
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
19
+ import { ISnapshot } from '@fluidframework/driver-definitions';
20
+ import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
19
21
  import { IStream } from '@fluidframework/driver-definitions';
20
22
  import { ISummaryContext } from '@fluidframework/driver-definitions';
21
23
  import { ISummaryTree } from '@fluidframework/protocol-definitions';
@@ -16,6 +16,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
16
16
  import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
17
  import { ISignalClient } from '@fluidframework/protocol-definitions';
18
18
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
19
+ import { ISnapshot } from '@fluidframework/driver-definitions';
20
+ import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
19
21
  import { IStream } from '@fluidframework/driver-definitions';
20
22
  import { ISummaryContext } from '@fluidframework/driver-definitions';
21
23
  import { ISummaryTree } from '@fluidframework/protocol-definitions';
@@ -81,6 +83,7 @@ export declare const FileSnapshotWriterClassFactory: <TBase extends ReaderConstr
81
83
  buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
82
84
  repositoryUrl: string;
83
85
  readonly policies?: IDocumentStorageServicePolicies | undefined;
86
+ getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
84
87
  createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
85
88
  downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
86
89
  readonly disposed?: boolean | undefined;
@@ -133,6 +136,7 @@ export declare const FluidFetchReaderFileSnapshotWriter: {
133
136
  buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
134
137
  repositoryUrl: string;
135
138
  readonly policies?: IDocumentStorageServicePolicies | undefined;
139
+ getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
136
140
  createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
137
141
  downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
138
142
  readonly disposed?: boolean | undefined;
@@ -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
+ import { TypedEventEmitter } from "@fluid-internal/client-utils";
5
6
  import * as api from "@fluidframework/driver-definitions";
6
7
  import { IClient } from "@fluidframework/protocol-definitions";
7
8
  import { FileDeltaStorageService } from "./fileDeltaStorageService";
@@ -9,7 +10,7 @@ import { FileDeltaStorageService } from "./fileDeltaStorageService";
9
10
  * The DocumentService manages the different endpoints for connecting to
10
11
  * underlying storage for file document service.
11
12
  */
12
- export declare class FileDocumentService implements api.IDocumentService {
13
+ export declare class FileDocumentService extends TypedEventEmitter<api.IDocumentServiceEvents> implements api.IDocumentService {
13
14
  readonly resolvedUrl: api.IResolvedUrl;
14
15
  private readonly storage;
15
16
  private readonly deltaStorage;
@@ -1 +1 @@
1
- {"version":3,"file":"fileDocumentService.d.ts","sourceRoot":"","sources":["../src/fileDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;GAGG;AAEH,qBAAa,mBAAoB,YAAW,GAAG,CAAC,gBAAgB;aAE9C,WAAW,EAAE,GAAG,CAAC,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAHhB,WAAW,EAAE,GAAG,CAAC,YAAY,EAC5B,OAAO,EAAE,GAAG,CAAC,uBAAuB,EACpC,YAAY,EAAE,uBAAuB,EACrC,eAAe,EAAE,GAAG,CAAC,wBAAwB;IAGxD,OAAO;IAED,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIxD,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;;OAMG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAGzF"}
1
+ {"version":3,"file":"fileDocumentService.d.ts","sourceRoot":"","sources":["../src/fileDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;GAGG;AAEH,qBAAa,mBACZ,SAAQ,iBAAiB,CAAC,GAAG,CAAC,sBAAsB,CACpD,YAAW,GAAG,CAAC,gBAAgB;aAGd,WAAW,EAAE,GAAG,CAAC,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAHhB,WAAW,EAAE,GAAG,CAAC,YAAY,EAC5B,OAAO,EAAE,GAAG,CAAC,uBAAuB,EACpC,YAAY,EAAE,uBAAuB,EACrC,eAAe,EAAE,GAAG,CAAC,wBAAwB;IAKxD,OAAO;IAED,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIxD,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;;OAMG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAGzF"}
@@ -5,13 +5,15 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.FileDocumentService = void 0;
8
+ const client_utils_1 = require("@fluid-internal/client-utils");
8
9
  /**
9
10
  * The DocumentService manages the different endpoints for connecting to
10
11
  * underlying storage for file document service.
11
12
  */
12
13
  // eslint-disable-next-line import/namespace
13
- class FileDocumentService {
14
+ class FileDocumentService extends client_utils_1.TypedEventEmitter {
14
15
  constructor(resolvedUrl, storage, deltaStorage, deltaConnection) {
16
+ super();
15
17
  this.resolvedUrl = resolvedUrl;
16
18
  this.storage = storage;
17
19
  this.deltaStorage = deltaStorage;
@@ -1 +1 @@
1
- {"version":3,"file":"fileDocumentService.js","sourceRoot":"","sources":["../src/fileDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAMH;;;GAGG;AACH,4CAA4C;AAC5C,MAAa,mBAAmB;IAC/B,YACiB,WAA6B,EAC5B,OAAoC,EACpC,YAAqC,EACrC,eAA6C;QAH9C,gBAAW,GAAX,WAAW,CAAkB;QAC5B,YAAO,GAAP,OAAO,CAA6B;QACpC,iBAAY,GAAZ,YAAY,CAAyB;QACrC,oBAAe,GAAf,eAAe,CAA8B;IAC5D,CAAC;IAEG,OAAO,KAAI,CAAC;IAEZ,KAAK,CAAC,gBAAgB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,qBAAqB;QACjC,OAAO,IAAI,CAAC,YAAY,CAAC;IAC1B,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAChD,OAAO,IAAI,CAAC,eAAe,CAAC;IAC7B,CAAC;CACD;AA5BD,kDA4BC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { FileDeltaStorageService } from \"./fileDeltaStorageService\";\n\n/**\n * The DocumentService manages the different endpoints for connecting to\n * underlying storage for file document service.\n */\n// eslint-disable-next-line import/namespace\nexport class FileDocumentService implements api.IDocumentService {\n\tconstructor(\n\t\tpublic readonly resolvedUrl: api.IResolvedUrl,\n\t\tprivate readonly storage: api.IDocumentStorageService,\n\t\tprivate readonly deltaStorage: FileDeltaStorageService,\n\t\tprivate readonly deltaConnection: api.IDocumentDeltaConnection,\n\t) {}\n\n\tpublic dispose() {}\n\n\tpublic async connectToStorage(): Promise<api.IDocumentStorageService> {\n\t\treturn this.storage;\n\t}\n\n\tpublic async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n\t\treturn this.deltaStorage;\n\t}\n\n\t/**\n\t * Connects to a delta storage endpoint of provided documentService to get ops and then replaying\n\t * them so as to mimic a delta stream endpoint.\n\t *\n\t * @param client - Client that connects to socket.\n\t * @returns returns the delta stream service.\n\t */\n\tpublic async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n\t\treturn this.deltaConnection;\n\t}\n}\n"]}
1
+ {"version":3,"file":"fileDocumentService.js","sourceRoot":"","sources":["../src/fileDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAAiE;AAKjE;;;GAGG;AACH,4CAA4C;AAC5C,MAAa,mBACZ,SAAQ,gCAA6C;IAGrD,YACiB,WAA6B,EAC5B,OAAoC,EACpC,YAAqC,EACrC,eAA6C;QAE9D,KAAK,EAAE,CAAC;QALQ,gBAAW,GAAX,WAAW,CAAkB;QAC5B,YAAO,GAAP,OAAO,CAA6B;QACpC,iBAAY,GAAZ,YAAY,CAAyB;QACrC,oBAAe,GAAf,eAAe,CAA8B;IAG/D,CAAC;IAEM,OAAO,KAAI,CAAC;IAEZ,KAAK,CAAC,gBAAgB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,qBAAqB;QACjC,OAAO,IAAI,CAAC,YAAY,CAAC;IAC1B,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAChD,OAAO,IAAI,CAAC,eAAe,CAAC;IAC7B,CAAC;CACD;AAjCD,kDAiCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { TypedEventEmitter } from \"@fluid-internal/client-utils\";\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { FileDeltaStorageService } from \"./fileDeltaStorageService\";\n\n/**\n * The DocumentService manages the different endpoints for connecting to\n * underlying storage for file document service.\n */\n// eslint-disable-next-line import/namespace\nexport class FileDocumentService\n\textends TypedEventEmitter<api.IDocumentServiceEvents>\n\timplements api.IDocumentService\n{\n\tconstructor(\n\t\tpublic readonly resolvedUrl: api.IResolvedUrl,\n\t\tprivate readonly storage: api.IDocumentStorageService,\n\t\tprivate readonly deltaStorage: FileDeltaStorageService,\n\t\tprivate readonly deltaConnection: api.IDocumentDeltaConnection,\n\t) {\n\t\tsuper();\n\t}\n\n\tpublic dispose() {}\n\n\tpublic async connectToStorage(): Promise<api.IDocumentStorageService> {\n\t\treturn this.storage;\n\t}\n\n\tpublic async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n\t\treturn this.deltaStorage;\n\t}\n\n\t/**\n\t * Connects to a delta storage endpoint of provided documentService to get ops and then replaying\n\t * them so as to mimic a delta stream endpoint.\n\t *\n\t * @param client - Client that connects to socket.\n\t * @returns returns the delta stream service.\n\t */\n\tpublic async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n\t\treturn this.deltaConnection;\n\t}\n}\n"]}
@@ -59,6 +59,7 @@ export declare const FileSnapshotWriterClassFactory: <TBase extends ReaderConstr
59
59
  buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
60
60
  repositoryUrl: string;
61
61
  readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined;
62
+ getSnapshot?(snapshotFetchOptions?: import("@fluidframework/driver-definitions").ISnapshotFetchOptions | undefined): Promise<import("@fluidframework/driver-definitions").ISnapshot>;
62
63
  createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
63
64
  downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
64
65
  readonly disposed?: boolean | undefined;
@@ -82,6 +83,7 @@ export declare const FluidFetchReaderFileSnapshotWriter: {
82
83
  buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
83
84
  repositoryUrl: string;
84
85
  readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined;
86
+ getSnapshot?(snapshotFetchOptions?: import("@fluidframework/driver-definitions").ISnapshotFetchOptions | undefined): Promise<import("@fluidframework/driver-definitions").ISnapshot>;
85
87
  createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
86
88
  downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
87
89
  readonly disposed?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"fileDocumentStorageService.d.ts","sourceRoot":"","sources":["../src/fileDocumentStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAE9F,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAI9F;;GAEG;AACH,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAK1D;;;GAGG;AACH,qBAAa,gBACZ,SAAQ,8BACR,YAAW,uBAAuB;IAKjC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;IAJ9B,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,GAAG,IAAI,CAAQ;gBAGjC,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,oBAAQ;IAKtC;;;OAGG;IAEU,eAAe,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,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G,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,uBAAuB,CAAC;AAChF;;GAEG;AACH,eAAO,MAAM,8BAA8B;kBAJG,GAAG,EAAE;;;;;oCAiBd,aAAa,GAAG,IAAI;sBAI5B,MAAM,GAAG,QAAQ,eAAe,CAAC;+BASxB,MAAM,GAAG,IAAI,SAAS,MAAM,GAAG,QAAQ,IAAI,QAAQ,EAAE,CAAC;kCAkBnD,IAAI,QAAQ,GAAG,QAAQ,IAAI,aAAa,GAAG,IAAI,CAAC;0CAQ7E,IAAI,YAAY,WAChB,eAAe,GACtB,QAAQ,MAAM,CAAC;gCAcmB,IAAI,aAAa,GAAG,QAAQ,IAAI,KAAK,CAAC;;;;;;;;;SA8B3E,CAAC;AAcH;;GAEG;AACH,eAAO,MAAM,kCAAkC;kBAvHD,GAAG,EAAE;;;;;oCAiBd,aAAa,GAAG,IAAI;sBAI5B,MAAM,GAAG,QAAQ,eAAe,CAAC;+BASxB,MAAM,GAAG,IAAI,SAAS,MAAM,GAAG,QAAQ,IAAI,QAAQ,EAAE,CAAC;kCAkBnD,IAAI,QAAQ,GAAG,QAAQ,IAAI,aAAa,GAAG,IAAI,CAAC;0CAQ7E,IAAI,YAAY,WAChB,eAAe,GACtB,QAAQ,MAAM,CAAC;gCAcmB,IAAI,aAAa,GAAG,QAAQ,IAAI,KAAK,CAAC;;;;;;;;;2BA+CqB,CAAC"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.38.3"
8
+ "packageVersion": "7.39.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/file-driver",
3
- "version": "2.0.0-dev-rc.1.0.0.225277",
3
+ "version": "2.0.0-dev-rc.1.0.0.232845",
4
4
  "description": "A driver that reads/write from/to local file storage.",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -15,22 +15,22 @@
15
15
  "main": "dist/index.js",
16
16
  "types": "dist/index.d.ts",
17
17
  "dependencies": {
18
- "@fluid-internal/client-utils": "2.0.0-dev-rc.1.0.0.225277",
19
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.1.0.0.225277",
20
- "@fluidframework/core-utils": "2.0.0-dev-rc.1.0.0.225277",
21
- "@fluidframework/driver-definitions": "2.0.0-dev-rc.1.0.0.225277",
22
- "@fluidframework/driver-utils": "2.0.0-dev-rc.1.0.0.225277",
23
- "@fluidframework/protocol-definitions": "^3.1.0-223007",
24
- "@fluidframework/replay-driver": "2.0.0-dev-rc.1.0.0.225277"
18
+ "@fluid-internal/client-utils": "2.0.0-dev-rc.1.0.0.232845",
19
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.1.0.0.232845",
20
+ "@fluidframework/core-utils": "2.0.0-dev-rc.1.0.0.232845",
21
+ "@fluidframework/driver-definitions": "2.0.0-dev-rc.1.0.0.232845",
22
+ "@fluidframework/driver-utils": "2.0.0-dev-rc.1.0.0.232845",
23
+ "@fluidframework/protocol-definitions": "^3.2.0-231454",
24
+ "@fluidframework/replay-driver": "2.0.0-dev-rc.1.0.0.232845"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@arethetypeswrong/cli": "^0.13.3",
28
- "@fluid-tools/build-cli": "0.29.0-222379",
28
+ "@fluid-tools/build-cli": "^0.29.0",
29
29
  "@fluidframework/build-common": "^2.0.3",
30
- "@fluidframework/build-tools": "0.29.0-222379",
31
- "@fluidframework/eslint-config-fluid": "^3.1.0",
30
+ "@fluidframework/build-tools": "^0.29.0",
31
+ "@fluidframework/eslint-config-fluid": "^3.3.0",
32
32
  "@fluidframework/file-driver-previous": "npm:@fluidframework/file-driver@2.0.0-internal.8.0.0",
33
- "@microsoft/api-extractor": "^7.38.3",
33
+ "@microsoft/api-extractor": "^7.39.1",
34
34
  "@types/node": "^18.19.0",
35
35
  "copyfiles": "^2.4.1",
36
36
  "eslint": "~8.50.0",
@@ -3,6 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
+ import { TypedEventEmitter } from "@fluid-internal/client-utils";
6
7
  import * as api from "@fluidframework/driver-definitions";
7
8
  import { IClient } from "@fluidframework/protocol-definitions";
8
9
  import { FileDeltaStorageService } from "./fileDeltaStorageService";
@@ -12,13 +13,18 @@ import { FileDeltaStorageService } from "./fileDeltaStorageService";
12
13
  * underlying storage for file document service.
13
14
  */
14
15
  // eslint-disable-next-line import/namespace
15
- export class FileDocumentService implements api.IDocumentService {
16
+ export class FileDocumentService
17
+ extends TypedEventEmitter<api.IDocumentServiceEvents>
18
+ implements api.IDocumentService
19
+ {
16
20
  constructor(
17
21
  public readonly resolvedUrl: api.IResolvedUrl,
18
22
  private readonly storage: api.IDocumentStorageService,
19
23
  private readonly deltaStorage: FileDeltaStorageService,
20
24
  private readonly deltaConnection: api.IDocumentDeltaConnection,
21
- ) {}
25
+ ) {
26
+ super();
27
+ }
22
28
 
23
29
  public dispose() {}
24
30
 
File without changes