@fluidframework/container-runtime 2.0.0-dev-rc.2.0.0.246488 → 2.0.0-dev-rc.3.0.0.253463
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-report/container-runtime.api.md +109 -55
- package/dist/batchTracker.d.ts +1 -1
- package/dist/batchTracker.d.ts.map +1 -1
- package/dist/batchTracker.js +4 -4
- package/dist/batchTracker.js.map +1 -1
- package/dist/blobManager.d.ts +33 -25
- package/dist/blobManager.d.ts.map +1 -1
- package/dist/blobManager.js +82 -100
- package/dist/blobManager.js.map +1 -1
- package/dist/channelCollection.d.ts +7 -6
- package/dist/channelCollection.d.ts.map +1 -1
- package/dist/channelCollection.js +110 -77
- package/dist/channelCollection.js.map +1 -1
- package/dist/connectionTelemetry.d.ts +3 -3
- package/dist/connectionTelemetry.d.ts.map +1 -1
- package/dist/connectionTelemetry.js +17 -17
- package/dist/connectionTelemetry.js.map +1 -1
- package/dist/container-runtime-alpha.d.ts +263 -41
- package/dist/container-runtime-beta.d.ts +44 -30
- package/dist/container-runtime-public.d.ts +44 -30
- package/dist/container-runtime-untrimmed.d.ts +265 -56
- package/dist/containerHandleContext.d.ts.map +1 -1
- package/dist/containerHandleContext.js +2 -2
- package/dist/containerHandleContext.js.map +1 -1
- package/dist/containerRuntime.d.ts +40 -30
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +376 -255
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStore.d.ts +1 -1
- package/dist/dataStore.d.ts.map +1 -1
- package/dist/dataStore.js +7 -7
- package/dist/dataStore.js.map +1 -1
- package/dist/dataStoreContext.d.ts +9 -9
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +74 -74
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStoreContexts.d.ts.map +1 -1
- package/dist/dataStoreContexts.js +11 -11
- package/dist/dataStoreContexts.js.map +1 -1
- package/dist/dataStoreRegistry.d.ts +1 -1
- 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 +1 -1
- package/dist/deltaManagerSummarizerProxy.d.ts.map +1 -1
- package/dist/deltaManagerSummarizerProxy.js.map +1 -1
- package/dist/deltaScheduler.d.ts +1 -1
- package/dist/deltaScheduler.d.ts.map +1 -1
- package/dist/deltaScheduler.js +6 -6
- package/dist/deltaScheduler.js.map +1 -1
- package/dist/error.d.ts +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +4 -4
- package/dist/error.js.map +1 -1
- package/dist/gc/garbageCollection.d.ts +3 -2
- package/dist/gc/garbageCollection.d.ts.map +1 -1
- package/dist/gc/garbageCollection.js +21 -21
- 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 +4 -5
- package/dist/gc/gcConfigs.js.map +1 -1
- package/dist/gc/gcDefinitions.d.ts +4 -3
- package/dist/gc/gcDefinitions.d.ts.map +1 -1
- package/dist/gc/gcDefinitions.js.map +1 -1
- package/dist/gc/gcHelpers.d.ts +5 -1
- package/dist/gc/gcHelpers.d.ts.map +1 -1
- package/dist/gc/gcHelpers.js +21 -12
- package/dist/gc/gcHelpers.js.map +1 -1
- package/dist/gc/gcSummaryStateTracker.d.ts +2 -2
- package/dist/gc/gcSummaryStateTracker.d.ts.map +1 -1
- package/dist/gc/gcSummaryStateTracker.js +11 -11
- package/dist/gc/gcSummaryStateTracker.js.map +1 -1
- package/dist/gc/gcTelemetry.d.ts +2 -1
- package/dist/gc/gcTelemetry.d.ts.map +1 -1
- package/dist/gc/gcTelemetry.js +11 -9
- package/dist/gc/gcTelemetry.js.map +1 -1
- package/dist/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
- package/dist/gc/gcUnreferencedStateTracker.js +6 -6
- package/dist/gc/gcUnreferencedStateTracker.js.map +1 -1
- package/dist/gc/index.d.ts +1 -1
- package/dist/gc/index.d.ts.map +1 -1
- package/dist/gc/index.js +2 -1
- package/dist/gc/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/messageTypes.d.ts +11 -5
- package/dist/messageTypes.d.ts.map +1 -1
- package/dist/messageTypes.js +4 -0
- package/dist/messageTypes.js.map +1 -1
- package/dist/opLifecycle/batchManager.d.ts.map +1 -1
- package/dist/opLifecycle/batchManager.js.map +1 -1
- package/dist/opLifecycle/definitions.d.ts +2 -20
- package/dist/opLifecycle/definitions.d.ts.map +1 -1
- package/dist/opLifecycle/definitions.js.map +1 -1
- package/dist/opLifecycle/index.d.ts +3 -3
- package/dist/opLifecycle/index.d.ts.map +1 -1
- package/dist/opLifecycle/index.js +3 -1
- package/dist/opLifecycle/index.js.map +1 -1
- package/dist/opLifecycle/opCompressor.d.ts.map +1 -1
- package/dist/opLifecycle/opCompressor.js +5 -6
- package/dist/opLifecycle/opCompressor.js.map +1 -1
- package/dist/opLifecycle/opDecompressor.d.ts +15 -4
- package/dist/opLifecycle/opDecompressor.d.ts.map +1 -1
- package/dist/opLifecycle/opDecompressor.js +62 -63
- package/dist/opLifecycle/opDecompressor.js.map +1 -1
- package/dist/opLifecycle/opGroupingManager.d.ts +2 -1
- package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/dist/opLifecycle/opGroupingManager.js +14 -16
- package/dist/opLifecycle/opGroupingManager.js.map +1 -1
- package/dist/opLifecycle/opSplitter.d.ts +12 -4
- package/dist/opLifecycle/opSplitter.d.ts.map +1 -1
- package/dist/opLifecycle/opSplitter.js +63 -53
- package/dist/opLifecycle/opSplitter.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts +2 -1
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +19 -24
- package/dist/opLifecycle/outbox.js.map +1 -1
- package/dist/opLifecycle/remoteMessageProcessor.d.ts +8 -0
- package/dist/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
- package/dist/opLifecycle/remoteMessageProcessor.js +36 -35
- package/dist/opLifecycle/remoteMessageProcessor.js.map +1 -1
- 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 +1 -1
- package/dist/pendingStateManager.d.ts.map +1 -1
- package/dist/pendingStateManager.js +18 -18
- package/dist/pendingStateManager.js.map +1 -1
- package/dist/scheduleManager.d.ts +1 -1
- package/dist/scheduleManager.d.ts.map +1 -1
- package/dist/scheduleManager.js +24 -24
- package/dist/scheduleManager.js.map +1 -1
- package/dist/storageServiceWithAttachBlobs.d.ts +2 -2
- package/dist/storageServiceWithAttachBlobs.d.ts.map +1 -1
- package/dist/storageServiceWithAttachBlobs.js +2 -2
- package/dist/storageServiceWithAttachBlobs.js.map +1 -1
- package/dist/summary/documentSchema.d.ts +209 -0
- package/dist/summary/documentSchema.d.ts.map +1 -0
- package/dist/summary/documentSchema.js +382 -0
- package/dist/summary/documentSchema.js.map +1 -0
- package/dist/summary/index.d.ts +2 -1
- package/dist/summary/index.d.ts.map +1 -1
- package/dist/summary/index.js +4 -1
- package/dist/summary/index.js.map +1 -1
- package/dist/summary/orderedClientElection.d.ts +2 -2
- package/dist/summary/orderedClientElection.d.ts.map +1 -1
- package/dist/summary/orderedClientElection.js +8 -7
- 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 +3 -3
- package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
- package/dist/summary/runningSummarizer.d.ts +3 -3
- package/dist/summary/runningSummarizer.d.ts.map +1 -1
- package/dist/summary/runningSummarizer.js +16 -16
- package/dist/summary/runningSummarizer.js.map +1 -1
- package/dist/summary/summarizer.d.ts +3 -2
- package/dist/summary/summarizer.d.ts.map +1 -1
- package/dist/summary/summarizer.js +13 -13
- 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 +1 -1
- package/dist/summary/summarizerHeuristics.d.ts.map +1 -1
- package/dist/summary/summarizerHeuristics.js +2 -2
- package/dist/summary/summarizerHeuristics.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNode.d.ts +3 -2
- package/dist/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNode.js +28 -28
- package/dist/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +2 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.js +3 -3
- package/dist/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js +14 -14
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/dist/summary/summarizerTypes.d.ts +5 -3
- package/dist/summary/summarizerTypes.d.ts.map +1 -1
- package/dist/summary/summarizerTypes.js.map +1 -1
- package/dist/summary/summaryCollection.d.ts +2 -2
- package/dist/summary/summaryCollection.d.ts.map +1 -1
- package/dist/summary/summaryCollection.js +7 -7
- package/dist/summary/summaryCollection.js.map +1 -1
- package/dist/summary/summaryFormat.d.ts +6 -17
- package/dist/summary/summaryFormat.d.ts.map +1 -1
- package/dist/summary/summaryFormat.js +8 -8
- package/dist/summary/summaryFormat.js.map +1 -1
- package/dist/summary/summaryGenerator.d.ts +4 -3
- package/dist/summary/summaryGenerator.d.ts.map +1 -1
- package/dist/summary/summaryGenerator.js +17 -17
- package/dist/summary/summaryGenerator.js.map +1 -1
- package/dist/summary/summaryManager.d.ts +1 -1
- package/dist/summary/summaryManager.d.ts.map +1 -1
- package/dist/summary/summaryManager.js +15 -14
- package/dist/summary/summaryManager.js.map +1 -1
- package/lib/batchTracker.d.ts +1 -1
- package/lib/batchTracker.d.ts.map +1 -1
- package/lib/batchTracker.js +2 -2
- package/lib/batchTracker.js.map +1 -1
- package/lib/blobManager.d.ts +33 -25
- package/lib/blobManager.d.ts.map +1 -1
- package/lib/blobManager.js +48 -66
- package/lib/blobManager.js.map +1 -1
- package/lib/channelCollection.d.ts +7 -6
- package/lib/channelCollection.d.ts.map +1 -1
- package/lib/channelCollection.js +47 -14
- package/lib/channelCollection.js.map +1 -1
- package/lib/connectionTelemetry.d.ts +3 -3
- package/lib/connectionTelemetry.d.ts.map +1 -1
- package/lib/connectionTelemetry.js +3 -3
- package/lib/connectionTelemetry.js.map +1 -1
- package/lib/container-runtime-alpha.d.ts +263 -41
- package/lib/container-runtime-beta.d.ts +44 -30
- package/lib/container-runtime-public.d.ts +44 -30
- package/lib/container-runtime-untrimmed.d.ts +265 -56
- package/lib/containerHandleContext.d.ts.map +1 -1
- package/lib/containerHandleContext.js +1 -1
- package/lib/containerHandleContext.js.map +1 -1
- package/lib/containerRuntime.d.ts +40 -30
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +224 -101
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStore.d.ts +1 -1
- package/lib/dataStore.d.ts.map +1 -1
- package/lib/dataStore.js +2 -2
- package/lib/dataStore.js.map +1 -1
- package/lib/dataStoreContext.d.ts +9 -9
- package/lib/dataStoreContext.d.ts.map +1 -1
- package/lib/dataStoreContext.js +8 -8
- package/lib/dataStoreContext.js.map +1 -1
- package/lib/dataStoreContexts.d.ts.map +1 -1
- package/lib/dataStoreContexts.js +2 -2
- package/lib/dataStoreContexts.js.map +1 -1
- package/lib/dataStoreRegistry.d.ts +1 -1
- package/lib/dataStoreRegistry.d.ts.map +1 -1
- package/lib/dataStoreRegistry.js +1 -1
- package/lib/dataStoreRegistry.js.map +1 -1
- package/lib/deltaManagerSummarizerProxy.d.ts +1 -1
- package/lib/deltaManagerSummarizerProxy.d.ts.map +1 -1
- package/lib/deltaManagerSummarizerProxy.js.map +1 -1
- package/lib/deltaScheduler.d.ts +1 -1
- package/lib/deltaScheduler.d.ts.map +1 -1
- package/lib/deltaScheduler.js +1 -1
- package/lib/deltaScheduler.js.map +1 -1
- package/lib/error.d.ts +1 -1
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +2 -2
- package/lib/error.js.map +1 -1
- package/lib/gc/garbageCollection.d.ts +3 -2
- package/lib/gc/garbageCollection.d.ts.map +1 -1
- package/lib/gc/garbageCollection.js +6 -6
- package/lib/gc/garbageCollection.js.map +1 -1
- package/lib/gc/gcConfigs.d.ts +2 -2
- package/lib/gc/gcConfigs.d.ts.map +1 -1
- package/lib/gc/gcConfigs.js +4 -5
- package/lib/gc/gcConfigs.js.map +1 -1
- package/lib/gc/gcDefinitions.d.ts +4 -3
- package/lib/gc/gcDefinitions.d.ts.map +1 -1
- package/lib/gc/gcDefinitions.js.map +1 -1
- package/lib/gc/gcHelpers.d.ts +5 -1
- package/lib/gc/gcHelpers.d.ts.map +1 -1
- package/lib/gc/gcHelpers.js +10 -2
- package/lib/gc/gcHelpers.js.map +1 -1
- package/lib/gc/gcSummaryStateTracker.d.ts +2 -2
- package/lib/gc/gcSummaryStateTracker.d.ts.map +1 -1
- package/lib/gc/gcSummaryStateTracker.js +2 -2
- package/lib/gc/gcSummaryStateTracker.js.map +1 -1
- package/lib/gc/gcTelemetry.d.ts +2 -1
- package/lib/gc/gcTelemetry.d.ts.map +1 -1
- package/lib/gc/gcTelemetry.js +4 -2
- package/lib/gc/gcTelemetry.js.map +1 -1
- package/lib/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
- package/lib/gc/gcUnreferencedStateTracker.js +2 -2
- package/lib/gc/gcUnreferencedStateTracker.js.map +1 -1
- package/lib/gc/index.d.ts +1 -1
- package/lib/gc/index.d.ts.map +1 -1
- package/lib/gc/index.js +1 -1
- package/lib/gc/index.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/messageTypes.d.ts +11 -5
- package/lib/messageTypes.d.ts.map +1 -1
- package/lib/messageTypes.js +4 -0
- package/lib/messageTypes.js.map +1 -1
- package/lib/opLifecycle/batchManager.d.ts.map +1 -1
- package/lib/opLifecycle/batchManager.js.map +1 -1
- package/lib/opLifecycle/definitions.d.ts +2 -20
- package/lib/opLifecycle/definitions.d.ts.map +1 -1
- package/lib/opLifecycle/definitions.js.map +1 -1
- package/lib/opLifecycle/index.d.ts +3 -3
- package/lib/opLifecycle/index.d.ts.map +1 -1
- package/lib/opLifecycle/index.js +2 -2
- package/lib/opLifecycle/index.js.map +1 -1
- package/lib/opLifecycle/opCompressor.d.ts.map +1 -1
- package/lib/opLifecycle/opCompressor.js +2 -3
- package/lib/opLifecycle/opCompressor.js.map +1 -1
- package/lib/opLifecycle/opDecompressor.d.ts +15 -4
- package/lib/opLifecycle/opDecompressor.d.ts.map +1 -1
- package/lib/opLifecycle/opDecompressor.js +61 -62
- package/lib/opLifecycle/opDecompressor.js.map +1 -1
- package/lib/opLifecycle/opGroupingManager.d.ts +2 -1
- package/lib/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/lib/opLifecycle/opGroupingManager.js +9 -12
- package/lib/opLifecycle/opGroupingManager.js.map +1 -1
- package/lib/opLifecycle/opSplitter.d.ts +12 -4
- package/lib/opLifecycle/opSplitter.d.ts.map +1 -1
- package/lib/opLifecycle/opSplitter.js +47 -38
- package/lib/opLifecycle/opSplitter.js.map +1 -1
- package/lib/opLifecycle/outbox.d.ts +2 -1
- package/lib/opLifecycle/outbox.d.ts.map +1 -1
- package/lib/opLifecycle/outbox.js +8 -13
- package/lib/opLifecycle/outbox.js.map +1 -1
- package/lib/opLifecycle/remoteMessageProcessor.d.ts +8 -0
- package/lib/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
- package/lib/opLifecycle/remoteMessageProcessor.js +36 -35
- package/lib/opLifecycle/remoteMessageProcessor.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/pendingStateManager.d.ts +1 -1
- package/lib/pendingStateManager.d.ts.map +1 -1
- package/lib/pendingStateManager.js +2 -2
- package/lib/pendingStateManager.js.map +1 -1
- package/lib/scheduleManager.d.ts +1 -1
- package/lib/scheduleManager.d.ts.map +1 -1
- package/lib/scheduleManager.js +3 -3
- package/lib/scheduleManager.js.map +1 -1
- package/lib/storageServiceWithAttachBlobs.d.ts +2 -2
- package/lib/storageServiceWithAttachBlobs.d.ts.map +1 -1
- package/lib/storageServiceWithAttachBlobs.js +1 -1
- package/lib/storageServiceWithAttachBlobs.js.map +1 -1
- package/lib/summary/documentSchema.d.ts +209 -0
- package/lib/summary/documentSchema.d.ts.map +1 -0
- package/lib/summary/documentSchema.js +378 -0
- package/lib/summary/documentSchema.js.map +1 -0
- package/lib/summary/index.d.ts +2 -1
- package/lib/summary/index.d.ts.map +1 -1
- package/lib/summary/index.js +1 -0
- package/lib/summary/index.js.map +1 -1
- package/lib/summary/orderedClientElection.d.ts +2 -2
- package/lib/summary/orderedClientElection.d.ts.map +1 -1
- package/lib/summary/orderedClientElection.js +3 -2
- package/lib/summary/orderedClientElection.js.map +1 -1
- package/lib/summary/runWhileConnectedCoordinator.d.ts +1 -1
- package/lib/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
- package/lib/summary/runWhileConnectedCoordinator.js +1 -1
- package/lib/summary/runWhileConnectedCoordinator.js.map +1 -1
- package/lib/summary/runningSummarizer.d.ts +3 -3
- package/lib/summary/runningSummarizer.d.ts.map +1 -1
- package/lib/summary/runningSummarizer.js +3 -3
- package/lib/summary/runningSummarizer.js.map +1 -1
- package/lib/summary/summarizer.d.ts +3 -2
- package/lib/summary/summarizer.d.ts.map +1 -1
- package/lib/summary/summarizer.js +3 -3
- package/lib/summary/summarizer.js.map +1 -1
- package/lib/summary/summarizerClientElection.d.ts +2 -2
- package/lib/summary/summarizerClientElection.d.ts.map +1 -1
- package/lib/summary/summarizerClientElection.js.map +1 -1
- package/lib/summary/summarizerHeuristics.d.ts +1 -1
- package/lib/summary/summarizerHeuristics.d.ts.map +1 -1
- package/lib/summary/summarizerHeuristics.js +1 -1
- package/lib/summary/summarizerHeuristics.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNode.d.ts +3 -2
- package/lib/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNode.js +5 -5
- package/lib/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts +2 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.js +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js +3 -3
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/lib/summary/summarizerTypes.d.ts +5 -3
- package/lib/summary/summarizerTypes.d.ts.map +1 -1
- package/lib/summary/summarizerTypes.js.map +1 -1
- package/lib/summary/summaryCollection.d.ts +2 -2
- package/lib/summary/summaryCollection.d.ts.map +1 -1
- package/lib/summary/summaryCollection.js +1 -1
- package/lib/summary/summaryCollection.js.map +1 -1
- package/lib/summary/summaryFormat.d.ts +6 -17
- package/lib/summary/summaryFormat.d.ts.map +1 -1
- package/lib/summary/summaryFormat.js +3 -3
- package/lib/summary/summaryFormat.js.map +1 -1
- package/lib/summary/summaryGenerator.d.ts +4 -3
- package/lib/summary/summaryGenerator.d.ts.map +1 -1
- package/lib/summary/summaryGenerator.js +4 -4
- package/lib/summary/summaryGenerator.js.map +1 -1
- package/lib/summary/summaryManager.d.ts +1 -1
- package/lib/summary/summaryManager.d.ts.map +1 -1
- package/lib/summary/summaryManager.js +9 -8
- package/lib/summary/summaryManager.js.map +1 -1
- package/lib/tsdoc-metadata.json +11 -0
- package/package.json +34 -32
- package/src/batchTracker.ts +4 -3
- package/src/blobManager.ts +100 -69
- package/src/channelCollection.ts +86 -43
- package/src/connectionTelemetry.ts +12 -12
- package/src/containerHandleContext.ts +3 -2
- package/src/containerRuntime.ts +419 -232
- package/src/dataStore.ts +5 -3
- package/src/dataStoreContext.ts +32 -29
- package/src/dataStoreContexts.ts +4 -2
- package/src/dataStoreRegistry.ts +2 -2
- package/src/deltaManagerSummarizerProxy.ts +1 -1
- package/src/deltaScheduler.ts +2 -1
- package/src/error.ts +2 -2
- package/src/gc/garbageCollection.ts +19 -18
- package/src/gc/gcConfigs.ts +15 -18
- package/src/gc/gcDefinitions.ts +6 -6
- package/src/gc/gcHelpers.ts +22 -5
- package/src/gc/gcSummaryStateTracker.ts +7 -5
- package/src/gc/gcTelemetry.ts +13 -7
- package/src/gc/gcUnreferencedStateTracker.ts +3 -2
- package/src/gc/index.ts +1 -0
- package/src/index.ts +8 -1
- package/src/messageTypes.ts +20 -6
- package/src/opLifecycle/README.md +89 -0
- package/src/opLifecycle/batchManager.ts +1 -0
- package/src/opLifecycle/definitions.ts +3 -21
- package/src/opLifecycle/index.ts +3 -9
- package/src/opLifecycle/opCompressor.ts +6 -5
- package/src/opLifecycle/opDecompressor.ts +84 -100
- package/src/opLifecycle/opGroupingManager.ts +12 -14
- package/src/opLifecycle/opSplitter.ts +76 -48
- package/src/opLifecycle/outbox.ts +17 -32
- package/src/opLifecycle/remoteMessageProcessor.ts +43 -59
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +6 -6
- package/src/scheduleManager.ts +9 -8
- package/src/storageServiceWithAttachBlobs.ts +2 -2
- package/src/summary/documentSchema.ts +612 -0
- package/src/summary/index.ts +10 -1
- package/src/summary/orderedClientElection.ts +6 -7
- package/src/summary/runWhileConnectedCoordinator.ts +3 -2
- package/src/summary/runningSummarizer.ts +22 -20
- package/src/summary/summarizer.ts +17 -15
- package/src/summary/summarizerClientElection.ts +3 -2
- package/src/summary/summarizerHeuristics.ts +4 -2
- package/src/summary/summarizerNode/summarizerNode.ts +20 -18
- package/src/summary/summarizerNode/summarizerNodeUtils.ts +3 -2
- package/src/summary/summarizerNode/summarizerNodeWithGc.ts +16 -8
- package/src/summary/summarizerTypes.ts +7 -3
- package/src/summary/summaryCollection.ts +3 -3
- package/src/summary/summaryFormat.ts +14 -26
- package/src/summary/summaryGenerator.ts +12 -15
- package/src/summary/summaryManager.ts +16 -13
- package/lib/test/batchTracker.spec.js +0 -88
- package/lib/test/batchTracker.spec.js.map +0 -1
- package/lib/test/blobManager.spec.js +0 -835
- package/lib/test/blobManager.spec.js.map +0 -1
- package/lib/test/channelCollection.spec.js +0 -138
- package/lib/test/channelCollection.spec.js.map +0 -1
- package/lib/test/containerRuntime.spec.js +0 -1748
- package/lib/test/containerRuntime.spec.js.map +0 -1
- package/lib/test/dataStoreContext.spec.js +0 -771
- package/lib/test/dataStoreContext.spec.js.map +0 -1
- package/lib/test/dataStoreCreation.spec.js +0 -303
- package/lib/test/dataStoreCreation.spec.js.map +0 -1
- package/lib/test/dataStoreRegistry.spec.js +0 -26
- package/lib/test/dataStoreRegistry.spec.js.map +0 -1
- package/lib/test/fuzz/fuzzUtils.js +0 -66
- package/lib/test/fuzz/fuzzUtils.js.map +0 -1
- package/lib/test/fuzz/summarizer.fuzz.spec.js +0 -31
- package/lib/test/fuzz/summarizer.fuzz.spec.js.map +0 -1
- package/lib/test/fuzz/summarizerFuzzMocks.js +0 -162
- package/lib/test/fuzz/summarizerFuzzMocks.js.map +0 -1
- package/lib/test/fuzz/summarizerFuzzSuite.js +0 -106
- package/lib/test/fuzz/summarizerFuzzSuite.js.map +0 -1
- package/lib/test/gc/garbageCollection.spec.js +0 -1464
- package/lib/test/gc/garbageCollection.spec.js.map +0 -1
- package/lib/test/gc/gcConfigs.spec.js +0 -689
- package/lib/test/gc/gcConfigs.spec.js.map +0 -1
- package/lib/test/gc/gcHelpers.spec.js +0 -110
- package/lib/test/gc/gcHelpers.spec.js.map +0 -1
- package/lib/test/gc/gcReferenceGraphAlgorithm.spec.js +0 -68
- package/lib/test/gc/gcReferenceGraphAlgorithm.spec.js.map +0 -1
- package/lib/test/gc/gcStats.spec.js +0 -390
- package/lib/test/gc/gcStats.spec.js.map +0 -1
- package/lib/test/gc/gcSummaryStateTracker.spec.js +0 -228
- package/lib/test/gc/gcSummaryStateTracker.spec.js.map +0 -1
- package/lib/test/gc/gcTelemetry.spec.js +0 -530
- package/lib/test/gc/gcTelemetry.spec.js.map +0 -1
- package/lib/test/gc/gcUnitTestHelpers.js +0 -29
- package/lib/test/gc/gcUnitTestHelpers.js.map +0 -1
- package/lib/test/gc/gcUnreferencedStateTracker.spec.js +0 -192
- package/lib/test/gc/gcUnreferencedStateTracker.spec.js.map +0 -1
- package/lib/test/getPendingBlobs.spec.js +0 -193
- package/lib/test/getPendingBlobs.spec.js.map +0 -1
- package/lib/test/hardwareStats.spec.js +0 -93
- package/lib/test/hardwareStats.spec.js.map +0 -1
- package/lib/test/index.js +0 -6
- package/lib/test/index.js.map +0 -1
- package/lib/test/opLifecycle/OpGroupingManager.spec.js +0 -225
- package/lib/test/opLifecycle/OpGroupingManager.spec.js.map +0 -1
- package/lib/test/opLifecycle/batchManager.spec.js +0 -189
- package/lib/test/opLifecycle/batchManager.spec.js.map +0 -1
- package/lib/test/opLifecycle/opCompressor.spec.js +0 -74
- package/lib/test/opLifecycle/opCompressor.spec.js.map +0 -1
- package/lib/test/opLifecycle/opDecompressor.spec.js +0 -218
- package/lib/test/opLifecycle/opDecompressor.spec.js.map +0 -1
- package/lib/test/opLifecycle/opSplitter.spec.js +0 -272
- package/lib/test/opLifecycle/opSplitter.spec.js.map +0 -1
- package/lib/test/opLifecycle/outbox.spec.js +0 -675
- package/lib/test/opLifecycle/outbox.spec.js.map +0 -1
- package/lib/test/opLifecycle/remoteMessageProcessor.spec.js +0 -196
- package/lib/test/opLifecycle/remoteMessageProcessor.spec.js.map +0 -1
- package/lib/test/pendingStateManager.spec.js +0 -329
- package/lib/test/pendingStateManager.spec.js.map +0 -1
- package/lib/test/scheduleManager.spec.js +0 -270
- package/lib/test/scheduleManager.spec.js.map +0 -1
- package/lib/test/summarizerNode.spec.js +0 -326
- package/lib/test/summarizerNode.spec.js.map +0 -1
- package/lib/test/summarizerNodeWithGc.spec.js +0 -318
- package/lib/test/summarizerNodeWithGc.spec.js.map +0 -1
- package/lib/test/summary/orderedClientElection.spec.js +0 -535
- package/lib/test/summary/orderedClientElection.spec.js.map +0 -1
- package/lib/test/summary/runningSummarizer.spec.js +0 -1349
- package/lib/test/summary/runningSummarizer.spec.js.map +0 -1
- package/lib/test/summary/summarizer.spec.js +0 -29
- package/lib/test/summary/summarizer.spec.js.map +0 -1
- package/lib/test/summary/summarizerClientElection.spec.js +0 -436
- package/lib/test/summary/summarizerClientElection.spec.js.map +0 -1
- package/lib/test/summary/summarizerHeuristics.spec.js +0 -289
- package/lib/test/summary/summarizerHeuristics.spec.js.map +0 -1
- package/lib/test/summary/summaryCollection.spec.js +0 -200
- package/lib/test/summary/summaryCollection.spec.js.map +0 -1
- package/lib/test/summary/summaryManager.spec.js +0 -430
- package/lib/test/summary/summaryManager.spec.js.map +0 -1
- package/lib/test/summary/testQuorumClients.js +0 -34
- package/lib/test/summary/testQuorumClients.js.map +0 -1
- package/lib/test/throttler.spec.js +0 -175
- package/lib/test/throttler.spec.js.map +0 -1
- package/lib/test/types/validateContainerRuntimePrevious.generated.js +0 -180
- package/lib/test/types/validateContainerRuntimePrevious.generated.js.map +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { AliasResult } from '@fluidframework/runtime-definitions';
|
|
1
|
+
import { AliasResult } from '@fluidframework/runtime-definitions/internal';
|
|
2
2
|
import { AttachState } from '@fluidframework/container-definitions';
|
|
3
|
-
import { ContainerWarning } from '@fluidframework/container-definitions';
|
|
4
|
-
import { CreateChildSummarizerNodeFn } from '@fluidframework/runtime-definitions';
|
|
5
|
-
import { CreateChildSummarizerNodeParam } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { FluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
|
|
3
|
+
import { ContainerWarning } from '@fluidframework/container-definitions/internal';
|
|
4
|
+
import { CreateChildSummarizerNodeFn } from '@fluidframework/runtime-definitions/internal';
|
|
5
|
+
import { CreateChildSummarizerNodeParam } from '@fluidframework/runtime-definitions/internal';
|
|
6
|
+
import { FluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions/internal';
|
|
7
7
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
8
|
-
import { FlushMode } from '@fluidframework/runtime-definitions';
|
|
8
|
+
import { FlushMode } from '@fluidframework/runtime-definitions/internal';
|
|
9
9
|
import { IAudience } from '@fluidframework/container-definitions';
|
|
10
10
|
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
11
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
12
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
13
|
-
import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
|
|
14
|
-
import { IContainerRuntimeEvents } from '@fluidframework/container-runtime-definitions';
|
|
11
|
+
import { IContainerContext } from '@fluidframework/container-definitions/internal';
|
|
12
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
|
|
13
|
+
import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions/internal';
|
|
14
|
+
import { IContainerRuntimeEvents } from '@fluidframework/container-runtime-definitions/internal';
|
|
15
15
|
import { ICriticalContainerError } from '@fluidframework/container-definitions';
|
|
16
|
-
import { IDataStore } from '@fluidframework/runtime-definitions';
|
|
16
|
+
import { IDataStore } from '@fluidframework/runtime-definitions/internal';
|
|
17
17
|
import { IDeltaManager } from '@fluidframework/container-definitions';
|
|
18
18
|
import { IDisposable } from '@fluidframework/core-interfaces';
|
|
19
19
|
import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
20
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
21
|
-
import { IEnvelope } from '@fluidframework/runtime-definitions';
|
|
20
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
|
|
21
|
+
import { IEnvelope } from '@fluidframework/runtime-definitions/internal';
|
|
22
22
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
23
23
|
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
24
|
-
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
25
|
-
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
26
|
-
import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
|
|
27
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
28
|
-
import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
24
|
+
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
|
|
25
|
+
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
|
|
26
|
+
import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions/internal';
|
|
27
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
28
|
+
import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
29
29
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
30
30
|
import { IFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
31
|
-
import { IFluidParentContext } from '@fluidframework/runtime-definitions';
|
|
31
|
+
import { IFluidParentContext } from '@fluidframework/runtime-definitions/internal';
|
|
32
32
|
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
|
|
33
|
-
import { IGarbageCollectionDetailsBase } from '@fluidframework/runtime-definitions';
|
|
34
|
-
import { IGetPendingLocalStateProps } from '@fluidframework/container-definitions';
|
|
33
|
+
import { IGarbageCollectionDetailsBase } from '@fluidframework/runtime-definitions/internal';
|
|
34
|
+
import { IGetPendingLocalStateProps } from '@fluidframework/container-definitions/internal';
|
|
35
35
|
import type { IIdCompressor } from '@fluidframework/id-compressor';
|
|
36
|
-
import type { IIdCompressorCore } from '@fluidframework/id-compressor';
|
|
36
|
+
import type { IIdCompressorCore } from '@fluidframework/id-compressor/internal';
|
|
37
37
|
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
38
38
|
import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
39
39
|
import { IQuorumClients } from '@fluidframework/protocol-definitions';
|
|
40
40
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
41
41
|
import { IResponse } from '@fluidframework/core-interfaces';
|
|
42
|
-
import { IRuntime } from '@fluidframework/container-definitions';
|
|
42
|
+
import { IRuntime } from '@fluidframework/container-definitions/internal';
|
|
43
43
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
44
44
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
45
45
|
import { ISnapshotTree } from '@fluidframework/protocol-definitions';
|
|
46
|
-
import { ISummarizeResult } from '@fluidframework/runtime-definitions';
|
|
47
|
-
import { ISummarizerNodeWithGC } from '@fluidframework/runtime-definitions';
|
|
46
|
+
import { ISummarizeResult } from '@fluidframework/runtime-definitions/internal';
|
|
47
|
+
import { ISummarizerNodeWithGC } from '@fluidframework/runtime-definitions/internal';
|
|
48
48
|
import { ISummaryAck } from '@fluidframework/protocol-definitions';
|
|
49
49
|
import { ISummaryContent } from '@fluidframework/protocol-definitions';
|
|
50
50
|
import { ISummaryNack } from '@fluidframework/protocol-definitions';
|
|
@@ -55,9 +55,9 @@ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
|
55
55
|
import { ITelemetryContext } from '@fluidframework/runtime-definitions';
|
|
56
56
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
57
57
|
import { MessageType } from '@fluidframework/protocol-definitions';
|
|
58
|
-
import { MonitoringContext } from '@fluidframework/telemetry-utils';
|
|
59
|
-
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
60
|
-
import { SummarizeInternalFn } from '@fluidframework/runtime-definitions';
|
|
58
|
+
import { MonitoringContext } from '@fluidframework/telemetry-utils/internal';
|
|
59
|
+
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
|
|
60
|
+
import { SummarizeInternalFn } from '@fluidframework/runtime-definitions/internal';
|
|
61
61
|
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
62
62
|
|
|
63
63
|
/**
|
|
@@ -288,6 +288,10 @@ export declare enum ContainerMessageType {
|
|
|
288
288
|
* See the [IdCompressor README](./id-compressor/README.md) for more details.
|
|
289
289
|
*/
|
|
290
290
|
IdAllocation = "idAllocation",
|
|
291
|
+
/**
|
|
292
|
+
* An op that changes document schema
|
|
293
|
+
*/
|
|
294
|
+
DocumentSchemaChange = "schema",
|
|
291
295
|
/**
|
|
292
296
|
* Garbage collection specific op. This is sent by the summarizer client when GC runs. It's used to synchronize GC
|
|
293
297
|
* state across all clients.
|
|
@@ -308,7 +312,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
308
312
|
readonly logger: ITelemetryLoggerExt;
|
|
309
313
|
private readonly _storage;
|
|
310
314
|
private readonly createIdCompressor;
|
|
311
|
-
private readonly
|
|
315
|
+
private readonly documentsSchemaController;
|
|
312
316
|
private readonly requestHandler?;
|
|
313
317
|
private readonly summaryConfiguration;
|
|
314
318
|
/**
|
|
@@ -358,9 +362,17 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
358
362
|
get IFluidDataStoreRegistry(): IFluidDataStoreRegistry;
|
|
359
363
|
private readonly _getAttachState;
|
|
360
364
|
get attachState(): AttachState;
|
|
365
|
+
get documentSchema(): {
|
|
366
|
+
explicitSchemaControl?: true | undefined;
|
|
367
|
+
compressionLz4?: true | undefined;
|
|
368
|
+
idCompressorMode?: IdCompressorMode;
|
|
369
|
+
opGroupingEnabled?: true | undefined;
|
|
370
|
+
disallowedVersions?: string[] | undefined;
|
|
371
|
+
};
|
|
361
372
|
private _idCompressor;
|
|
362
373
|
private pendingIdCompressorOps;
|
|
363
374
|
private readonly skipSavedCompressorOps;
|
|
375
|
+
get idCompressorMode(): IdCompressorMode;
|
|
364
376
|
/**
|
|
365
377
|
* See IContainerRuntimeBase.idCompressor() for details.
|
|
366
378
|
*/
|
|
@@ -369,7 +381,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
369
381
|
* True if we have ID compressor loading in-flight (async operation). Useful only for
|
|
370
382
|
* this.idCompressorMode === "delayed" mode
|
|
371
383
|
*/
|
|
372
|
-
protected
|
|
384
|
+
protected _loadIdCompressor: Promise<void> | undefined;
|
|
373
385
|
/**
|
|
374
386
|
* See IContainerRuntimeBase.generateDocumentUniqueId() for details.
|
|
375
387
|
*/
|
|
@@ -500,7 +512,8 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
500
512
|
*/
|
|
501
513
|
private readonly snapshotCacheForLoadingGroupIds;
|
|
502
514
|
/***/
|
|
503
|
-
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>,
|
|
515
|
+
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>, documentsSchemaController: DocumentsSchemaController, featureGatesForTelemetry: Record<string, boolean | number | undefined>, provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>, requestHandler?: ((request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>) | undefined, summaryConfiguration?: ISummaryConfiguration);
|
|
516
|
+
onSchemaChange(schema: IDocumentSchemaCurrent): void;
|
|
504
517
|
getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>) => ISummarizerNodeWithGC;
|
|
505
518
|
deleteChildSummarizerNode(id: string): void;
|
|
506
519
|
makeLocallyVisible(): void;
|
|
@@ -558,6 +571,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
558
571
|
*/
|
|
559
572
|
private parseLocalOpContent;
|
|
560
573
|
private applyStashedOp;
|
|
574
|
+
private loadIdCompressor;
|
|
561
575
|
setConnectionState(connected: boolean, clientId?: string): void;
|
|
562
576
|
private setConnectionStateCore;
|
|
563
577
|
notifyOpReplay(message: ISequencedDocumentMessage): Promise<void>;
|
|
@@ -620,10 +634,10 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
620
634
|
/**
|
|
621
635
|
* Submits the signal to be sent to other clients.
|
|
622
636
|
* @param type - Type of the signal.
|
|
623
|
-
* @param content - Content of the signal.
|
|
637
|
+
* @param content - Content of the signal. Should be a JSON serializable object or primitive.
|
|
624
638
|
* @param targetClientId - When specified, the signal is only sent to the provided client id.
|
|
625
639
|
*/
|
|
626
|
-
submitSignal(type: string, content:
|
|
640
|
+
submitSignal(type: string, content: unknown, targetClientId?: string): void;
|
|
627
641
|
setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
|
|
628
642
|
/**
|
|
629
643
|
* Create a summary. Used when attaching or serializing a detached container.
|
|
@@ -829,6 +843,15 @@ export declare interface ContainerRuntimeMessage {
|
|
|
829
843
|
compatDetails?: IContainerRuntimeMessageCompatDetails;
|
|
830
844
|
}
|
|
831
845
|
|
|
846
|
+
/**
|
|
847
|
+
* Current version known properties that define document schema
|
|
848
|
+
* This must be bumped whenever the format of document schema or protocol for changing the current document schema changes.
|
|
849
|
+
* Ex: adding a new configuration property (under IDocumentSchema.runtime) does not require changing this version.
|
|
850
|
+
* Ex: Changing the 'document schema acceptance' mechanism from convert-and-swap to one requiring consensus does require changing this version.
|
|
851
|
+
* @alpha
|
|
852
|
+
*/
|
|
853
|
+
export declare const currentDocumentVersionSchema = 1;
|
|
854
|
+
|
|
832
855
|
/** @internal */
|
|
833
856
|
export declare class DataStoreContexts implements Iterable<[string, FluidDataStoreContext]>, IDisposable {
|
|
834
857
|
private readonly notBoundContexts;
|
|
@@ -900,6 +923,118 @@ export declare const DefaultSummaryConfiguration: ISummaryConfiguration;
|
|
|
900
923
|
*/
|
|
901
924
|
export declare function detectOutboundReferences(address: string, contents: unknown, addedOutboundReference: (fromNodePath: string, toNodePath: string) => void): void;
|
|
902
925
|
|
|
926
|
+
/** @alpha */
|
|
927
|
+
export declare const disabledCompressionConfig: ICompressionRuntimeOptions;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Descripe allowed type for properties in document schema.
|
|
931
|
+
* Please note that for all property types we should use undefined to indicate that particular capability is off.
|
|
932
|
+
* Using false, or some string value (like "off") will result in clients who do not understand that property failing, whereas
|
|
933
|
+
* we want them to continue to collaborate alongside clients who support that capability, but such capability is shipping dark for now.
|
|
934
|
+
* @alpha
|
|
935
|
+
*/
|
|
936
|
+
export declare type DocumentSchemaValueType = string | string[] | true | number | undefined;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Controller of document schema.
|
|
940
|
+
*
|
|
941
|
+
* Recommended pre-reading: https://github.com/microsoft/FluidFramework/blob/main/packages/dds/SchemaVersioning.md
|
|
942
|
+
*
|
|
943
|
+
* This class manages current document schema and transitions between document schemas.
|
|
944
|
+
* At the moment, it only focuses on subset of document schema, specifically - how FluidFramework runtime serializes data
|
|
945
|
+
* (summary and op format), features & capabilities that a version of runtime has to support and understand in
|
|
946
|
+
* order to collaborate on a document.
|
|
947
|
+
* New features that modify document format have to be included in document schema definition.
|
|
948
|
+
* Usage of such features could only happen after document schema has been updated to reflect such feature.
|
|
949
|
+
*
|
|
950
|
+
* This formality allows clients that do not understand such features to fail right away when they observe
|
|
951
|
+
* document schema listing capabilities that such client does not understand.
|
|
952
|
+
* Old clients will fail in predictable way. This allows us to
|
|
953
|
+
* 1) Immediately see such issues and adjust if features are enabled too early, before changes have been saturated.
|
|
954
|
+
* 2) There is no way to get to 100% saturation with new code. Even if we have 99.99% saturation, there are
|
|
955
|
+
* still 0.01% of clients who will fail. Failing early and predictably ensures they have no chance to limp along
|
|
956
|
+
* and potentially corrupt the document. This is especially true for summarizer client, who could simply "undo"
|
|
957
|
+
* changes it does not understands.
|
|
958
|
+
*
|
|
959
|
+
* It's important to note how it overlaps with feature gates and safe velocity.
|
|
960
|
+
* If new feature was in use, that resulted in a number of documents referencing such feature in document schema.
|
|
961
|
+
* But, developers (through code deployment or feature gates) could disable usage of such features.
|
|
962
|
+
* That will stop a process of further document schema changes (for documents that were not using such feature).
|
|
963
|
+
* And documents that already list such capability in their schema will continue to do so. Later ensures that old
|
|
964
|
+
* clients who do not understand such feature will continue to fail to open such documents, as such documents very
|
|
965
|
+
* likely contain data in a new format.
|
|
966
|
+
*
|
|
967
|
+
* Controller operates with 4 schemas:
|
|
968
|
+
* - document schema: whatever we loaded from summary metadata + ops. It follows eventuall consistency rules (i.e. like DDS).
|
|
969
|
+
* - desired schema - what client is asking for to have (i.e. all the desired settings, based on runtime options / feature gates).
|
|
970
|
+
* - session schema - current session schema. It's "and" of the above two schemas.
|
|
971
|
+
* - future schema - "or" of document and desires schemas.
|
|
972
|
+
*
|
|
973
|
+
* "or" & "and" operators are defined individually for each property. For Boolean properties it's literally &&, || operators.
|
|
974
|
+
* But for other properties it's more nuanced.
|
|
975
|
+
*
|
|
976
|
+
* Whenver document schema does not match future schema, controller will send an op that attempts to changs documents schema to
|
|
977
|
+
* future schema.
|
|
978
|
+
*
|
|
979
|
+
* Users of this class need to use DocumentsSchemaController.sessionSchema to determine what features can be used.
|
|
980
|
+
*
|
|
981
|
+
* There are two modes this class can operate:
|
|
982
|
+
* 1) Legacy mode. In such mode it does not issue any ops to change document schema. Any changes happen implicitly,
|
|
983
|
+
* right away, and new features are available right away
|
|
984
|
+
* 2) Non-legacy mode. In such mode any changes to schema require an op roundtrip. This class will manage such transitions.
|
|
985
|
+
* However code should assume that any new features that were not enabled in a given document will not be available
|
|
986
|
+
* for a given session. That's because this session may never send any ops (including read-only documents). Or it may
|
|
987
|
+
* fail to convert schema.
|
|
988
|
+
* This class promises eventual movement forward. I.e. if new feature is allowed (let's say - through feature gates),
|
|
989
|
+
* then eventually all documents that are modified will have that feature reflected in their schema. It could require
|
|
990
|
+
* multiple reloads / new sessions to get there (depends on if code reacts to schema changes right away, or only consults
|
|
991
|
+
* schema on document load).
|
|
992
|
+
*
|
|
993
|
+
* How schemas are changed (in non-legacy mode):
|
|
994
|
+
* If a client needs to change a schema, it will attempt to do so as part of normal ops sending process.
|
|
995
|
+
* Changes happen in CAS (Compare-and-swap) fashion, i.e. client tells current schema and schema it wants to change to.
|
|
996
|
+
* When a number of clients race to change a schema, then only one of them will win, all others will fail because they will
|
|
997
|
+
* reference old schema that is no longer in effect.
|
|
998
|
+
* Clients can retry, but current implementation is simply - they will not (and will rely on next session / reload to do
|
|
999
|
+
* recalc and decide if schema needs to be changed or not).
|
|
1000
|
+
*
|
|
1001
|
+
* @alpha
|
|
1002
|
+
*/
|
|
1003
|
+
export declare class DocumentsSchemaController {
|
|
1004
|
+
private readonly onSchemaChange;
|
|
1005
|
+
private explicitSchemaControl;
|
|
1006
|
+
private sendOp;
|
|
1007
|
+
private documentSchema;
|
|
1008
|
+
private readonly desiredSchema;
|
|
1009
|
+
private futureSchema;
|
|
1010
|
+
sessionSchema: IDocumentSchemaCurrent;
|
|
1011
|
+
/**
|
|
1012
|
+
* Constructs DocumentsSchemaController that controls current schema and processes around it, including changes in schema.
|
|
1013
|
+
* @param existing - Is the document existing document, or a new doc.
|
|
1014
|
+
* @param documentMetadataSchema - current document's schema, if present.
|
|
1015
|
+
* @param features - features of the document schema that current session wants to see enabled.
|
|
1016
|
+
* @param onSchemaChange - callback that is called whenever schema is changed (not called on creation / load, only when processing document schema change ops)
|
|
1017
|
+
*/
|
|
1018
|
+
constructor(existing: boolean, documentMetadataSchema: IDocumentSchema | undefined, features: IDocumentSchemaFeatures, onSchemaChange: (schema: IDocumentSchemaCurrent) => void);
|
|
1019
|
+
summarizeDocumentSchema(refSeq: number): IDocumentSchemaCurrent | undefined;
|
|
1020
|
+
/**
|
|
1021
|
+
* Called by Container runtime whenever it is about to send some op.
|
|
1022
|
+
* It gives opportunity for controller to issue its own ops - we do not want to send ops if there are no local changes in document.
|
|
1023
|
+
* @returns Optional message to send.
|
|
1024
|
+
*/
|
|
1025
|
+
maybeSendSchemaMessage(): IDocumentSchemaChangeMessage | undefined;
|
|
1026
|
+
/**
|
|
1027
|
+
* Process document schema change message
|
|
1028
|
+
* Called by ContainerRuntime whenever it sees document schema messages.
|
|
1029
|
+
* @param content - content of the message
|
|
1030
|
+
* @param local - whether op is local
|
|
1031
|
+
* @param sequenceNumber - sequence number of the op
|
|
1032
|
+
* @returns - true if schema was accepted, otherwise false (rejected due to failed CAS)
|
|
1033
|
+
*/
|
|
1034
|
+
processDocumentSchemaOp(content: IDocumentSchemaChangeMessage, local: boolean, sequenceNumber: number): boolean;
|
|
1035
|
+
onDisconnect(): void;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
903
1038
|
/**
|
|
904
1039
|
* @alpha
|
|
905
1040
|
*/
|
|
@@ -1118,10 +1253,10 @@ export declare abstract class FluidDataStoreContext extends TypedEventEmitter<IF
|
|
|
1118
1253
|
/**
|
|
1119
1254
|
* Submits the signal to be sent to other clients.
|
|
1120
1255
|
* @param type - Type of the signal.
|
|
1121
|
-
* @param content - Content of the signal.
|
|
1256
|
+
* @param content - Content of the signal. Should be a JSON serializable object or primitive.
|
|
1122
1257
|
* @param targetClientId - When specified, the signal is only sent to the provided client id.
|
|
1123
1258
|
*/
|
|
1124
|
-
submitSignal(type: string, content:
|
|
1259
|
+
submitSignal(type: string, content: unknown, targetClientId?: string): void;
|
|
1125
1260
|
/**
|
|
1126
1261
|
* This is called by the data store channel when it becomes locally visible indicating that it is ready to become
|
|
1127
1262
|
* globally visible now.
|
|
@@ -1296,7 +1431,6 @@ export declare interface IChunkedOp {
|
|
|
1296
1431
|
chunkId: number;
|
|
1297
1432
|
totalChunks: number;
|
|
1298
1433
|
contents: string;
|
|
1299
|
-
originalType: MessageType | ContainerMessageType;
|
|
1300
1434
|
originalMetadata?: Record<string, unknown>;
|
|
1301
1435
|
originalCompression?: string;
|
|
1302
1436
|
}
|
|
@@ -1352,16 +1486,17 @@ export declare interface IContainerRuntimeMessageCompatDetails {
|
|
|
1352
1486
|
*/
|
|
1353
1487
|
export declare interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
|
|
1354
1488
|
readonly summaryFormatVersion: 1;
|
|
1489
|
+
/** @deprecated - used by old (prior to 2.0 RC3) runtimes */
|
|
1490
|
+
readonly message?: ISummaryMetadataMessage;
|
|
1355
1491
|
/** The last message processed at the time of summary. Only primitive property types are added to the summary. */
|
|
1356
|
-
readonly
|
|
1492
|
+
readonly lastMessage?: ISummaryMetadataMessage;
|
|
1357
1493
|
/** True if channels are not isolated in .channels subtrees, otherwise isolated. */
|
|
1358
1494
|
readonly disableIsolatedChannels?: true;
|
|
1359
1495
|
/** The summary number for a container's summary. Incremented on summaries throughout its lifetime. */
|
|
1360
1496
|
readonly summaryNumber?: number;
|
|
1361
1497
|
/** GUID to identify a document in telemetry */
|
|
1362
1498
|
readonly telemetryDocumentId?: string;
|
|
1363
|
-
|
|
1364
|
-
readonly idCompressorMode?: IdCompressorMode;
|
|
1499
|
+
readonly documentSchema?: IDocumentSchema;
|
|
1365
1500
|
}
|
|
1366
1501
|
|
|
1367
1502
|
/**
|
|
@@ -1395,7 +1530,7 @@ export declare interface IContainerRuntimeOptions {
|
|
|
1395
1530
|
* If specified, when in FlushMode.TurnBased, if the size of the ops between JS turns exceeds this value,
|
|
1396
1531
|
* an error will be thrown and the container will close.
|
|
1397
1532
|
*
|
|
1398
|
-
* If unspecified, the limit is
|
|
1533
|
+
* If unspecified, the limit is 700Kb.
|
|
1399
1534
|
*
|
|
1400
1535
|
* 'Infinity' will disable any limit.
|
|
1401
1536
|
*
|
|
@@ -1442,6 +1577,14 @@ export declare interface IContainerRuntimeOptions {
|
|
|
1442
1577
|
* @experimental Not ready for use.
|
|
1443
1578
|
*/
|
|
1444
1579
|
readonly enableGroupedBatching?: boolean;
|
|
1580
|
+
/**
|
|
1581
|
+
* When this property is set to true, it requires runtime to control is document schema properly through ops
|
|
1582
|
+
* The benefit of this mode is that clients who do not understand schema will fail in predictable way, with predictable message,
|
|
1583
|
+
* and will not attempt to limp along, which could cause data corruptions and crashes in random places.
|
|
1584
|
+
* When this property is not set (or set to false), runtime operates in legacy mode, where new features (modifying document schema)
|
|
1585
|
+
* are engaged as they become available, without giving legacy clients any chance to fail predictably.
|
|
1586
|
+
*/
|
|
1587
|
+
readonly explicitSchemaControl?: boolean;
|
|
1445
1588
|
}
|
|
1446
1589
|
|
|
1447
1590
|
/**
|
|
@@ -1461,12 +1604,92 @@ export declare interface ICreateContainerMetadata {
|
|
|
1461
1604
|
* "delayed" - ID compressor bundle is loaded only on establishing of first delta connection, i.e. it does not impact boot of cotnainer.
|
|
1462
1605
|
* In such mode IContainerRuntime.idCompressor is not made available (unless previous sessions of same document had it "On").
|
|
1463
1606
|
* The only thing that is available is IContainerRuntime.generateDocumentUniqueId() that provides opportunistically short IDs.
|
|
1464
|
-
*
|
|
1607
|
+
* undefined - ID compressor is not loaded.
|
|
1465
1608
|
* While IContainerRuntime.generateDocumentUniqueId() is available, it will produce long IDs that are do not compress well.
|
|
1466
1609
|
*
|
|
1467
1610
|
* @alpha
|
|
1468
1611
|
*/
|
|
1469
|
-
export declare type IdCompressorMode = "on" | "delayed" |
|
|
1612
|
+
export declare type IdCompressorMode = "on" | "delayed" | undefined;
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Document schema information.
|
|
1616
|
+
* Describes overall shape of document schema, including unknown (to this version) properties.
|
|
1617
|
+
*
|
|
1618
|
+
* Used by runtime to make a call if it can understand document schema.
|
|
1619
|
+
* If it can't, it should not continue with document and immediately fail, preventing random (cryptic) failures
|
|
1620
|
+
* down the road and potentially corrupting documents.
|
|
1621
|
+
* For now this structure and appropriate interpretation / behavior is focused only on runtime features.
|
|
1622
|
+
* In the future that could be interpolated to more areas, including DDSs used, and even possibly - application
|
|
1623
|
+
* schema.
|
|
1624
|
+
*
|
|
1625
|
+
* Runtime will ignore any properties at the root that it does not understand (i.e. IDocumentSchema.app), but will
|
|
1626
|
+
* stop (and fail session) on any unknown properties within "runtime" sub-tree.
|
|
1627
|
+
*
|
|
1628
|
+
* In most cases values preserved in the document will not dictate if such features should be enabled in a given session.
|
|
1629
|
+
* I.e. if compression is mentioned in document schema, this means that runtime version that opens such document must know
|
|
1630
|
+
* how to interpret such ops, but does not need to actually use compression itself. That said, some options could be
|
|
1631
|
+
* sticky, i.e. influence feature selection for all runtimes opening a document. ID compression is one such example.
|
|
1632
|
+
* Currently there is no mechanism to remove feature from this property bag, i.e. once compression was used, even if it's
|
|
1633
|
+
* disabled (through feature gate or code deployment), all existing documents that used compression will continue to fail
|
|
1634
|
+
* if opened by clients who do not support compression.
|
|
1635
|
+
*
|
|
1636
|
+
* For now we are limiting it to just plain properties, and only really simple types, but that can be changed in the future.
|
|
1637
|
+
*
|
|
1638
|
+
* @alpha
|
|
1639
|
+
*/
|
|
1640
|
+
export declare interface IDocumentSchema {
|
|
1641
|
+
version: number;
|
|
1642
|
+
refSeq: number;
|
|
1643
|
+
runtime: Record<string, DocumentSchemaValueType>;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* Content of the type=ContainerMessageType.DocumentSchemaChange ops.
|
|
1648
|
+
* The meaning of refSeq field is different in such messages (compared to other usages of IDocumentSchemaCurrent)
|
|
1649
|
+
* ContainerMessageType.DocumentSchemaChange messages use CAS (Compare-and-swap) semantics, and convey
|
|
1650
|
+
* regSeq of last known schema change (known to a client proposing schema change).
|
|
1651
|
+
* @see ContainerRuntimeDocumentSchemaMessage
|
|
1652
|
+
* @alpha
|
|
1653
|
+
*/
|
|
1654
|
+
export declare type IDocumentSchemaChangeMessage = IDocumentSchema;
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Current document schema.
|
|
1658
|
+
* @alpha
|
|
1659
|
+
*/
|
|
1660
|
+
export declare type IDocumentSchemaCurrent = {
|
|
1661
|
+
version: 1;
|
|
1662
|
+
refSeq: number;
|
|
1663
|
+
runtime: {
|
|
1664
|
+
[P in keyof IDocumentSchemaFeatures]?: IDocumentSchemaFeatures[P] extends boolean ? true : IDocumentSchemaFeatures[P];
|
|
1665
|
+
};
|
|
1666
|
+
};
|
|
1667
|
+
|
|
1668
|
+
/**
|
|
1669
|
+
* Settings that this session would like to have, based on options and feature gates.
|
|
1670
|
+
*
|
|
1671
|
+
* WARNING: This type is used to infer IDocumentSchemaCurrent type!
|
|
1672
|
+
* Any changes here (including renaming of properties) are potentially changing document format and should be considered carefully!
|
|
1673
|
+
*
|
|
1674
|
+
* @alpha
|
|
1675
|
+
*/
|
|
1676
|
+
export declare interface IDocumentSchemaFeatures {
|
|
1677
|
+
explicitSchemaControl: boolean;
|
|
1678
|
+
compressionLz4: boolean;
|
|
1679
|
+
idCompressorMode: IdCompressorMode;
|
|
1680
|
+
opGroupingEnabled: boolean;
|
|
1681
|
+
/**
|
|
1682
|
+
* List of disallowed versions of the runtime.
|
|
1683
|
+
* This option is sticky. Once a version of runtime is added to this list (when supplied to DocumentsSchemaController's constructor)
|
|
1684
|
+
* it will be added to the list of disallowed versions and stored in document metadata.
|
|
1685
|
+
* Each runtime checks if its version is in this list on container open. If it is, it immediately exits with error message
|
|
1686
|
+
* indicating to the user that this version is no longer supported.
|
|
1687
|
+
* Currently there is no mechanism to remove version from this list. I.e. If it was once added to the list,
|
|
1688
|
+
* it gets added to any document metadata (documents that gets open by this runtime) and there is no way to clear it from document's
|
|
1689
|
+
* metadata.
|
|
1690
|
+
*/
|
|
1691
|
+
disallowedVersions: string[];
|
|
1692
|
+
}
|
|
1470
1693
|
|
|
1471
1694
|
/**
|
|
1472
1695
|
* Options to use when enqueueing a summarize attempt.
|
|
@@ -2225,20 +2448,6 @@ export declare enum RuntimeHeaders {
|
|
|
2225
2448
|
viaHandle = "viaHandle"
|
|
2226
2449
|
}
|
|
2227
2450
|
|
|
2228
|
-
/**
|
|
2229
|
-
* @deprecated use ContainerRuntimeMessageType instead
|
|
2230
|
-
* @internal
|
|
2231
|
-
*/
|
|
2232
|
-
export declare enum RuntimeMessage {
|
|
2233
|
-
FluidDataStoreOp = "component",
|
|
2234
|
-
Attach = "attach",
|
|
2235
|
-
ChunkedOp = "chunkedOp",
|
|
2236
|
-
BlobAttach = "blobAttach",
|
|
2237
|
-
Rejoin = "rejoin",
|
|
2238
|
-
Alias = "alias",
|
|
2239
|
-
Operation = "op"
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2242
2451
|
/**
|
|
2243
2452
|
* The data in summarizer result when submit summary stage fails.
|
|
2244
2453
|
* @alpha
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerHandleContext.d.ts","sourceRoot":"","sources":["../src/containerHandleContext.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"containerHandleContext.d.ts","sourceRoot":"","sources":["../src/containerHandleContext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAG3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,2BAA4B,YAAW,mBAAmB;aAarD,IAAI,EAAE,MAAM;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO;aACR,YAAY,CAAC;IAd9B,IAAW,mBAAmB,SAE7B;IACD,SAAgB,YAAY,EAAE,MAAM,CAAC;IAErC;;;;;OAKG;gBAEc,IAAI,EAAE,MAAM,EACX,OAAO,EAAE,gBAAgB,EAC1B,YAAY,CAAC,iCAAqB;IAK5C,WAAW,IAAI,IAAI;IAI1B,IAAW,UAAU,YAEpB;IAEY,aAAa,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC;CAGjE"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { AttachState } from "@fluidframework/container-definitions";
|
|
6
|
-
import { generateHandleContextPath } from "@fluidframework/runtime-utils";
|
|
6
|
+
import { generateHandleContextPath } from "@fluidframework/runtime-utils/internal";
|
|
7
7
|
export class ContainerFluidHandleContext {
|
|
8
8
|
get IFluidHandleContext() {
|
|
9
9
|
return this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerHandleContext.js","sourceRoot":"","sources":["../src/containerHandleContext.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"containerHandleContext.js","sourceRoot":"","sources":["../src/containerHandleContext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAInF,MAAM,OAAO,2BAA2B;IACvC,IAAW,mBAAmB;QAC7B,OAAO,IAAI,CAAC;IACb,CAAC;IAGD;;;;;OAKG;IACH,YACiB,IAAY,EACX,OAAyB,EAC1B,YAAkC;QAFlC,SAAI,GAAJ,IAAI,CAAQ;QACX,YAAO,GAAP,OAAO,CAAkB;QAC1B,iBAAY,GAAZ,YAAY,CAAsB;QAElD,IAAI,CAAC,YAAY,GAAG,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACxE,CAAC;IAEM,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC1E,CAAC;IAED,IAAW,UAAU;QACpB,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,KAAK,WAAW,CAAC,QAAQ,CAAC;IAC1D,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAAiB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { AttachState } from \"@fluidframework/container-definitions\";\nimport { IFluidHandleContext, IRequest, IResponse } from \"@fluidframework/core-interfaces\";\nimport { generateHandleContextPath } from \"@fluidframework/runtime-utils/internal\";\n\nimport { ContainerRuntime } from \"./containerRuntime.js\";\n\nexport class ContainerFluidHandleContext implements IFluidHandleContext {\n\tpublic get IFluidHandleContext() {\n\t\treturn this;\n\t}\n\tpublic readonly absolutePath: string;\n\n\t/**\n\t * Creates a new ContainerFluidHandleContext.\n\t * @param path - The path to this handle relative to the routeContext.\n\t * @param runtime - The IRuntime object this context represents.\n\t * @param routeContext - The parent IFluidHandleContext that has a route to this handle.\n\t */\n\tconstructor(\n\t\tpublic readonly path: string,\n\t\tprivate readonly runtime: ContainerRuntime,\n\t\tpublic readonly routeContext?: IFluidHandleContext,\n\t) {\n\t\tthis.absolutePath = generateHandleContextPath(path, this.routeContext);\n\t}\n\n\tpublic attachGraph(): void {\n\t\tthrow new Error(\"can't attach container runtime form within container!\");\n\t}\n\n\tpublic get isAttached() {\n\t\treturn this.runtime.attachState !== AttachState.Detached;\n\t}\n\n\tpublic async resolveHandle(request: IRequest): Promise<IResponse> {\n\t\treturn this.runtime.resolveHandle(request);\n\t}\n}\n"]}
|