@fluidframework/runtime-utils 2.0.0-rc.2.0.2 → 2.0.0-rc.3.0.1

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 (78) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/api-report/runtime-utils.api.md +10 -10
  3. package/dist/dataStoreHelpers.d.ts +2 -2
  4. package/dist/dataStoreHelpers.d.ts.map +1 -1
  5. package/dist/dataStoreHelpers.js +7 -7
  6. package/dist/dataStoreHelpers.js.map +1 -1
  7. package/dist/legacy.d.ts +18 -0
  8. package/dist/objectstoragepartition.js +2 -2
  9. package/dist/objectstoragepartition.js.map +1 -1
  10. package/dist/public.d.ts +12 -0
  11. package/dist/requestParser.d.ts.map +1 -1
  12. package/dist/requestParser.js +4 -0
  13. package/dist/requestParser.js.map +1 -1
  14. package/dist/runtimeFactoryHelper.d.ts +2 -2
  15. package/dist/runtimeFactoryHelper.d.ts.map +1 -1
  16. package/dist/runtimeFactoryHelper.js.map +1 -1
  17. package/dist/summaryUtils.d.ts +4 -3
  18. package/dist/summaryUtils.d.ts.map +1 -1
  19. package/dist/summaryUtils.js +7 -7
  20. package/dist/summaryUtils.js.map +1 -1
  21. package/dist/unpackUsedRoutes.js +2 -2
  22. package/dist/unpackUsedRoutes.js.map +1 -1
  23. package/dist/utils.js +2 -2
  24. package/dist/utils.js.map +1 -1
  25. package/internal.d.ts +11 -0
  26. package/legacy.d.ts +11 -0
  27. package/lib/dataStoreHelpers.d.ts +2 -2
  28. package/lib/dataStoreHelpers.d.ts.map +1 -1
  29. package/lib/dataStoreHelpers.js +3 -3
  30. package/lib/dataStoreHelpers.js.map +1 -1
  31. package/lib/legacy.d.ts +18 -0
  32. package/lib/objectstoragepartition.js +1 -1
  33. package/lib/objectstoragepartition.js.map +1 -1
  34. package/lib/public.d.ts +12 -0
  35. package/lib/requestParser.d.ts.map +1 -1
  36. package/lib/requestParser.js +4 -0
  37. package/lib/requestParser.js.map +1 -1
  38. package/lib/runtimeFactoryHelper.d.ts +2 -2
  39. package/lib/runtimeFactoryHelper.d.ts.map +1 -1
  40. package/lib/runtimeFactoryHelper.js.map +1 -1
  41. package/lib/summaryUtils.d.ts +4 -3
  42. package/lib/summaryUtils.d.ts.map +1 -1
  43. package/lib/summaryUtils.js +3 -3
  44. package/lib/summaryUtils.js.map +1 -1
  45. package/lib/unpackUsedRoutes.js +1 -1
  46. package/lib/unpackUsedRoutes.js.map +1 -1
  47. package/lib/utils.js +1 -1
  48. package/lib/utils.js.map +1 -1
  49. package/package.json +33 -54
  50. package/src/dataStoreHelpers.ts +4 -4
  51. package/src/objectstoragepartition.ts +1 -1
  52. package/src/requestParser.ts +1 -0
  53. package/src/runtimeFactoryHelper.ts +2 -2
  54. package/src/summaryUtils.ts +16 -12
  55. package/src/unpackUsedRoutes.ts +1 -1
  56. package/src/utils.ts +1 -1
  57. package/api-extractor-cjs.json +0 -8
  58. package/dist/runtime-utils-alpha.d.ts +0 -161
  59. package/dist/runtime-utils-beta.d.ts +0 -109
  60. package/dist/runtime-utils-public.d.ts +0 -109
  61. package/dist/runtime-utils-untrimmed.d.ts +0 -346
  62. package/lib/runtime-utils-alpha.d.ts +0 -161
  63. package/lib/runtime-utils-beta.d.ts +0 -109
  64. package/lib/runtime-utils-public.d.ts +0 -109
  65. package/lib/runtime-utils-untrimmed.d.ts +0 -346
  66. package/lib/test/dataStoreHelpers.spec.js +0 -29
  67. package/lib/test/dataStoreHelpers.spec.js.map +0 -1
  68. package/lib/test/requestParser.spec.js +0 -111
  69. package/lib/test/requestParser.spec.js.map +0 -1
  70. package/lib/test/runtimeFactoryHelper.spec.js +0 -44
  71. package/lib/test/runtimeFactoryHelper.spec.js.map +0 -1
  72. package/lib/test/summaryUtils.spec.js +0 -283
  73. package/lib/test/summaryUtils.spec.js.map +0 -1
  74. package/lib/test/types/validateRuntimeUtilsPrevious.generated.js +0 -58
  75. package/lib/test/types/validateRuntimeUtilsPrevious.generated.js.map +0 -1
  76. package/lib/test/utils.spec.js +0 -65
  77. package/lib/test/utils.spec.js.map +0 -1
  78. /package/{dist → lib}/tsdoc-metadata.json +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/runtime-utils",
3
- "version": "2.0.0-rc.2.0.2",
3
+ "version": "2.0.0-rc.3.0.1",
4
4
  "description": "Collection of utility functions for Fluid Runtime",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -15,31 +15,21 @@
15
15
  "exports": {
16
16
  ".": {
17
17
  "import": {
18
- "types": "./lib/index.d.ts",
19
- "default": "./lib/index.js"
20
- },
21
- "require": {
22
- "types": "./dist/index.d.ts",
23
- "default": "./dist/index.js"
24
- }
25
- },
26
- "./public": {
27
- "import": {
28
- "types": "./lib/runtime-utils-public.d.ts",
18
+ "types": "./lib/public.d.ts",
29
19
  "default": "./lib/index.js"
30
20
  },
31
21
  "require": {
32
- "types": "./dist/runtime-utils-public.d.ts",
22
+ "types": "./dist/public.d.ts",
33
23
  "default": "./dist/index.js"
34
24
  }
35
25
  },
36
- "./alpha": {
26
+ "./legacy": {
37
27
  "import": {
38
- "types": "./lib/runtime-utils-alpha.d.ts",
28
+ "types": "./lib/legacy.d.ts",
39
29
  "default": "./lib/index.js"
40
30
  },
41
31
  "require": {
42
- "types": "./dist/runtime-utils-alpha.d.ts",
32
+ "types": "./dist/legacy.d.ts",
43
33
  "default": "./dist/index.js"
44
34
  }
45
35
  },
@@ -54,8 +44,8 @@
54
44
  }
55
45
  }
56
46
  },
57
- "main": "dist/index.js",
58
- "types": "dist/index.d.ts",
47
+ "main": "lib/index.js",
48
+ "types": "lib/public.d.ts",
59
49
  "c8": {
60
50
  "all": true,
61
51
  "cache-dir": "nyc/.cache",
@@ -77,24 +67,25 @@
77
67
  "temp-directory": "nyc/.nyc_output"
78
68
  },
79
69
  "dependencies": {
80
- "@fluid-internal/client-utils": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
81
- "@fluidframework/container-definitions": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
82
- "@fluidframework/container-runtime-definitions": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
83
- "@fluidframework/core-interfaces": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
84
- "@fluidframework/core-utils": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
85
- "@fluidframework/datastore-definitions": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
86
- "@fluidframework/driver-utils": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
70
+ "@fluid-internal/client-utils": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
71
+ "@fluidframework/container-definitions": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
72
+ "@fluidframework/container-runtime-definitions": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
73
+ "@fluidframework/core-interfaces": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
74
+ "@fluidframework/core-utils": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
75
+ "@fluidframework/datastore-definitions": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
76
+ "@fluidframework/driver-utils": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
87
77
  "@fluidframework/protocol-definitions": "^3.2.0",
88
- "@fluidframework/runtime-definitions": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
89
- "@fluidframework/telemetry-utils": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0"
78
+ "@fluidframework/runtime-definitions": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
79
+ "@fluidframework/telemetry-utils": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0"
90
80
  },
91
81
  "devDependencies": {
92
- "@arethetypeswrong/cli": "^0.13.3",
93
- "@fluid-internal/mocha-test-setup": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
94
- "@fluid-tools/build-cli": "^0.34.0",
82
+ "@arethetypeswrong/cli": "^0.15.2",
83
+ "@biomejs/biome": "^1.6.2",
84
+ "@fluid-internal/mocha-test-setup": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
85
+ "@fluid-tools/build-cli": "^0.37.0",
95
86
  "@fluidframework/build-common": "^2.0.3",
96
- "@fluidframework/build-tools": "^0.34.0",
97
- "@fluidframework/eslint-config-fluid": "^4.0.0",
87
+ "@fluidframework/build-tools": "^0.37.0",
88
+ "@fluidframework/eslint-config-fluid": "^5.1.0",
98
89
  "@fluidframework/runtime-utils-previous": "npm:@fluidframework/runtime-utils@2.0.0-internal.8.0.0",
99
90
  "@microsoft/api-extractor": "^7.42.3",
100
91
  "@types/mocha": "^9.1.1",
@@ -114,18 +105,6 @@
114
105
  "ts-node": "^10.9.1",
115
106
  "typescript": "~5.1.6"
116
107
  },
117
- "fluidBuild": {
118
- "tasks": {
119
- "build:docs": {
120
- "dependsOn": [
121
- "...",
122
- "api-extractor:commonjs",
123
- "api-extractor:esnext"
124
- ],
125
- "script": false
126
- }
127
- }
128
- },
129
108
  "typeValidation": {
130
109
  "broken": {
131
110
  "RemovedFunctionDeclaration_addTreeToSummary": {
@@ -136,27 +115,27 @@
136
115
  },
137
116
  "scripts": {
138
117
  "api": "fluid-build . --task api",
139
- "api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json",
140
- "api-extractor:esnext": "api-extractor run --local",
118
+ "api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
119
+ "api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
141
120
  "build": "fluid-build . --task build",
142
121
  "build:commonjs": "fluid-build . --task commonjs",
143
122
  "build:compile": "fluid-build . --task compile",
144
- "build:docs": "fluid-build . --task api",
123
+ "build:docs": "api-extractor run --local",
145
124
  "build:esnext": "tsc --project ./tsconfig.json",
146
125
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
147
126
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
148
127
  "build:test:esm": "tsc --project ./src/test/tsconfig.json",
149
- "check:are-the-types-wrong": "attw --pack . --entrypoints .",
128
+ "check:are-the-types-wrong": "attw --pack .",
129
+ "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
150
130
  "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
151
131
  "ci:build:docs": "api-extractor run",
152
- "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
132
+ "clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
153
133
  "eslint": "eslint --format stylish src",
154
134
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
155
- "format": "npm run prettier:fix",
156
- "lint": "npm run prettier && npm run check:release-tags && npm run eslint",
157
- "lint:fix": "npm run prettier:fix && npm run eslint:fix",
158
- "prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
159
- "prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
135
+ "format": "fluid-build --task format .",
136
+ "format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
137
+ "lint": "fluid-build . --task lint",
138
+ "lint:fix": "fluid-build . --task eslint:fix --task format",
160
139
  "test": "npm run test:mocha",
161
140
  "test:coverage": "c8 npm test",
162
141
  "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
@@ -3,14 +3,14 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from "@fluidframework/core-utils";
7
6
  import { IRequest, IResponse } from "@fluidframework/core-interfaces";
7
+ import { assert } from "@fluidframework/core-utils/internal";
8
8
  import {
9
9
  IFluidDataStoreFactory,
10
10
  IFluidDataStoreRegistry,
11
11
  IProvideFluidDataStoreRegistry,
12
- } from "@fluidframework/runtime-definitions";
13
- import { generateErrorWithStack } from "@fluidframework/telemetry-utils";
12
+ } from "@fluidframework/runtime-definitions/internal";
13
+ import { generateErrorWithStack } from "@fluidframework/telemetry-utils/internal";
14
14
 
15
15
  interface IResponseException extends Error {
16
16
  errorFromRequestFluidObject: true;
@@ -72,7 +72,7 @@ export function responseToException(response: IResponse, request: IRequest): Err
72
72
  }
73
73
 
74
74
  /**
75
- * @internal
75
+ * @alpha
76
76
  */
77
77
  export const create404Response = (request: IRequest) =>
78
78
  createResponseError(404, "not found", request);
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from "@fluidframework/core-utils";
6
+ import { assert } from "@fluidframework/core-utils/internal";
7
7
  import { IChannelStorageService } from "@fluidframework/datastore-definitions";
8
8
 
9
9
  /**
@@ -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 { IRequest, IRequestHeader } from "@fluidframework/core-interfaces";
6
7
 
7
8
  /**
@@ -7,8 +7,8 @@ import {
7
7
  IContainerContext,
8
8
  IRuntime,
9
9
  IRuntimeFactory,
10
- } from "@fluidframework/container-definitions";
11
- import { IContainerRuntime } from "@fluidframework/container-runtime-definitions";
10
+ } from "@fluidframework/container-definitions/internal";
11
+ import { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
12
12
 
13
13
  /**
14
14
  * @alpha
@@ -3,32 +3,36 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import type { TelemetryBaseEventPropertyType } from "@fluidframework/core-interfaces";
7
6
  import {
8
- bufferToString,
9
- fromBase64ToUtf8,
10
7
  IsoBuffer,
11
8
  Uint8ArrayToString,
9
+ bufferToString,
10
+ fromBase64ToUtf8,
12
11
  } from "@fluid-internal/client-utils";
13
- import { assert, unreachableCase } from "@fluidframework/core-utils";
14
- import { AttachmentTreeEntry, BlobTreeEntry, TreeTreeEntry } from "@fluidframework/driver-utils";
12
+ import { ISnapshotTreeWithBlobContents } from "@fluidframework/container-definitions/internal";
13
+ import type { TelemetryBaseEventPropertyType } from "@fluidframework/core-interfaces";
14
+ import { assert, unreachableCase } from "@fluidframework/core-utils/internal";
15
15
  import {
16
- ITree,
17
- SummaryType,
16
+ AttachmentTreeEntry,
17
+ BlobTreeEntry,
18
+ TreeTreeEntry,
19
+ } from "@fluidframework/driver-utils/internal";
20
+ import {
21
+ ISummaryBlob,
18
22
  ISummaryTree,
23
+ ITree,
24
+ ITreeEntry,
19
25
  SummaryObject,
20
- ISummaryBlob,
26
+ SummaryType,
21
27
  TreeEntry,
22
- ITreeEntry,
23
28
  } from "@fluidframework/protocol-definitions";
24
29
  import {
30
+ IGarbageCollectionData,
25
31
  ISummaryStats,
26
- ISummarizeResult,
27
32
  ISummaryTreeWithStats,
28
33
  ITelemetryContext,
29
- IGarbageCollectionData,
30
34
  } from "@fluidframework/runtime-definitions";
31
- import { ISnapshotTreeWithBlobContents } from "@fluidframework/container-definitions";
35
+ import { ISummarizeResult } from "@fluidframework/runtime-definitions/internal";
32
36
 
33
37
  /**
34
38
  * Combines summary stats by adding their totals together.
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from "@fluidframework/core-utils";
6
+ import { assert } from "@fluidframework/core-utils/internal";
7
7
 
8
8
  /**
9
9
  * Helper function that unpacks the used routes of children from a given node's used routes.
package/src/utils.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from "@fluidframework/core-utils";
6
+ import { assert } from "@fluidframework/core-utils/internal";
7
7
  import { IDocumentAttributes, ISnapshotTree } from "@fluidframework/protocol-definitions";
8
8
 
9
9
  /**
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "../../../common/build/build-common/api-extractor-base.cjs.primary.json",
4
- // CJS is actually secondary; so, no report.
5
- "apiReport": {
6
- "enabled": false
7
- }
8
- }
@@ -1,161 +0,0 @@
1
- import { IChannelStorageService } from '@fluidframework/datastore-definitions';
2
- import { IContainerContext } from '@fluidframework/container-definitions';
3
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
4
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
5
- import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
6
- import { IFluidHandleContext } from '@fluidframework/core-interfaces';
7
- import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
8
- import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
9
- import { IRequest } from '@fluidframework/core-interfaces';
10
- import { IRequestHeader } from '@fluidframework/core-interfaces';
11
- import { IResponse } from '@fluidframework/core-interfaces';
12
- import { IRuntime } from '@fluidframework/container-definitions';
13
- import { IRuntimeFactory } from '@fluidframework/container-definitions';
14
- import { ISnapshotTree } from '@fluidframework/protocol-definitions';
15
- import { ISnapshotTreeWithBlobContents } from '@fluidframework/container-definitions';
16
- import { ISummarizeResult } from '@fluidframework/runtime-definitions';
17
- import { ISummaryBlob } from '@fluidframework/protocol-definitions';
18
- import { ISummaryStats } from '@fluidframework/runtime-definitions';
19
- import { ISummaryTree } from '@fluidframework/protocol-definitions';
20
- import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
21
- import { ITelemetryContext } from '@fluidframework/runtime-definitions';
22
- import { ITree } from '@fluidframework/protocol-definitions';
23
- import { SummaryObject } from '@fluidframework/protocol-definitions';
24
- import { SummaryType } from '@fluidframework/protocol-definitions';
25
- import type { TelemetryBaseEventPropertyType } from '@fluidframework/core-interfaces';
26
-
27
- /* Excluded from this release type: addBlobToSummary */
28
-
29
- /* Excluded from this release type: addSummarizeResultToSummary */
30
-
31
- /* Excluded from this release type: calculateStats */
32
-
33
- /* Excluded from this release type: convertSnapshotTreeToSummaryTree */
34
-
35
- /* Excluded from this release type: convertSummaryTreeToITree */
36
-
37
- /* Excluded from this release type: convertToSummaryTree */
38
-
39
- /**
40
- * Converts snapshot ITree to ISummaryTree format and tracks stats.
41
- * @param snapshot - snapshot in ITree format
42
- * @param fullTree - true to never use handles, even if id is specified
43
- * @alpha
44
- */
45
- export declare function convertToSummaryTreeWithStats(snapshot: ITree, fullTree?: boolean): ISummaryTreeWithStats;
46
-
47
- /* Excluded from this release type: create404Response */
48
-
49
- /* Excluded from this release type: createDataStoreFactory */
50
-
51
- /* Excluded from this release type: createResponseError */
52
-
53
- /* Excluded from this release type: encodeCompactIdToString */
54
-
55
- /* Excluded from this release type: exceptionToResponse */
56
-
57
- /* Excluded from this release type: Factory */
58
-
59
- /* Excluded from this release type: GCDataBuilder */
60
-
61
- /* Excluded from this release type: generateHandleContextPath */
62
-
63
- /* Excluded from this release type: getBlobSize */
64
-
65
- /* Excluded from this release type: getNormalizedObjectStoragePathParts */
66
-
67
- /* Excluded from this release type: ISerializedHandle */
68
-
69
- /* Excluded from this release type: isSerializedHandle */
70
-
71
- /* Excluded from this release type: listBlobsAtTreePath */
72
-
73
- /* Excluded from this release type: mergeStats */
74
-
75
- /* Excluded from this release type: ObjectStoragePartition */
76
-
77
- /* Excluded from this release type: processAttachMessageGCData */
78
-
79
- /* Excluded from this release type: ReadAndParseBlob */
80
-
81
- /**
82
- * The Request Parser takes an IRequest provides parsing and sub request creation
83
- * @alpha
84
- */
85
- export declare class RequestParser implements IRequest {
86
- private readonly request;
87
- /**
88
- * Splits the path of the url and decodes each path part
89
- * @param url - the url to get path parts of
90
- */
91
- static getPathParts(url: string): readonly string[];
92
- private requestPathParts;
93
- readonly query: string;
94
- static create(request: Readonly<IRequest>): RequestParser;
95
- protected constructor(request: Readonly<IRequest>);
96
- get url(): string;
97
- get headers(): IRequestHeader | undefined;
98
- /**
99
- * Returns the decoded path parts of the request's url
100
- */
101
- get pathParts(): readonly string[];
102
- /**
103
- * Returns true if it's a terminating path, i.e. no more elements after `elements` entries and empty query.
104
- * @param elements - number of elements in path
105
- */
106
- isLeaf(elements: number): boolean;
107
- /**
108
- * Creates a sub request starting at a specific path part of this request's url
109
- * The sub request url always has a leading slash, and always include query params if original url has any
110
- * e.g. original url is /a/b/?queryParams, createSubRequest(0) is /a/b/?queryParams
111
- * createSubRequest(1) is /b/?queryParams
112
- * createSubRequest(2) is /?queryParams
113
- * createSubRequest(n) where n is bigger than parts length, e.g. 2, or n is less than 0 will throw an exception
114
- *
115
- * note: query params are not counted towards path parts.
116
- *
117
- * @param startingPathIndex - The index of the first path part of the sub request
118
- */
119
- createSubRequest(startingPathIndex: number): IRequest;
120
- }
121
-
122
- /* Excluded from this release type: responseToException */
123
-
124
- /**
125
- * @alpha
126
- */
127
- export declare abstract class RuntimeFactoryHelper<T = IContainerRuntime> implements IRuntimeFactory {
128
- get IRuntimeFactory(): this;
129
- instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
130
- abstract preInitialize(context: IContainerContext, existing: boolean): Promise<IRuntime & T>;
131
- instantiateFirstTime(_runtime: T): Promise<void>;
132
- instantiateFromExisting(_runtime: T): Promise<void>;
133
- hasInitialized(_runtime: T): Promise<void>;
134
- }
135
-
136
- /* Excluded from this release type: seqFromTree */
137
-
138
- /**
139
- * @alpha
140
- */
141
- export declare class SummaryTreeBuilder implements ISummaryTreeWithStats {
142
- private attachmentCounter;
143
- get summary(): ISummaryTree;
144
- get stats(): Readonly<ISummaryStats>;
145
- constructor();
146
- private readonly summaryTree;
147
- private summaryStats;
148
- addBlob(key: string, content: string | Uint8Array): void;
149
- addHandle(key: string, handleType: SummaryType.Tree | SummaryType.Blob | SummaryType.Attachment, handle: string): void;
150
- addWithStats(key: string, summarizeResult: ISummarizeResult): void;
151
- addAttachment(id: string): void;
152
- getSummaryTree(): ISummaryTreeWithStats;
153
- }
154
-
155
- /* Excluded from this release type: TelemetryContext */
156
-
157
- /* Excluded from this release type: unpackChildNodesUsedRoutes */
158
-
159
- /* Excluded from this release type: utf8ByteLength */
160
-
161
- export { }
@@ -1,109 +0,0 @@
1
- import { IChannelStorageService } from '@fluidframework/datastore-definitions';
2
- import { IContainerContext } from '@fluidframework/container-definitions';
3
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
4
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
5
- import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
6
- import { IFluidHandleContext } from '@fluidframework/core-interfaces';
7
- import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
8
- import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
9
- import { IRequest } from '@fluidframework/core-interfaces';
10
- import { IRequestHeader } from '@fluidframework/core-interfaces';
11
- import { IResponse } from '@fluidframework/core-interfaces';
12
- import { IRuntime } from '@fluidframework/container-definitions';
13
- import { IRuntimeFactory } from '@fluidframework/container-definitions';
14
- import { ISnapshotTree } from '@fluidframework/protocol-definitions';
15
- import { ISnapshotTreeWithBlobContents } from '@fluidframework/container-definitions';
16
- import { ISummarizeResult } from '@fluidframework/runtime-definitions';
17
- import { ISummaryBlob } from '@fluidframework/protocol-definitions';
18
- import { ISummaryStats } from '@fluidframework/runtime-definitions';
19
- import { ISummaryTree } from '@fluidframework/protocol-definitions';
20
- import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
21
- import { ITelemetryContext } from '@fluidframework/runtime-definitions';
22
- import { ITree } from '@fluidframework/protocol-definitions';
23
- import { SummaryObject } from '@fluidframework/protocol-definitions';
24
- import { SummaryType } from '@fluidframework/protocol-definitions';
25
- import type { TelemetryBaseEventPropertyType } from '@fluidframework/core-interfaces';
26
-
27
- /* Excluded from this release type: addBlobToSummary */
28
-
29
- /* Excluded from this release type: addSummarizeResultToSummary */
30
-
31
- /* Excluded from this release type: calculateStats */
32
-
33
- /* Excluded from this release type: convertSnapshotTreeToSummaryTree */
34
-
35
- /* Excluded from this release type: convertSummaryTreeToITree */
36
-
37
- /* Excluded from this release type: convertToSummaryTree */
38
-
39
- /* Excluded from this release type: convertToSummaryTreeWithStats */
40
-
41
- /* Excluded from this release type: create404Response */
42
-
43
- /* Excluded from this release type: createDataStoreFactory */
44
-
45
- /* Excluded from this release type: createResponseError */
46
-
47
- /* Excluded from this release type: encodeCompactIdToString */
48
-
49
- /* Excluded from this release type: exceptionToResponse */
50
-
51
- /* Excluded from this release type: Factory */
52
-
53
- /* Excluded from this release type: GCDataBuilder */
54
-
55
- /* Excluded from this release type: generateHandleContextPath */
56
-
57
- /* Excluded from this release type: getBlobSize */
58
-
59
- /* Excluded from this release type: getNormalizedObjectStoragePathParts */
60
-
61
- /* Excluded from this release type: IContainerContext */
62
-
63
- /* Excluded from this release type: IContainerRuntime */
64
-
65
- /* Excluded from this release type: IFluidDataStoreFactory */
66
-
67
- /* Excluded from this release type: IFluidDataStoreRegistry */
68
-
69
- /* Excluded from this release type: IProvideFluidDataStoreRegistry */
70
-
71
- /* Excluded from this release type: IRuntime */
72
-
73
- /* Excluded from this release type: IRuntimeFactory */
74
-
75
- /* Excluded from this release type: ISerializedHandle */
76
-
77
- /* Excluded from this release type: ISnapshotTreeWithBlobContents */
78
-
79
- /* Excluded from this release type: isSerializedHandle */
80
-
81
- /* Excluded from this release type: ISummarizeResult */
82
-
83
- /* Excluded from this release type: listBlobsAtTreePath */
84
-
85
- /* Excluded from this release type: mergeStats */
86
-
87
- /* Excluded from this release type: ObjectStoragePartition */
88
-
89
- /* Excluded from this release type: processAttachMessageGCData */
90
-
91
- /* Excluded from this release type: ReadAndParseBlob */
92
-
93
- /* Excluded from this release type: RequestParser */
94
-
95
- /* Excluded from this release type: responseToException */
96
-
97
- /* Excluded from this release type: RuntimeFactoryHelper */
98
-
99
- /* Excluded from this release type: seqFromTree */
100
-
101
- /* Excluded from this release type: SummaryTreeBuilder */
102
-
103
- /* Excluded from this release type: TelemetryContext */
104
-
105
- /* Excluded from this release type: unpackChildNodesUsedRoutes */
106
-
107
- /* Excluded from this release type: utf8ByteLength */
108
-
109
- export { }