@fluidframework/file-driver 2.0.0-internal.4.3.0 → 2.0.0-internal.5.0.0

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,13 @@
1
1
  # @fluidframework/file-driver
2
2
 
3
+ ## 2.0.0-internal.5.0.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.4.4.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.0.0-internal.4.1.0
4
12
 
5
13
  Dependency updates only.
@@ -10,12 +10,12 @@ import { FileDeltaStorageService } from "./fileDeltaStorageService";
10
10
  * underlying storage for file document service.
11
11
  */
12
12
  export declare class FileDocumentService implements api.IDocumentService {
13
+ readonly resolvedUrl: api.IResolvedUrl;
13
14
  private readonly storage;
14
15
  private readonly deltaStorage;
15
16
  private readonly deltaConnection;
16
- constructor(storage: api.IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: api.IDocumentDeltaConnection);
17
+ constructor(resolvedUrl: api.IResolvedUrl, storage: api.IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: api.IDocumentDeltaConnection);
17
18
  dispose(): void;
18
- get resolvedUrl(): api.IResolvedUrl;
19
19
  connectToStorage(): Promise<api.IDocumentStorageService>;
20
20
  connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService>;
21
21
  /**
@@ -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;IAE9D,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAFf,OAAO,EAAE,GAAG,CAAC,uBAAuB,EACpC,YAAY,EAAE,uBAAuB,EACrC,eAAe,EAAE,GAAG,CAAC,wBAAwB;IAGxD,OAAO;IAGd,IAAW,WAAW,IAAI,GAAG,CAAC,YAAY,CAEzC;IAEY,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,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"}
@@ -11,16 +11,13 @@ exports.FileDocumentService = void 0;
11
11
  */
12
12
  // eslint-disable-next-line import/namespace
13
13
  class FileDocumentService {
14
- constructor(storage, deltaStorage, deltaConnection) {
14
+ constructor(resolvedUrl, storage, deltaStorage, deltaConnection) {
15
+ this.resolvedUrl = resolvedUrl;
15
16
  this.storage = storage;
16
17
  this.deltaStorage = deltaStorage;
17
18
  this.deltaConnection = deltaConnection;
18
19
  }
19
20
  dispose() { }
20
- // TODO: Issue-2109 Implement detach container api or put appropriate comment.
21
- get resolvedUrl() {
22
- throw new Error("Not implemented");
23
- }
24
21
  async connectToStorage() {
25
22
  return this.storage;
26
23
  }
@@ -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,YACkB,OAAoC,EACpC,YAAqC,EACrC,eAA6C;QAF7C,YAAO,GAAP,OAAO,CAA6B;QACpC,iBAAY,GAAZ,YAAY,CAAyB;QACrC,oBAAe,GAAf,eAAe,CAA8B;IAC5D,CAAC;IAEG,OAAO,KAAI,CAAC;IAEnB,8EAA8E;IAC9E,IAAW,WAAW;QACrB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC,CAAC;IAEM,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;AAhCD,kDAgCC","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\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\t// TODO: Issue-2109 Implement detach container api or put appropriate comment.\n\tpublic get resolvedUrl(): api.IResolvedUrl {\n\t\tthrow new Error(\"Not implemented\");\n\t}\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;;;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"]}
@@ -21,7 +21,7 @@ export declare class FileDocumentServiceFactory implements IDocumentServiceFacto
21
21
  * @param fileURL - Path of directory containing ops/snapshots.
22
22
  * @returns file document service.
23
23
  */
24
- createDocumentService(fileURL: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
24
+ createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
25
25
  createContainer(createNewSummary: ISummaryTree, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
26
26
  }
27
27
  //# sourceMappingURL=fileDocumentServiceFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fileDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE;;;GAGG;AACH,qBAAa,0BAA2B,YAAW,uBAAuB;IAExE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAFf,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,uBAAuB,EACrC,eAAe,EAAE,wBAAwB;IAG3D;;;;;OAKG;IACU,qBAAqB,CACjC,OAAO,EAAE,YAAY,EACrB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;IAKf,eAAe,CAC3B,gBAAgB,EAAE,YAAY,EAC9B,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;CAG5B"}
1
+ {"version":3,"file":"fileDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE;;;GAGG;AACH,qBAAa,0BAA2B,YAAW,uBAAuB;IAExE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAFf,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,uBAAuB,EACrC,eAAe,EAAE,wBAAwB;IAG3D;;;;;OAKG;IACU,qBAAqB,CACjC,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;IAUf,eAAe,CAC3B,gBAAgB,EAAE,YAAY,EAC9B,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;CAG5B"}
@@ -22,8 +22,8 @@ class FileDocumentServiceFactory {
22
22
  * @param fileURL - Path of directory containing ops/snapshots.
23
23
  * @returns file document service.
24
24
  */
25
- async createDocumentService(fileURL, logger, clientIsSummarizer) {
26
- return new fileDocumentService_1.FileDocumentService(this.storage, this.deltaStorage, this.deltaConnection);
25
+ async createDocumentService(resolvedUrl, logger, clientIsSummarizer) {
26
+ return new fileDocumentService_1.FileDocumentService(resolvedUrl, this.storage, this.deltaStorage, this.deltaConnection);
27
27
  }
28
28
  // TODO: Issue-2109 Implement detach container api or put appropriate comment.
29
29
  async createContainer(createNewSummary, resolvedUrl, logger, clientIsSummarizer) {
@@ -1 +1 @@
1
- {"version":3,"file":"fileDocumentServiceFactory.js","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,+DAA4D;AAE5D;;;GAGG;AACH,MAAa,0BAA0B;IACtC,YACkB,OAAgC,EAChC,YAAqC,EACrC,eAAyC;QAFzC,YAAO,GAAP,OAAO,CAAyB;QAChC,iBAAY,GAAZ,YAAY,CAAyB;QACrC,oBAAe,GAAf,eAAe,CAA0B;IACxD,CAAC;IAEJ;;;;;OAKG;IACI,KAAK,CAAC,qBAAqB,CACjC,OAAqB,EACrB,MAA6B,EAC7B,kBAA4B;QAE5B,OAAO,IAAI,yCAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACvF,CAAC;IAED,8EAA8E;IACvE,KAAK,CAAC,eAAe,CAC3B,gBAA8B,EAC9B,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;QAE5B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC,CAAC;CACD;AA9BD,gEA8BC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDocumentDeltaConnection,\n\tIDocumentService,\n\tIDocumentServiceFactory,\n\tIDocumentStorageService,\n\tIResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/common-definitions\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\nimport { FileDeltaStorageService } from \"./fileDeltaStorageService\";\nimport { FileDocumentService } from \"./fileDocumentService\";\n\n/**\n * Factory for creating the file document service. Use this if you want to\n * use the local file storage as underlying storage.\n */\nexport class FileDocumentServiceFactory implements IDocumentServiceFactory {\n\tconstructor(\n\t\tprivate readonly storage: IDocumentStorageService,\n\t\tprivate readonly deltaStorage: FileDeltaStorageService,\n\t\tprivate readonly deltaConnection: IDocumentDeltaConnection,\n\t) {}\n\n\t/**\n\t * Creates the file document service if the path exists.\n\t *\n\t * @param fileURL - Path of directory containing ops/snapshots.\n\t * @returns file document service.\n\t */\n\tpublic async createDocumentService(\n\t\tfileURL: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\treturn new FileDocumentService(this.storage, this.deltaStorage, this.deltaConnection);\n\t}\n\n\t// TODO: Issue-2109 Implement detach container api or put appropriate comment.\n\tpublic async createContainer(\n\t\tcreateNewSummary: ISummaryTree,\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tthrow new Error(\"Not implemented\");\n\t}\n}\n"]}
1
+ {"version":3,"file":"fileDocumentServiceFactory.js","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,+DAA4D;AAE5D;;;GAGG;AACH,MAAa,0BAA0B;IACtC,YACkB,OAAgC,EAChC,YAAqC,EACrC,eAAyC;QAFzC,YAAO,GAAP,OAAO,CAAyB;QAChC,iBAAY,GAAZ,YAAY,CAAyB;QACrC,oBAAe,GAAf,eAAe,CAA0B;IACxD,CAAC;IAEJ;;;;;OAKG;IACI,KAAK,CAAC,qBAAqB,CACjC,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;QAE5B,OAAO,IAAI,yCAAmB,CAC7B,WAAW,EACX,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,eAAe,CACpB,CAAC;IACH,CAAC;IAED,8EAA8E;IACvE,KAAK,CAAC,eAAe,CAC3B,gBAA8B,EAC9B,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;QAE5B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC,CAAC;CACD;AAnCD,gEAmCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDocumentDeltaConnection,\n\tIDocumentService,\n\tIDocumentServiceFactory,\n\tIDocumentStorageService,\n\tIResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/common-definitions\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\nimport { FileDeltaStorageService } from \"./fileDeltaStorageService\";\nimport { FileDocumentService } from \"./fileDocumentService\";\n\n/**\n * Factory for creating the file document service. Use this if you want to\n * use the local file storage as underlying storage.\n */\nexport class FileDocumentServiceFactory implements IDocumentServiceFactory {\n\tconstructor(\n\t\tprivate readonly storage: IDocumentStorageService,\n\t\tprivate readonly deltaStorage: FileDeltaStorageService,\n\t\tprivate readonly deltaConnection: IDocumentDeltaConnection,\n\t) {}\n\n\t/**\n\t * Creates the file document service if the path exists.\n\t *\n\t * @param fileURL - Path of directory containing ops/snapshots.\n\t * @returns file document service.\n\t */\n\tpublic async createDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\treturn new FileDocumentService(\n\t\t\tresolvedUrl,\n\t\t\tthis.storage,\n\t\t\tthis.deltaStorage,\n\t\t\tthis.deltaConnection,\n\t\t);\n\t}\n\n\t// TODO: Issue-2109 Implement detach container api or put appropriate comment.\n\tpublic async createContainer(\n\t\tcreateNewSummary: ISummaryTree,\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tthrow new Error(\"Not implemented\");\n\t}\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -3,7 +3,6 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  export { FileDeltaStorageService } from "./fileDeltaStorageService";
6
- export { FileDocumentService } from "./fileDocumentService";
7
6
  export { FileDocumentServiceFactory } from "./fileDocumentServiceFactory";
8
7
  export { Replayer, ReplayFileDeltaConnection } from "./fileDocumentDeltaConnection";
9
8
  export { FileSnapshotWriterClassFactory, FileStorageDocumentName, FluidFetchReader, FluidFetchReaderFileSnapshotWriter, ISnapshotWriterStorage, ReaderConstructor, } from "./fileDocumentStorageService";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,8BAA8B,EAC9B,uBAAuB,EACvB,gBAAgB,EAChB,kCAAkC,EAClC,sBAAsB,EACtB,iBAAiB,GACjB,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,8BAA8B,EAC9B,uBAAuB,EACvB,gBAAgB,EAChB,kCAAkC,EAClC,sBAAsB,EACtB,iBAAiB,GACjB,MAAM,8BAA8B,CAAC"}
package/dist/index.js CHANGED
@@ -4,11 +4,9 @@
4
4
  * Licensed under the MIT License.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.FluidFetchReaderFileSnapshotWriter = exports.FluidFetchReader = exports.FileStorageDocumentName = exports.FileSnapshotWriterClassFactory = exports.ReplayFileDeltaConnection = exports.Replayer = exports.FileDocumentServiceFactory = exports.FileDocumentService = exports.FileDeltaStorageService = void 0;
7
+ exports.FluidFetchReaderFileSnapshotWriter = exports.FluidFetchReader = exports.FileStorageDocumentName = exports.FileSnapshotWriterClassFactory = exports.ReplayFileDeltaConnection = exports.Replayer = exports.FileDocumentServiceFactory = exports.FileDeltaStorageService = void 0;
8
8
  var fileDeltaStorageService_1 = require("./fileDeltaStorageService");
9
9
  Object.defineProperty(exports, "FileDeltaStorageService", { enumerable: true, get: function () { return fileDeltaStorageService_1.FileDeltaStorageService; } });
10
- var fileDocumentService_1 = require("./fileDocumentService");
11
- Object.defineProperty(exports, "FileDocumentService", { enumerable: true, get: function () { return fileDocumentService_1.FileDocumentService; } });
12
10
  var fileDocumentServiceFactory_1 = require("./fileDocumentServiceFactory");
13
11
  Object.defineProperty(exports, "FileDocumentServiceFactory", { enumerable: true, get: function () { return fileDocumentServiceFactory_1.FileDocumentServiceFactory; } });
14
12
  var fileDocumentDeltaConnection_1 = require("./fileDocumentDeltaConnection");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AACnC,6EAAoF;AAA3E,uHAAA,QAAQ,OAAA;AAAE,wIAAA,yBAAyB,OAAA;AAC5C,2EAOsC;AANrC,4IAAA,8BAA8B,OAAA;AAC9B,qIAAA,uBAAuB,OAAA;AACvB,8HAAA,gBAAgB,OAAA;AAChB,gJAAA,kCAAkC,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { FileDeltaStorageService } from \"./fileDeltaStorageService\";\nexport { FileDocumentService } from \"./fileDocumentService\";\nexport { FileDocumentServiceFactory } from \"./fileDocumentServiceFactory\";\nexport { Replayer, ReplayFileDeltaConnection } from \"./fileDocumentDeltaConnection\";\nexport {\n\tFileSnapshotWriterClassFactory,\n\tFileStorageDocumentName,\n\tFluidFetchReader,\n\tFluidFetchReaderFileSnapshotWriter,\n\tISnapshotWriterStorage,\n\tReaderConstructor,\n} from \"./fileDocumentStorageService\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AACnC,6EAAoF;AAA3E,uHAAA,QAAQ,OAAA;AAAE,wIAAA,yBAAyB,OAAA;AAC5C,2EAOsC;AANrC,4IAAA,8BAA8B,OAAA;AAC9B,qIAAA,uBAAuB,OAAA;AACvB,8HAAA,gBAAgB,OAAA;AAChB,gJAAA,kCAAkC,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { FileDeltaStorageService } from \"./fileDeltaStorageService\";\nexport { FileDocumentServiceFactory } from \"./fileDocumentServiceFactory\";\nexport { Replayer, ReplayFileDeltaConnection } from \"./fileDocumentDeltaConnection\";\nexport {\n\tFileSnapshotWriterClassFactory,\n\tFileStorageDocumentName,\n\tFluidFetchReader,\n\tFluidFetchReaderFileSnapshotWriter,\n\tISnapshotWriterStorage,\n\tReaderConstructor,\n} from \"./fileDocumentStorageService\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/file-driver",
3
- "version": "2.0.0-internal.4.3.0",
3
+ "version": "2.0.0-internal.5.0.0",
4
4
  "description": "A driver that reads/write from/to local file storage.",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -17,10 +17,10 @@
17
17
  "dependencies": {
18
18
  "@fluidframework/common-definitions": "^0.20.1",
19
19
  "@fluidframework/common-utils": "^1.1.1",
20
- "@fluidframework/driver-definitions": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
21
- "@fluidframework/driver-utils": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
20
+ "@fluidframework/driver-definitions": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
21
+ "@fluidframework/driver-utils": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
22
22
  "@fluidframework/protocol-definitions": "^1.1.0",
23
- "@fluidframework/replay-driver": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0"
23
+ "@fluidframework/replay-driver": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@fluid-tools/build-cli": "^0.17.0",
@@ -38,7 +38,12 @@
38
38
  "typescript": "~4.5.5"
39
39
  },
40
40
  "typeValidation": {
41
- "broken": {}
41
+ "broken": {
42
+ "RemovedClassDeclaration_FileDocumentService": {
43
+ "forwardCompat": false,
44
+ "backCompat": false
45
+ }
46
+ }
42
47
  },
43
48
  "scripts": {
44
49
  "build": "concurrently npm:build:compile npm:lint && npm run build:docs",
@@ -14,6 +14,7 @@ import { FileDeltaStorageService } from "./fileDeltaStorageService";
14
14
  // eslint-disable-next-line import/namespace
15
15
  export class FileDocumentService implements api.IDocumentService {
16
16
  constructor(
17
+ public readonly resolvedUrl: api.IResolvedUrl,
17
18
  private readonly storage: api.IDocumentStorageService,
18
19
  private readonly deltaStorage: FileDeltaStorageService,
19
20
  private readonly deltaConnection: api.IDocumentDeltaConnection,
@@ -21,11 +22,6 @@ export class FileDocumentService implements api.IDocumentService {
21
22
 
22
23
  public dispose() {}
23
24
 
24
- // TODO: Issue-2109 Implement detach container api or put appropriate comment.
25
- public get resolvedUrl(): api.IResolvedUrl {
26
- throw new Error("Not implemented");
27
- }
28
-
29
25
  public async connectToStorage(): Promise<api.IDocumentStorageService> {
30
26
  return this.storage;
31
27
  }
@@ -33,11 +33,16 @@ export class FileDocumentServiceFactory implements IDocumentServiceFactory {
33
33
  * @returns file document service.
34
34
  */
35
35
  public async createDocumentService(
36
- fileURL: IResolvedUrl,
36
+ resolvedUrl: IResolvedUrl,
37
37
  logger?: ITelemetryBaseLogger,
38
38
  clientIsSummarizer?: boolean,
39
39
  ): Promise<IDocumentService> {
40
- return new FileDocumentService(this.storage, this.deltaStorage, this.deltaConnection);
40
+ return new FileDocumentService(
41
+ resolvedUrl,
42
+ this.storage,
43
+ this.deltaStorage,
44
+ this.deltaConnection,
45
+ );
41
46
  }
42
47
 
43
48
  // TODO: Issue-2109 Implement detach container api or put appropriate comment.
package/src/index.ts CHANGED
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  export { FileDeltaStorageService } from "./fileDeltaStorageService";
7
- export { FileDocumentService } from "./fileDocumentService";
8
7
  export { FileDocumentServiceFactory } from "./fileDocumentServiceFactory";
9
8
  export { Replayer, ReplayFileDeltaConnection } from "./fileDocumentDeltaConnection";
10
9
  export {