@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.
Files changed (77) hide show
  1. package/dist/containerRuntime.d.ts +3 -12
  2. package/dist/containerRuntime.d.ts.map +1 -1
  3. package/dist/containerRuntime.js +22 -38
  4. package/dist/containerRuntime.js.map +1 -1
  5. package/dist/dataStoreContext.d.ts +42 -29
  6. package/dist/dataStoreContext.d.ts.map +1 -1
  7. package/dist/dataStoreContext.js +27 -49
  8. package/dist/dataStoreContext.js.map +1 -1
  9. package/dist/dataStores.d.ts +2 -1
  10. package/dist/dataStores.d.ts.map +1 -1
  11. package/dist/dataStores.js +74 -16
  12. package/dist/dataStores.js.map +1 -1
  13. package/dist/garbageCollection.d.ts +22 -9
  14. package/dist/garbageCollection.d.ts.map +1 -1
  15. package/dist/garbageCollection.js +55 -32
  16. package/dist/garbageCollection.js.map +1 -1
  17. package/dist/index.d.ts +6 -6
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +11 -17
  20. package/dist/index.js.map +1 -1
  21. package/dist/packageVersion.d.ts +1 -1
  22. package/dist/packageVersion.d.ts.map +1 -1
  23. package/dist/packageVersion.js +1 -1
  24. package/dist/packageVersion.js.map +1 -1
  25. package/dist/runningSummarizer.d.ts.map +1 -1
  26. package/dist/runningSummarizer.js +2 -9
  27. package/dist/runningSummarizer.js.map +1 -1
  28. package/dist/summaryFormat.d.ts.map +1 -1
  29. package/dist/summaryFormat.js +2 -1
  30. package/dist/summaryFormat.js.map +1 -1
  31. package/dist/summaryGenerator.d.ts +0 -5
  32. package/dist/summaryGenerator.d.ts.map +1 -1
  33. package/dist/summaryGenerator.js.map +1 -1
  34. package/garbageCollection.md +33 -0
  35. package/lib/containerRuntime.d.ts +3 -12
  36. package/lib/containerRuntime.d.ts.map +1 -1
  37. package/lib/containerRuntime.js +23 -39
  38. package/lib/containerRuntime.js.map +1 -1
  39. package/lib/dataStoreContext.d.ts +42 -29
  40. package/lib/dataStoreContext.d.ts.map +1 -1
  41. package/lib/dataStoreContext.js +25 -47
  42. package/lib/dataStoreContext.js.map +1 -1
  43. package/lib/dataStores.d.ts +2 -1
  44. package/lib/dataStores.d.ts.map +1 -1
  45. package/lib/dataStores.js +75 -17
  46. package/lib/dataStores.js.map +1 -1
  47. package/lib/garbageCollection.d.ts +22 -9
  48. package/lib/garbageCollection.d.ts.map +1 -1
  49. package/lib/garbageCollection.js +55 -32
  50. package/lib/garbageCollection.js.map +1 -1
  51. package/lib/index.d.ts +6 -6
  52. package/lib/index.d.ts.map +1 -1
  53. package/lib/index.js +5 -6
  54. package/lib/index.js.map +1 -1
  55. package/lib/packageVersion.d.ts +1 -1
  56. package/lib/packageVersion.d.ts.map +1 -1
  57. package/lib/packageVersion.js +1 -1
  58. package/lib/packageVersion.js.map +1 -1
  59. package/lib/runningSummarizer.d.ts.map +1 -1
  60. package/lib/runningSummarizer.js +2 -9
  61. package/lib/runningSummarizer.js.map +1 -1
  62. package/lib/summaryFormat.d.ts.map +1 -1
  63. package/lib/summaryFormat.js +2 -1
  64. package/lib/summaryFormat.js.map +1 -1
  65. package/lib/summaryGenerator.d.ts +0 -5
  66. package/lib/summaryGenerator.d.ts.map +1 -1
  67. package/lib/summaryGenerator.js.map +1 -1
  68. package/package.json +15 -15
  69. package/src/containerRuntime.ts +36 -42
  70. package/src/dataStoreContext.ts +76 -122
  71. package/src/dataStores.ts +75 -48
  72. package/src/garbageCollection.ts +62 -35
  73. package/src/index.ts +51 -6
  74. package/src/packageVersion.ts +1 -1
  75. package/src/runningSummarizer.ts +2 -7
  76. package/src/summaryFormat.ts +2 -1
  77. 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 * from "./deltaScheduler";
21
- export * from "./dataStoreRegistry";
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 * from "./pendingStateManager";
30
- export * from "./summarizer";
31
- export * from "./summarizerTypes";
32
- export * from "./summaryCollection";
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";
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-runtime";
9
- export const pkgVersion = "0.55.0-48551";
9
+ export const pkgVersion = "0.56.0";
@@ -201,13 +201,8 @@ export class RunningSummarizer implements IDisposable {
201
201
  }
202
202
  this.heuristicData.lastOpSequenceNumber = sequenceNumber;
203
203
 
204
- if (this.tryRunEnqueuedSummary()) {
205
- // Intentionally do nothing; check for enqueued on-demand summaries
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
  }
@@ -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
 
@@ -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