@fluidframework/container-runtime 2.0.0-dev-rc.1.0.0.232845 → 2.0.0-dev-rc.2.0.0.246488
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/.eslintrc.cjs +5 -5
- package/{.mocharc.js → .mocharc.cjs} +1 -1
- package/CHANGELOG.md +54 -0
- package/README.md +45 -0
- package/{api-extractor-esm.json → api-extractor-cjs.json} +5 -1
- package/api-extractor-lint.json +1 -1
- package/api-extractor.json +1 -1
- package/api-report/container-runtime.api.md +426 -33
- package/dist/batchTracker.d.ts +1 -2
- package/dist/batchTracker.d.ts.map +1 -1
- package/dist/batchTracker.js.map +1 -1
- package/dist/blobManager.d.ts +0 -5
- package/dist/blobManager.d.ts.map +1 -1
- package/dist/blobManager.js +0 -12
- package/dist/blobManager.js.map +1 -1
- package/dist/channelCollection.d.ts +226 -0
- package/dist/channelCollection.d.ts.map +1 -0
- package/dist/{dataStores.js → channelCollection.js} +455 -150
- package/dist/channelCollection.js.map +1 -0
- package/dist/connectionTelemetry.d.ts +11 -1
- package/dist/connectionTelemetry.d.ts.map +1 -1
- package/dist/connectionTelemetry.js +42 -4
- package/dist/connectionTelemetry.js.map +1 -1
- package/dist/container-runtime-alpha.d.ts +128 -48
- package/dist/container-runtime-beta.d.ts +67 -9
- package/dist/container-runtime-public.d.ts +67 -9
- package/dist/container-runtime-untrimmed.d.ts +692 -49
- package/dist/containerHandleContext.d.ts +1 -1
- package/dist/containerHandleContext.d.ts.map +1 -1
- package/dist/containerHandleContext.js.map +1 -1
- package/dist/containerRuntime.d.ts +81 -64
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +522 -379
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStore.d.ts +2 -3
- package/dist/dataStore.d.ts.map +1 -1
- package/dist/dataStore.js +12 -11
- package/dist/dataStore.js.map +1 -1
- package/dist/dataStoreContext.d.ts +118 -41
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +248 -159
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStoreContexts.d.ts +2 -1
- package/dist/dataStoreContexts.d.ts.map +1 -1
- package/dist/dataStoreContexts.js +1 -0
- package/dist/dataStoreContexts.js.map +1 -1
- package/dist/dataStoreRegistry.d.ts +4 -0
- package/dist/dataStoreRegistry.d.ts.map +1 -1
- package/dist/dataStoreRegistry.js +2 -2
- package/dist/dataStoreRegistry.js.map +1 -1
- package/dist/deltaManagerSummarizerProxy.d.ts +29 -4
- package/dist/deltaManagerSummarizerProxy.d.ts.map +1 -1
- package/dist/deltaManagerSummarizerProxy.js +91 -5
- package/dist/deltaManagerSummarizerProxy.js.map +1 -1
- package/dist/gc/garbageCollection.d.ts +12 -6
- package/dist/gc/garbageCollection.d.ts.map +1 -1
- package/dist/gc/garbageCollection.js +116 -78
- package/dist/gc/garbageCollection.js.map +1 -1
- package/dist/gc/gcConfigs.d.ts +2 -2
- package/dist/gc/gcConfigs.d.ts.map +1 -1
- package/dist/gc/gcConfigs.js +30 -23
- package/dist/gc/gcConfigs.js.map +1 -1
- package/dist/gc/gcDefinitions.d.ts +22 -13
- package/dist/gc/gcDefinitions.d.ts.map +1 -1
- package/dist/gc/gcDefinitions.js +7 -4
- package/dist/gc/gcDefinitions.js.map +1 -1
- package/dist/gc/gcHelpers.d.ts +2 -2
- package/dist/gc/gcHelpers.d.ts.map +1 -1
- package/dist/gc/gcHelpers.js.map +1 -1
- package/dist/gc/gcReferenceGraphAlgorithm.d.ts +1 -1
- package/dist/gc/gcReferenceGraphAlgorithm.d.ts.map +1 -1
- package/dist/gc/gcReferenceGraphAlgorithm.js.map +1 -1
- package/dist/gc/gcSummaryStateTracker.d.ts +12 -5
- package/dist/gc/gcSummaryStateTracker.d.ts.map +1 -1
- package/dist/gc/gcSummaryStateTracker.js +18 -6
- package/dist/gc/gcSummaryStateTracker.js.map +1 -1
- package/dist/gc/gcTelemetry.d.ts +6 -7
- package/dist/gc/gcTelemetry.d.ts.map +1 -1
- package/dist/gc/gcTelemetry.js +20 -18
- package/dist/gc/gcTelemetry.js.map +1 -1
- package/dist/gc/gcUnreferencedStateTracker.d.ts +1 -1
- package/dist/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
- package/dist/gc/gcUnreferencedStateTracker.js +10 -10
- package/dist/gc/gcUnreferencedStateTracker.js.map +1 -1
- package/dist/gc/index.d.ts +8 -8
- package/dist/gc/index.d.ts.map +1 -1
- package/dist/gc/index.js +40 -39
- package/dist/gc/index.js.map +1 -1
- package/dist/index.d.ts +11 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -42
- package/dist/index.js.map +1 -1
- package/dist/messageTypes.d.ts +3 -3
- package/dist/messageTypes.d.ts.map +1 -1
- package/dist/messageTypes.js.map +1 -1
- package/dist/opLifecycle/batchManager.d.ts +2 -2
- package/dist/opLifecycle/batchManager.d.ts.map +1 -1
- package/dist/opLifecycle/batchManager.js.map +1 -1
- package/dist/opLifecycle/definitions.d.ts +2 -2
- package/dist/opLifecycle/definitions.d.ts.map +1 -1
- package/dist/opLifecycle/definitions.js.map +1 -1
- package/dist/opLifecycle/index.d.ts +8 -8
- package/dist/opLifecycle/index.d.ts.map +1 -1
- package/dist/opLifecycle/index.js +18 -18
- package/dist/opLifecycle/index.js.map +1 -1
- package/dist/opLifecycle/opCompressor.d.ts +1 -1
- package/dist/opLifecycle/opCompressor.d.ts.map +1 -1
- package/dist/opLifecycle/opCompressor.js +4 -4
- package/dist/opLifecycle/opCompressor.js.map +1 -1
- package/dist/opLifecycle/opDecompressor.d.ts +1 -1
- package/dist/opLifecycle/opDecompressor.d.ts.map +1 -1
- package/dist/opLifecycle/opDecompressor.js +3 -3
- package/dist/opLifecycle/opDecompressor.js.map +1 -1
- package/dist/opLifecycle/opGroupingManager.d.ts +1 -1
- package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/dist/opLifecycle/opGroupingManager.js +1 -10
- package/dist/opLifecycle/opGroupingManager.js.map +1 -1
- package/dist/opLifecycle/opSplitter.d.ts +1 -1
- package/dist/opLifecycle/opSplitter.d.ts.map +1 -1
- package/dist/opLifecycle/opSplitter.js +5 -5
- package/dist/opLifecycle/opSplitter.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts +7 -7
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +32 -18
- package/dist/opLifecycle/outbox.js.map +1 -1
- package/dist/opLifecycle/remoteMessageProcessor.d.ts +4 -4
- package/dist/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
- package/dist/opLifecycle/remoteMessageProcessor.js +7 -4
- package/dist/opLifecycle/remoteMessageProcessor.js.map +1 -1
- package/dist/package.json +3 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/pendingStateManager.d.ts +2 -1
- package/dist/pendingStateManager.d.ts.map +1 -1
- package/dist/pendingStateManager.js +18 -10
- package/dist/pendingStateManager.js.map +1 -1
- package/dist/scheduleManager.d.ts +1 -2
- package/dist/scheduleManager.d.ts.map +1 -1
- package/dist/scheduleManager.js +9 -5
- package/dist/scheduleManager.js.map +1 -1
- package/dist/summary/index.d.ts +12 -12
- package/dist/summary/index.d.ts.map +1 -1
- package/dist/summary/index.js +43 -43
- package/dist/summary/index.js.map +1 -1
- package/dist/summary/orderedClientElection.d.ts.map +1 -1
- package/dist/summary/orderedClientElection.js +12 -8
- package/dist/summary/orderedClientElection.js.map +1 -1
- package/dist/summary/runWhileConnectedCoordinator.d.ts +1 -1
- package/dist/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
- package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
- package/dist/summary/runningSummarizer.d.ts +5 -4
- package/dist/summary/runningSummarizer.d.ts.map +1 -1
- package/dist/summary/runningSummarizer.js +47 -32
- package/dist/summary/runningSummarizer.js.map +1 -1
- package/dist/summary/summarizer.d.ts +4 -4
- package/dist/summary/summarizer.d.ts.map +1 -1
- package/dist/summary/summarizer.js +6 -6
- package/dist/summary/summarizer.js.map +1 -1
- package/dist/summary/summarizerClientElection.d.ts +2 -2
- package/dist/summary/summarizerClientElection.d.ts.map +1 -1
- package/dist/summary/summarizerClientElection.js.map +1 -1
- package/dist/summary/summarizerHeuristics.d.ts +3 -3
- package/dist/summary/summarizerHeuristics.d.ts.map +1 -1
- package/dist/summary/summarizerHeuristics.js.map +1 -1
- package/dist/summary/summarizerNode/index.d.ts +3 -3
- package/dist/summary/summarizerNode/index.d.ts.map +1 -1
- package/dist/summary/summarizerNode/index.js +4 -4
- package/dist/summary/summarizerNode/index.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNode.d.ts +16 -5
- package/dist/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNode.js +40 -10
- package/dist/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +9 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts +3 -4
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js +12 -12
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/dist/summary/summarizerTypes.d.ts +9 -20
- package/dist/summary/summarizerTypes.d.ts.map +1 -1
- package/dist/summary/summarizerTypes.js.map +1 -1
- package/dist/summary/summaryFormat.d.ts +15 -2
- package/dist/summary/summaryFormat.d.ts.map +1 -1
- package/dist/summary/summaryFormat.js.map +1 -1
- package/dist/summary/summaryGenerator.d.ts +6 -5
- package/dist/summary/summaryGenerator.d.ts.map +1 -1
- package/dist/summary/summaryGenerator.js +10 -1
- package/dist/summary/summaryGenerator.js.map +1 -1
- package/dist/summary/summaryManager.d.ts +5 -6
- package/dist/summary/summaryManager.d.ts.map +1 -1
- package/dist/summary/summaryManager.js +4 -5
- package/dist/summary/summaryManager.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/{batchTracker.d.mts → batchTracker.d.ts} +2 -3
- package/lib/batchTracker.d.ts.map +1 -0
- package/lib/{batchTracker.mjs → batchTracker.js} +1 -1
- package/lib/batchTracker.js.map +1 -0
- package/lib/{blobManager.d.mts → blobManager.d.ts} +1 -6
- package/lib/blobManager.d.ts.map +1 -0
- package/lib/{blobManager.mjs → blobManager.js} +1 -13
- package/lib/blobManager.js.map +1 -0
- package/lib/channelCollection.d.ts +226 -0
- package/lib/channelCollection.d.ts.map +1 -0
- package/lib/{dataStores.mjs → channelCollection.js} +442 -140
- package/lib/channelCollection.js.map +1 -0
- package/lib/{connectionTelemetry.d.mts → connectionTelemetry.d.ts} +12 -2
- package/lib/connectionTelemetry.d.ts.map +1 -0
- package/lib/{connectionTelemetry.mjs → connectionTelemetry.js} +43 -5
- package/lib/connectionTelemetry.js.map +1 -0
- package/lib/{container-runtime-alpha.d.mts → container-runtime-alpha.d.ts} +128 -48
- package/lib/{container-runtime-beta.d.mts → container-runtime-beta.d.ts} +67 -9
- package/lib/{container-runtime-public.d.mts → container-runtime-public.d.ts} +67 -9
- package/lib/{container-runtime-untrimmed.d.mts → container-runtime-untrimmed.d.ts} +692 -49
- package/lib/{containerHandleContext.d.mts → containerHandleContext.d.ts} +2 -2
- package/lib/containerHandleContext.d.ts.map +1 -0
- package/lib/{containerHandleContext.mjs → containerHandleContext.js} +1 -1
- package/lib/containerHandleContext.js.map +1 -0
- package/lib/{containerRuntime.d.mts → containerRuntime.d.ts} +86 -65
- package/lib/containerRuntime.d.ts.map +1 -0
- package/lib/{containerRuntime.mjs → containerRuntime.js} +444 -303
- package/lib/containerRuntime.js.map +1 -0
- package/lib/{dataStore.d.mts → dataStore.d.ts} +3 -4
- package/lib/dataStore.d.ts.map +1 -0
- package/lib/{dataStore.mjs → dataStore.js} +13 -12
- package/lib/dataStore.js.map +1 -0
- package/lib/{dataStoreContext.d.mts → dataStoreContext.d.ts} +119 -42
- package/lib/dataStoreContext.d.ts.map +1 -0
- package/lib/{dataStoreContext.mjs → dataStoreContext.js} +240 -151
- package/lib/dataStoreContext.js.map +1 -0
- package/lib/{dataStoreContexts.d.mts → dataStoreContexts.d.ts} +3 -2
- package/lib/dataStoreContexts.d.ts.map +1 -0
- package/lib/{dataStoreContexts.mjs → dataStoreContexts.js} +2 -1
- package/lib/dataStoreContexts.js.map +1 -0
- package/lib/{dataStoreRegistry.d.mts → dataStoreRegistry.d.ts} +5 -1
- package/lib/dataStoreRegistry.d.ts.map +1 -0
- package/lib/{dataStoreRegistry.mjs → dataStoreRegistry.js} +5 -1
- package/lib/dataStoreRegistry.js.map +1 -0
- package/{dist/deltaManagerProxyBase.d.ts → lib/deltaManagerSummarizerProxy.d.ts} +16 -7
- package/lib/deltaManagerSummarizerProxy.d.ts.map +1 -0
- package/lib/deltaManagerSummarizerProxy.js +124 -0
- package/lib/deltaManagerSummarizerProxy.js.map +1 -0
- package/lib/{deltaScheduler.d.mts → deltaScheduler.d.ts} +1 -1
- package/lib/deltaScheduler.d.ts.map +1 -0
- package/lib/{deltaScheduler.mjs → deltaScheduler.js} +1 -1
- package/lib/deltaScheduler.js.map +1 -0
- package/lib/{error.d.mts → error.d.ts} +1 -1
- package/lib/error.d.ts.map +1 -0
- package/lib/{error.mjs → error.js} +1 -1
- package/lib/error.js.map +1 -0
- package/lib/gc/{garbageCollection.d.mts → garbageCollection.d.ts} +13 -7
- package/lib/gc/garbageCollection.d.ts.map +1 -0
- package/lib/gc/{garbageCollection.mjs → garbageCollection.js} +79 -41
- package/lib/gc/garbageCollection.js.map +1 -0
- package/lib/gc/{gcConfigs.d.mts → gcConfigs.d.ts} +3 -3
- package/lib/gc/gcConfigs.d.ts.map +1 -0
- package/lib/gc/{gcConfigs.mjs → gcConfigs.js} +14 -7
- package/lib/gc/gcConfigs.js.map +1 -0
- package/lib/gc/{gcDefinitions.d.mts → gcDefinitions.d.ts} +23 -14
- package/lib/gc/gcDefinitions.d.ts.map +1 -0
- package/lib/gc/{gcDefinitions.mjs → gcDefinitions.js} +7 -4
- package/lib/gc/gcDefinitions.js.map +1 -0
- package/lib/gc/{gcHelpers.d.mts → gcHelpers.d.ts} +3 -3
- package/lib/gc/{gcHelpers.d.mts.map → gcHelpers.d.ts.map} +1 -1
- package/lib/gc/{gcHelpers.mjs → gcHelpers.js} +1 -1
- package/lib/gc/gcHelpers.js.map +1 -0
- package/lib/gc/{gcReferenceGraphAlgorithm.d.mts → gcReferenceGraphAlgorithm.d.ts} +2 -2
- package/lib/gc/gcReferenceGraphAlgorithm.d.ts.map +1 -0
- package/lib/gc/{gcReferenceGraphAlgorithm.mjs → gcReferenceGraphAlgorithm.js} +1 -1
- package/lib/gc/gcReferenceGraphAlgorithm.js.map +1 -0
- package/lib/gc/{gcSummaryDefinitions.d.mts → gcSummaryDefinitions.d.ts} +1 -1
- package/lib/gc/gcSummaryDefinitions.d.ts.map +1 -0
- package/lib/gc/{gcSummaryDefinitions.mjs → gcSummaryDefinitions.js} +1 -1
- package/lib/gc/gcSummaryDefinitions.js.map +1 -0
- package/lib/gc/{gcSummaryStateTracker.d.mts → gcSummaryStateTracker.d.ts} +13 -6
- package/lib/gc/gcSummaryStateTracker.d.ts.map +1 -0
- package/lib/gc/{gcSummaryStateTracker.mjs → gcSummaryStateTracker.js} +17 -5
- package/lib/gc/gcSummaryStateTracker.js.map +1 -0
- package/lib/gc/{gcTelemetry.d.mts → gcTelemetry.d.ts} +7 -8
- package/lib/gc/gcTelemetry.d.ts.map +1 -0
- package/lib/gc/{gcTelemetry.mjs → gcTelemetry.js} +5 -3
- package/lib/gc/gcTelemetry.js.map +1 -0
- package/lib/gc/{gcUnreferencedStateTracker.d.mts → gcUnreferencedStateTracker.d.ts} +2 -2
- package/lib/gc/gcUnreferencedStateTracker.d.ts.map +1 -0
- package/lib/gc/{gcUnreferencedStateTracker.mjs → gcUnreferencedStateTracker.js} +2 -2
- package/lib/gc/gcUnreferencedStateTracker.js.map +1 -0
- package/lib/gc/index.d.ts +13 -0
- package/lib/gc/index.d.ts.map +1 -0
- package/lib/gc/{index.mjs → index.js} +8 -8
- package/lib/gc/index.js.map +1 -0
- package/lib/{index.d.mts → index.d.ts} +12 -22
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/{messageTypes.d.mts → messageTypes.d.ts} +4 -4
- package/lib/messageTypes.d.ts.map +1 -0
- package/lib/{messageTypes.mjs → messageTypes.js} +1 -1
- package/lib/messageTypes.js.map +1 -0
- package/lib/{metadata.d.mts → metadata.d.ts} +1 -1
- package/lib/metadata.d.ts.map +1 -0
- package/lib/{metadata.mjs → metadata.js} +1 -1
- package/lib/metadata.js.map +1 -0
- package/lib/opLifecycle/{batchManager.d.mts → batchManager.d.ts} +3 -3
- package/lib/opLifecycle/batchManager.d.ts.map +1 -0
- package/lib/opLifecycle/{batchManager.mjs → batchManager.js} +1 -1
- package/lib/opLifecycle/batchManager.js.map +1 -0
- package/lib/opLifecycle/{definitions.d.mts → definitions.d.ts} +3 -3
- package/lib/opLifecycle/definitions.d.ts.map +1 -0
- package/lib/opLifecycle/{definitions.mjs → definitions.js} +1 -1
- package/lib/opLifecycle/definitions.js.map +1 -0
- package/lib/opLifecycle/index.d.ts +13 -0
- package/lib/opLifecycle/index.d.ts.map +1 -0
- package/lib/opLifecycle/index.js +12 -0
- package/lib/opLifecycle/index.js.map +1 -0
- package/lib/opLifecycle/{opCompressor.d.mts → opCompressor.d.ts} +2 -2
- package/lib/opLifecycle/opCompressor.d.ts.map +1 -0
- package/lib/opLifecycle/{opCompressor.mjs → opCompressor.js} +3 -3
- package/lib/opLifecycle/opCompressor.js.map +1 -0
- package/lib/opLifecycle/{opDecompressor.d.mts → opDecompressor.d.ts} +2 -2
- package/lib/opLifecycle/opDecompressor.d.ts.map +1 -0
- package/lib/opLifecycle/{opDecompressor.mjs → opDecompressor.js} +2 -2
- package/lib/opLifecycle/opDecompressor.js.map +1 -0
- package/lib/opLifecycle/{opGroupingManager.d.mts → opGroupingManager.d.ts} +2 -2
- package/lib/opLifecycle/opGroupingManager.d.ts.map +1 -0
- package/lib/opLifecycle/{opGroupingManager.mjs → opGroupingManager.js} +2 -11
- package/lib/opLifecycle/opGroupingManager.js.map +1 -0
- package/lib/opLifecycle/{opSplitter.d.mts → opSplitter.d.ts} +2 -2
- package/lib/opLifecycle/opSplitter.d.ts.map +1 -0
- package/lib/opLifecycle/{opSplitter.mjs → opSplitter.js} +3 -3
- package/lib/opLifecycle/opSplitter.js.map +1 -0
- package/lib/opLifecycle/{outbox.d.mts → outbox.d.ts} +8 -8
- package/lib/opLifecycle/outbox.d.ts.map +1 -0
- package/lib/opLifecycle/{outbox.mjs → outbox.js} +24 -10
- package/lib/opLifecycle/outbox.js.map +1 -0
- package/lib/opLifecycle/{remoteMessageProcessor.d.mts → remoteMessageProcessor.d.ts} +5 -5
- package/lib/opLifecycle/remoteMessageProcessor.d.ts.map +1 -0
- package/lib/opLifecycle/{remoteMessageProcessor.mjs → remoteMessageProcessor.js} +7 -4
- package/lib/opLifecycle/remoteMessageProcessor.js.map +1 -0
- package/lib/{opProperties.d.mts → opProperties.d.ts} +1 -1
- package/lib/opProperties.d.ts.map +1 -0
- package/lib/{opProperties.mjs → opProperties.js} +1 -1
- package/lib/opProperties.js.map +1 -0
- package/lib/{packageVersion.d.mts → packageVersion.d.ts} +2 -2
- package/lib/packageVersion.d.ts.map +1 -0
- package/lib/{packageVersion.mjs → packageVersion.js} +2 -2
- package/lib/packageVersion.js.map +1 -0
- package/lib/{pendingStateManager.d.mts → pendingStateManager.d.ts} +3 -2
- package/lib/pendingStateManager.d.ts.map +1 -0
- package/lib/{pendingStateManager.mjs → pendingStateManager.js} +18 -10
- package/lib/pendingStateManager.js.map +1 -0
- package/lib/{scheduleManager.d.mts → scheduleManager.d.ts} +6 -3
- package/lib/scheduleManager.d.ts.map +1 -0
- package/lib/{scheduleManager.mjs → scheduleManager.js} +7 -3
- package/lib/scheduleManager.js.map +1 -0
- package/lib/{storageServiceWithAttachBlobs.d.mts → storageServiceWithAttachBlobs.d.ts} +1 -1
- package/lib/storageServiceWithAttachBlobs.d.ts.map +1 -0
- package/lib/{storageServiceWithAttachBlobs.mjs → storageServiceWithAttachBlobs.js} +1 -1
- package/lib/storageServiceWithAttachBlobs.js.map +1 -0
- package/lib/summary/{index.d.mts → index.d.ts} +13 -13
- package/lib/summary/index.d.ts.map +1 -0
- package/lib/summary/{index.mjs → index.js} +12 -12
- package/lib/summary/index.js.map +1 -0
- package/lib/summary/{orderedClientElection.d.mts → orderedClientElection.d.ts} +5 -1
- package/lib/summary/orderedClientElection.d.ts.map +1 -0
- package/lib/summary/{orderedClientElection.mjs → orderedClientElection.js} +6 -2
- package/lib/summary/orderedClientElection.js.map +1 -0
- package/lib/summary/{runWhileConnectedCoordinator.d.mts → runWhileConnectedCoordinator.d.ts} +2 -2
- package/lib/summary/runWhileConnectedCoordinator.d.ts.map +1 -0
- package/lib/summary/{runWhileConnectedCoordinator.mjs → runWhileConnectedCoordinator.js} +1 -1
- package/lib/summary/runWhileConnectedCoordinator.js.map +1 -0
- package/lib/summary/{runningSummarizer.d.mts → runningSummarizer.d.ts} +6 -5
- package/lib/summary/runningSummarizer.d.ts.map +1 -0
- package/lib/summary/{runningSummarizer.mjs → runningSummarizer.js} +41 -26
- package/lib/summary/runningSummarizer.js.map +1 -0
- package/lib/summary/{summarizer.d.mts → summarizer.d.ts} +5 -5
- package/lib/summary/summarizer.d.ts.map +1 -0
- package/lib/summary/{summarizer.mjs → summarizer.js} +4 -4
- package/lib/summary/summarizer.js.map +1 -0
- package/lib/summary/{summarizerClientElection.d.mts → summarizerClientElection.d.ts} +3 -3
- package/lib/summary/summarizerClientElection.d.ts.map +1 -0
- package/lib/summary/{summarizerClientElection.mjs → summarizerClientElection.js} +1 -1
- package/lib/summary/summarizerClientElection.js.map +1 -0
- package/lib/summary/{summarizerHeuristics.d.mts → summarizerHeuristics.d.ts} +4 -4
- package/lib/summary/summarizerHeuristics.d.ts.map +1 -0
- package/lib/summary/{summarizerHeuristics.mjs → summarizerHeuristics.js} +1 -1
- package/lib/summary/summarizerHeuristics.js.map +1 -0
- package/lib/summary/summarizerNode/{index.d.mts → index.d.ts} +4 -4
- package/lib/summary/summarizerNode/index.d.ts.map +1 -0
- package/lib/summary/summarizerNode/index.js +7 -0
- package/lib/summary/summarizerNode/index.js.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNode.d.mts → summarizerNode.d.ts} +17 -6
- package/lib/summary/summarizerNode/summarizerNode.d.ts.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNode.mjs → summarizerNode.js} +34 -4
- package/lib/summary/summarizerNode/summarizerNode.js.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNodeUtils.d.mts → summarizerNodeUtils.d.ts} +10 -2
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNodeUtils.mjs → summarizerNodeUtils.js} +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNodeWithGc.d.mts → summarizerNodeWithGc.d.ts} +4 -5
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNodeWithGc.mjs → summarizerNodeWithGc.js} +7 -7
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -0
- package/lib/summary/{summarizerTypes.d.mts → summarizerTypes.d.ts} +10 -21
- package/lib/summary/summarizerTypes.d.ts.map +1 -0
- package/lib/summary/{summarizerTypes.mjs → summarizerTypes.js} +1 -1
- package/lib/summary/summarizerTypes.js.map +1 -0
- package/lib/summary/{summaryCollection.d.mts → summaryCollection.d.ts} +1 -1
- package/lib/summary/summaryCollection.d.ts.map +1 -0
- package/lib/summary/{summaryCollection.mjs → summaryCollection.js} +1 -1
- package/lib/summary/summaryCollection.js.map +1 -0
- package/lib/summary/{summaryFormat.d.mts → summaryFormat.d.ts} +16 -3
- package/lib/summary/summaryFormat.d.ts.map +1 -0
- package/lib/summary/{summaryFormat.mjs → summaryFormat.js} +1 -1
- package/lib/summary/summaryFormat.js.map +1 -0
- package/lib/summary/{summaryGenerator.d.mts → summaryGenerator.d.ts} +7 -6
- package/lib/summary/summaryGenerator.d.ts.map +1 -0
- package/lib/summary/{summaryGenerator.mjs → summaryGenerator.js} +11 -2
- package/lib/summary/summaryGenerator.js.map +1 -0
- package/lib/summary/{summaryManager.d.mts → summaryManager.d.ts} +6 -7
- package/lib/summary/summaryManager.d.ts.map +1 -0
- package/lib/summary/{summaryManager.mjs → summaryManager.js} +4 -5
- package/lib/summary/summaryManager.js.map +1 -0
- package/lib/test/batchTracker.spec.js +88 -0
- package/lib/test/batchTracker.spec.js.map +1 -0
- package/lib/test/blobManager.spec.js +835 -0
- package/lib/test/blobManager.spec.js.map +1 -0
- package/lib/test/channelCollection.spec.js +138 -0
- package/lib/test/channelCollection.spec.js.map +1 -0
- package/lib/test/containerRuntime.spec.js +1748 -0
- package/lib/test/containerRuntime.spec.js.map +1 -0
- package/lib/test/dataStoreContext.spec.js +771 -0
- package/lib/test/dataStoreContext.spec.js.map +1 -0
- package/lib/test/dataStoreCreation.spec.js +303 -0
- package/lib/test/dataStoreCreation.spec.js.map +1 -0
- package/lib/test/dataStoreRegistry.spec.js +26 -0
- package/lib/test/dataStoreRegistry.spec.js.map +1 -0
- package/lib/test/fuzz/fuzzUtils.js +66 -0
- package/lib/test/fuzz/fuzzUtils.js.map +1 -0
- package/lib/test/fuzz/summarizer.fuzz.spec.js +31 -0
- package/lib/test/fuzz/summarizer.fuzz.spec.js.map +1 -0
- package/lib/test/fuzz/summarizerFuzzMocks.js +162 -0
- package/lib/test/fuzz/summarizerFuzzMocks.js.map +1 -0
- package/lib/test/fuzz/summarizerFuzzSuite.js +106 -0
- package/lib/test/fuzz/summarizerFuzzSuite.js.map +1 -0
- package/lib/test/gc/garbageCollection.spec.js +1464 -0
- package/lib/test/gc/garbageCollection.spec.js.map +1 -0
- package/lib/test/gc/gcConfigs.spec.js +689 -0
- package/lib/test/gc/gcConfigs.spec.js.map +1 -0
- package/lib/test/gc/gcHelpers.spec.js +110 -0
- package/lib/test/gc/gcHelpers.spec.js.map +1 -0
- package/lib/test/gc/gcReferenceGraphAlgorithm.spec.js +68 -0
- package/lib/test/gc/gcReferenceGraphAlgorithm.spec.js.map +1 -0
- package/lib/test/gc/gcStats.spec.js +390 -0
- package/lib/test/gc/gcStats.spec.js.map +1 -0
- package/lib/test/gc/gcSummaryStateTracker.spec.js +228 -0
- package/lib/test/gc/gcSummaryStateTracker.spec.js.map +1 -0
- package/lib/test/gc/gcTelemetry.spec.js +530 -0
- package/lib/test/gc/gcTelemetry.spec.js.map +1 -0
- package/lib/test/gc/gcUnitTestHelpers.js +29 -0
- package/lib/test/gc/gcUnitTestHelpers.js.map +1 -0
- package/lib/test/gc/gcUnreferencedStateTracker.spec.js +192 -0
- package/lib/test/gc/gcUnreferencedStateTracker.spec.js.map +1 -0
- package/lib/test/getPendingBlobs.spec.js +193 -0
- package/lib/test/getPendingBlobs.spec.js.map +1 -0
- package/lib/test/hardwareStats.spec.js +93 -0
- package/lib/test/hardwareStats.spec.js.map +1 -0
- package/lib/test/index.js +6 -0
- package/lib/test/index.js.map +1 -0
- package/lib/test/opLifecycle/OpGroupingManager.spec.js +225 -0
- package/lib/test/opLifecycle/OpGroupingManager.spec.js.map +1 -0
- package/lib/test/opLifecycle/batchManager.spec.js +189 -0
- package/lib/test/opLifecycle/batchManager.spec.js.map +1 -0
- package/lib/test/opLifecycle/opCompressor.spec.js +74 -0
- package/lib/test/opLifecycle/opCompressor.spec.js.map +1 -0
- package/lib/test/opLifecycle/opDecompressor.spec.js +218 -0
- package/lib/test/opLifecycle/opDecompressor.spec.js.map +1 -0
- package/lib/test/opLifecycle/opSplitter.spec.js +272 -0
- package/lib/test/opLifecycle/opSplitter.spec.js.map +1 -0
- package/lib/test/opLifecycle/outbox.spec.js +675 -0
- package/lib/test/opLifecycle/outbox.spec.js.map +1 -0
- package/lib/test/opLifecycle/remoteMessageProcessor.spec.js +196 -0
- package/lib/test/opLifecycle/remoteMessageProcessor.spec.js.map +1 -0
- package/lib/test/pendingStateManager.spec.js +329 -0
- package/lib/test/pendingStateManager.spec.js.map +1 -0
- package/lib/test/scheduleManager.spec.js +270 -0
- package/lib/test/scheduleManager.spec.js.map +1 -0
- package/lib/test/summarizerNode.spec.js +326 -0
- package/lib/test/summarizerNode.spec.js.map +1 -0
- package/lib/test/summarizerNodeWithGc.spec.js +318 -0
- package/lib/test/summarizerNodeWithGc.spec.js.map +1 -0
- package/lib/test/summary/orderedClientElection.spec.js +535 -0
- package/lib/test/summary/orderedClientElection.spec.js.map +1 -0
- package/lib/test/summary/runningSummarizer.spec.js +1349 -0
- package/lib/test/summary/runningSummarizer.spec.js.map +1 -0
- package/lib/test/summary/summarizer.spec.js +29 -0
- package/lib/test/summary/summarizer.spec.js.map +1 -0
- package/lib/test/summary/summarizerClientElection.spec.js +436 -0
- package/lib/test/summary/summarizerClientElection.spec.js.map +1 -0
- package/lib/test/summary/summarizerHeuristics.spec.js +289 -0
- package/lib/test/summary/summarizerHeuristics.spec.js.map +1 -0
- package/lib/test/summary/summaryCollection.spec.js +200 -0
- package/lib/test/summary/summaryCollection.spec.js.map +1 -0
- package/lib/test/summary/summaryManager.spec.js +430 -0
- package/lib/test/summary/summaryManager.spec.js.map +1 -0
- package/lib/test/summary/testQuorumClients.js +34 -0
- package/lib/test/summary/testQuorumClients.js.map +1 -0
- package/lib/test/throttler.spec.js +175 -0
- package/lib/test/throttler.spec.js.map +1 -0
- package/lib/test/types/validateContainerRuntimePrevious.generated.js +180 -0
- package/lib/test/types/validateContainerRuntimePrevious.generated.js.map +1 -0
- package/lib/{throttler.d.mts → throttler.d.ts} +1 -1
- package/lib/throttler.d.ts.map +1 -0
- package/lib/{throttler.mjs → throttler.js} +1 -1
- package/lib/throttler.js.map +1 -0
- package/package.json +101 -88
- package/src/batchTracker.ts +1 -1
- package/src/blobManager.ts +1 -15
- package/src/{dataStores.ts → channelCollection.ts} +629 -178
- package/src/connectionTelemetry.ts +42 -3
- package/src/containerHandleContext.ts +1 -1
- package/src/containerRuntime.ts +626 -430
- package/src/dataStore.ts +16 -15
- package/src/dataStoreContext.ts +376 -216
- package/src/dataStoreContexts.ts +2 -1
- package/src/dataStoreRegistry.ts +1 -0
- package/src/deltaManagerSummarizerProxy.ts +132 -7
- package/src/gc/garbageCollection.ts +84 -44
- package/src/gc/gcConfigs.ts +17 -7
- package/src/gc/gcDefinitions.ts +23 -13
- package/src/gc/gcHelpers.ts +2 -2
- package/src/gc/gcReferenceGraphAlgorithm.ts +1 -1
- package/src/gc/gcSummaryStateTracker.ts +19 -7
- package/src/gc/gcTelemetry.ts +9 -7
- package/src/gc/gcUnreferencedStateTracker.ts +1 -1
- package/src/gc/index.ts +10 -9
- package/src/index.ts +28 -27
- package/src/messageTypes.ts +3 -3
- package/src/opLifecycle/README.md +2 -4
- package/src/opLifecycle/batchManager.ts +2 -2
- package/src/opLifecycle/definitions.ts +2 -2
- package/src/opLifecycle/index.ts +8 -8
- package/src/opLifecycle/opCompressor.ts +3 -3
- package/src/opLifecycle/opDecompressor.ts +3 -3
- package/src/opLifecycle/opGroupingManager.ts +3 -12
- package/src/opLifecycle/opSplitter.ts +3 -3
- package/src/opLifecycle/outbox.ts +43 -16
- package/src/opLifecycle/remoteMessageProcessor.ts +10 -6
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +19 -13
- package/src/scheduleManager.ts +5 -4
- package/src/summary/index.ts +13 -12
- package/src/summary/orderedClientElection.ts +2 -1
- package/src/summary/runWhileConnectedCoordinator.ts +1 -1
- package/src/summary/runningSummarizer.ts +52 -32
- package/src/summary/summarizer.ts +7 -7
- package/src/summary/summarizerClientElection.ts +2 -2
- package/src/summary/summarizerHeuristics.ts +3 -3
- package/src/summary/summarizerNode/index.ts +6 -3
- package/src/summary/summarizerNode/summarizerNode.ts +50 -5
- package/src/summary/summarizerNode/summarizerNodeUtils.ts +14 -1
- package/src/summary/summarizerNode/summarizerNodeWithGc.ts +11 -11
- package/src/summary/summarizerTypes.ts +11 -23
- package/src/summary/summaryFormat.ts +16 -2
- package/src/summary/summaryGenerator.ts +16 -4
- package/src/summary/summaryManager.ts +6 -7
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +2 -5
- package/dist/dataStores.d.ts +0 -151
- package/dist/dataStores.d.ts.map +0 -1
- package/dist/dataStores.js.map +0 -1
- package/dist/deltaManagerProxyBase.d.ts.map +0 -1
- package/dist/deltaManagerProxyBase.js +0 -77
- package/dist/deltaManagerProxyBase.js.map +0 -1
- package/lib/batchTracker.d.mts.map +0 -1
- package/lib/batchTracker.mjs.map +0 -1
- package/lib/blobManager.d.mts.map +0 -1
- package/lib/blobManager.mjs.map +0 -1
- package/lib/connectionTelemetry.d.mts.map +0 -1
- package/lib/connectionTelemetry.mjs.map +0 -1
- package/lib/containerHandleContext.d.mts.map +0 -1
- package/lib/containerHandleContext.mjs.map +0 -1
- package/lib/containerRuntime.d.mts.map +0 -1
- package/lib/containerRuntime.mjs.map +0 -1
- package/lib/dataStore.d.mts.map +0 -1
- package/lib/dataStore.mjs.map +0 -1
- package/lib/dataStoreContext.d.mts.map +0 -1
- package/lib/dataStoreContext.mjs.map +0 -1
- package/lib/dataStoreContexts.d.mts.map +0 -1
- package/lib/dataStoreContexts.mjs.map +0 -1
- package/lib/dataStoreRegistry.d.mts.map +0 -1
- package/lib/dataStoreRegistry.mjs.map +0 -1
- package/lib/dataStores.d.mts +0 -151
- package/lib/dataStores.d.mts.map +0 -1
- package/lib/dataStores.mjs.map +0 -1
- package/lib/deltaManagerProxyBase.d.mts +0 -35
- package/lib/deltaManagerProxyBase.d.mts.map +0 -1
- package/lib/deltaManagerProxyBase.mjs +0 -73
- package/lib/deltaManagerProxyBase.mjs.map +0 -1
- package/lib/deltaManagerSummarizerProxy.d.mts +0 -19
- package/lib/deltaManagerSummarizerProxy.d.mts.map +0 -1
- package/lib/deltaManagerSummarizerProxy.mjs +0 -38
- package/lib/deltaManagerSummarizerProxy.mjs.map +0 -1
- package/lib/deltaScheduler.d.mts.map +0 -1
- package/lib/deltaScheduler.mjs.map +0 -1
- package/lib/error.d.mts.map +0 -1
- package/lib/error.mjs.map +0 -1
- package/lib/gc/garbageCollection.d.mts.map +0 -1
- package/lib/gc/garbageCollection.mjs.map +0 -1
- package/lib/gc/gcConfigs.d.mts.map +0 -1
- package/lib/gc/gcConfigs.mjs.map +0 -1
- package/lib/gc/gcDefinitions.d.mts.map +0 -1
- package/lib/gc/gcDefinitions.mjs.map +0 -1
- package/lib/gc/gcHelpers.mjs.map +0 -1
- package/lib/gc/gcReferenceGraphAlgorithm.d.mts.map +0 -1
- package/lib/gc/gcReferenceGraphAlgorithm.mjs.map +0 -1
- package/lib/gc/gcSummaryDefinitions.d.mts.map +0 -1
- package/lib/gc/gcSummaryDefinitions.mjs.map +0 -1
- package/lib/gc/gcSummaryStateTracker.d.mts.map +0 -1
- package/lib/gc/gcSummaryStateTracker.mjs.map +0 -1
- package/lib/gc/gcTelemetry.d.mts.map +0 -1
- package/lib/gc/gcTelemetry.mjs.map +0 -1
- package/lib/gc/gcUnreferencedStateTracker.d.mts.map +0 -1
- package/lib/gc/gcUnreferencedStateTracker.mjs.map +0 -1
- package/lib/gc/index.d.mts +0 -13
- package/lib/gc/index.d.mts.map +0 -1
- package/lib/gc/index.mjs.map +0 -1
- package/lib/index.d.mts.map +0 -1
- package/lib/index.mjs +0 -25
- package/lib/index.mjs.map +0 -1
- package/lib/messageTypes.d.mts.map +0 -1
- package/lib/messageTypes.mjs.map +0 -1
- package/lib/metadata.d.mts.map +0 -1
- package/lib/metadata.mjs.map +0 -1
- package/lib/opLifecycle/batchManager.d.mts.map +0 -1
- package/lib/opLifecycle/batchManager.mjs.map +0 -1
- package/lib/opLifecycle/definitions.d.mts.map +0 -1
- package/lib/opLifecycle/definitions.mjs.map +0 -1
- package/lib/opLifecycle/index.d.mts +0 -13
- package/lib/opLifecycle/index.d.mts.map +0 -1
- package/lib/opLifecycle/index.mjs +0 -12
- package/lib/opLifecycle/index.mjs.map +0 -1
- package/lib/opLifecycle/opCompressor.d.mts.map +0 -1
- package/lib/opLifecycle/opCompressor.mjs.map +0 -1
- package/lib/opLifecycle/opDecompressor.d.mts.map +0 -1
- package/lib/opLifecycle/opDecompressor.mjs.map +0 -1
- package/lib/opLifecycle/opGroupingManager.d.mts.map +0 -1
- package/lib/opLifecycle/opGroupingManager.mjs.map +0 -1
- package/lib/opLifecycle/opSplitter.d.mts.map +0 -1
- package/lib/opLifecycle/opSplitter.mjs.map +0 -1
- package/lib/opLifecycle/outbox.d.mts.map +0 -1
- package/lib/opLifecycle/outbox.mjs.map +0 -1
- package/lib/opLifecycle/remoteMessageProcessor.d.mts.map +0 -1
- package/lib/opLifecycle/remoteMessageProcessor.mjs.map +0 -1
- package/lib/opProperties.d.mts.map +0 -1
- package/lib/opProperties.mjs.map +0 -1
- package/lib/packageVersion.d.mts.map +0 -1
- package/lib/packageVersion.mjs.map +0 -1
- package/lib/pendingStateManager.d.mts.map +0 -1
- package/lib/pendingStateManager.mjs.map +0 -1
- package/lib/scheduleManager.d.mts.map +0 -1
- package/lib/scheduleManager.mjs.map +0 -1
- package/lib/storageServiceWithAttachBlobs.d.mts.map +0 -1
- package/lib/storageServiceWithAttachBlobs.mjs.map +0 -1
- package/lib/summary/index.d.mts.map +0 -1
- package/lib/summary/index.mjs.map +0 -1
- package/lib/summary/orderedClientElection.d.mts.map +0 -1
- package/lib/summary/orderedClientElection.mjs.map +0 -1
- package/lib/summary/runWhileConnectedCoordinator.d.mts.map +0 -1
- package/lib/summary/runWhileConnectedCoordinator.mjs.map +0 -1
- package/lib/summary/runningSummarizer.d.mts.map +0 -1
- package/lib/summary/runningSummarizer.mjs.map +0 -1
- package/lib/summary/summarizer.d.mts.map +0 -1
- package/lib/summary/summarizer.mjs.map +0 -1
- package/lib/summary/summarizerClientElection.d.mts.map +0 -1
- package/lib/summary/summarizerClientElection.mjs.map +0 -1
- package/lib/summary/summarizerHeuristics.d.mts.map +0 -1
- package/lib/summary/summarizerHeuristics.mjs.map +0 -1
- package/lib/summary/summarizerNode/index.d.mts.map +0 -1
- package/lib/summary/summarizerNode/index.mjs +0 -7
- package/lib/summary/summarizerNode/index.mjs.map +0 -1
- package/lib/summary/summarizerNode/summarizerNode.d.mts.map +0 -1
- package/lib/summary/summarizerNode/summarizerNode.mjs.map +0 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.mts.map +0 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.mjs.map +0 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.mts.map +0 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.mjs.map +0 -1
- package/lib/summary/summarizerTypes.d.mts.map +0 -1
- package/lib/summary/summarizerTypes.mjs.map +0 -1
- package/lib/summary/summaryCollection.d.mts.map +0 -1
- package/lib/summary/summaryCollection.mjs.map +0 -1
- package/lib/summary/summaryFormat.d.mts.map +0 -1
- package/lib/summary/summaryFormat.mjs.map +0 -1
- package/lib/summary/summaryGenerator.d.mts.map +0 -1
- package/lib/summary/summaryGenerator.mjs.map +0 -1
- package/lib/summary/summaryManager.d.mts.map +0 -1
- package/lib/summary/summaryManager.mjs.map +0 -1
- package/lib/throttler.d.mts.map +0 -1
- package/lib/throttler.mjs.map +0 -1
- package/src/deltaManagerProxyBase.ts +0 -111
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AliasResult } from '@fluidframework/runtime-definitions';
|
|
2
2
|
import { AttachState } from '@fluidframework/container-definitions';
|
|
3
3
|
import { ContainerWarning } from '@fluidframework/container-definitions';
|
|
4
|
+
import { CreateChildSummarizerNodeFn } from '@fluidframework/runtime-definitions';
|
|
5
|
+
import { CreateChildSummarizerNodeParam } from '@fluidframework/runtime-definitions';
|
|
4
6
|
import { FluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
|
|
5
7
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
6
8
|
import { FlushMode } from '@fluidframework/runtime-definitions';
|
|
7
|
-
import { generateStableId } from '@fluidframework/id-compressor';
|
|
8
9
|
import { IAudience } from '@fluidframework/container-definitions';
|
|
9
10
|
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
10
11
|
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
12
|
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
13
|
+
import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
|
|
12
14
|
import { IContainerRuntimeEvents } from '@fluidframework/container-runtime-definitions';
|
|
13
15
|
import { ICriticalContainerError } from '@fluidframework/container-definitions';
|
|
14
16
|
import { IDataStore } from '@fluidframework/runtime-definitions';
|
|
@@ -19,15 +21,20 @@ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
|
19
21
|
import { IEnvelope } from '@fluidframework/runtime-definitions';
|
|
20
22
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
21
23
|
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
24
|
+
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
25
|
+
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
22
26
|
import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
|
|
27
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
23
28
|
import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
24
29
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
25
30
|
import { IFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
31
|
+
import { IFluidParentContext } from '@fluidframework/runtime-definitions';
|
|
26
32
|
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
|
|
33
|
+
import { IGarbageCollectionDetailsBase } from '@fluidframework/runtime-definitions';
|
|
27
34
|
import { IGetPendingLocalStateProps } from '@fluidframework/container-definitions';
|
|
28
35
|
import type { IIdCompressor } from '@fluidframework/id-compressor';
|
|
29
36
|
import type { IIdCompressorCore } from '@fluidframework/id-compressor';
|
|
30
|
-
import {
|
|
37
|
+
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
31
38
|
import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
32
39
|
import { IQuorumClients } from '@fluidframework/protocol-definitions';
|
|
33
40
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
@@ -35,17 +42,22 @@ import { IResponse } from '@fluidframework/core-interfaces';
|
|
|
35
42
|
import { IRuntime } from '@fluidframework/container-definitions';
|
|
36
43
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
37
44
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
38
|
-
import {
|
|
45
|
+
import { ISnapshotTree } from '@fluidframework/protocol-definitions';
|
|
46
|
+
import { ISummarizeResult } from '@fluidframework/runtime-definitions';
|
|
47
|
+
import { ISummarizerNodeWithGC } from '@fluidframework/runtime-definitions';
|
|
39
48
|
import { ISummaryAck } from '@fluidframework/protocol-definitions';
|
|
40
49
|
import { ISummaryContent } from '@fluidframework/protocol-definitions';
|
|
41
50
|
import { ISummaryNack } from '@fluidframework/protocol-definitions';
|
|
42
51
|
import { ISummaryStats } from '@fluidframework/runtime-definitions';
|
|
43
52
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
44
53
|
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
|
|
54
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
45
55
|
import { ITelemetryContext } from '@fluidframework/runtime-definitions';
|
|
46
56
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
47
57
|
import { MessageType } from '@fluidframework/protocol-definitions';
|
|
58
|
+
import { MonitoringContext } from '@fluidframework/telemetry-utils';
|
|
48
59
|
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
60
|
+
import { SummarizeInternalFn } from '@fluidframework/runtime-definitions';
|
|
49
61
|
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
50
62
|
|
|
51
63
|
/* Excluded from this release type: agentSchedulerId */
|
|
@@ -57,7 +69,9 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
57
69
|
*/
|
|
58
70
|
export declare const AllowTombstoneRequestHeaderKey = "allowTombstone";
|
|
59
71
|
|
|
60
|
-
/* Excluded from this release type:
|
|
72
|
+
/* Excluded from this release type: ChannelCollection */
|
|
73
|
+
|
|
74
|
+
/* Excluded from this release type: ChannelCollectionFactory */
|
|
61
75
|
|
|
62
76
|
/* Excluded from this release type: CompatModeBehavior */
|
|
63
77
|
|
|
@@ -99,10 +113,13 @@ export declare enum ContainerMessageType {
|
|
|
99
113
|
*/
|
|
100
114
|
export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents & ISummarizerEvents> implements IContainerRuntime, IRuntime, ISummarizerRuntime, ISummarizerInternalsProvider, IProvideFluidHandleContext {
|
|
101
115
|
private readonly registry;
|
|
116
|
+
private readonly metadata;
|
|
102
117
|
private readonly runtimeOptions;
|
|
103
118
|
private readonly containerScope;
|
|
104
119
|
readonly logger: ITelemetryLoggerExt;
|
|
105
120
|
private readonly _storage;
|
|
121
|
+
private readonly createIdCompressor;
|
|
122
|
+
private readonly idCompressorMode;
|
|
106
123
|
private readonly requestHandler?;
|
|
107
124
|
private readonly summaryConfiguration;
|
|
108
125
|
/**
|
|
@@ -131,12 +148,13 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
131
148
|
requestHandler?: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
|
|
132
149
|
provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>;
|
|
133
150
|
}): Promise<ContainerRuntime>;
|
|
134
|
-
readonly options:
|
|
151
|
+
readonly options: Record<string | number, any>;
|
|
135
152
|
private imminentClosure;
|
|
136
153
|
private readonly _getClientId;
|
|
137
154
|
get clientId(): string | undefined;
|
|
138
155
|
readonly clientDetails: IClientDetails;
|
|
139
156
|
get storage(): IDocumentStorageService;
|
|
157
|
+
get containerRuntime(): this;
|
|
140
158
|
private readonly submitFn;
|
|
141
159
|
/**
|
|
142
160
|
* Although current IContainerContext guarantees submitBatchFn, it is not available on older loaders.
|
|
@@ -151,7 +169,26 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
151
169
|
get IFluidDataStoreRegistry(): IFluidDataStoreRegistry;
|
|
152
170
|
private readonly _getAttachState;
|
|
153
171
|
get attachState(): AttachState;
|
|
154
|
-
|
|
172
|
+
private _idCompressor;
|
|
173
|
+
private pendingIdCompressorOps;
|
|
174
|
+
private readonly skipSavedCompressorOps;
|
|
175
|
+
/**
|
|
176
|
+
* See IContainerRuntimeBase.idCompressor() for details.
|
|
177
|
+
*/
|
|
178
|
+
get idCompressor(): (IIdCompressor & IIdCompressorCore) | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* True if we have ID compressor loading in-flight (async operation). Useful only for
|
|
181
|
+
* this.idCompressorMode === "delayed" mode
|
|
182
|
+
*/
|
|
183
|
+
protected compressorLoadInitiated: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* See IContainerRuntimeBase.generateDocumentUniqueId() for details.
|
|
186
|
+
*/
|
|
187
|
+
generateDocumentUniqueId(): string | (number & {
|
|
188
|
+
readonly SessionUnique: "cea55054-6b82-4cbf-ad19-1fa645ea3b3e";
|
|
189
|
+
} & {
|
|
190
|
+
readonly OpNormalized: "9209432d-a959-4df7-b2ad-767ead4dbcae";
|
|
191
|
+
});
|
|
155
192
|
get IFluidHandleContext(): IFluidHandleContext;
|
|
156
193
|
private readonly handleContext;
|
|
157
194
|
/**
|
|
@@ -234,15 +271,13 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
234
271
|
private readonly pendingStateManager;
|
|
235
272
|
private readonly outbox;
|
|
236
273
|
private readonly garbageCollector;
|
|
237
|
-
private readonly
|
|
274
|
+
private readonly channelCollection;
|
|
238
275
|
private readonly remoteMessageProcessor;
|
|
239
276
|
/** The last message processed at the time of the last summary. */
|
|
240
277
|
private messageAtLastSummary;
|
|
241
278
|
private get summarizer();
|
|
242
279
|
private readonly summariesDisabled;
|
|
243
280
|
private isSummariesDisabled;
|
|
244
|
-
private readonly heuristicsDisabled;
|
|
245
|
-
private isHeuristicsDisabled;
|
|
246
281
|
private readonly maxOpsSinceLastSummary;
|
|
247
282
|
private getMaxOpsSinceLastSummary;
|
|
248
283
|
private readonly initialSummarizerDelayMs;
|
|
@@ -262,10 +297,6 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
262
297
|
* ! Note: should not be used for anything other than telemetry and is not considered a stable GUID
|
|
263
298
|
*/
|
|
264
299
|
private readonly telemetryDocumentId;
|
|
265
|
-
/**
|
|
266
|
-
* If true, the runtime has access to an IdCompressor
|
|
267
|
-
*/
|
|
268
|
-
private readonly idCompressorEnabled;
|
|
269
300
|
/**
|
|
270
301
|
* Whether this client is the summarizer client itself (type is summarizerClientType)
|
|
271
302
|
*/
|
|
@@ -274,13 +305,41 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
274
305
|
* The id of the version used to initially load this runtime, or undefined if it's newly created.
|
|
275
306
|
*/
|
|
276
307
|
private readonly loadedFromVersionId;
|
|
308
|
+
/**
|
|
309
|
+
* It a cache for holding mapping for loading groupIds with its snapshot from the service. Add expiry policy of 1 minute.
|
|
310
|
+
* Starting with 1 min and based on recorded usage we can tweak it later on.
|
|
311
|
+
*/
|
|
312
|
+
private readonly snapshotCacheForLoadingGroupIds;
|
|
277
313
|
/***/
|
|
278
|
-
protected constructor(context: IContainerContext, registry: IFluidDataStoreRegistry, metadata: IContainerRuntimeMetadata | undefined, electedSummarizerData: ISerializedElection | undefined, chunks: [string, string[]][], dataStoreAliasMap: [string, string][], runtimeOptions: Readonly<Required<IContainerRuntimeOptions>>, containerScope: FluidObject, logger: ITelemetryLoggerExt, existing: boolean, blobManagerSnapshot: IBlobManagerLoadInfo, _storage: IDocumentStorageService,
|
|
314
|
+
protected constructor(context: IContainerContext, registry: IFluidDataStoreRegistry, metadata: IContainerRuntimeMetadata | undefined, electedSummarizerData: ISerializedElection | undefined, chunks: [string, string[]][], dataStoreAliasMap: [string, string][], runtimeOptions: Readonly<Required<IContainerRuntimeOptions>>, containerScope: FluidObject, logger: ITelemetryLoggerExt, existing: boolean, blobManagerSnapshot: IBlobManagerLoadInfo, _storage: IDocumentStorageService, createIdCompressor: () => Promise<IIdCompressor & IIdCompressorCore>, idCompressorMode: IdCompressorMode, provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>, requestHandler?: ((request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>) | undefined, summaryConfiguration?: ISummaryConfiguration);
|
|
315
|
+
getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>) => ISummarizerNodeWithGC;
|
|
316
|
+
deleteChildSummarizerNode(id: string): void;
|
|
317
|
+
makeLocallyVisible(): void;
|
|
318
|
+
setChannelDirty(address: string): void;
|
|
279
319
|
/**
|
|
280
320
|
* Initializes the state from the base snapshot this container runtime loaded from.
|
|
281
321
|
*/
|
|
282
322
|
private initializeBaseState;
|
|
283
323
|
dispose(error?: Error): void;
|
|
324
|
+
/**
|
|
325
|
+
* Api to fetch the snapshot from the service for a loadingGroupIds.
|
|
326
|
+
* @param loadingGroupIds - LoadingGroupId for which the snapshot is asked for.
|
|
327
|
+
* @param pathParts - Parts of the path, which we want to extract from the snapshot tree.
|
|
328
|
+
* @returns - snapshotTree and the sequence number of the snapshot.
|
|
329
|
+
*/
|
|
330
|
+
getSnapshotForLoadingGroupId(loadingGroupIds: string[], pathParts: string[]): Promise<{
|
|
331
|
+
snapshotTree: ISnapshotTree;
|
|
332
|
+
sequenceNumber: number;
|
|
333
|
+
}>;
|
|
334
|
+
/**
|
|
335
|
+
* Api to find a snapshot tree inside a bigger snapshot tree based on the path in the pathParts array.
|
|
336
|
+
* @param snapshotTree - snapshot tree to look into.
|
|
337
|
+
* @param pathParts - Part of the path, which we want to extract from the snapshot tree.
|
|
338
|
+
* @param hasIsolatedChannels - whether the channels are present inside ".channels" subtree. Older
|
|
339
|
+
* snapshots will not have trees inside ".channels", so check that.
|
|
340
|
+
* @returns - requested snapshot tree based on the path parts.
|
|
341
|
+
*/
|
|
342
|
+
private getSnapshotTreeForPath;
|
|
284
343
|
/**
|
|
285
344
|
* Notifies this object about the request made to the container.
|
|
286
345
|
* @param request - Request made to the handler.
|
|
@@ -298,7 +357,6 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
298
357
|
getEntryPoint(): Promise<FluidObject>;
|
|
299
358
|
private readonly entryPoint;
|
|
300
359
|
private internalId;
|
|
301
|
-
private getDataStoreFromRequest;
|
|
302
360
|
/** Adds the container's metadata to the given summary tree. */
|
|
303
361
|
private addMetadataToSummary;
|
|
304
362
|
protected addContainerStateToSummary(summaryTree: ISummaryTreeWithStats, fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext): void;
|
|
@@ -348,13 +406,12 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
348
406
|
* Returns undefined if no data store has been assigned the given alias.
|
|
349
407
|
*/
|
|
350
408
|
getAliasedDataStoreEntryPoint(alias: string): Promise<IFluidHandle<FluidObject> | undefined>;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
createDataStore(pkg: string | string[], groupId?: string): Promise<IDataStore>;
|
|
409
|
+
createDetachedDataStore(pkg: Readonly<string[]>, loadingGroupId?: string): IFluidDataStoreContextDetached;
|
|
410
|
+
createDataStore(pkg: Readonly<string | string[]>, loadingGroupId?: string): Promise<IDataStore>;
|
|
354
411
|
/**
|
|
355
412
|
* @deprecated 0.16 Issue #1537, #3631
|
|
356
413
|
*/
|
|
357
|
-
_createDataStoreWithProps(pkg: string | string[]
|
|
414
|
+
_createDataStoreWithProps(pkg: Readonly<string | string[]>, props?: any): Promise<IDataStore>;
|
|
358
415
|
private canSendOps;
|
|
359
416
|
/**
|
|
360
417
|
* Are we in the middle of batching ops together?
|
|
@@ -378,13 +435,6 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
378
435
|
* @param targetClientId - When specified, the signal is only sent to the provided client id.
|
|
379
436
|
*/
|
|
380
437
|
submitSignal(type: string, content: any, targetClientId?: string): void;
|
|
381
|
-
/**
|
|
382
|
-
* Submits the signal to be sent to other clients.
|
|
383
|
-
* @param type - Type of the signal.
|
|
384
|
-
* @param content - Content of the signal.
|
|
385
|
-
* @param targetClientId - When specified, the signal is only sent to the provided client id.
|
|
386
|
-
*/
|
|
387
|
-
submitDataStoreSignal(address: string, type: string, content: any, targetClientId?: string): void;
|
|
388
438
|
setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
|
|
389
439
|
/**
|
|
390
440
|
* Create a summary. Used when attaching or serializing a detached container.
|
|
@@ -434,15 +484,6 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
434
484
|
* @see IGarbageCollectionRuntime.updateUsedRoutes
|
|
435
485
|
*/
|
|
436
486
|
updateUsedRoutes(usedRoutes: readonly string[]): void;
|
|
437
|
-
/**
|
|
438
|
-
* This is called to update objects whose routes are unused.
|
|
439
|
-
* @param unusedRoutes - Data store and attachment blob routes that are unused in this Container.
|
|
440
|
-
*/
|
|
441
|
-
updateUnusedRoutes(unusedRoutes: readonly string[]): void;
|
|
442
|
-
/**
|
|
443
|
-
* @deprecated Replaced by deleteSweepReadyNodes.
|
|
444
|
-
*/
|
|
445
|
-
deleteUnusedNodes(unusedRoutes: readonly string[]): string[];
|
|
446
487
|
/**
|
|
447
488
|
* After GC has run and identified nodes that are sweep ready, this is called to delete the sweep ready nodes.
|
|
448
489
|
* @param sweepReadyRoutes - The routes of nodes that are sweep ready and should be deleted.
|
|
@@ -501,7 +542,11 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
501
542
|
* @param srcHandle - The handle of the node that added the reference.
|
|
502
543
|
* @param outboundHandle - The handle of the outbound node that is referenced.
|
|
503
544
|
*/
|
|
504
|
-
addedGCOutboundReference(srcHandle:
|
|
545
|
+
addedGCOutboundReference(srcHandle: {
|
|
546
|
+
absolutePath: string;
|
|
547
|
+
}, outboundHandle: {
|
|
548
|
+
absolutePath: string;
|
|
549
|
+
}): void;
|
|
505
550
|
/**
|
|
506
551
|
* Generates the summary tree, uploads it to storage, and then submits the summarize op.
|
|
507
552
|
* This is intended to be called by the summarizer, since it is the implementation of
|
|
@@ -525,10 +570,9 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
525
570
|
private get pendingMessagesCount();
|
|
526
571
|
private hasPendingMessages;
|
|
527
572
|
private updateDocumentDirtyState;
|
|
528
|
-
|
|
529
|
-
submitDataStoreAliasOp(contents: any, localOpMetadata: unknown): void;
|
|
573
|
+
submitMessage(type: ContainerMessageType.FluidDataStoreOp | ContainerMessageType.Alias | ContainerMessageType.Attach, contents: any, localOpMetadata?: unknown): void;
|
|
530
574
|
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
531
|
-
private
|
|
575
|
+
private submitIdAllocationOpIfNeeded;
|
|
532
576
|
private submit;
|
|
533
577
|
private scheduleFlush;
|
|
534
578
|
private submitSummaryMessage;
|
|
@@ -565,7 +609,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
565
609
|
* overridden via options.
|
|
566
610
|
*/
|
|
567
611
|
private fetchLatestSnapshotFromStorage;
|
|
568
|
-
getPendingLocalState(props?: IGetPendingLocalStateProps):
|
|
612
|
+
getPendingLocalState(props?: IGetPendingLocalStateProps): unknown;
|
|
569
613
|
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
570
614
|
enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;
|
|
571
615
|
/**
|
|
@@ -578,6 +622,8 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
578
622
|
|
|
579
623
|
/* Excluded from this release type: ContainerRuntimeMessage */
|
|
580
624
|
|
|
625
|
+
/* Excluded from this release type: DataStoreContexts */
|
|
626
|
+
|
|
581
627
|
/**
|
|
582
628
|
* @alpha
|
|
583
629
|
*/
|
|
@@ -612,6 +658,8 @@ export declare type EnqueueSummarizeResult = (ISummarizeResults & {
|
|
|
612
658
|
readonly overridden?: undefined;
|
|
613
659
|
};
|
|
614
660
|
|
|
661
|
+
/* Excluded from this release type: FluidDataStoreContext */
|
|
662
|
+
|
|
615
663
|
/* Excluded from this release type: FluidDataStoreRegistry */
|
|
616
664
|
|
|
617
665
|
/**
|
|
@@ -656,8 +704,6 @@ export declare type GCNodeType = (typeof GCNodeType)[keyof typeof GCNodeType];
|
|
|
656
704
|
*/
|
|
657
705
|
export declare type GCVersion = number;
|
|
658
706
|
|
|
659
|
-
/* Excluded from this release type: generateStableId */
|
|
660
|
-
|
|
661
707
|
/**
|
|
662
708
|
* A single summary which has already been acked by the server.
|
|
663
709
|
* @alpha
|
|
@@ -782,7 +828,7 @@ export declare interface IContainerRuntimeMetadata extends ICreateContainerMetad
|
|
|
782
828
|
/** GUID to identify a document in telemetry */
|
|
783
829
|
readonly telemetryDocumentId?: string;
|
|
784
830
|
/** True if the runtime IdCompressor is enabled */
|
|
785
|
-
readonly
|
|
831
|
+
readonly idCompressorMode?: IdCompressorMode;
|
|
786
832
|
}
|
|
787
833
|
|
|
788
834
|
/**
|
|
@@ -841,7 +887,7 @@ export declare interface IContainerRuntimeOptions {
|
|
|
841
887
|
* Enable the IdCompressor in the runtime.
|
|
842
888
|
* @experimental Not ready for use.
|
|
843
889
|
*/
|
|
844
|
-
readonly enableRuntimeIdCompressor?:
|
|
890
|
+
readonly enableRuntimeIdCompressor?: IdCompressorMode;
|
|
845
891
|
/**
|
|
846
892
|
* If enabled, the runtime will block all attempts to send an op inside the
|
|
847
893
|
* {@link ContainerRuntime#ensureNoDataModelChanges} callback. The callback is used by
|
|
@@ -875,6 +921,20 @@ export declare interface ICreateContainerMetadata {
|
|
|
875
921
|
createContainerTimestamp?: number;
|
|
876
922
|
}
|
|
877
923
|
|
|
924
|
+
/**
|
|
925
|
+
* ID Compressor mode.
|
|
926
|
+
* "on" - compressor is On. It's loaded as part of container load. This mode is sticky - once on, compressor is On for all
|
|
927
|
+
* sessions for a given document. This results in IContainerRuntime.idCompressor to be always available.
|
|
928
|
+
* "delayed" - ID compressor bundle is loaded only on establishing of first delta connection, i.e. it does not impact boot of cotnainer.
|
|
929
|
+
* In such mode IContainerRuntime.idCompressor is not made available (unless previous sessions of same document had it "On").
|
|
930
|
+
* The only thing that is available is IContainerRuntime.generateDocumentUniqueId() that provides opportunistically short IDs.
|
|
931
|
+
* "off" - ID compressor is not laoded (unless it is "on" due to previous session for same document having it "on").
|
|
932
|
+
* While IContainerRuntime.generateDocumentUniqueId() is available, it will produce long IDs that are do not compress well.
|
|
933
|
+
*
|
|
934
|
+
* @alpha
|
|
935
|
+
*/
|
|
936
|
+
export declare type IdCompressorMode = "on" | "delayed" | "off";
|
|
937
|
+
|
|
878
938
|
/**
|
|
879
939
|
* Options to use when enqueueing a summarize attempt.
|
|
880
940
|
* @alpha
|
|
@@ -891,6 +951,12 @@ export declare interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOpti
|
|
|
891
951
|
readonly override?: boolean;
|
|
892
952
|
}
|
|
893
953
|
|
|
954
|
+
/* Excluded from this release type: IFluidDataStoreContextEvents */
|
|
955
|
+
|
|
956
|
+
/* Excluded from this release type: IFluidDataStoreContextInternal */
|
|
957
|
+
|
|
958
|
+
/* Excluded from this release type: IFluidDataStoreContextProps */
|
|
959
|
+
|
|
894
960
|
/**
|
|
895
961
|
* GC-specific metadata to be written into the summary.
|
|
896
962
|
*
|
|
@@ -1034,6 +1100,10 @@ export declare interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeR
|
|
|
1034
1100
|
readonly forcedFullTree: boolean;
|
|
1035
1101
|
}
|
|
1036
1102
|
|
|
1103
|
+
/* Excluded from this release type: ILocalDetachedFluidDataStoreContextProps */
|
|
1104
|
+
|
|
1105
|
+
/* Excluded from this release type: ILocalFluidDataStoreContextProps */
|
|
1106
|
+
|
|
1037
1107
|
/**
|
|
1038
1108
|
* The statistics of the system state after a garbage collection mark phase run.
|
|
1039
1109
|
* @alpha
|
|
@@ -1126,9 +1196,9 @@ export declare interface ISerializedElection {
|
|
|
1126
1196
|
readonly electedParentId: string | undefined;
|
|
1127
1197
|
}
|
|
1128
1198
|
|
|
1129
|
-
/* Excluded from this release type:
|
|
1199
|
+
/* Excluded from this release type: ISnapshotDetails */
|
|
1130
1200
|
|
|
1131
|
-
/* Excluded from this release type:
|
|
1201
|
+
/* Excluded from this release type: isRuntimeMessage */
|
|
1132
1202
|
|
|
1133
1203
|
/**
|
|
1134
1204
|
* Results of submitSummary after submitting the summarize op.
|
|
@@ -1152,6 +1222,8 @@ export declare interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
|
1152
1222
|
readonly cancellationToken: ISummaryCancellationToken;
|
|
1153
1223
|
/** Summarization may be attempted multiple times. This tells whether this is the final summarization attempt. */
|
|
1154
1224
|
readonly finalAttempt?: boolean;
|
|
1225
|
+
/** The sequence number of the latest summary used to validate if summary state is correct before summarizing */
|
|
1226
|
+
readonly latestSummaryRefSeqNum: number;
|
|
1155
1227
|
}
|
|
1156
1228
|
|
|
1157
1229
|
/**
|
|
@@ -1190,7 +1262,7 @@ export declare interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
|
1190
1262
|
readonly ISummarizer?: ISummarizer;
|
|
1191
1263
|
stop(reason: SummarizerStopReason): void;
|
|
1192
1264
|
close(): void;
|
|
1193
|
-
run(onBehalfOf: string
|
|
1265
|
+
run(onBehalfOf: string): Promise<SummarizerStopReason>;
|
|
1194
1266
|
/**
|
|
1195
1267
|
* Attempts to generate a summary on demand. If already running, takes no action.
|
|
1196
1268
|
* @param options - options controlling the summarize attempt
|
|
@@ -1467,6 +1539,12 @@ export declare interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeR
|
|
|
1467
1539
|
readonly uploadDuration: number;
|
|
1468
1540
|
}
|
|
1469
1541
|
|
|
1542
|
+
/* Excluded from this release type: LocalFluidDataStoreContext */
|
|
1543
|
+
|
|
1544
|
+
/* Excluded from this release type: LocalFluidDataStoreContextBase */
|
|
1545
|
+
|
|
1546
|
+
/* Excluded from this release type: MonitoringContext */
|
|
1547
|
+
|
|
1470
1548
|
/* Excluded from this release type: neverCancelledSummaryToken */
|
|
1471
1549
|
|
|
1472
1550
|
/**
|
|
@@ -1481,6 +1559,8 @@ export declare type OpActionEventName = MessageType.Summarize | MessageType.Summ
|
|
|
1481
1559
|
|
|
1482
1560
|
/* Excluded from this release type: RecentlyAddedContainerRuntimeMessageDetails */
|
|
1483
1561
|
|
|
1562
|
+
/* Excluded from this release type: RuntimeHeaderData */
|
|
1563
|
+
|
|
1484
1564
|
/* Excluded from this release type: RuntimeHeaders */
|
|
1485
1565
|
|
|
1486
1566
|
/* Excluded from this release type: RuntimeMessage */
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AliasResult } from '@fluidframework/runtime-definitions';
|
|
2
2
|
import { AttachState } from '@fluidframework/container-definitions';
|
|
3
3
|
import { ContainerWarning } from '@fluidframework/container-definitions';
|
|
4
|
+
import { CreateChildSummarizerNodeFn } from '@fluidframework/runtime-definitions';
|
|
5
|
+
import { CreateChildSummarizerNodeParam } from '@fluidframework/runtime-definitions';
|
|
4
6
|
import { FluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
|
|
5
7
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
6
8
|
import { FlushMode } from '@fluidframework/runtime-definitions';
|
|
7
|
-
import { generateStableId } from '@fluidframework/id-compressor';
|
|
8
9
|
import { IAudience } from '@fluidframework/container-definitions';
|
|
9
10
|
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
10
11
|
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
12
|
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
13
|
+
import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
|
|
12
14
|
import { IContainerRuntimeEvents } from '@fluidframework/container-runtime-definitions';
|
|
13
15
|
import { ICriticalContainerError } from '@fluidframework/container-definitions';
|
|
14
16
|
import { IDataStore } from '@fluidframework/runtime-definitions';
|
|
@@ -19,15 +21,20 @@ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
|
19
21
|
import { IEnvelope } from '@fluidframework/runtime-definitions';
|
|
20
22
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
21
23
|
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
24
|
+
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
25
|
+
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
22
26
|
import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
|
|
27
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
23
28
|
import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
24
29
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
25
30
|
import { IFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
31
|
+
import { IFluidParentContext } from '@fluidframework/runtime-definitions';
|
|
26
32
|
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
|
|
33
|
+
import { IGarbageCollectionDetailsBase } from '@fluidframework/runtime-definitions';
|
|
27
34
|
import { IGetPendingLocalStateProps } from '@fluidframework/container-definitions';
|
|
28
35
|
import type { IIdCompressor } from '@fluidframework/id-compressor';
|
|
29
36
|
import type { IIdCompressorCore } from '@fluidframework/id-compressor';
|
|
30
|
-
import {
|
|
37
|
+
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
31
38
|
import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
32
39
|
import { IQuorumClients } from '@fluidframework/protocol-definitions';
|
|
33
40
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
@@ -35,26 +42,35 @@ import { IResponse } from '@fluidframework/core-interfaces';
|
|
|
35
42
|
import { IRuntime } from '@fluidframework/container-definitions';
|
|
36
43
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
37
44
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
38
|
-
import {
|
|
45
|
+
import { ISnapshotTree } from '@fluidframework/protocol-definitions';
|
|
46
|
+
import { ISummarizeResult } from '@fluidframework/runtime-definitions';
|
|
47
|
+
import { ISummarizerNodeWithGC } from '@fluidframework/runtime-definitions';
|
|
39
48
|
import { ISummaryAck } from '@fluidframework/protocol-definitions';
|
|
40
49
|
import { ISummaryContent } from '@fluidframework/protocol-definitions';
|
|
41
50
|
import { ISummaryNack } from '@fluidframework/protocol-definitions';
|
|
42
51
|
import { ISummaryStats } from '@fluidframework/runtime-definitions';
|
|
43
52
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
44
53
|
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
|
|
54
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
45
55
|
import { ITelemetryContext } from '@fluidframework/runtime-definitions';
|
|
46
56
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
47
57
|
import { MessageType } from '@fluidframework/protocol-definitions';
|
|
58
|
+
import { MonitoringContext } from '@fluidframework/telemetry-utils';
|
|
48
59
|
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
60
|
+
import { SummarizeInternalFn } from '@fluidframework/runtime-definitions';
|
|
49
61
|
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
50
62
|
|
|
51
63
|
/* Excluded from this release type: agentSchedulerId */
|
|
52
64
|
|
|
65
|
+
/* Excluded from this release type: AliasResult */
|
|
66
|
+
|
|
53
67
|
/* Excluded from this release type: AllowInactiveRequestHeaderKey */
|
|
54
68
|
|
|
55
69
|
/* Excluded from this release type: AllowTombstoneRequestHeaderKey */
|
|
56
70
|
|
|
57
|
-
/* Excluded from this release type:
|
|
71
|
+
/* Excluded from this release type: ChannelCollection */
|
|
72
|
+
|
|
73
|
+
/* Excluded from this release type: ChannelCollectionFactory */
|
|
58
74
|
|
|
59
75
|
/* Excluded from this release type: CompatModeBehavior */
|
|
60
76
|
|
|
@@ -68,12 +84,20 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
68
84
|
|
|
69
85
|
/* Excluded from this release type: ContainerWarning */
|
|
70
86
|
|
|
87
|
+
/* Excluded from this release type: CreateChildSummarizerNodeFn */
|
|
88
|
+
|
|
89
|
+
/* Excluded from this release type: CreateChildSummarizerNodeParam */
|
|
90
|
+
|
|
91
|
+
/* Excluded from this release type: DataStoreContexts */
|
|
92
|
+
|
|
71
93
|
/* Excluded from this release type: DefaultSummaryConfiguration */
|
|
72
94
|
|
|
73
95
|
/* Excluded from this release type: detectOutboundReferences */
|
|
74
96
|
|
|
75
97
|
/* Excluded from this release type: EnqueueSummarizeResult */
|
|
76
98
|
|
|
99
|
+
/* Excluded from this release type: FluidDataStoreContext */
|
|
100
|
+
|
|
77
101
|
/* Excluded from this release type: FluidDataStoreRegistry */
|
|
78
102
|
|
|
79
103
|
/* Excluded from this release type: FluidDataStoreRegistryEntry */
|
|
@@ -86,8 +110,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
86
110
|
|
|
87
111
|
/* Excluded from this release type: GCVersion */
|
|
88
112
|
|
|
89
|
-
/* Excluded from this release type: generateStableId */
|
|
90
|
-
|
|
91
113
|
/* Excluded from this release type: IAckedSummary */
|
|
92
114
|
|
|
93
115
|
/* Excluded from this release type: IAckSummaryResult */
|
|
@@ -114,6 +136,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
114
136
|
|
|
115
137
|
/* Excluded from this release type: IContainerRuntime */
|
|
116
138
|
|
|
139
|
+
/* Excluded from this release type: IContainerRuntimeBase */
|
|
140
|
+
|
|
117
141
|
/* Excluded from this release type: IContainerRuntimeEvents */
|
|
118
142
|
|
|
119
143
|
/* Excluded from this release type: IContainerRuntimeMessageCompatDetails */
|
|
@@ -126,16 +150,34 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
126
150
|
|
|
127
151
|
/* Excluded from this release type: IDataStore */
|
|
128
152
|
|
|
153
|
+
/* Excluded from this release type: IdCompressorMode */
|
|
154
|
+
|
|
129
155
|
/* Excluded from this release type: IDocumentStorageService */
|
|
130
156
|
|
|
131
157
|
/* Excluded from this release type: IEnqueueSummarizeOptions */
|
|
132
158
|
|
|
133
159
|
/* Excluded from this release type: IEnvelope */
|
|
134
160
|
|
|
161
|
+
/* Excluded from this release type: IFluidDataStoreChannel */
|
|
162
|
+
|
|
163
|
+
/* Excluded from this release type: IFluidDataStoreContext */
|
|
164
|
+
|
|
135
165
|
/* Excluded from this release type: IFluidDataStoreContextDetached */
|
|
136
166
|
|
|
167
|
+
/* Excluded from this release type: IFluidDataStoreContextEvents */
|
|
168
|
+
|
|
169
|
+
/* Excluded from this release type: IFluidDataStoreContextInternal */
|
|
170
|
+
|
|
171
|
+
/* Excluded from this release type: IFluidDataStoreContextProps */
|
|
172
|
+
|
|
173
|
+
/* Excluded from this release type: IFluidDataStoreFactory */
|
|
174
|
+
|
|
137
175
|
/* Excluded from this release type: IFluidDataStoreRegistry */
|
|
138
176
|
|
|
177
|
+
/* Excluded from this release type: IFluidParentContext */
|
|
178
|
+
|
|
179
|
+
/* Excluded from this release type: IGarbageCollectionDetailsBase */
|
|
180
|
+
|
|
139
181
|
/* Excluded from this release type: IGCMetadata */
|
|
140
182
|
|
|
141
183
|
/* Excluded from this release type: IGCRuntimeOptions */
|
|
@@ -150,6 +192,10 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
150
192
|
|
|
151
193
|
/* Excluded from this release type: IIdCompressorCore */
|
|
152
194
|
|
|
195
|
+
/* Excluded from this release type: ILocalDetachedFluidDataStoreContextProps */
|
|
196
|
+
|
|
197
|
+
/* Excluded from this release type: ILocalFluidDataStoreContextProps */
|
|
198
|
+
|
|
153
199
|
/* Excluded from this release type: IMarkPhaseStats */
|
|
154
200
|
|
|
155
201
|
/* Excluded from this release type: INackSummaryResult */
|
|
@@ -166,9 +212,9 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
166
212
|
|
|
167
213
|
/* Excluded from this release type: ISerializedElection */
|
|
168
214
|
|
|
169
|
-
/* Excluded from this release type:
|
|
215
|
+
/* Excluded from this release type: ISnapshotDetails */
|
|
170
216
|
|
|
171
|
-
/* Excluded from this release type:
|
|
217
|
+
/* Excluded from this release type: isRuntimeMessage */
|
|
172
218
|
|
|
173
219
|
/* Excluded from this release type: ISubmitSummaryOpResult */
|
|
174
220
|
|
|
@@ -180,6 +226,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
180
226
|
|
|
181
227
|
/* Excluded from this release type: ISummarizer */
|
|
182
228
|
|
|
229
|
+
/* Excluded from this release type: ISummarizeResult */
|
|
230
|
+
|
|
183
231
|
/* Excluded from this release type: ISummarizeResults */
|
|
184
232
|
|
|
185
233
|
/* Excluded from this release type: ISummarizerEvents */
|
|
@@ -220,6 +268,12 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
220
268
|
|
|
221
269
|
/* Excluded from this release type: IUploadSummaryResult */
|
|
222
270
|
|
|
271
|
+
/* Excluded from this release type: LocalFluidDataStoreContext */
|
|
272
|
+
|
|
273
|
+
/* Excluded from this release type: LocalFluidDataStoreContextBase */
|
|
274
|
+
|
|
275
|
+
/* Excluded from this release type: MonitoringContext */
|
|
276
|
+
|
|
223
277
|
/* Excluded from this release type: NamedFluidDataStoreRegistryEntries */
|
|
224
278
|
|
|
225
279
|
/* Excluded from this release type: neverCancelledSummaryToken */
|
|
@@ -230,6 +284,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
230
284
|
|
|
231
285
|
/* Excluded from this release type: RecentlyAddedContainerRuntimeMessageDetails */
|
|
232
286
|
|
|
287
|
+
/* Excluded from this release type: RuntimeHeaderData */
|
|
288
|
+
|
|
233
289
|
/* Excluded from this release type: RuntimeHeaders */
|
|
234
290
|
|
|
235
291
|
/* Excluded from this release type: RuntimeMessage */
|
|
@@ -238,6 +294,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
238
294
|
|
|
239
295
|
/* Excluded from this release type: SubmitSummaryResult */
|
|
240
296
|
|
|
297
|
+
/* Excluded from this release type: SummarizeInternalFn */
|
|
298
|
+
|
|
241
299
|
/* Excluded from this release type: Summarizer */
|
|
242
300
|
|
|
243
301
|
/* Excluded from this release type: SummarizeResultPart */
|