@fluidframework/runtime-utils 0.59.2000 → 0.59.3000-67119
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/dist/dataStoreHelpers.d.ts.map +1 -1
- package/dist/dataStoreHelpers.js +5 -5
- package/dist/dataStoreHelpers.js.map +1 -1
- package/dist/objectstoragepartition.js +1 -1
- package/dist/objectstoragepartition.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/requestParser.js.map +1 -1
- package/dist/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/dist/summarizerNode/summarizerNode.js +27 -27
- package/dist/summarizerNode/summarizerNode.js.map +1 -1
- package/dist/summarizerNode/summarizerNodeUtils.js +3 -3
- package/dist/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/dist/summarizerNode/summarizerNodeWithGc.js +9 -9
- package/dist/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/dist/summaryUtils.d.ts.map +1 -1
- package/dist/summaryUtils.js +4 -4
- package/dist/summaryUtils.js.map +1 -1
- package/lib/dataStoreHelpers.d.ts.map +1 -1
- package/lib/dataStoreHelpers.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/requestParser.js.map +1 -1
- package/lib/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/lib/summarizerNode/summarizerNode.js.map +1 -1
- package/lib/summarizerNode/summarizerNodeUtils.js +1 -1
- package/lib/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/lib/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/lib/summaryUtils.d.ts.map +1 -1
- package/lib/summaryUtils.js.map +1 -1
- package/package.json +13 -12
- package/src/dataStoreHelpers.ts +1 -2
- package/src/packageVersion.ts +1 -1
- package/src/requestParser.ts +1 -1
- package/src/summarizerNode/summarizerNode.ts +2 -2
- package/src/summarizerNode/summarizerNodeUtils.ts +13 -13
- package/src/summarizerNode/summarizerNodeWithGc.ts +4 -4
- package/src/summaryUtils.ts +2 -3
package/src/dataStoreHelpers.ts
CHANGED
|
@@ -97,8 +97,7 @@ export type Factory = IFluidDataStoreFactory & Partial<IProvideFluidDataStoreReg
|
|
|
97
97
|
export function createDataStoreFactory(
|
|
98
98
|
type: string,
|
|
99
99
|
factory: Factory | Promise<Factory>,
|
|
100
|
-
): IFluidDataStoreFactory & IFluidDataStoreRegistry
|
|
101
|
-
{
|
|
100
|
+
): IFluidDataStoreFactory & IFluidDataStoreRegistry {
|
|
102
101
|
return {
|
|
103
102
|
type,
|
|
104
103
|
get IFluidDataStoreFactory() { return this; },
|
package/src/packageVersion.ts
CHANGED
package/src/requestParser.ts
CHANGED
|
@@ -64,7 +64,7 @@ export class SummarizerNode implements IRootSummarizerNode {
|
|
|
64
64
|
protected readonly pendingSummaries = new Map<string, SummaryNode>();
|
|
65
65
|
private readonly outstandingOps: ISequencedDocumentMessage[] = [];
|
|
66
66
|
private wipReferenceSequenceNumber: number | undefined;
|
|
67
|
-
private wipLocalPaths: { localPath: EscapedPath
|
|
67
|
+
private wipLocalPaths: { localPath: EscapedPath; additionalPath?: EscapedPath; } | undefined;
|
|
68
68
|
private wipSkipRecursion = false;
|
|
69
69
|
|
|
70
70
|
public startSummary(referenceSequenceNumber: number, summaryLogger: ITelemetryLogger) {
|
|
@@ -394,7 +394,7 @@ export class SummarizerNode implements IRootSummarizerNode {
|
|
|
394
394
|
public async loadBaseSummary(
|
|
395
395
|
snapshot: ISnapshotTree,
|
|
396
396
|
readAndParseBlob: ReadAndParseBlob,
|
|
397
|
-
): Promise<{ baseSummary: ISnapshotTree
|
|
397
|
+
): Promise<{ baseSummary: ISnapshotTree; outstandingOps: ISequencedDocumentMessage[]; }> {
|
|
398
398
|
const decodedSummary = decodeSummary(snapshot, this.defaultLogger);
|
|
399
399
|
const outstandingOps = await decodedSummary.getOutstandingOps(readAndParseBlob);
|
|
400
400
|
|
|
@@ -28,14 +28,14 @@ const maxDecodeDepth = 100;
|
|
|
28
28
|
* latest summary is updated based on the downloaded snapshot which is also returned.
|
|
29
29
|
*/
|
|
30
30
|
export type RefreshSummaryResult = {
|
|
31
|
-
latestSummaryUpdated: false
|
|
31
|
+
latestSummaryUpdated: false;
|
|
32
32
|
} | {
|
|
33
|
-
latestSummaryUpdated: true
|
|
34
|
-
wasSummaryTracked: true
|
|
33
|
+
latestSummaryUpdated: true;
|
|
34
|
+
wasSummaryTracked: true;
|
|
35
35
|
} | {
|
|
36
|
-
latestSummaryUpdated: true
|
|
37
|
-
wasSummaryTracked: false
|
|
38
|
-
snapshot: ISnapshotTree
|
|
36
|
+
latestSummaryUpdated: true;
|
|
37
|
+
wasSummaryTracked: false;
|
|
38
|
+
snapshot: ISnapshotTree;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export interface ISummarizerNodeRootContract {
|
|
@@ -103,10 +103,10 @@ export class SummaryNode {
|
|
|
103
103
|
this.summary.additionalPath = additionalPath;
|
|
104
104
|
}
|
|
105
105
|
constructor(private readonly summary: {
|
|
106
|
-
readonly referenceSequenceNumber: number
|
|
107
|
-
readonly basePath: EscapedPath | undefined
|
|
108
|
-
readonly localPath: EscapedPath
|
|
109
|
-
additionalPath?: EscapedPath
|
|
106
|
+
readonly referenceSequenceNumber: number;
|
|
107
|
+
readonly basePath: EscapedPath | undefined;
|
|
108
|
+
readonly localPath: EscapedPath;
|
|
109
|
+
additionalPath?: EscapedPath;
|
|
110
110
|
}) { }
|
|
111
111
|
|
|
112
112
|
/** Gets the full path to this node, to be used when sending a handle */
|
|
@@ -186,7 +186,7 @@ export function decodeSummary(
|
|
|
186
186
|
const newEarliestSeq = newOutstandingOps[0].sequenceNumber;
|
|
187
187
|
if (newEarliestSeq <= latestSeq) {
|
|
188
188
|
logger.sendTelemetryEvent({
|
|
189
|
-
eventName:"DuplicateOutstandingOps",
|
|
189
|
+
eventName: "DuplicateOutstandingOps",
|
|
190
190
|
// eslint-disable-next-line max-len
|
|
191
191
|
message: `newEarliestSeq <= latestSeq in decodeSummary: ${newEarliestSeq} <= ${latestSeq}`,
|
|
192
192
|
});
|
|
@@ -293,9 +293,9 @@ export interface ICreateChildDetails {
|
|
|
293
293
|
|
|
294
294
|
export interface ISubtreeInfo<T extends ISnapshotTree | SummaryObject> {
|
|
295
295
|
/** Tree to use to find children subtrees */
|
|
296
|
-
childrenTree: T
|
|
296
|
+
childrenTree: T;
|
|
297
297
|
/** Additional path part where children are isolated */
|
|
298
|
-
childrenPathPart: string | undefined
|
|
298
|
+
childrenPathPart: string | undefined;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
/**
|
|
@@ -35,10 +35,10 @@ class SummaryNodeWithGC extends SummaryNode {
|
|
|
35
35
|
constructor(
|
|
36
36
|
public readonly serializedUsedRoutes: string,
|
|
37
37
|
summary: {
|
|
38
|
-
readonly referenceSequenceNumber: number
|
|
39
|
-
readonly basePath: EscapedPath | undefined
|
|
40
|
-
readonly localPath: EscapedPath
|
|
41
|
-
additionalPath?: EscapedPath
|
|
38
|
+
readonly referenceSequenceNumber: number;
|
|
39
|
+
readonly basePath: EscapedPath | undefined;
|
|
40
|
+
readonly localPath: EscapedPath;
|
|
41
|
+
additionalPath?: EscapedPath;
|
|
42
42
|
},
|
|
43
43
|
) {
|
|
44
44
|
super(summary);
|
package/src/summaryUtils.ts
CHANGED
|
@@ -133,7 +133,7 @@ export class SummaryTreeBuilder implements ISummaryTreeWithStats {
|
|
|
133
133
|
this.summaryStats.treeNodeCount++;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
private readonly summaryTree: { [path: string]: SummaryObject } = {};
|
|
136
|
+
private readonly summaryTree: { [path: string]: SummaryObject; } = {};
|
|
137
137
|
private summaryStats: ISummaryStats;
|
|
138
138
|
|
|
139
139
|
public addBlob(key: string, content: string | Uint8Array): void {
|
|
@@ -150,8 +150,7 @@ export class SummaryTreeBuilder implements ISummaryTreeWithStats {
|
|
|
150
150
|
public addHandle(
|
|
151
151
|
key: string,
|
|
152
152
|
handleType: SummaryType.Tree | SummaryType.Blob | SummaryType.Attachment,
|
|
153
|
-
handle: string): void
|
|
154
|
-
{
|
|
153
|
+
handle: string): void {
|
|
155
154
|
this.summaryTree[key] = {
|
|
156
155
|
type: SummaryType.Handle,
|
|
157
156
|
handleType,
|