@fluidframework/runtime-utils 2.0.0-dev-rc.5.0.0.265721 → 2.0.0-dev-rc.5.0.0.268409
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/api-report/{runtime-utils.api.md → runtime-utils.alpha.api.md} +11 -137
- package/api-report/runtime-utils.beta.api.md +44 -0
- package/api-report/runtime-utils.public.api.md +44 -0
- package/dist/deltaManager.d.ts +2 -1
- package/dist/deltaManager.d.ts.map +1 -1
- package/dist/deltaManager.js.map +1 -1
- package/dist/handles.d.ts +1 -1
- package/dist/handles.d.ts.map +1 -1
- package/dist/handles.js.map +1 -1
- package/dist/objectstorageutils.d.ts +1 -1
- package/dist/objectstorageutils.d.ts.map +1 -1
- package/dist/objectstorageutils.js.map +1 -1
- package/dist/snapshotUtils.d.ts +1 -1
- package/dist/snapshotUtils.d.ts.map +1 -1
- package/dist/snapshotUtils.js.map +1 -1
- package/dist/summaryUtils.d.ts +8 -7
- package/dist/summaryUtils.d.ts.map +1 -1
- package/dist/summaryUtils.js +24 -23
- package/dist/summaryUtils.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js.map +1 -1
- package/lib/deltaManager.d.ts +2 -1
- package/lib/deltaManager.d.ts.map +1 -1
- package/lib/deltaManager.js.map +1 -1
- package/lib/handles.d.ts +1 -1
- package/lib/handles.d.ts.map +1 -1
- package/lib/handles.js.map +1 -1
- package/lib/objectstorageutils.d.ts +1 -1
- package/lib/objectstorageutils.d.ts.map +1 -1
- package/lib/objectstorageutils.js.map +1 -1
- package/lib/snapshotUtils.d.ts +1 -1
- package/lib/snapshotUtils.d.ts.map +1 -1
- package/lib/snapshotUtils.js.map +1 -1
- package/lib/summaryUtils.d.ts +8 -7
- package/lib/summaryUtils.d.ts.map +1 -1
- package/lib/summaryUtils.js +2 -1
- package/lib/summaryUtils.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib/utils.d.ts +1 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js.map +1 -1
- package/package.json +16 -16
- package/src/deltaManager.ts +2 -4
- package/src/handles.ts +1 -1
- package/src/objectstorageutils.ts +1 -1
- package/src/snapshotUtils.ts +1 -1
- package/src/summaryUtils.ts +14 -15
- package/src/utils.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## API Report File for "@fluidframework/runtime-utils"
|
|
1
|
+
## Alpha API Report File for "@fluidframework/runtime-utils"
|
|
2
2
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ import { IContainerContext } from '@fluidframework/container-definitions/interna
|
|
|
10
10
|
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
|
|
11
11
|
import type { IDeltaManager } from '@fluidframework/container-definitions/internal';
|
|
12
12
|
import type { IDeltaManagerErased } from '@fluidframework/datastore-definitions/internal';
|
|
13
|
-
import type { IDocumentMessage } from '@fluidframework/
|
|
13
|
+
import type { IDocumentMessage } from '@fluidframework/driver-definitions/internal';
|
|
14
14
|
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
15
15
|
import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
16
16
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
@@ -24,37 +24,20 @@ import { IRequestHeader } from '@fluidframework/core-interfaces';
|
|
|
24
24
|
import { IResponse } from '@fluidframework/core-interfaces';
|
|
25
25
|
import { IRuntime } from '@fluidframework/container-definitions/internal';
|
|
26
26
|
import { IRuntimeFactory } from '@fluidframework/container-definitions/internal';
|
|
27
|
-
import type { ISequencedDocumentMessage } from '@fluidframework/
|
|
28
|
-
import { ISnapshotTree } from '@fluidframework/
|
|
27
|
+
import type { ISequencedDocumentMessage } from '@fluidframework/driver-definitions';
|
|
28
|
+
import { ISnapshotTree } from '@fluidframework/driver-definitions/internal';
|
|
29
29
|
import { ISnapshotTreeWithBlobContents } from '@fluidframework/container-definitions/internal';
|
|
30
30
|
import { ISummarizeResult } from '@fluidframework/runtime-definitions/internal';
|
|
31
|
-
import { ISummaryBlob } from '@fluidframework/
|
|
31
|
+
import { ISummaryBlob } from '@fluidframework/driver-definitions';
|
|
32
32
|
import { ISummaryStats } from '@fluidframework/runtime-definitions/internal';
|
|
33
|
-
import { ISummaryTree } from '@fluidframework/
|
|
33
|
+
import { ISummaryTree } from '@fluidframework/driver-definitions';
|
|
34
34
|
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions/internal';
|
|
35
35
|
import { ITelemetryContext } from '@fluidframework/runtime-definitions/internal';
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import
|
|
40
|
-
|
|
41
|
-
// @internal (undocumented)
|
|
42
|
-
export function addBlobToSummary(summary: ISummaryTreeWithStats, key: string, content: string | Uint8Array): void;
|
|
43
|
-
|
|
44
|
-
// @internal (undocumented)
|
|
45
|
-
export function addSummarizeResultToSummary(summary: ISummaryTreeWithStats, key: string, summarizeResult: ISummarizeResult): void;
|
|
46
|
-
|
|
47
|
-
// @internal (undocumented)
|
|
48
|
-
export function calculateStats(summary: SummaryObject): ISummaryStats;
|
|
49
|
-
|
|
50
|
-
// @internal
|
|
51
|
-
export function convertSnapshotTreeToSummaryTree(snapshot: ISnapshotTreeWithBlobContents): ISummaryTreeWithStats;
|
|
52
|
-
|
|
53
|
-
// @internal
|
|
54
|
-
export function convertSummaryTreeToITree(summaryTree: ISummaryTree): ITree;
|
|
55
|
-
|
|
56
|
-
// @internal
|
|
57
|
-
export function convertToSummaryTree(snapshot: ITree, fullTree?: boolean): ISummarizeResult;
|
|
36
|
+
import { ITelemetryContextExt } from '@fluidframework/runtime-definitions/internal';
|
|
37
|
+
import { ITree } from '@fluidframework/driver-definitions/internal';
|
|
38
|
+
import { SummaryObject } from '@fluidframework/driver-definitions';
|
|
39
|
+
import { SummaryType } from '@fluidframework/driver-definitions';
|
|
40
|
+
import type { TelemetryEventPropertyTypeExt } from '@fluidframework/telemetry-utils/internal';
|
|
58
41
|
|
|
59
42
|
// @alpha
|
|
60
43
|
export function convertToSummaryTreeWithStats(snapshot: ITree, fullTree?: boolean): ISummaryTreeWithStats;
|
|
@@ -62,23 +45,6 @@ export function convertToSummaryTreeWithStats(snapshot: ITree, fullTree?: boolea
|
|
|
62
45
|
// @alpha (undocumented)
|
|
63
46
|
export const create404Response: (request: IRequest) => IResponse;
|
|
64
47
|
|
|
65
|
-
// @internal (undocumented)
|
|
66
|
-
export function createDataStoreFactory(type: string, factory: Factory | Promise<Factory>): IFluidDataStoreFactory & IFluidDataStoreRegistry;
|
|
67
|
-
|
|
68
|
-
// @internal (undocumented)
|
|
69
|
-
export function createResponseError(status: number, value: string, request: IRequest, headers?: {
|
|
70
|
-
[key: string]: any;
|
|
71
|
-
}): IResponse;
|
|
72
|
-
|
|
73
|
-
// @internal
|
|
74
|
-
export function encodeCompactIdToString(idArg: number | string, prefix?: string): string;
|
|
75
|
-
|
|
76
|
-
// @internal (undocumented)
|
|
77
|
-
export function exceptionToResponse(err: any): IResponse;
|
|
78
|
-
|
|
79
|
-
// @internal (undocumented)
|
|
80
|
-
export type Factory = IFluidDataStoreFactory & Partial<IProvideFluidDataStoreRegistry>;
|
|
81
|
-
|
|
82
48
|
// @alpha
|
|
83
49
|
export abstract class FluidHandleBase<T> implements IFluidHandleInternal<T> {
|
|
84
50
|
// (undocumented)
|
|
@@ -96,75 +62,6 @@ export abstract class FluidHandleBase<T> implements IFluidHandleInternal<T> {
|
|
|
96
62
|
abstract readonly isAttached: boolean;
|
|
97
63
|
}
|
|
98
64
|
|
|
99
|
-
// @internal
|
|
100
|
-
export class GCDataBuilder implements IGarbageCollectionData {
|
|
101
|
-
// (undocumented)
|
|
102
|
-
addNode(id: string, outboundRoutes: string[]): void;
|
|
103
|
-
// (undocumented)
|
|
104
|
-
addNodes(gcNodes: {
|
|
105
|
-
[id: string]: string[];
|
|
106
|
-
}): void;
|
|
107
|
-
addRouteToAllNodes(outboundRoute: string): void;
|
|
108
|
-
// (undocumented)
|
|
109
|
-
get gcNodes(): {
|
|
110
|
-
[id: string]: string[];
|
|
111
|
-
};
|
|
112
|
-
// (undocumented)
|
|
113
|
-
getGCData(): IGarbageCollectionData;
|
|
114
|
-
prefixAndAddNodes(prefixId: string, gcNodes: {
|
|
115
|
-
[id: string]: string[];
|
|
116
|
-
}): void;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// @internal
|
|
120
|
-
export function generateHandleContextPath(path: string, routeContext?: IFluidHandleContext): string;
|
|
121
|
-
|
|
122
|
-
// @internal (undocumented)
|
|
123
|
-
export function getBlobSize(content: ISummaryBlob["content"]): number;
|
|
124
|
-
|
|
125
|
-
// @internal (undocumented)
|
|
126
|
-
export function getNormalizedObjectStoragePathParts(path: string): string[];
|
|
127
|
-
|
|
128
|
-
// @internal
|
|
129
|
-
export interface ISerializedHandle {
|
|
130
|
-
// (undocumented)
|
|
131
|
-
type: "__fluid_handle__";
|
|
132
|
-
// (undocumented)
|
|
133
|
-
url: string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// @internal
|
|
137
|
-
export function isFluidHandle(value: unknown): value is IFluidHandle;
|
|
138
|
-
|
|
139
|
-
// @internal
|
|
140
|
-
export const isSerializedHandle: (value: any) => value is ISerializedHandle;
|
|
141
|
-
|
|
142
|
-
// @internal
|
|
143
|
-
export function isSnapshotFetchRequiredForLoadingGroupId(snapshotTree: ISnapshotTree, blobContents: Map<string, ArrayBuffer>): boolean;
|
|
144
|
-
|
|
145
|
-
// @internal (undocumented)
|
|
146
|
-
export function listBlobsAtTreePath(inputTree: ITree | undefined, path: string): Promise<string[]>;
|
|
147
|
-
|
|
148
|
-
// @internal
|
|
149
|
-
export function mergeStats(...stats: ISummaryStats[]): ISummaryStats;
|
|
150
|
-
|
|
151
|
-
// @internal
|
|
152
|
-
export class ObjectStoragePartition implements IChannelStorageService {
|
|
153
|
-
constructor(storage: IChannelStorageService, path: string);
|
|
154
|
-
// (undocumented)
|
|
155
|
-
contains(path: string): Promise<boolean>;
|
|
156
|
-
// (undocumented)
|
|
157
|
-
list(path: string): Promise<string[]>;
|
|
158
|
-
// (undocumented)
|
|
159
|
-
readBlob(path: string): Promise<ArrayBufferLike>;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// @internal
|
|
163
|
-
export function processAttachMessageGCData(snapshot: ITree | null, addedGCOutboundRoute: (fromNodeId: string, toPath: string) => void): boolean;
|
|
164
|
-
|
|
165
|
-
// @internal
|
|
166
|
-
export type ReadAndParseBlob = <T>(id: string) => Promise<T>;
|
|
167
|
-
|
|
168
65
|
// @alpha
|
|
169
66
|
export class RequestParser implements IRequest {
|
|
170
67
|
protected constructor(request: Readonly<IRequest>);
|
|
@@ -182,9 +79,6 @@ export class RequestParser implements IRequest {
|
|
|
182
79
|
get url(): string;
|
|
183
80
|
}
|
|
184
81
|
|
|
185
|
-
// @internal (undocumented)
|
|
186
|
-
export function responseToException(response: IResponse, request: IRequest): Error;
|
|
187
|
-
|
|
188
82
|
// @alpha (undocumented)
|
|
189
83
|
export abstract class RuntimeFactoryHelper<T = IContainerRuntime> implements IRuntimeFactory {
|
|
190
84
|
// (undocumented)
|
|
@@ -201,9 +95,6 @@ export abstract class RuntimeFactoryHelper<T = IContainerRuntime> implements IRu
|
|
|
201
95
|
abstract preInitialize(context: IContainerContext, existing: boolean): Promise<IRuntime & T>;
|
|
202
96
|
}
|
|
203
97
|
|
|
204
|
-
// @internal
|
|
205
|
-
export function seqFromTree(tree: ISnapshotTree, readAndParseBlob: ReadAndParseBlob): Promise<number>;
|
|
206
|
-
|
|
207
98
|
// @alpha (undocumented)
|
|
208
99
|
export class SummaryTreeBuilder implements ISummaryTreeWithStats {
|
|
209
100
|
constructor();
|
|
@@ -223,17 +114,6 @@ export class SummaryTreeBuilder implements ISummaryTreeWithStats {
|
|
|
223
114
|
get summary(): ISummaryTree;
|
|
224
115
|
}
|
|
225
116
|
|
|
226
|
-
// @internal (undocumented)
|
|
227
|
-
export class TelemetryContext implements ITelemetryContext {
|
|
228
|
-
get(prefix: string, property: string): TelemetryBaseEventPropertyType;
|
|
229
|
-
serialize(): string;
|
|
230
|
-
set(prefix: string, property: string, value: TelemetryBaseEventPropertyType): void;
|
|
231
|
-
setMultiple(prefix: string, property: string, values: Record<string, TelemetryBaseEventPropertyType>): void;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// @internal
|
|
235
|
-
export function toDeltaManagerErased(deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>): IDeltaManagerErased;
|
|
236
|
-
|
|
237
117
|
// @alpha
|
|
238
118
|
export function toDeltaManagerInternal(deltaManager: IDeltaManagerErased): IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
|
|
239
119
|
|
|
@@ -243,12 +123,6 @@ export function toFluidHandleErased<T>(handle: IFluidHandleInternal<T>): IFluidH
|
|
|
243
123
|
// @alpha
|
|
244
124
|
export function toFluidHandleInternal<T>(handle: IFluidHandle<T>): IFluidHandleInternal<T>;
|
|
245
125
|
|
|
246
|
-
// @internal
|
|
247
|
-
export function unpackChildNodesUsedRoutes(usedRoutes: readonly string[]): Map<string, string[]>;
|
|
248
|
-
|
|
249
|
-
// @internal (undocumented)
|
|
250
|
-
export function utf8ByteLength(str: string): number;
|
|
251
|
-
|
|
252
126
|
// (No @packageDocumentation comment for this package)
|
|
253
127
|
|
|
254
128
|
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
## Beta 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 { fluidHandleSymbol } from '@fluidframework/core-interfaces';
|
|
8
|
+
import { IChannelStorageService } from '@fluidframework/datastore-definitions/internal';
|
|
9
|
+
import { IContainerContext } from '@fluidframework/container-definitions/internal';
|
|
10
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
|
|
11
|
+
import type { IDeltaManager } from '@fluidframework/container-definitions/internal';
|
|
12
|
+
import type { IDeltaManagerErased } from '@fluidframework/datastore-definitions/internal';
|
|
13
|
+
import type { IDocumentMessage } from '@fluidframework/driver-definitions/internal';
|
|
14
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
15
|
+
import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
16
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
17
|
+
import { IFluidHandleContext } from '@fluidframework/core-interfaces/internal';
|
|
18
|
+
import type { IFluidHandleErased } from '@fluidframework/core-interfaces';
|
|
19
|
+
import type { IFluidHandleInternal } from '@fluidframework/core-interfaces/internal';
|
|
20
|
+
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions/internal';
|
|
21
|
+
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
22
|
+
import { IRequest } from '@fluidframework/core-interfaces';
|
|
23
|
+
import { IRequestHeader } from '@fluidframework/core-interfaces';
|
|
24
|
+
import { IResponse } from '@fluidframework/core-interfaces';
|
|
25
|
+
import { IRuntime } from '@fluidframework/container-definitions/internal';
|
|
26
|
+
import { IRuntimeFactory } from '@fluidframework/container-definitions/internal';
|
|
27
|
+
import type { ISequencedDocumentMessage } from '@fluidframework/driver-definitions';
|
|
28
|
+
import { ISnapshotTree } from '@fluidframework/driver-definitions/internal';
|
|
29
|
+
import { ISnapshotTreeWithBlobContents } from '@fluidframework/container-definitions/internal';
|
|
30
|
+
import { ISummarizeResult } from '@fluidframework/runtime-definitions/internal';
|
|
31
|
+
import { ISummaryBlob } from '@fluidframework/driver-definitions';
|
|
32
|
+
import { ISummaryStats } from '@fluidframework/runtime-definitions/internal';
|
|
33
|
+
import { ISummaryTree } from '@fluidframework/driver-definitions';
|
|
34
|
+
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions/internal';
|
|
35
|
+
import { ITelemetryContext } from '@fluidframework/runtime-definitions/internal';
|
|
36
|
+
import { ITelemetryContextExt } from '@fluidframework/runtime-definitions/internal';
|
|
37
|
+
import { ITree } from '@fluidframework/driver-definitions/internal';
|
|
38
|
+
import { SummaryObject } from '@fluidframework/driver-definitions';
|
|
39
|
+
import { SummaryType } from '@fluidframework/driver-definitions';
|
|
40
|
+
import type { TelemetryEventPropertyTypeExt } from '@fluidframework/telemetry-utils/internal';
|
|
41
|
+
|
|
42
|
+
// (No @packageDocumentation comment for this package)
|
|
43
|
+
|
|
44
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
## Public 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 { fluidHandleSymbol } from '@fluidframework/core-interfaces';
|
|
8
|
+
import { IChannelStorageService } from '@fluidframework/datastore-definitions/internal';
|
|
9
|
+
import { IContainerContext } from '@fluidframework/container-definitions/internal';
|
|
10
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
|
|
11
|
+
import type { IDeltaManager } from '@fluidframework/container-definitions/internal';
|
|
12
|
+
import type { IDeltaManagerErased } from '@fluidframework/datastore-definitions/internal';
|
|
13
|
+
import type { IDocumentMessage } from '@fluidframework/driver-definitions/internal';
|
|
14
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
15
|
+
import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
16
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
17
|
+
import { IFluidHandleContext } from '@fluidframework/core-interfaces/internal';
|
|
18
|
+
import type { IFluidHandleErased } from '@fluidframework/core-interfaces';
|
|
19
|
+
import type { IFluidHandleInternal } from '@fluidframework/core-interfaces/internal';
|
|
20
|
+
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions/internal';
|
|
21
|
+
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
22
|
+
import { IRequest } from '@fluidframework/core-interfaces';
|
|
23
|
+
import { IRequestHeader } from '@fluidframework/core-interfaces';
|
|
24
|
+
import { IResponse } from '@fluidframework/core-interfaces';
|
|
25
|
+
import { IRuntime } from '@fluidframework/container-definitions/internal';
|
|
26
|
+
import { IRuntimeFactory } from '@fluidframework/container-definitions/internal';
|
|
27
|
+
import type { ISequencedDocumentMessage } from '@fluidframework/driver-definitions';
|
|
28
|
+
import { ISnapshotTree } from '@fluidframework/driver-definitions/internal';
|
|
29
|
+
import { ISnapshotTreeWithBlobContents } from '@fluidframework/container-definitions/internal';
|
|
30
|
+
import { ISummarizeResult } from '@fluidframework/runtime-definitions/internal';
|
|
31
|
+
import { ISummaryBlob } from '@fluidframework/driver-definitions';
|
|
32
|
+
import { ISummaryStats } from '@fluidframework/runtime-definitions/internal';
|
|
33
|
+
import { ISummaryTree } from '@fluidframework/driver-definitions';
|
|
34
|
+
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions/internal';
|
|
35
|
+
import { ITelemetryContext } from '@fluidframework/runtime-definitions/internal';
|
|
36
|
+
import { ITelemetryContextExt } from '@fluidframework/runtime-definitions/internal';
|
|
37
|
+
import { ITree } from '@fluidframework/driver-definitions/internal';
|
|
38
|
+
import { SummaryObject } from '@fluidframework/driver-definitions';
|
|
39
|
+
import { SummaryType } from '@fluidframework/driver-definitions';
|
|
40
|
+
import type { TelemetryEventPropertyTypeExt } from '@fluidframework/telemetry-utils/internal';
|
|
41
|
+
|
|
42
|
+
// (No @packageDocumentation comment for this package)
|
|
43
|
+
|
|
44
|
+
```
|
package/dist/deltaManager.d.ts
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { IDeltaManager } from "@fluidframework/container-definitions/internal";
|
|
6
6
|
import type { IDeltaManagerErased } from "@fluidframework/datastore-definitions/internal";
|
|
7
|
-
import type {
|
|
7
|
+
import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions";
|
|
8
|
+
import type { IDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
8
9
|
/**
|
|
9
10
|
* Casts the public API for delta manager into the internal one,
|
|
10
11
|
* exposing access to APIs needed by the implementation of Fluid Framework but not its users.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deltaManager.d.ts","sourceRoot":"","sources":["../src/deltaManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"deltaManager.d.ts","sourceRoot":"","sources":["../src/deltaManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAEpF;;;;GAIG;AACH,wBAAgB,sBAAsB,CACrC,YAAY,EAAE,mBAAmB,GAC/B,aAAa,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,CAE5D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,YAAY,EAAE,aAAa,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,GACtE,mBAAmB,CAErB"}
|
package/dist/deltaManager.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deltaManager.js","sourceRoot":"","sources":["../src/deltaManager.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"deltaManager.js","sourceRoot":"","sources":["../src/deltaManager.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAOH;;;;GAIG;AACH,SAAgB,sBAAsB,CACrC,YAAiC;IAEjC,OAAO,YAAqF,CAAC;AAC9F,CAAC;AAJD,wDAIC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CACnC,YAAwE;IAExE,OAAO,YAA8C,CAAC;AACvD,CAAC;AAJD,oDAIC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IDeltaManager } from \"@fluidframework/container-definitions/internal\";\nimport type { IDeltaManagerErased } from \"@fluidframework/datastore-definitions/internal\";\nimport type { ISequencedDocumentMessage } from \"@fluidframework/driver-definitions\";\nimport type { IDocumentMessage } from \"@fluidframework/driver-definitions/internal\";\n\n/**\n * Casts the public API for delta manager into the internal one,\n * exposing access to APIs needed by the implementation of Fluid Framework but not its users.\n * @alpha\n */\nexport function toDeltaManagerInternal(\n\tdeltaManager: IDeltaManagerErased,\n): IDeltaManager<ISequencedDocumentMessage, IDocumentMessage> {\n\treturn deltaManager as unknown as IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;\n}\n\n/**\n * Casts the the internal API for delta manager into the public type erased API for returning from public APIs that should not have access to any of its members.\n * @internal\n */\nexport function toDeltaManagerErased(\n\tdeltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>,\n): IDeltaManagerErased {\n\treturn deltaManager as unknown as IDeltaManagerErased;\n}\n"]}
|
package/dist/handles.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import type { IFluidHandleErased } from "@fluidframework/core-interfaces";
|
|
6
|
-
import type { IFluidHandleInternal } from "@fluidframework/core-interfaces/internal";
|
|
7
6
|
import { IFluidHandle, fluidHandleSymbol } from "@fluidframework/core-interfaces";
|
|
7
|
+
import type { IFluidHandleInternal } from "@fluidframework/core-interfaces/internal";
|
|
8
8
|
/**
|
|
9
9
|
* JSON serialized form of an IFluidHandle
|
|
10
10
|
* @internal
|
package/dist/handles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handles.d.ts","sourceRoot":"","sources":["../src/handles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,
|
|
1
|
+
{"version":3,"file":"handles.d.ts","sourceRoot":"","sources":["../src/handles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAErF;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAEjC,IAAI,EAAE,kBAAkB,CAAC;IAGzB,GAAG,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,UAAW,GAAG,+BACV,CAAC;AAcpC;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAkBnE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAWzF;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAE7F;AAED;;;GAGG;AACH,8BAAsB,eAAe,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAC1E,SAAgB,YAAY,EAAE,MAAM,CAAC;aACrB,WAAW,IAAI,IAAI;aACnB,IAAI,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI;IACxD,kBAAyB,UAAU,EAAE,OAAO,CAAC;aAC7B,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC;IAEjC;;OAEG;IACH,IAAW,YAAY,IAAI,oBAAoB,CAE9C;IAED,IAAW,CAAC,iBAAiB,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAEtD;CACD"}
|
package/dist/handles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handles.js","sourceRoot":"","sources":["../src/handles.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"handles.js","sourceRoot":"","sources":["../src/handles.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,qEAAkF;AAelF;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,KAAU,EAA8B,EAAE,CAC5E,KAAK,EAAE,IAAI,KAAK,kBAAkB,CAAC;AADvB,QAAA,kBAAkB,sBACK;AAEpC;;;;;;;;;GASG;AACH,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAE1C;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,KAAc;IAC3C,sEAAsE;IACtE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjD,OAAO,KAAK,CAAC;IACd,CAAC;IACD,IAAI,mCAAiB,IAAI,KAAK,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACb,CAAC;IACD,kGAAkG;IAClG,IAAI,4BAA4B,IAAI,8BAAY,IAAI,KAAK,EAAE,CAAC;QAC3D,qHAAqH;QACrH,MAAM,KAAK,GAAG,KAAK,CAAC,8BAAY,CAAiB,CAAC;QAClD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACjD,OAAO,KAAK,CAAC;QACd,CAAC;QACD,OAAO,8BAAY,IAAI,KAAK,CAAC;IAC9B,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AAlBD,sCAkBC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAAI,MAAuB;IAC/D,IAAI,CAAC,CAAC,mCAAiB,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,mCAAiB,IAAI,MAAM,CAAC,mCAAiB,CAAC,CAAC,EAAE,CAAC;QACzF,IAAI,4BAA4B,IAAI,8BAAY,IAAI,MAAM,EAAE,CAAC;YAC5D,OAAO,MAAM,CAAC,8BAAY,CAA4B,CAAC;QACxD,CAAC;QACD,MAAM,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAAC;IAC7C,CAAC;IAED,kGAAkG;IAClG,6FAA6F;IAC7F,OAAO,MAAM,CAAC,mCAAiB,CAAuC,CAAC;AACxE,CAAC;AAXD,sDAWC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAI,MAA+B;IACrE,OAAO,MAA0C,CAAC;AACnD,CAAC;AAFD,kDAEC;AAED;;;GAGG;AACH,MAAsB,eAAe;IAOpC;;OAEG;IACH,IAAW,YAAY;QACtB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAW,CAAC,mCAAiB,CAAC;QAC7B,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACD;AAjBD,0CAiBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IFluidHandleErased } from \"@fluidframework/core-interfaces\";\nimport { IFluidHandle, fluidHandleSymbol } from \"@fluidframework/core-interfaces\";\nimport type { IFluidHandleInternal } from \"@fluidframework/core-interfaces/internal\";\n\n/**\n * JSON serialized form of an IFluidHandle\n * @internal\n */\nexport interface ISerializedHandle {\n\t// Marker to indicate to JSON.parse that the object is a Fluid handle\n\ttype: \"__fluid_handle__\";\n\n\t// URL to the object. Relative URLs are relative to the handle context passed to the stringify.\n\turl: string;\n}\n\n/**\n * Is the input object a @see ISerializedHandle?\n * @internal\n */\nexport const isSerializedHandle = (value: any): value is ISerializedHandle =>\n\tvalue?.type === \"__fluid_handle__\";\n\n/**\n * Setting to opt into compatibility with handles from before {@link fluidHandleSymbol} existed (Fluid Framework client 2.0.0-rc.3.0.0 and earlier).\n *\n * Some code which uses this library might dynamically load multiple versions of it,\n * as well as old or duplicated versions of packages which produce or implement handles.\n * To correctly interoperate with this old packages and object produced by them, the old in-memory format for handles, without the symbol, are explicitly supported.\n *\n * This setting mostly exists as a way to easily find any code that only exists to provide this compatibility and clarify how to remove that compatibility.\n * At some point this might be removed or turned into an actual configuration option, but for now its really just documentation.\n */\nconst enableBackwardsCompatibility = true;\n\n/**\n * Check if a value is an IFluidHandle.\n * @remarks\n * Objects which have a field named `IFluidHandle` can in some cases produce a false positive.\n * @internal\n */\nexport function isFluidHandle(value: unknown): value is IFluidHandle {\n\t// `in` gives a type error on non-objects and null, so filter them out\n\tif (typeof value !== \"object\" || value === null) {\n\t\treturn false;\n\t}\n\tif (fluidHandleSymbol in value) {\n\t\treturn true;\n\t}\n\t// If enableBackwardsCompatibility, run check for FluidHandles predating use of fluidHandleSymbol.\n\tif (enableBackwardsCompatibility && IFluidHandle in value) {\n\t\t// Since this check can have false positives, make it a bit more robust by checking value[IFluidHandle][IFluidHandle]\n\t\tconst inner = value[IFluidHandle] as IFluidHandle;\n\t\tif (typeof inner !== \"object\" || inner === null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn IFluidHandle in inner;\n\t}\n\treturn false;\n}\n\n/**\n * Downcast an IFluidHandle to an IFluidHandleInternal.\n * @alpha\n */\nexport function toFluidHandleInternal<T>(handle: IFluidHandle<T>): IFluidHandleInternal<T> {\n\tif (!(fluidHandleSymbol in handle) || !(fluidHandleSymbol in handle[fluidHandleSymbol])) {\n\t\tif (enableBackwardsCompatibility && IFluidHandle in handle) {\n\t\t\treturn handle[IFluidHandle] as IFluidHandleInternal<T>;\n\t\t}\n\t\tthrow new TypeError(\"Invalid IFluidHandle\");\n\t}\n\n\t// This casts the IFluidHandleErased from the symbol instead of `handle` to ensure that if someone\n\t// implements their own IFluidHandle in terms of an existing handle, it won't break anything.\n\treturn handle[fluidHandleSymbol] as unknown as IFluidHandleInternal<T>;\n}\n\n/**\n * Type erase IFluidHandleInternal for use with {@link @fluidframework/core-interfaces#fluidHandleSymbol}.\n * @alpha\n */\nexport function toFluidHandleErased<T>(handle: IFluidHandleInternal<T>): IFluidHandleErased<T> {\n\treturn handle as unknown as IFluidHandleErased<T>;\n}\n\n/**\n * Base class which can be uses to assist implementing IFluidHandleInternal.\n * @alpha\n */\nexport abstract class FluidHandleBase<T> implements IFluidHandleInternal<T> {\n\tpublic abstract absolutePath: string;\n\tpublic abstract attachGraph(): void;\n\tpublic abstract bind(handle: IFluidHandleInternal): void;\n\tpublic abstract readonly isAttached: boolean;\n\tpublic abstract get(): Promise<T>;\n\n\t/**\n\t * {@inheritDoc @fluidframework/core-interfaces#IProvideFluidHandle.IFluidHandle}\n\t */\n\tpublic get IFluidHandle(): IFluidHandleInternal {\n\t\treturn this;\n\t}\n\n\tpublic get [fluidHandleSymbol](): IFluidHandleErased<T> {\n\t\treturn toFluidHandleErased(this);\n\t}\n}\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { ITree } from "@fluidframework/
|
|
5
|
+
import { ITree } from "@fluidframework/driver-definitions/internal";
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectstorageutils.d.ts","sourceRoot":"","sources":["../src/objectstorageutils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"objectstorageutils.d.ts","sourceRoot":"","sources":["../src/objectstorageutils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,6CAA6C,CAAC;AAEpE;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,MAAM,YAY/D;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACxC,SAAS,EAAE,KAAK,GAAG,SAAS,EAC5B,IAAI,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,EAAE,CAAC,CAkBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectstorageutils.js","sourceRoot":"","sources":["../src/objectstorageutils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;GAEG;AACH,SAAgB,mCAAmC,CAAC,IAAY;IAC/D,IAAI,aAAa,GAAG,IAAI,CAAC;IACzB,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACnC,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;IACD,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACjC,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9B,OAAO,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,EAAE,CAAC;AACX,CAAC;AAZD,kFAYC;AAED;;GAEG;AACI,KAAK,UAAU,mBAAmB,CACxC,SAA4B,EAC5B,IAAY;IAEZ,MAAM,SAAS,GAAG,mCAAmC,CAAC,IAAI,CAAC,CAAC;IAC5D,IAAI,IAAI,GAAsB,SAAS,CAAC;IACxC,OAAO,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5D,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;YAC7C,OAAO,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QACpE,CAAC,CAAC,CAAC;QAEH,qEAAqE;QACrE,qEAAqE;QACrE,mEAAmE;QACnE,IAAI,GAAG,SAAS,EAAE,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACjE,CAAC;IACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACzE,CAAC;AArBD,kDAqBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ITree } from \"@fluidframework/
|
|
1
|
+
{"version":3,"file":"objectstorageutils.js","sourceRoot":"","sources":["../src/objectstorageutils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;GAEG;AACH,SAAgB,mCAAmC,CAAC,IAAY;IAC/D,IAAI,aAAa,GAAG,IAAI,CAAC;IACzB,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACnC,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,C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AC;IACD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACzE,CAAC;AArBD,kDAqBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ITree } from \"@fluidframework/driver-definitions/internal\";\n\n/**\n * @internal\n */\nexport function getNormalizedObjectStoragePathParts(path: string) {\n\tlet normalizePath = path;\n\tif (normalizePath.startsWith(\"/\")) {\n\t\tnormalizePath = normalizePath.substr(1);\n\t}\n\tif (normalizePath.endsWith(\"/\")) {\n\t\tnormalizePath = normalizePath.substr(0, normalizePath.length - 1);\n\t}\n\tif (normalizePath.length > 0) {\n\t\treturn normalizePath.split(\"/\");\n\t}\n\treturn [];\n}\n\n/**\n * @internal\n */\nexport async function listBlobsAtTreePath(\n\tinputTree: ITree | undefined,\n\tpath: string,\n): Promise<string[]> {\n\tconst pathParts = getNormalizedObjectStoragePathParts(path);\n\tlet tree: ITree | undefined = inputTree;\n\twhile (tree?.entries !== undefined && pathParts.length > 0) {\n\t\tconst part = pathParts.shift();\n\t\tconst treeEntry = tree.entries.find((value) => {\n\t\t\treturn value.type === \"Tree\" && value.path === part ? true : false;\n\t\t});\n\n\t\t// this check is largely superfluous due to the same check being done\n\t\t// immediately above. the type system, however, is not aware of this.\n\t\t// so we must redundantly determine that the entry's type is \"Tree\"\n\t\ttree = treeEntry?.type === \"Tree\" ? treeEntry.value : undefined;\n\t}\n\tif (tree?.entries === undefined || pathParts.length !== 0) {\n\t\tthrow new Error(\"path does not exist\");\n\t}\n\treturn tree.entries.filter((e) => e.type === \"Blob\").map((e) => e.path);\n}\n"]}
|
package/dist/snapshotUtils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import type { ISnapshotTree } from "@fluidframework/
|
|
5
|
+
import type { ISnapshotTree } from "@fluidframework/driver-definitions/internal";
|
|
6
6
|
/**
|
|
7
7
|
* Utility function to check if any blobs under a snapshot tree is missing and if so, then return
|
|
8
8
|
* true if that is the case.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshotUtils.d.ts","sourceRoot":"","sources":["../src/snapshotUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"snapshotUtils.d.ts","sourceRoot":"","sources":["../src/snapshotUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAEjF;;;;;;GAMG;AACH,wBAAgB,wCAAwC,CACvD,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,GACpC,OAAO,CAoBT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshotUtils.js","sourceRoot":"","sources":["../src/snapshotUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;;;;;GAMG;AACH,SAAgB,wCAAwC,CACvD,YAA2B,EAC3B,YAAsC;IAEtC,KAAK,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1D,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;YAC3B,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IACD,KAAK,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;QACjE,uGAAuG;QACvG,kGAAkG;QAClG,sGAAsG;QACtG,sGAAsG;QACtG,iEAAiE;QACjE,IAAI,SAAS,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACrC,MAAM,KAAK,GAAG,wCAAwC,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;YAChF,IAAI,KAAK,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC;YACb,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AAvBD,4FAuBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { ISnapshotTree } from \"@fluidframework/
|
|
1
|
+
{"version":3,"file":"snapshotUtils.js","sourceRoot":"","sources":["../src/snapshotUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;;;;;GAMG;AACH,SAAgB,wCAAwC,CACvD,YAA2B,EAC3B,YAAsC;IAEtC,KAAK,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1D,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;YAC3B,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IACD,KAAK,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;QACjE,uGAAuG;QACvG,kGAAkG;QAClG,sGAAsG;QACtG,sGAAsG;QACtG,iEAAiE;QACjE,IAAI,SAAS,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACrC,MAAM,KAAK,GAAG,wCAAwC,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;YAChF,IAAI,KAAK,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC;YACb,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AAvBD,4FAuBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { ISnapshotTree } from \"@fluidframework/driver-definitions/internal\";\n\n/**\n * Utility function to check if any blobs under a snapshot tree is missing and if so, then return\n * true if that is the case.\n * @internal\n * @param snapshotTree - snapshotTree to be evaluated for missing blobs.\n * @param blobContents - blobContents of the snapshot.\n */\nexport function isSnapshotFetchRequiredForLoadingGroupId(\n\tsnapshotTree: ISnapshotTree,\n\tblobContents: Map<string, ArrayBuffer>,\n): boolean {\n\tfor (const [_, id] of Object.entries(snapshotTree.blobs)) {\n\t\tif (!blobContents.has(id)) {\n\t\t\treturn true;\n\t\t}\n\t}\n\tfor (const [_, childTree] of Object.entries(snapshotTree.trees)) {\n\t\t// Only evaluate childTree if it does not have a loading groupId because if the childTree has a loading\n\t\t// groupId then it will be evaluated whether we want to fetch blobs for that childTree or not when\n\t\t// that particular childTree is getting realized. Now we just want to check for blobs which belongs to\n\t\t// tree with current loading groupId. Note: Child with no loading groupId, will fall under parent with\n\t\t// a loading groupId as it does not have its own loading groupId.\n\t\tif (childTree.groupId === undefined) {\n\t\t\tconst value = isSnapshotFetchRequiredForLoadingGroupId(childTree, blobContents);\n\t\t\tif (value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}\n"]}
|
package/dist/summaryUtils.d.ts
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { ISnapshotTreeWithBlobContents } from "@fluidframework/container-definitions/internal";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { ISummaryStats, ISummaryTreeWithStats, ITelemetryContext, IGarbageCollectionData, ISummarizeResult } from "@fluidframework/runtime-definitions/internal";
|
|
6
|
+
import { ISummaryBlob, ISummaryTree, SummaryObject, SummaryType } from "@fluidframework/driver-definitions";
|
|
7
|
+
import { ITree } from "@fluidframework/driver-definitions/internal";
|
|
8
|
+
import { ISummaryStats, ISummaryTreeWithStats, ITelemetryContext, IGarbageCollectionData, ISummarizeResult, ITelemetryContextExt } from "@fluidframework/runtime-definitions/internal";
|
|
9
|
+
import type { TelemetryEventPropertyTypeExt } from "@fluidframework/telemetry-utils/internal";
|
|
9
10
|
/**
|
|
10
11
|
* Combines summary stats by adding their totals together.
|
|
11
12
|
* Returns empty stats if called without args.
|
|
@@ -93,20 +94,20 @@ export declare function processAttachMessageGCData(snapshot: ITree | null, added
|
|
|
93
94
|
/**
|
|
94
95
|
* @internal
|
|
95
96
|
*/
|
|
96
|
-
export declare class TelemetryContext implements ITelemetryContext {
|
|
97
|
+
export declare class TelemetryContext implements ITelemetryContext, ITelemetryContextExt {
|
|
97
98
|
private readonly telemetry;
|
|
98
99
|
/**
|
|
99
100
|
* {@inheritDoc @fluidframework/runtime-definitions#ITelemetryContext.set}
|
|
100
101
|
*/
|
|
101
|
-
set(prefix: string, property: string, value:
|
|
102
|
+
set(prefix: string, property: string, value: TelemetryEventPropertyTypeExt): void;
|
|
102
103
|
/**
|
|
103
104
|
* {@inheritDoc @fluidframework/runtime-definitions#ITelemetryContext.setMultiple}
|
|
104
105
|
*/
|
|
105
|
-
setMultiple(prefix: string, property: string, values: Record<string,
|
|
106
|
+
setMultiple(prefix: string, property: string, values: Record<string, TelemetryEventPropertyTypeExt>): void;
|
|
106
107
|
/**
|
|
107
108
|
* {@inheritDoc @fluidframework/runtime-definitions#ITelemetryContext.get}
|
|
108
109
|
*/
|
|
109
|
-
get(prefix: string, property: string):
|
|
110
|
+
get(prefix: string, property: string): TelemetryEventPropertyTypeExt;
|
|
110
111
|
/**
|
|
111
112
|
* {@inheritDoc @fluidframework/runtime-definitions#ITelemetryContext.serialize}
|
|
112
113
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summaryUtils.d.ts","sourceRoot":"","sources":["../src/summaryUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"summaryUtils.d.ts","sourceRoot":"","sources":["../src/summaryUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAE/F,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAyB,MAAM,6CAA6C,CAAC;AAM3F,OAAO,EACN,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAE9F;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,KAAK,EAAE,aAAa,EAAE,GAAG,aAAa,CAgBnE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAelD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,MAAM,CAEpE;AAyBD;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAIpE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GAAG,UAAU,GAC1B,IAAI,CAQN;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAC1C,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,gBAAgB,GAC/B,IAAI,CAGN;AAED;;GAEG;AACH,qBAAa,kBAAmB,YAAW,qBAAqB;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