@fluidframework/container-runtime 0.55.0-48551 → 0.56.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/dist/containerRuntime.d.ts +3 -12
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +22 -38
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStoreContext.d.ts +42 -29
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +27 -49
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStores.d.ts +2 -1
- package/dist/dataStores.d.ts.map +1 -1
- package/dist/dataStores.js +74 -16
- package/dist/dataStores.js.map +1 -1
- package/dist/garbageCollection.d.ts +22 -9
- package/dist/garbageCollection.d.ts.map +1 -1
- package/dist/garbageCollection.js +55 -32
- package/dist/garbageCollection.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -17
- package/dist/index.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/runningSummarizer.d.ts.map +1 -1
- package/dist/runningSummarizer.js +2 -9
- package/dist/runningSummarizer.js.map +1 -1
- package/dist/summaryFormat.d.ts.map +1 -1
- package/dist/summaryFormat.js +2 -1
- package/dist/summaryFormat.js.map +1 -1
- package/dist/summaryGenerator.d.ts +0 -5
- package/dist/summaryGenerator.d.ts.map +1 -1
- package/dist/summaryGenerator.js.map +1 -1
- package/garbageCollection.md +33 -0
- package/lib/containerRuntime.d.ts +3 -12
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +23 -39
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStoreContext.d.ts +42 -29
- package/lib/dataStoreContext.d.ts.map +1 -1
- package/lib/dataStoreContext.js +25 -47
- package/lib/dataStoreContext.js.map +1 -1
- package/lib/dataStores.d.ts +2 -1
- package/lib/dataStores.d.ts.map +1 -1
- package/lib/dataStores.js +75 -17
- package/lib/dataStores.js.map +1 -1
- package/lib/garbageCollection.d.ts +22 -9
- package/lib/garbageCollection.d.ts.map +1 -1
- package/lib/garbageCollection.js +55 -32
- package/lib/garbageCollection.js.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -6
- package/lib/index.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/runningSummarizer.d.ts.map +1 -1
- package/lib/runningSummarizer.js +2 -9
- package/lib/runningSummarizer.js.map +1 -1
- package/lib/summaryFormat.d.ts.map +1 -1
- package/lib/summaryFormat.js +2 -1
- package/lib/summaryFormat.js.map +1 -1
- package/lib/summaryGenerator.d.ts +0 -5
- package/lib/summaryGenerator.d.ts.map +1 -1
- package/lib/summaryGenerator.js.map +1 -1
- package/package.json +15 -15
- package/src/containerRuntime.ts +36 -42
- package/src/dataStoreContext.ts +76 -122
- package/src/dataStores.ts +75 -48
- package/src/garbageCollection.ts +62 -35
- package/src/index.ts +51 -6
- package/src/packageVersion.ts +1 -1
- package/src/runningSummarizer.ts +2 -7
- package/src/summaryFormat.ts +2 -1
- package/src/summaryGenerator.ts +0 -5
package/src/index.ts
CHANGED
|
@@ -17,8 +17,8 @@ export {
|
|
|
17
17
|
agentSchedulerId,
|
|
18
18
|
ContainerRuntime,
|
|
19
19
|
} from "./containerRuntime";
|
|
20
|
-
export
|
|
21
|
-
export
|
|
20
|
+
export { DeltaScheduler } from "./deltaScheduler";
|
|
21
|
+
export { FluidDataStoreRegistry } from "./dataStoreRegistry";
|
|
22
22
|
export {
|
|
23
23
|
gcBlobPrefix,
|
|
24
24
|
gcTreeKey,
|
|
@@ -26,8 +26,53 @@ export {
|
|
|
26
26
|
IGCStats,
|
|
27
27
|
IUsedStateStats,
|
|
28
28
|
} from "./garbageCollection";
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
export {
|
|
30
|
+
IPendingFlush,
|
|
31
|
+
IPendingFlushMode,
|
|
32
|
+
IPendingLocalState,
|
|
33
|
+
IPendingMessage,
|
|
34
|
+
IPendingState,
|
|
35
|
+
} from "./pendingStateManager";
|
|
36
|
+
export { Summarizer } from "./summarizer";
|
|
37
|
+
export {
|
|
38
|
+
EnqueueSummarizeResult,
|
|
39
|
+
IAckSummaryResult,
|
|
40
|
+
IBaseSummarizeResult,
|
|
41
|
+
IBroadcastSummaryResult,
|
|
42
|
+
ICancellationToken,
|
|
43
|
+
IConnectableRuntime,
|
|
44
|
+
IEnqueueSummarizeOptions,
|
|
45
|
+
IGenerateSummaryTreeResult,
|
|
46
|
+
IGeneratedSummaryStats,
|
|
47
|
+
INackSummaryResult,
|
|
48
|
+
IOnDemandSummarizeOptions,
|
|
49
|
+
IProvideSummarizer,
|
|
50
|
+
ISubmitSummaryOpResult,
|
|
51
|
+
ISubmitSummaryOptions,
|
|
52
|
+
ISummarizeOptions,
|
|
53
|
+
ISummarizeResults,
|
|
54
|
+
ISummarizer,
|
|
55
|
+
ISummarizerEvents,
|
|
56
|
+
ISummarizerInternalsProvider,
|
|
57
|
+
ISummarizerOptions,
|
|
58
|
+
ISummarizerRuntime,
|
|
59
|
+
ISummarizingWarning,
|
|
60
|
+
ISummaryCancellationToken,
|
|
61
|
+
IUploadSummaryResult,
|
|
62
|
+
SubmitSummaryResult,
|
|
63
|
+
SummarizeResultPart,
|
|
64
|
+
SummarizerStopReason,
|
|
65
|
+
} from "./summarizerTypes";
|
|
66
|
+
export {
|
|
67
|
+
IAckedSummary,
|
|
68
|
+
IClientSummaryWatcher,
|
|
69
|
+
ISummary,
|
|
70
|
+
ISummaryCollectionOpEvents,
|
|
71
|
+
ISummaryAckMessage,
|
|
72
|
+
ISummaryNackMessage,
|
|
73
|
+
ISummaryOpMessage,
|
|
74
|
+
OpActionEventListener,
|
|
75
|
+
OpActionEventName,
|
|
76
|
+
SummaryCollection,
|
|
77
|
+
} from "./summaryCollection";
|
|
33
78
|
export { ICancellableSummarizerController, neverCancelledSummaryToken } from "./runWhileConnectedCoordinator";
|
package/src/packageVersion.ts
CHANGED
package/src/runningSummarizer.ts
CHANGED
|
@@ -201,13 +201,8 @@ export class RunningSummarizer implements IDisposable {
|
|
|
201
201
|
}
|
|
202
202
|
this.heuristicData.lastOpSequenceNumber = sequenceNumber;
|
|
203
203
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
} else if (type === MessageType.Save) {
|
|
207
|
-
// Check for ops requesting summary
|
|
208
|
-
// Note: as const is only required until TypeScript version 4.3
|
|
209
|
-
this.trySummarize(`save;${clientId}: ${contents}` as const);
|
|
210
|
-
} else {
|
|
204
|
+
// Check for enqueued on-demand summaries; Intentionally do nothing otherwise
|
|
205
|
+
if (!this.tryRunEnqueuedSummary()) {
|
|
211
206
|
this.heuristicRunner?.run();
|
|
212
207
|
}
|
|
213
208
|
}
|
package/src/summaryFormat.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
|
8
8
|
import { readAndParse } from "@fluidframework/driver-utils";
|
|
9
9
|
import { ISequencedDocumentMessage, ISnapshotTree, SummaryType } from "@fluidframework/protocol-definitions";
|
|
10
10
|
import { channelsTreeName, ISummaryTreeWithStats } from "@fluidframework/runtime-definitions";
|
|
11
|
+
import { gcTreeKey } from "./garbageCollection";
|
|
11
12
|
|
|
12
13
|
type OmitAttributesVersions<T> = Omit<T, "snapshotFormatVersion" | "summaryFormatVersion">;
|
|
13
14
|
interface IFluidDataStoreAttributes0 {
|
|
@@ -161,7 +162,7 @@ export const protocolTreeName = ".protocol";
|
|
|
161
162
|
* isolated data stores namespace. Without the namespace, this must
|
|
162
163
|
* be used to prevent name collisions with data store IDs.
|
|
163
164
|
*/
|
|
164
|
-
export const nonDataStorePaths = [protocolTreeName, ".logTail", ".serviceProtocol", blobsTreeName];
|
|
165
|
+
export const nonDataStorePaths = [protocolTreeName, ".logTail", ".serviceProtocol", blobsTreeName, gcTreeKey];
|
|
165
166
|
|
|
166
167
|
export const dataStoreAttributesBlobName = ".component";
|
|
167
168
|
|
package/src/summaryGenerator.ts
CHANGED
|
@@ -76,11 +76,6 @@ export type SummarizeReason =
|
|
|
76
76
|
* ack op.
|
|
77
77
|
*/
|
|
78
78
|
| "maxOps"
|
|
79
|
-
/**
|
|
80
|
-
* Special case to generate a summary in response to a Save op.
|
|
81
|
-
* @deprecated - do not use save ops
|
|
82
|
-
*/
|
|
83
|
-
| `save;${string}: ${string}`
|
|
84
79
|
/**
|
|
85
80
|
* Special case to attempt to summarize one last time before the
|
|
86
81
|
* summarizer client closes itself. This is to prevent cases where
|