@fluidframework/file-driver 2.0.0-dev.3.1.0.125672 → 2.0.0-dev.4.2.0.153917

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 ADDED
@@ -0,0 +1,5 @@
1
+ # @fluidframework/file-driver
2
+
3
+ ## 2.0.0-internal.4.1.0
4
+
5
+ Dependency updates only.
package/README.md CHANGED
@@ -1,3 +1,41 @@
1
1
  # @fluidframework/file-driver
2
2
 
3
3
  This is an implementation of a driver which provides a DocumentService which uses local filesystem to get data for different endpoints like Document Storage, Delta Storage and Delta stream. It also provides implementation of Document Storage, Delta Storage and Delta stream. It also has a replay service which provides user the capability to replays ops accordingly.
4
+
5
+ <!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) -->
6
+
7
+ <!-- prettier-ignore-start -->
8
+ <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
9
+
10
+ ## Using Fluid Framework libraries
11
+
12
+ When taking a dependency on a Fluid Framework library, we recommend using a `^` (caret) version range, such as `^1.3.4`.
13
+ While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
14
+ library consumers should always prefer `^`.
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
17
+ scheme, you must use a `>= <` dependency range. Standard `^` and `~` ranges will not work as expected. See the
18
+ [@fluid-tools/version-tools](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/version-tools/README.md)
19
+ package for more information including tools to convert between version schemes.
20
+
21
+ <!-- prettier-ignore-end -->
22
+
23
+ <!-- AUTO-GENERATED-CONTENT:END -->
24
+
25
+ <!-- AUTO-GENERATED-CONTENT:START (README_TRADEMARK_SECTION:includeHeading=TRUE) -->
26
+
27
+ <!-- prettier-ignore-start -->
28
+ <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
29
+
30
+ ## Trademark
31
+
32
+ This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
33
+
34
+ Use of these trademarks or logos must follow Microsoft's [Trademark & Brand
35
+ Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
36
+
37
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
38
+
39
+ <!-- prettier-ignore-end -->
40
+
41
+ <!-- AUTO-GENERATED-CONTENT:END -->
@@ -14,7 +14,6 @@ export declare class FileDocumentServiceFactory implements IDocumentServiceFacto
14
14
  private readonly storage;
15
15
  private readonly deltaStorage;
16
16
  private readonly deltaConnection;
17
- readonly protocolName = "fluid-file:";
18
17
  constructor(storage: IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: IDocumentDeltaConnection);
19
18
  /**
20
19
  * Creates the file document service if the path exists.
@@ -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;IAGxE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAJjC,SAAgB,YAAY,iBAAiB;gBAE3B,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,uBAAuB,EACrC,eAAe,EAAE,wBAAwB;IAG3D;;;;;OAKG;IACU,qBAAqB,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C;CAG5B"}
@@ -15,7 +15,6 @@ class FileDocumentServiceFactory {
15
15
  this.storage = storage;
16
16
  this.deltaStorage = deltaStorage;
17
17
  this.deltaConnection = deltaConnection;
18
- this.protocolName = "fluid-file:";
19
18
  }
20
19
  /**
21
20
  * Creates the file document service if the path exists.
@@ -1 +1 @@
1
- {"version":3,"file":"fileDocumentServiceFactory.js","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,+DAA4D;AAE5D;;;GAGG;AACH,MAAa,0BAA0B;IAEtC,YACkB,OAAgC,EAChC,YAAqC,EACrC,eAAyC;QAFzC,YAAO,GAAP,OAAO,CAAyB;QAChC,iBAAY,GAAZ,YAAY,CAAyB;QACrC,oBAAe,GAAf,eAAe,CAA0B;QAJ3C,iBAAY,GAAG,aAAa,CAAC;IAK1C,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;AA/BD,gEA+BC","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\tpublic readonly protocolName = \"fluid-file:\";\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,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"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/file-driver";
8
- export declare const pkgVersion = "2.0.0-dev.3.1.0.125672";
8
+ export declare const pkgVersion = "2.0.0-dev.4.2.0.153917";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/file-driver";
11
- exports.pkgVersion = "2.0.0-dev.3.1.0.125672";
11
+ exports.pkgVersion = "2.0.0-dev.4.2.0.153917";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,6BAA6B,CAAC;AACxC,QAAA,UAAU,GAAG,wBAAwB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/file-driver\";\nexport const pkgVersion = \"2.0.0-dev.3.1.0.125672\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,6BAA6B,CAAC;AACxC,QAAA,UAAU,GAAG,wBAAwB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/file-driver\";\nexport const pkgVersion = \"2.0.0-dev.4.2.0.153917\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/file-driver",
3
- "version": "2.0.0-dev.3.1.0.125672",
3
+ "version": "2.0.0-dev.4.2.0.153917",
4
4
  "description": "A driver that reads/write from/to local file storage.",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -14,6 +14,32 @@
14
14
  "main": "dist/index.js",
15
15
  "module": "lib/index.js",
16
16
  "types": "dist/index.d.ts",
17
+ "dependencies": {
18
+ "@fluidframework/common-definitions": "^0.20.1",
19
+ "@fluidframework/common-utils": "^1.1.1",
20
+ "@fluidframework/driver-definitions": "2.0.0-dev.4.2.0.153917",
21
+ "@fluidframework/driver-utils": "2.0.0-dev.4.2.0.153917",
22
+ "@fluidframework/protocol-definitions": "^1.1.0",
23
+ "@fluidframework/replay-driver": "2.0.0-dev.4.2.0.153917"
24
+ },
25
+ "devDependencies": {
26
+ "@fluid-tools/build-cli": "^0.15.0",
27
+ "@fluidframework/build-common": "^1.1.0",
28
+ "@fluidframework/build-tools": "^0.15.0",
29
+ "@fluidframework/eslint-config-fluid": "^2.0.0",
30
+ "@fluidframework/file-driver-previous": "npm:@fluidframework/file-driver@2.0.0-internal.4.0.0",
31
+ "@microsoft/api-extractor": "^7.34.4",
32
+ "@types/node": "^14.18.38",
33
+ "concurrently": "^7.6.0",
34
+ "copyfiles": "^2.4.1",
35
+ "eslint": "~8.6.0",
36
+ "prettier": "~2.6.2",
37
+ "rimraf": "^4.4.0",
38
+ "typescript": "~4.5.5"
39
+ },
40
+ "typeValidation": {
41
+ "broken": {}
42
+ },
17
43
  "scripts": {
18
44
  "build": "npm run build:genver && concurrently npm:build:compile npm:lint && npm run build:docs",
19
45
  "build:compile": "concurrently npm:typetests:gen npm:tsc",
@@ -31,38 +57,7 @@
31
57
  "prettier": "prettier --check . --ignore-path ../../../.prettierignore",
32
58
  "prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
33
59
  "tsc": "tsc",
34
- "typetests:gen": "flub generate typetests --generate --dir .",
60
+ "typetests:gen": "fluid-type-test-generator",
35
61
  "typetests:prepare": "flub generate typetests --prepare --dir . --pin"
36
- },
37
- "dependencies": {
38
- "@fluidframework/common-definitions": "^0.20.1",
39
- "@fluidframework/common-utils": "^1.0.0",
40
- "@fluidframework/driver-definitions": ">=2.0.0-dev.3.1.0.125672 <2.0.0-dev.4.0.0",
41
- "@fluidframework/driver-utils": ">=2.0.0-dev.3.1.0.125672 <2.0.0-dev.4.0.0",
42
- "@fluidframework/protocol-definitions": "^1.1.0",
43
- "@fluidframework/replay-driver": ">=2.0.0-dev.3.1.0.125672 <2.0.0-dev.4.0.0"
44
- },
45
- "devDependencies": {
46
- "@fluid-tools/build-cli": "^0.8.0",
47
- "@fluidframework/build-common": "^1.1.0",
48
- "@fluidframework/build-tools": "^0.8.0",
49
- "@fluidframework/eslint-config-fluid": "^2.0.0",
50
- "@fluidframework/file-driver-previous": "npm:@fluidframework/file-driver@2.0.0-internal.3.0.0",
51
- "@microsoft/api-extractor": "^7.22.2",
52
- "@rushstack/eslint-config": "^2.5.1",
53
- "@types/node": "^14.18.36",
54
- "concurrently": "^6.2.0",
55
- "copyfiles": "^2.4.1",
56
- "eslint": "~8.6.0",
57
- "prettier": "~2.6.2",
58
- "rimraf": "^2.6.2",
59
- "typescript": "~4.5.5"
60
- },
61
- "typeValidation": {
62
- "version": "2.0.0-internal.3.1.0",
63
- "previousVersionStyle": "~previousMinor",
64
- "baselineRange": ">=2.0.0-internal.3.0.0 <2.0.0-internal.3.1.0",
65
- "baselineVersion": "2.0.0-internal.3.0.0",
66
- "broken": {}
67
62
  }
68
- }
63
+ }
@@ -20,7 +20,6 @@ import { FileDocumentService } from "./fileDocumentService";
20
20
  * use the local file storage as underlying storage.
21
21
  */
22
22
  export class FileDocumentServiceFactory implements IDocumentServiceFactory {
23
- public readonly protocolName = "fluid-file:";
24
23
  constructor(
25
24
  private readonly storage: IDocumentStorageService,
26
25
  private readonly deltaStorage: FileDeltaStorageService,
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/file-driver";
9
- export const pkgVersion = "2.0.0-dev.3.1.0.125672";
9
+ export const pkgVersion = "2.0.0-dev.4.2.0.153917";