@fluidframework/runtime-utils 2.0.0-internal.7.0.0 → 2.0.0-internal.7.2.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/runtime-utils
2
2
 
3
+ ## 2.0.0-internal.7.2.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.7.1.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.0.0-internal.7.0.0
4
12
 
5
13
  ### Major Changes
@@ -1,4 +1,12 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "@fluidframework/build-common/api-extractor-common-report.json"
3
+ "extends": "@fluidframework/build-common/api-extractor-base.json",
4
+ "messages": {
5
+ "extractorMessageReporting": {
6
+ "ae-missing-release-tag": {
7
+ // TODO: Fix violations and remove this rule override
8
+ "logLevel": "none"
9
+ }
10
+ }
11
+ }
4
12
  }
@@ -0,0 +1,205 @@
1
+ ## API Report File for "@fluidframework/runtime-utils"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { FluidObject } from '@fluidframework/core-interfaces';
8
+ import { IChannelStorageService } from '@fluidframework/datastore-definitions';
9
+ import { IContainerContext } from '@fluidframework/container-definitions';
10
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
11
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
12
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
13
+ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
14
+ import { IFluidRouter } from '@fluidframework/core-interfaces';
15
+ import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
16
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
17
+ import { IRequest } from '@fluidframework/core-interfaces';
18
+ import { IRequestHeader } from '@fluidframework/core-interfaces';
19
+ import { IResponse } from '@fluidframework/core-interfaces';
20
+ import { IRuntime } from '@fluidframework/container-definitions';
21
+ import { IRuntimeFactory } from '@fluidframework/container-definitions';
22
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
23
+ import { ISummarizeResult } from '@fluidframework/runtime-definitions';
24
+ import { ISummaryBlob } from '@fluidframework/protocol-definitions';
25
+ import { ISummaryStats } from '@fluidframework/runtime-definitions';
26
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
27
+ import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
28
+ import { ITelemetryContext } from '@fluidframework/runtime-definitions';
29
+ import { ITree } from '@fluidframework/protocol-definitions';
30
+ import { SummaryObject } from '@fluidframework/protocol-definitions';
31
+ import { SummaryType } from '@fluidframework/protocol-definitions';
32
+ import { TelemetryEventPropertyType } from '@fluidframework/core-interfaces';
33
+
34
+ // @public (undocumented)
35
+ export function addBlobToSummary(summary: ISummaryTreeWithStats, key: string, content: string | Uint8Array): void;
36
+
37
+ // @public (undocumented)
38
+ export function addSummarizeResultToSummary(summary: ISummaryTreeWithStats, key: string, summarizeResult: ISummarizeResult): void;
39
+
40
+ // @public (undocumented)
41
+ export function addTreeToSummary(summary: ISummaryTreeWithStats, key: string, summarizeResult: ISummarizeResult): void;
42
+
43
+ // @public (undocumented)
44
+ export function calculateStats(summary: SummaryObject): ISummaryStats;
45
+
46
+ // @public
47
+ export function convertSnapshotTreeToSummaryTree(snapshot: ISnapshotTree): ISummaryTreeWithStats;
48
+
49
+ // @public
50
+ export function convertSummaryTreeToITree(summaryTree: ISummaryTree): ITree;
51
+
52
+ // @public
53
+ export function convertToSummaryTree(snapshot: ITree, fullTree?: boolean): ISummarizeResult;
54
+
55
+ // @public
56
+ export function convertToSummaryTreeWithStats(snapshot: ITree, fullTree?: boolean): ISummaryTreeWithStats;
57
+
58
+ // @public (undocumented)
59
+ export const create404Response: (request: IRequest) => IResponse;
60
+
61
+ // @public (undocumented)
62
+ export function createDataStoreFactory(type: string, factory: Factory | Promise<Factory>): IFluidDataStoreFactory & IFluidDataStoreRegistry;
63
+
64
+ // @public (undocumented)
65
+ export function createResponseError(status: number, value: string, request: IRequest, headers?: {
66
+ [key: string]: any;
67
+ }): IResponse;
68
+
69
+ // @public (undocumented)
70
+ export function exceptionToResponse(err: any): IResponse;
71
+
72
+ // @public (undocumented)
73
+ export type Factory = IFluidDataStoreFactory & Partial<IProvideFluidDataStoreRegistry>;
74
+
75
+ // @internal
76
+ export class GCDataBuilder implements IGarbageCollectionData {
77
+ // (undocumented)
78
+ addNode(id: string, outboundRoutes: string[]): void;
79
+ // (undocumented)
80
+ addNodes(gcNodes: {
81
+ [id: string]: string[];
82
+ }): void;
83
+ addRouteToAllNodes(outboundRoute: string): void;
84
+ // (undocumented)
85
+ get gcNodes(): {
86
+ [id: string]: string[];
87
+ };
88
+ // (undocumented)
89
+ getGCData(): IGarbageCollectionData;
90
+ prefixAndAddNodes(prefixId: string, gcNodes: {
91
+ [id: string]: string[];
92
+ }): void;
93
+ }
94
+
95
+ // @public
96
+ export function generateHandleContextPath(path: string, routeContext?: IFluidHandleContext): string;
97
+
98
+ // @public (undocumented)
99
+ export function getBlobSize(content: ISummaryBlob["content"]): number;
100
+
101
+ // @public (undocumented)
102
+ export function getNormalizedObjectStoragePathParts(path: string): string[];
103
+
104
+ // @public (undocumented)
105
+ export function listBlobsAtTreePath(inputTree: ITree | undefined, path: string): Promise<string[]>;
106
+
107
+ // @public
108
+ export function mergeStats(...stats: ISummaryStats[]): ISummaryStats;
109
+
110
+ // @public
111
+ export class ObjectStoragePartition implements IChannelStorageService {
112
+ constructor(storage: IChannelStorageService, path: string);
113
+ // (undocumented)
114
+ contains(path: string): Promise<boolean>;
115
+ // (undocumented)
116
+ list(path: string): Promise<string[]>;
117
+ // (undocumented)
118
+ readBlob(path: string): Promise<ArrayBufferLike>;
119
+ }
120
+
121
+ // @public
122
+ export type ReadAndParseBlob = <T>(id: string) => Promise<T>;
123
+
124
+ // @public @deprecated (undocumented)
125
+ export function requestFluidObject<T = FluidObject>(router: IFluidRouter, url: string | IRequest): Promise<T>;
126
+
127
+ // @public
128
+ export class RequestParser implements IRequest {
129
+ protected constructor(request: Readonly<IRequest>);
130
+ // (undocumented)
131
+ static create(request: Readonly<IRequest>): RequestParser;
132
+ createSubRequest(startingPathIndex: number): IRequest;
133
+ static getPathParts(url: string): readonly string[];
134
+ // (undocumented)
135
+ get headers(): IRequestHeader | undefined;
136
+ isLeaf(elements: number): boolean;
137
+ get pathParts(): readonly string[];
138
+ // (undocumented)
139
+ readonly query: string;
140
+ // (undocumented)
141
+ get url(): string;
142
+ }
143
+
144
+ // @public (undocumented)
145
+ export function responseToException(response: IResponse, request: IRequest): Error;
146
+
147
+ // @public (undocumented)
148
+ export abstract class RuntimeFactoryHelper<T = IContainerRuntime> implements IRuntimeFactory {
149
+ // (undocumented)
150
+ hasInitialized(_runtime: T): Promise<void>;
151
+ // (undocumented)
152
+ instantiateFirstTime(_runtime: T): Promise<void>;
153
+ // (undocumented)
154
+ instantiateFromExisting(_runtime: T): Promise<void>;
155
+ // (undocumented)
156
+ instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
157
+ // (undocumented)
158
+ get IRuntimeFactory(): this;
159
+ // (undocumented)
160
+ abstract preInitialize(context: IContainerContext, existing: boolean): Promise<IRuntime & T>;
161
+ }
162
+
163
+ // @public
164
+ export function seqFromTree(tree: ISnapshotTree, readAndParseBlob: ReadAndParseBlob): Promise<number>;
165
+
166
+ // @public (undocumented)
167
+ export class SummaryTreeBuilder implements ISummaryTreeWithStats {
168
+ constructor();
169
+ // (undocumented)
170
+ addAttachment(id: string): void;
171
+ // (undocumented)
172
+ addBlob(key: string, content: string | Uint8Array): void;
173
+ // (undocumented)
174
+ addHandle(key: string, handleType: SummaryType.Tree | SummaryType.Blob | SummaryType.Attachment, handle: string): void;
175
+ // (undocumented)
176
+ addWithStats(key: string, summarizeResult: ISummarizeResult): void;
177
+ // (undocumented)
178
+ getSummaryTree(): ISummaryTreeWithStats;
179
+ // (undocumented)
180
+ get stats(): Readonly<ISummaryStats>;
181
+ // (undocumented)
182
+ get summary(): ISummaryTree;
183
+ }
184
+
185
+ // @public (undocumented)
186
+ export class TelemetryContext implements ITelemetryContext {
187
+ // (undocumented)
188
+ get(prefix: string, property: string): TelemetryEventPropertyType;
189
+ // (undocumented)
190
+ serialize(): string;
191
+ // (undocumented)
192
+ set(prefix: string, property: string, value: TelemetryEventPropertyType): void;
193
+ // (undocumented)
194
+ setMultiple(prefix: string, property: string, values: Record<string, TelemetryEventPropertyType>): void;
195
+ }
196
+
197
+ // @public
198
+ export function unpackChildNodesUsedRoutes(usedRoutes: string[]): Map<string, string[]>;
199
+
200
+ // @public (undocumented)
201
+ export function utf8ByteLength(str: string): number;
202
+
203
+ // (No @packageDocumentation comment for this package)
204
+
205
+ ```
@@ -1 +1 @@
1
- {"version":3,"file":"objectstoragepartition.d.ts","sourceRoot":"","sources":["../src/objectstoragepartition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,qBAAa,sBAAuB,YAAW,sBAAsB;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO;IAA0B,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAtD,OAAO,EAAE,sBAAsB,EAAmB,IAAI,EAAE,MAAM;IAK9E,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIhD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAGlD"}
1
+ {"version":3,"file":"objectstoragepartition.d.ts","sourceRoot":"","sources":["../src/objectstoragepartition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,qBAAa,sBAAuB,YAAW,sBAAsB;IAEnE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBADJ,OAAO,EAAE,sBAAsB,EAC/B,IAAI,EAAE,MAAM;IAMjB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIhD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAGlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"objectstoragepartition.js","sourceRoot":"","sources":["../src/objectstoragepartition.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2DAAoD;AAGpD;;GAEG;AACH,MAAa,sBAAsB;IAClC,YAA6B,OAA+B,EAAmB,IAAY;QAA9D,YAAO,GAAP,OAAO,CAAwB;QAAmB,SAAI,GAAJ,IAAI,CAAQ;QAC1F,kDAAkD;QAClD,IAAA,mBAAM,EAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,IAAY;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IAClD,CAAC;CACD;AAjBD,wDAiBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IChannelStorageService } from \"@fluidframework/datastore-definitions\";\n\n/**\n * Returns a new IChannelStorageService that resolves the given `path` as root.\n */\nexport class ObjectStoragePartition implements IChannelStorageService {\n\tconstructor(private readonly storage: IChannelStorageService, private readonly path: string) {\n\t\t// `path` must not include the trailing separator.\n\t\tassert(!path.endsWith(\"/\"), 0x19c /* \"storage service path has trailing separator\" */);\n\t}\n\n\tpublic async readBlob(path: string): Promise<ArrayBufferLike> {\n\t\treturn this.storage.readBlob(`${this.path}/${path}`);\n\t}\n\n\tpublic async contains(path: string): Promise<boolean> {\n\t\treturn this.storage.contains(`${this.path}/${path}`);\n\t}\n\n\tpublic async list(path: string): Promise<string[]> {\n\t\treturn this.storage.list(`${this.path}/${path}`);\n\t}\n}\n"]}
1
+ {"version":3,"file":"objectstoragepartition.js","sourceRoot":"","sources":["../src/objectstoragepartition.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2DAAoD;AAGpD;;GAEG;AACH,MAAa,sBAAsB;IAClC,YACkB,OAA+B,EAC/B,IAAY;QADZ,YAAO,GAAP,OAAO,CAAwB;QAC/B,SAAI,GAAJ,IAAI,CAAQ;QAE7B,kDAAkD;QAClD,IAAA,mBAAM,EAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,IAAY;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IAClD,CAAC;CACD;AApBD,wDAoBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IChannelStorageService } from \"@fluidframework/datastore-definitions\";\n\n/**\n * Returns a new IChannelStorageService that resolves the given `path` as root.\n */\nexport class ObjectStoragePartition implements IChannelStorageService {\n\tconstructor(\n\t\tprivate readonly storage: IChannelStorageService,\n\t\tprivate readonly path: string,\n\t) {\n\t\t// `path` must not include the trailing separator.\n\t\tassert(!path.endsWith(\"/\"), 0x19c /* \"storage service path has trailing separator\" */);\n\t}\n\n\tpublic async readBlob(path: string): Promise<ArrayBufferLike> {\n\t\treturn this.storage.readBlob(`${this.path}/${path}`);\n\t}\n\n\tpublic async contains(path: string): Promise<boolean> {\n\t\treturn this.storage.contains(`${this.path}/${path}`);\n\t}\n\n\tpublic async list(path: string): Promise<string[]> {\n\t\treturn this.storage.list(`${this.path}/${path}`);\n\t}\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.37.0"
8
+ "packageVersion": "7.38.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"objectstoragepartition.d.ts","sourceRoot":"","sources":["../src/objectstoragepartition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,qBAAa,sBAAuB,YAAW,sBAAsB;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO;IAA0B,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAtD,OAAO,EAAE,sBAAsB,EAAmB,IAAI,EAAE,MAAM;IAK9E,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIhD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAGlD"}
1
+ {"version":3,"file":"objectstoragepartition.d.ts","sourceRoot":"","sources":["../src/objectstoragepartition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,qBAAa,sBAAuB,YAAW,sBAAsB;IAEnE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBADJ,OAAO,EAAE,sBAAsB,EAC/B,IAAI,EAAE,MAAM;IAMjB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIhD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAGlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"objectstoragepartition.js","sourceRoot":"","sources":["../src/objectstoragepartition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGpD;;GAEG;AACH,MAAM,OAAO,sBAAsB;IAClC,YAA6B,OAA+B,EAAmB,IAAY;QAA9D,YAAO,GAAP,OAAO,CAAwB;QAAmB,SAAI,GAAJ,IAAI,CAAQ;QAC1F,kDAAkD;QAClD,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,IAAY;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IAClD,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IChannelStorageService } from \"@fluidframework/datastore-definitions\";\n\n/**\n * Returns a new IChannelStorageService that resolves the given `path` as root.\n */\nexport class ObjectStoragePartition implements IChannelStorageService {\n\tconstructor(private readonly storage: IChannelStorageService, private readonly path: string) {\n\t\t// `path` must not include the trailing separator.\n\t\tassert(!path.endsWith(\"/\"), 0x19c /* \"storage service path has trailing separator\" */);\n\t}\n\n\tpublic async readBlob(path: string): Promise<ArrayBufferLike> {\n\t\treturn this.storage.readBlob(`${this.path}/${path}`);\n\t}\n\n\tpublic async contains(path: string): Promise<boolean> {\n\t\treturn this.storage.contains(`${this.path}/${path}`);\n\t}\n\n\tpublic async list(path: string): Promise<string[]> {\n\t\treturn this.storage.list(`${this.path}/${path}`);\n\t}\n}\n"]}
1
+ {"version":3,"file":"objectstoragepartition.js","sourceRoot":"","sources":["../src/objectstoragepartition.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGpD;;GAEG;AACH,MAAM,OAAO,sBAAsB;IAClC,YACkB,OAA+B,EAC/B,IAAY;QADZ,YAAO,GAAP,OAAO,CAAwB;QAC/B,SAAI,GAAJ,IAAI,CAAQ;QAE7B,kDAAkD;QAClD,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,IAAY;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IAClD,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IChannelStorageService } from \"@fluidframework/datastore-definitions\";\n\n/**\n * Returns a new IChannelStorageService that resolves the given `path` as root.\n */\nexport class ObjectStoragePartition implements IChannelStorageService {\n\tconstructor(\n\t\tprivate readonly storage: IChannelStorageService,\n\t\tprivate readonly path: string,\n\t) {\n\t\t// `path` must not include the trailing separator.\n\t\tassert(!path.endsWith(\"/\"), 0x19c /* \"storage service path has trailing separator\" */);\n\t}\n\n\tpublic async readBlob(path: string): Promise<ArrayBufferLike> {\n\t\treturn this.storage.readBlob(`${this.path}/${path}`);\n\t}\n\n\tpublic async contains(path: string): Promise<boolean> {\n\t\treturn this.storage.contains(`${this.path}/${path}`);\n\t}\n\n\tpublic async list(path: string): Promise<string[]> {\n\t\treturn this.storage.list(`${this.path}/${path}`);\n\t}\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/runtime-utils",
3
- "version": "2.0.0-internal.7.0.0",
3
+ "version": "2.0.0-internal.7.2.0",
4
4
  "description": "Collection of utility functions for Fluid Runtime",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -35,36 +35,35 @@
35
35
  "temp-directory": "nyc/.nyc_output"
36
36
  },
37
37
  "dependencies": {
38
- "@fluid-internal/client-utils": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
39
- "@fluidframework/container-definitions": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
40
- "@fluidframework/container-runtime-definitions": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
41
- "@fluidframework/core-interfaces": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
42
- "@fluidframework/core-utils": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
43
- "@fluidframework/datastore-definitions": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
44
- "@fluidframework/driver-utils": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
38
+ "@fluid-internal/client-utils": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
39
+ "@fluidframework/container-definitions": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
40
+ "@fluidframework/container-runtime-definitions": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
41
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
42
+ "@fluidframework/core-utils": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
43
+ "@fluidframework/datastore-definitions": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
44
+ "@fluidframework/driver-utils": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
45
45
  "@fluidframework/protocol-definitions": "^3.0.0",
46
- "@fluidframework/runtime-definitions": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
47
- "@fluidframework/telemetry-utils": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0"
46
+ "@fluidframework/runtime-definitions": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
47
+ "@fluidframework/telemetry-utils": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@fluid-tools/build-cli": "^0.24.0",
51
- "@fluidframework/build-common": "^2.0.0",
52
- "@fluidframework/build-tools": "^0.24.0",
53
- "@fluidframework/eslint-config-fluid": "^2.1.0",
54
- "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
55
- "@fluidframework/runtime-utils-previous": "npm:@fluidframework/runtime-utils@2.0.0-internal.6.3.0",
50
+ "@fluid-tools/build-cli": "^0.26.1",
51
+ "@fluidframework/build-common": "^2.0.3",
52
+ "@fluidframework/build-tools": "^0.26.1",
53
+ "@fluidframework/eslint-config-fluid": "^3.0.0",
54
+ "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
55
+ "@fluidframework/runtime-utils-previous": "npm:@fluidframework/runtime-utils@2.0.0-internal.7.1.0",
56
56
  "@microsoft/api-extractor": "^7.37.0",
57
57
  "@types/mocha": "^9.1.1",
58
58
  "@types/node": "^16.18.38",
59
59
  "c8": "^7.7.1",
60
- "copyfiles": "^2.4.1",
61
60
  "cross-env": "^7.0.3",
62
- "eslint": "~8.6.0",
61
+ "eslint": "~8.50.0",
63
62
  "mocha": "^10.2.0",
64
63
  "mocha-json-output-reporter": "^2.0.1",
65
64
  "mocha-multi-reporters": "^1.5.1",
66
65
  "moment": "^2.21.0",
67
- "prettier": "~2.6.2",
66
+ "prettier": "~3.0.3",
68
67
  "rimraf": "^4.4.0",
69
68
  "sinon": "^7.4.2",
70
69
  "ts-node": "^10.9.1",
@@ -77,11 +76,11 @@
77
76
  "build": "fluid-build . --task build",
78
77
  "build:commonjs": "fluid-build . --task commonjs",
79
78
  "build:compile": "fluid-build . --task compile",
80
- "build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
79
+ "build:docs": "api-extractor run --local",
81
80
  "build:esnext": "tsc --project ./tsconfig.esnext.json",
82
81
  "build:test": "tsc --project ./src/test/tsconfig.json",
83
- "ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
84
- "clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp' 'nyc'",
82
+ "ci:build:docs": "api-extractor run",
83
+ "clean": "rimraf --glob dist lib \"*.tsbuildinfo\" \"*.build.log\" _api-extractor-temp nyc",
85
84
  "eslint": "eslint --format stylish src",
86
85
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
87
86
  "format": "npm run prettier:fix",
@@ -10,7 +10,10 @@ import { IChannelStorageService } from "@fluidframework/datastore-definitions";
10
10
  * Returns a new IChannelStorageService that resolves the given `path` as root.
11
11
  */
12
12
  export class ObjectStoragePartition implements IChannelStorageService {
13
- constructor(private readonly storage: IChannelStorageService, private readonly path: string) {
13
+ constructor(
14
+ private readonly storage: IChannelStorageService,
15
+ private readonly path: string,
16
+ ) {
14
17
  // `path` must not include the trailing separator.
15
18
  assert(!path.endsWith("/"), 0x19c /* "storage service path has trailing separator" */);
16
19
  }