@fluidframework/container-runtime 2.0.0-dev-rc.2.0.0.245554 → 2.0.0-dev-rc.3.0.0.250606
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 +81 -27
- package/dist/batchTracker.d.ts +1 -1
- package/dist/batchTracker.d.ts.map +1 -1
- package/dist/batchTracker.js +2 -2
- package/dist/batchTracker.js.map +1 -1
- package/dist/blobManager.d.ts +3 -3
- package/dist/blobManager.d.ts.map +1 -1
- package/dist/blobManager.js +3 -3
- package/dist/blobManager.js.map +1 -1
- package/dist/channelCollection.d.ts +6 -5
- package/dist/channelCollection.d.ts.map +1 -1
- package/dist/channelCollection.js +57 -19
- package/dist/channelCollection.js.map +1 -1
- package/dist/connectionTelemetry.d.ts +2 -2
- package/dist/connectionTelemetry.d.ts.map +1 -1
- package/dist/connectionTelemetry.js +3 -3
- package/dist/connectionTelemetry.js.map +1 -1
- package/dist/container-runtime-alpha.d.ts +205 -12
- package/dist/container-runtime-beta.d.ts +16 -3
- package/dist/container-runtime-public.d.ts +16 -3
- package/dist/container-runtime-untrimmed.d.ts +207 -26
- package/dist/containerHandleContext.d.ts.map +1 -1
- package/dist/containerHandleContext.js.map +1 -1
- package/dist/containerRuntime.d.ts +32 -26
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +235 -133
- 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 +2 -2
- package/dist/dataStore.js.map +1 -1
- package/dist/dataStoreContext.d.ts +4 -4
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +18 -18
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStoreContexts.d.ts.map +1 -1
- 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/deltaScheduler.d.ts +1 -1
- package/dist/deltaScheduler.d.ts.map +1 -1
- package/dist/deltaScheduler.js +1 -1
- package/dist/deltaScheduler.js.map +1 -1
- package/dist/gc/garbageCollection.d.ts +1 -1
- package/dist/gc/garbageCollection.d.ts.map +1 -1
- package/dist/gc/garbageCollection.js +1 -1
- package/dist/gc/garbageCollection.js.map +1 -1
- package/dist/gc/gcConfigs.d.ts +1 -1
- package/dist/gc/gcConfigs.d.ts.map +1 -1
- package/dist/gc/gcConfigs.js.map +1 -1
- package/dist/gc/gcDefinitions.d.ts +1 -1
- package/dist/gc/gcDefinitions.d.ts.map +1 -1
- package/dist/gc/gcDefinitions.js.map +1 -1
- package/dist/gc/gcHelpers.d.ts.map +1 -1
- package/dist/gc/gcHelpers.js.map +1 -1
- package/dist/gc/gcSummaryStateTracker.d.ts +1 -1
- package/dist/gc/gcSummaryStateTracker.d.ts.map +1 -1
- package/dist/gc/gcSummaryStateTracker.js.map +1 -1
- package/dist/gc/gcTelemetry.d.ts +1 -1
- package/dist/gc/gcTelemetry.d.ts.map +1 -1
- package/dist/gc/gcTelemetry.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/definitions.d.ts +1 -19
- 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 +2 -3
- 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 +60 -61
- 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 +9 -11
- package/dist/opLifecycle/opGroupingManager.js.map +1 -1
- package/dist/opLifecycle/opSplitter.d.ts +11 -3
- package/dist/opLifecycle/opSplitter.d.ts.map +1 -1
- package/dist/opLifecycle/opSplitter.js +48 -38
- package/dist/opLifecycle/opSplitter.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +18 -17
- 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 -32
- 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.map +1 -1
- package/dist/scheduleManager.d.ts +1 -1
- package/dist/scheduleManager.d.ts.map +1 -1
- package/dist/scheduleManager.js +6 -2
- package/dist/scheduleManager.js.map +1 -1
- package/dist/summary/documentSchema.d.ts +178 -0
- package/dist/summary/documentSchema.d.ts.map +1 -0
- package/dist/summary/documentSchema.js +345 -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 +7 -2
- 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 +2 -2
- package/dist/summary/runningSummarizer.d.ts.map +1 -1
- package/dist/summary/runningSummarizer.js +2 -2
- package/dist/summary/runningSummarizer.js.map +1 -1
- package/dist/summary/summarizer.d.ts +2 -2
- package/dist/summary/summarizer.d.ts.map +1 -1
- package/dist/summary/summarizer.js +2 -2
- 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.map +1 -1
- package/dist/summary/summarizerNode/summarizerNode.d.ts +2 -2
- package/dist/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNode.js +3 -3
- package/dist/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +1 -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 +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/dist/summary/summarizerTypes.d.ts +3 -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 +1 -1
- package/dist/summary/summaryCollection.js.map +1 -1
- package/dist/summary/summaryFormat.d.ts +5 -16
- package/dist/summary/summaryFormat.d.ts.map +1 -1
- package/dist/summary/summaryFormat.js.map +1 -1
- package/dist/summary/summaryGenerator.d.ts +2 -2
- package/dist/summary/summaryGenerator.d.ts.map +1 -1
- package/dist/summary/summaryGenerator.js +2 -2
- 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 +2 -2
- 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 +3 -3
- package/lib/blobManager.d.ts.map +1 -1
- package/lib/blobManager.js +5 -5
- package/lib/blobManager.js.map +1 -1
- package/lib/channelCollection.d.ts +6 -5
- package/lib/channelCollection.d.ts.map +1 -1
- package/lib/channelCollection.js +59 -21
- package/lib/channelCollection.js.map +1 -1
- package/lib/connectionTelemetry.d.ts +2 -2
- 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 +205 -12
- package/lib/container-runtime-beta.d.ts +16 -3
- package/lib/container-runtime-public.d.ts +16 -3
- package/lib/container-runtime-untrimmed.d.ts +207 -26
- package/lib/containerHandleContext.d.ts.map +1 -1
- package/lib/containerHandleContext.js.map +1 -1
- package/lib/containerRuntime.d.ts +32 -26
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +197 -95
- 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 +4 -4
- package/lib/dataStoreContext.d.ts.map +1 -1
- package/lib/dataStoreContext.js +3 -3
- package/lib/dataStoreContext.js.map +1 -1
- package/lib/dataStoreContexts.d.ts.map +1 -1
- package/lib/dataStoreContexts.js.map +1 -1
- package/lib/dataStoreRegistry.d.ts +4 -0
- package/lib/dataStoreRegistry.d.ts.map +1 -1
- package/lib/dataStoreRegistry.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/gc/garbageCollection.d.ts +1 -1
- package/lib/gc/garbageCollection.d.ts.map +1 -1
- package/lib/gc/garbageCollection.js +3 -3
- package/lib/gc/garbageCollection.js.map +1 -1
- package/lib/gc/gcConfigs.d.ts +1 -1
- package/lib/gc/gcConfigs.d.ts.map +1 -1
- package/lib/gc/gcConfigs.js +1 -1
- package/lib/gc/gcConfigs.js.map +1 -1
- package/lib/gc/gcDefinitions.d.ts +1 -1
- package/lib/gc/gcDefinitions.d.ts.map +1 -1
- package/lib/gc/gcDefinitions.js.map +1 -1
- package/lib/gc/gcHelpers.d.ts.map +1 -1
- package/lib/gc/gcHelpers.js.map +1 -1
- package/lib/gc/gcSummaryStateTracker.d.ts +1 -1
- package/lib/gc/gcSummaryStateTracker.d.ts.map +1 -1
- package/lib/gc/gcSummaryStateTracker.js +1 -1
- package/lib/gc/gcSummaryStateTracker.js.map +1 -1
- package/lib/gc/gcTelemetry.d.ts +1 -1
- package/lib/gc/gcTelemetry.d.ts.map +1 -1
- package/lib/gc/gcTelemetry.js +1 -1
- package/lib/gc/gcTelemetry.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/definitions.d.ts +1 -19
- 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 +60 -61
- 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 +7 -10
- package/lib/opLifecycle/opGroupingManager.js.map +1 -1
- package/lib/opLifecycle/opSplitter.d.ts +11 -3
- package/lib/opLifecycle/opSplitter.d.ts.map +1 -1
- package/lib/opLifecycle/opSplitter.js +46 -37
- package/lib/opLifecycle/opSplitter.js.map +1 -1
- package/lib/opLifecycle/outbox.d.ts.map +1 -1
- package/lib/opLifecycle/outbox.js +18 -17
- 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 -32
- 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.map +1 -1
- package/lib/scheduleManager.d.ts +1 -1
- package/lib/scheduleManager.d.ts.map +1 -1
- package/lib/scheduleManager.js +6 -2
- package/lib/scheduleManager.js.map +1 -1
- package/lib/summary/documentSchema.d.ts +178 -0
- package/lib/summary/documentSchema.d.ts.map +1 -0
- package/lib/summary/documentSchema.js +341 -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 +7 -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.map +1 -1
- package/lib/summary/runningSummarizer.d.ts +2 -2
- 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 +2 -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.map +1 -1
- package/lib/summary/summarizerNode/summarizerNode.d.ts +2 -2
- package/lib/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNode.js +4 -4
- package/lib/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/lib/summary/summarizerTypes.d.ts +3 -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 +5 -16
- package/lib/summary/summaryFormat.d.ts.map +1 -1
- package/lib/summary/summaryFormat.js +1 -1
- package/lib/summary/summaryFormat.js.map +1 -1
- package/lib/summary/summaryGenerator.d.ts +2 -2
- package/lib/summary/summaryGenerator.d.ts.map +1 -1
- package/lib/summary/summaryGenerator.js +3 -3
- 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 +2 -2
- package/lib/summary/summaryManager.js.map +1 -1
- package/lib/test/blobManager.spec.js +3 -3
- package/lib/test/blobManager.spec.js.map +1 -1
- package/lib/test/containerRuntime.spec.js +6 -4
- package/lib/test/containerRuntime.spec.js.map +1 -1
- package/lib/test/dataStoreContext.spec.js +4 -4
- package/lib/test/dataStoreContext.spec.js.map +1 -1
- package/lib/test/dataStoreCreation.spec.js +1 -1
- package/lib/test/dataStoreCreation.spec.js.map +1 -1
- package/lib/test/dataStoreRegistry.spec.js.map +1 -1
- package/lib/test/documentSchema.spec.js +282 -0
- package/lib/test/documentSchema.spec.js.map +1 -0
- package/lib/test/fuzz/fuzzUtils.js +11 -7
- package/lib/test/fuzz/fuzzUtils.js.map +1 -1
- package/lib/test/fuzz/summarizer.fuzz.spec.js +9 -7
- package/lib/test/fuzz/summarizer.fuzz.spec.js.map +1 -1
- package/lib/test/fuzz/summarizerFuzzMocks.js +43 -25
- package/lib/test/fuzz/summarizerFuzzMocks.js.map +1 -1
- package/lib/test/fuzz/summarizerFuzzSuite.js +7 -4
- package/lib/test/fuzz/summarizerFuzzSuite.js.map +1 -1
- package/lib/test/gc/garbageCollection.spec.js +5 -5
- package/lib/test/gc/garbageCollection.spec.js.map +1 -1
- package/lib/test/gc/gcConfigs.spec.js +2 -2
- package/lib/test/gc/gcConfigs.spec.js.map +1 -1
- package/lib/test/gc/gcHelpers.spec.js.map +1 -1
- package/lib/test/gc/gcStats.spec.js +2 -2
- package/lib/test/gc/gcStats.spec.js.map +1 -1
- package/lib/test/gc/gcSummaryStateTracker.spec.js +1 -1
- package/lib/test/gc/gcSummaryStateTracker.spec.js.map +1 -1
- package/lib/test/gc/gcTelemetry.spec.js +3 -3
- package/lib/test/gc/gcTelemetry.spec.js.map +1 -1
- package/lib/test/gc/gcUnreferencedStateTracker.spec.js +1 -1
- package/lib/test/gc/gcUnreferencedStateTracker.spec.js.map +1 -1
- package/lib/test/getPendingBlobs.spec.js +1 -1
- package/lib/test/getPendingBlobs.spec.js.map +1 -1
- package/lib/test/hardwareStats.spec.js +1 -1
- package/lib/test/hardwareStats.spec.js.map +1 -1
- package/lib/test/opLifecycle/OpGroupingManager.spec.js +95 -118
- package/lib/test/opLifecycle/OpGroupingManager.spec.js.map +1 -1
- package/lib/test/opLifecycle/batchManager.spec.js +1 -1
- package/lib/test/opLifecycle/batchManager.spec.js.map +1 -1
- package/lib/test/opLifecycle/opCompressor.spec.js +0 -1
- package/lib/test/opLifecycle/opCompressor.spec.js.map +1 -1
- package/lib/test/opLifecycle/opDecompressor.spec.js +60 -55
- package/lib/test/opLifecycle/opDecompressor.spec.js.map +1 -1
- package/lib/test/opLifecycle/opSplitter.spec.js +56 -41
- package/lib/test/opLifecycle/opSplitter.spec.js.map +1 -1
- package/lib/test/opLifecycle/outbox.spec.js +118 -10
- package/lib/test/opLifecycle/outbox.spec.js.map +1 -1
- package/lib/test/opLifecycle/remoteMessageProcessor.spec.js +115 -91
- package/lib/test/opLifecycle/remoteMessageProcessor.spec.js.map +1 -1
- package/lib/test/pendingStateManager.spec.js +1 -1
- package/lib/test/pendingStateManager.spec.js.map +1 -1
- package/lib/test/scheduleManager.spec.js +1 -1
- package/lib/test/scheduleManager.spec.js.map +1 -1
- package/lib/test/summarizerNode.spec.js +1 -1
- package/lib/test/summarizerNode.spec.js.map +1 -1
- package/lib/test/summarizerNodeWithGc.spec.js +1 -1
- package/lib/test/summarizerNodeWithGc.spec.js.map +1 -1
- package/lib/test/summary/runningSummarizer.spec.js +4 -4
- package/lib/test/summary/runningSummarizer.spec.js.map +1 -1
- package/lib/test/summary/summarizer.spec.js.map +1 -1
- package/lib/test/summary/summarizerClientElection.spec.js +2 -2
- package/lib/test/summary/summarizerClientElection.spec.js.map +1 -1
- package/lib/test/summary/summarizerHeuristics.spec.js +1 -1
- package/lib/test/summary/summarizerHeuristics.spec.js.map +1 -1
- package/lib/test/summary/summaryCollection.spec.js +1 -1
- package/lib/test/summary/summaryCollection.spec.js.map +1 -1
- package/lib/test/summary/summaryManager.spec.js +3 -3
- package/lib/test/summary/summaryManager.spec.js.map +1 -1
- package/lib/test/throttler.spec.js +1 -1
- package/lib/test/throttler.spec.js.map +1 -1
- package/lib/test/types/validateContainerRuntimePrevious.generated.js +6 -4
- package/lib/test/types/validateContainerRuntimePrevious.generated.js.map +1 -1
- package/package.json +35 -21
- package/src/batchTracker.ts +3 -3
- package/src/blobManager.ts +15 -15
- package/src/channelCollection.ts +90 -44
- package/src/connectionTelemetry.ts +10 -10
- package/src/containerHandleContext.ts +1 -1
- package/src/containerRuntime.ts +375 -213
- package/src/dataStore.ts +2 -2
- package/src/dataStoreContext.ts +19 -19
- package/src/dataStoreContexts.ts +2 -2
- package/src/dataStoreRegistry.ts +2 -1
- package/src/deltaScheduler.ts +1 -1
- package/src/gc/garbageCollection.ts +12 -12
- package/src/gc/gcConfigs.ts +11 -11
- package/src/gc/gcDefinitions.ts +2 -2
- package/src/gc/gcHelpers.ts +2 -2
- package/src/gc/gcSummaryStateTracker.ts +4 -4
- package/src/gc/gcTelemetry.ts +6 -6
- package/src/index.ts +8 -1
- package/src/messageTypes.ts +18 -5
- package/src/opLifecycle/README.md +89 -0
- package/src/opLifecycle/definitions.ts +1 -20
- package/src/opLifecycle/index.ts +3 -9
- package/src/opLifecycle/opCompressor.ts +4 -5
- package/src/opLifecycle/opDecompressor.ts +83 -100
- package/src/opLifecycle/opGroupingManager.ts +9 -12
- package/src/opLifecycle/opSplitter.ts +73 -47
- package/src/opLifecycle/outbox.ts +26 -37
- package/src/opLifecycle/remoteMessageProcessor.ts +41 -55
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +2 -2
- package/src/scheduleManager.ts +8 -7
- package/src/summary/documentSchema.ts +553 -0
- package/src/summary/index.ts +10 -1
- package/src/summary/orderedClientElection.ts +7 -5
- package/src/summary/runWhileConnectedCoordinator.ts +1 -1
- package/src/summary/runningSummarizer.ts +19 -19
- package/src/summary/summarizer.ts +14 -14
- package/src/summary/summarizerClientElection.ts +2 -2
- package/src/summary/summarizerHeuristics.ts +2 -2
- package/src/summary/summarizerNode/summarizerNode.ts +15 -15
- package/src/summary/summarizerNode/summarizerNodeUtils.ts +1 -1
- package/src/summary/summarizerNode/summarizerNodeWithGc.ts +4 -4
- package/src/summary/summarizerTypes.ts +3 -3
- package/src/summary/summaryCollection.ts +3 -3
- package/src/summary/summaryFormat.ts +8 -19
- package/src/summary/summaryGenerator.ts +10 -10
- package/src/summary/summaryManager.ts +4 -4
|
@@ -20,7 +20,6 @@ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
|
20
20
|
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
21
21
|
import { IEnvelope } from '@fluidframework/runtime-definitions';
|
|
22
22
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
23
|
-
import { IEvent as IEvent_2 } from '@fluidframework/common-definitions';
|
|
24
23
|
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
25
24
|
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
26
25
|
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
@@ -100,6 +99,10 @@ export declare enum ContainerMessageType {
|
|
|
100
99
|
* See the [IdCompressor README](./id-compressor/README.md) for more details.
|
|
101
100
|
*/
|
|
102
101
|
IdAllocation = "idAllocation",
|
|
102
|
+
/**
|
|
103
|
+
* An op that changes document schema
|
|
104
|
+
*/
|
|
105
|
+
DocumentSchemaChange = "schema",
|
|
103
106
|
/**
|
|
104
107
|
* Garbage collection specific op. This is sent by the summarizer client when GC runs. It's used to synchronize GC
|
|
105
108
|
* state across all clients.
|
|
@@ -120,7 +123,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
120
123
|
readonly logger: ITelemetryLoggerExt;
|
|
121
124
|
private readonly _storage;
|
|
122
125
|
private readonly createIdCompressor;
|
|
123
|
-
private readonly
|
|
126
|
+
private readonly documentsSchemaController;
|
|
124
127
|
private readonly requestHandler?;
|
|
125
128
|
private readonly summaryConfiguration;
|
|
126
129
|
/**
|
|
@@ -170,9 +173,16 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
170
173
|
get IFluidDataStoreRegistry(): IFluidDataStoreRegistry;
|
|
171
174
|
private readonly _getAttachState;
|
|
172
175
|
get attachState(): AttachState;
|
|
176
|
+
get documentSchema(): {
|
|
177
|
+
explicitSchemaControl?: true | undefined;
|
|
178
|
+
compressionLz4?: true | undefined;
|
|
179
|
+
idCompressorMode?: IdCompressorMode;
|
|
180
|
+
opGroupingEnabled?: true | undefined;
|
|
181
|
+
};
|
|
173
182
|
private _idCompressor;
|
|
174
183
|
private pendingIdCompressorOps;
|
|
175
184
|
private readonly skipSavedCompressorOps;
|
|
185
|
+
get idCompressorMode(): IdCompressorMode;
|
|
176
186
|
/**
|
|
177
187
|
* See IContainerRuntimeBase.idCompressor() for details.
|
|
178
188
|
*/
|
|
@@ -181,7 +191,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
181
191
|
* True if we have ID compressor loading in-flight (async operation). Useful only for
|
|
182
192
|
* this.idCompressorMode === "delayed" mode
|
|
183
193
|
*/
|
|
184
|
-
protected
|
|
194
|
+
protected _loadIdCompressor: Promise<void> | undefined;
|
|
185
195
|
/**
|
|
186
196
|
* See IContainerRuntimeBase.generateDocumentUniqueId() for details.
|
|
187
197
|
*/
|
|
@@ -312,7 +322,8 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
312
322
|
*/
|
|
313
323
|
private readonly snapshotCacheForLoadingGroupIds;
|
|
314
324
|
/***/
|
|
315
|
-
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>,
|
|
325
|
+
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);
|
|
326
|
+
onSchemaChange(schema: IDocumentSchemaCurrent): void;
|
|
316
327
|
getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>) => ISummarizerNodeWithGC;
|
|
317
328
|
deleteChildSummarizerNode(id: string): void;
|
|
318
329
|
makeLocallyVisible(): void;
|
|
@@ -370,6 +381,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
370
381
|
*/
|
|
371
382
|
private parseLocalOpContent;
|
|
372
383
|
private applyStashedOp;
|
|
384
|
+
private loadIdCompressor;
|
|
373
385
|
setConnectionState(connected: boolean, clientId?: string): void;
|
|
374
386
|
private setConnectionStateCore;
|
|
375
387
|
notifyOpReplay(message: ISequencedDocumentMessage): Promise<void>;
|
|
@@ -623,6 +635,15 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
623
635
|
|
|
624
636
|
/* Excluded from this release type: ContainerRuntimeMessage */
|
|
625
637
|
|
|
638
|
+
/**
|
|
639
|
+
* Current version known properties that define document schema
|
|
640
|
+
* This must be bumped whenever the format of document schema or protocol for changing the current document schema changes.
|
|
641
|
+
* Ex: adding a new configuration property (under IDocumentSchema.runtime) does not require changing this version.
|
|
642
|
+
* Ex: Changing the 'document schema acceptance' mechanism from convert-and-swap to one requiring consensus does require changing this version.
|
|
643
|
+
* @alpha
|
|
644
|
+
*/
|
|
645
|
+
export declare const currentDocumentVersionSchema = 1;
|
|
646
|
+
|
|
626
647
|
/* Excluded from this release type: DataStoreContexts */
|
|
627
648
|
|
|
628
649
|
/**
|
|
@@ -632,6 +653,102 @@ export declare const DefaultSummaryConfiguration: ISummaryConfiguration;
|
|
|
632
653
|
|
|
633
654
|
/* Excluded from this release type: detectOutboundReferences */
|
|
634
655
|
|
|
656
|
+
/** @alpha */
|
|
657
|
+
export declare const disabledCompressionConfig: ICompressionRuntimeOptions;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Descripe allowed type for properties in document schema.
|
|
661
|
+
* Please note that for all property types we should use undefined to indicate that particular capability is off.
|
|
662
|
+
* Using false, or some string value (like "off") will result in clients who do not understand that property failing, whereas
|
|
663
|
+
* we want them to continue to collaborate alongside clients who support that capability, but such capability is shipping dark for now.
|
|
664
|
+
* @alpha
|
|
665
|
+
*/
|
|
666
|
+
export declare type DocumentSchemaValueType = string | true | number | undefined;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Controller of document schema.
|
|
670
|
+
*
|
|
671
|
+
* Recommended pre-reading: https://github.com/microsoft/FluidFramework/blob/main/packages/dds/SchemaVersioning.md
|
|
672
|
+
*
|
|
673
|
+
* This class manages current document schema and transitions between document schemas.
|
|
674
|
+
* At the moment, it only focuses on subset of document schema, specifically - how FluidFramework runtime serializes data
|
|
675
|
+
* (summary and op format), features & capabilities that a version of runtime has to support and understand in
|
|
676
|
+
* order to collaborate on a document.
|
|
677
|
+
* New features that modify document format have to be included in document schema definition.
|
|
678
|
+
* Usage of such features could only happen after document schema has been updated to reflect such feature.
|
|
679
|
+
*
|
|
680
|
+
* This formality allows clients that do not understand such features to fail right away when they observe
|
|
681
|
+
* document schema listing capabilities that such client does not understand.
|
|
682
|
+
* Old clients will fail in predictable way. This allows us to
|
|
683
|
+
* 1) Immediately see such issues and adjust if features are enabled too early, before changes have been saturated.
|
|
684
|
+
* 2) There is no way to get to 100% saturation with new code. Even if we have 99.99% saturation, there are
|
|
685
|
+
* still 0.01% of clients who will fail. Failing early and predictably ensures they have no chance to limp along
|
|
686
|
+
* and potentially corrupt the document. This is especially true for summarizer client, who could simply "undo"
|
|
687
|
+
* changes it does not understands.
|
|
688
|
+
*
|
|
689
|
+
* It's important to note how it overlaps with feature gates and safe velocity.
|
|
690
|
+
* If new feature was in use, that resulted in a number of documents referencing such feature in document schema.
|
|
691
|
+
* But, developers (through code deployment or feature gates) could disable usage of such features.
|
|
692
|
+
* That will stop a process of further document schema changes (for documents that were not using such feature).
|
|
693
|
+
* And documents that already list such capability in their schema will continue to do so. Later ensures that old
|
|
694
|
+
* clients who do not understand such feature will continue to fail to open such documents, as such documents very
|
|
695
|
+
* likely contain data in a new format.
|
|
696
|
+
*
|
|
697
|
+
* Users of this class need to use DocumentsSchemaController.sessionSchema to determine what features can be used.
|
|
698
|
+
*
|
|
699
|
+
* There are two modes this class can operate:
|
|
700
|
+
* 1) Legacy mode. In such mode it does not issue any ops to change document schema. Any changes happen implicitly,
|
|
701
|
+
* right away, and new features are available right away
|
|
702
|
+
* 2) Non-legacy mode. In such mode any changes to schema require an op roundtrip. This class will manage such transitions.
|
|
703
|
+
* However code should assume that any new features that were not enabled in a given document will not be available
|
|
704
|
+
* for a given session. That's because this session may never send any ops (including read-only documents). Or it may
|
|
705
|
+
* fail to convert schema.
|
|
706
|
+
* This class promises eventual movement forward. I.e. if new feature is allowed (let's say - through feature gates),
|
|
707
|
+
* then eventually all documents that are modified will have that feature reflected in their schema. It could require
|
|
708
|
+
* multiple reloads / new sessions to get there (depends on if code reacts to schema changes right away, or only consults
|
|
709
|
+
* schema on document load).
|
|
710
|
+
*
|
|
711
|
+
* How schemas are changed (in non-legacy mode):
|
|
712
|
+
* If a client needs to change a schema, it will attempt to do so as part of normal ops sending process.
|
|
713
|
+
* Changes happen in CAS (Compare-and-swap) fashion, i.e. client tells current schema and schema it wants to change to.
|
|
714
|
+
* When a number of clients race to change a schema, then only one of them will win, all others will fail because they will
|
|
715
|
+
* reference old schema that is no longer in effect.
|
|
716
|
+
* Clients can retry, but current implementation is simply - they will not (and will rely on next session / reload to do
|
|
717
|
+
* recalc and decide if schema needs to be changed or not).
|
|
718
|
+
*
|
|
719
|
+
* @alpha
|
|
720
|
+
*/
|
|
721
|
+
export declare class DocumentsSchemaController {
|
|
722
|
+
private readonly onSchemaChange;
|
|
723
|
+
private explicitSchemaControl;
|
|
724
|
+
private sendOp;
|
|
725
|
+
private documentSchema;
|
|
726
|
+
private readonly desiredSchema;
|
|
727
|
+
private futureSchema;
|
|
728
|
+
sessionSchema: IDocumentSchemaCurrent;
|
|
729
|
+
/**
|
|
730
|
+
* Constructs DocumentsSchemaController that controls current schema and processes around it, including changes in schema.
|
|
731
|
+
* @param explicitSchemaControl - Tells if schema changes are done implicitly (without ops - legacy behavior), or go through formal schema change ops process.
|
|
732
|
+
* @param existing - Is the document existing document, or a new doc.
|
|
733
|
+
* @param documentMetadataSchema - current document's schema, if present.
|
|
734
|
+
* @param compressionAlgorithm - desired compression algorith to use
|
|
735
|
+
* @param idCompressorModeArg - desired ID compressor mode to use
|
|
736
|
+
* @param opGroupingEnabled - true if it's desired to use op grouping.
|
|
737
|
+
*/
|
|
738
|
+
constructor(existing: boolean, documentMetadataSchema: IDocumentSchema | undefined, features: IDocumentSchemaFeatures, onSchemaChange: (schema: IDocumentSchemaCurrent) => void);
|
|
739
|
+
summarizeDocumentSchema(refSeq: number): IDocumentSchemaCurrent | undefined;
|
|
740
|
+
onMessageSent(send: (content: IDocumentSchemaChangeMessage) => void): void;
|
|
741
|
+
/**
|
|
742
|
+
* Process document schema change message
|
|
743
|
+
* @param content - content of the message
|
|
744
|
+
* @param local - whether op is local
|
|
745
|
+
* @param sequenceNumber - sequence number of the op
|
|
746
|
+
* @returns - true if schema was accepted, otherwise false (rejected due to failed CAS)
|
|
747
|
+
*/
|
|
748
|
+
processDocumentSchemaOp(content: IDocumentSchemaChangeMessage, local: boolean, sequenceNumber: number): boolean;
|
|
749
|
+
onDisconnect(): void;
|
|
750
|
+
}
|
|
751
|
+
|
|
635
752
|
/**
|
|
636
753
|
* @alpha
|
|
637
754
|
*/
|
|
@@ -820,16 +937,17 @@ export declare interface IConnectableRuntime {
|
|
|
820
937
|
*/
|
|
821
938
|
export declare interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
|
|
822
939
|
readonly summaryFormatVersion: 1;
|
|
940
|
+
/** @deprecated - used by old (prior to 2.0 RC3) runtimes */
|
|
941
|
+
readonly message?: ISummaryMetadataMessage;
|
|
823
942
|
/** The last message processed at the time of summary. Only primitive property types are added to the summary. */
|
|
824
|
-
readonly
|
|
943
|
+
readonly lastMessage?: ISummaryMetadataMessage;
|
|
825
944
|
/** True if channels are not isolated in .channels subtrees, otherwise isolated. */
|
|
826
945
|
readonly disableIsolatedChannels?: true;
|
|
827
946
|
/** The summary number for a container's summary. Incremented on summaries throughout its lifetime. */
|
|
828
947
|
readonly summaryNumber?: number;
|
|
829
948
|
/** GUID to identify a document in telemetry */
|
|
830
949
|
readonly telemetryDocumentId?: string;
|
|
831
|
-
|
|
832
|
-
readonly idCompressorMode?: IdCompressorMode;
|
|
950
|
+
readonly documentSchema?: IDocumentSchema;
|
|
833
951
|
}
|
|
834
952
|
|
|
835
953
|
/**
|
|
@@ -863,7 +981,7 @@ export declare interface IContainerRuntimeOptions {
|
|
|
863
981
|
* If specified, when in FlushMode.TurnBased, if the size of the ops between JS turns exceeds this value,
|
|
864
982
|
* an error will be thrown and the container will close.
|
|
865
983
|
*
|
|
866
|
-
* If unspecified, the limit is
|
|
984
|
+
* If unspecified, the limit is 700Kb.
|
|
867
985
|
*
|
|
868
986
|
* 'Infinity' will disable any limit.
|
|
869
987
|
*
|
|
@@ -910,6 +1028,14 @@ export declare interface IContainerRuntimeOptions {
|
|
|
910
1028
|
* @experimental Not ready for use.
|
|
911
1029
|
*/
|
|
912
1030
|
readonly enableGroupedBatching?: boolean;
|
|
1031
|
+
/**
|
|
1032
|
+
* When this property is set to true, it requires runtime to control is document schema properly through ops
|
|
1033
|
+
* The benefit of this mode is that clients who do not understand schema will fail in predictable way, with predictable message,
|
|
1034
|
+
* and will not attempt to limp along, which could cause data corruptions and crashes in random places.
|
|
1035
|
+
* When this property is not set (or set to false), runtime operates in legacy mode, where new features (modifying document schema)
|
|
1036
|
+
* are engaged as they become available, without giving legacy clients any chance to fail predictably.
|
|
1037
|
+
*/
|
|
1038
|
+
readonly explicitSchemaControl?: boolean;
|
|
913
1039
|
}
|
|
914
1040
|
|
|
915
1041
|
/**
|
|
@@ -929,12 +1055,81 @@ export declare interface ICreateContainerMetadata {
|
|
|
929
1055
|
* "delayed" - ID compressor bundle is loaded only on establishing of first delta connection, i.e. it does not impact boot of cotnainer.
|
|
930
1056
|
* In such mode IContainerRuntime.idCompressor is not made available (unless previous sessions of same document had it "On").
|
|
931
1057
|
* The only thing that is available is IContainerRuntime.generateDocumentUniqueId() that provides opportunistically short IDs.
|
|
932
|
-
*
|
|
1058
|
+
* undefined - ID compressor is not loaded.
|
|
933
1059
|
* While IContainerRuntime.generateDocumentUniqueId() is available, it will produce long IDs that are do not compress well.
|
|
934
1060
|
*
|
|
935
1061
|
* @alpha
|
|
936
1062
|
*/
|
|
937
|
-
export declare type IdCompressorMode = "on" | "delayed" |
|
|
1063
|
+
export declare type IdCompressorMode = "on" | "delayed" | undefined;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Document schema information.
|
|
1067
|
+
* Describes overall shape of document schema, including unknown (to this version) properties.
|
|
1068
|
+
*
|
|
1069
|
+
* Used by runtime to make a call if it can understand document schema.
|
|
1070
|
+
* If it can't, it should not continue with document and immediately fail, preventing random (cryptic) failures
|
|
1071
|
+
* down the road and potentially corrupting documents.
|
|
1072
|
+
* For now this structure and appropriate interpretation / behavior is focused only on runtime features.
|
|
1073
|
+
* In the future that could be interpolated to more areas, including DDSs used, and even possibly - application
|
|
1074
|
+
* schema.
|
|
1075
|
+
*
|
|
1076
|
+
* Runtime will ignore any properties at the root that it does not understand (i.e. IDocumentSchema.app), but will
|
|
1077
|
+
* stop (and fail session) on any unknown properties within "runtime" sub-tree.
|
|
1078
|
+
*
|
|
1079
|
+
* In most cases values preserved in the document will not dictate if such features should be enabled in a given session.
|
|
1080
|
+
* I.e. if compression is mentioned in document schema, this means that runtime version that opens such document must know
|
|
1081
|
+
* how to interpret such ops, but does not need to actually use compression itself. That said, some options could be
|
|
1082
|
+
* sticky, i.e. influence feature selection for all runtimes opening a document. ID compression is one such example.
|
|
1083
|
+
* Currently there is no mechanism to remove feature from this property bag, i.e. once compression was used, even if it's
|
|
1084
|
+
* disabled (through feature gate or code deployment), all existing documents that used compression will continue to fail
|
|
1085
|
+
* if opened by clients who do not support compression.
|
|
1086
|
+
*
|
|
1087
|
+
* For now we are limiting it to just plain properties, and only really simple types, but that can be changed in the future.
|
|
1088
|
+
*
|
|
1089
|
+
* @alpha
|
|
1090
|
+
*/
|
|
1091
|
+
export declare interface IDocumentSchema {
|
|
1092
|
+
version: number;
|
|
1093
|
+
refSeq: number;
|
|
1094
|
+
runtime: Record<string, DocumentSchemaValueType>;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Content of the type=ContainerMessageType.DocumentSchemaChange ops.
|
|
1099
|
+
* The meaning of refSeq field is different in such messages (compared to other usages of IDocumentSchemaCurrent)
|
|
1100
|
+
* ContainerMessageType.DocumentSchemaChange messages use CAS (Compare-and-swap) semantics, and convey
|
|
1101
|
+
* regSeq of last known schema change (known to a client proposing schema change).
|
|
1102
|
+
* @see ContainerRuntimeDocumentSchemaMessage
|
|
1103
|
+
* @alpha
|
|
1104
|
+
*/
|
|
1105
|
+
export declare type IDocumentSchemaChangeMessage = IDocumentSchema;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Current document schema.
|
|
1109
|
+
* @alpha
|
|
1110
|
+
*/
|
|
1111
|
+
export declare type IDocumentSchemaCurrent = {
|
|
1112
|
+
version: 1;
|
|
1113
|
+
refSeq: number;
|
|
1114
|
+
runtime: {
|
|
1115
|
+
[P in keyof IDocumentSchemaFeatures]?: IDocumentSchemaFeatures[P] extends boolean ? true : IDocumentSchemaFeatures[P];
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Settings that this session would like to have, based on options and feature gates.
|
|
1121
|
+
*
|
|
1122
|
+
* WARNING: This type is used to infer IDocumentSchemaCurrent type!
|
|
1123
|
+
* Any changes here (including renaming of properties) are potentially changing document format and should be considered carefully!
|
|
1124
|
+
*
|
|
1125
|
+
* @alpha
|
|
1126
|
+
*/
|
|
1127
|
+
export declare interface IDocumentSchemaFeatures {
|
|
1128
|
+
explicitSchemaControl: boolean;
|
|
1129
|
+
compressionLz4: boolean;
|
|
1130
|
+
idCompressorMode: IdCompressorMode;
|
|
1131
|
+
opGroupingEnabled: boolean;
|
|
1132
|
+
}
|
|
938
1133
|
|
|
939
1134
|
/**
|
|
940
1135
|
* Options to use when enqueueing a summarize attempt.
|
|
@@ -1564,8 +1759,6 @@ export declare type OpActionEventName = MessageType.Summarize | MessageType.Summ
|
|
|
1564
1759
|
|
|
1565
1760
|
/* Excluded from this release type: RuntimeHeaders */
|
|
1566
1761
|
|
|
1567
|
-
/* Excluded from this release type: RuntimeMessage */
|
|
1568
|
-
|
|
1569
1762
|
/**
|
|
1570
1763
|
* The data in summarizer result when submit summary stage fails.
|
|
1571
1764
|
* @alpha
|
|
@@ -20,7 +20,6 @@ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
|
20
20
|
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
21
21
|
import { IEnvelope } from '@fluidframework/runtime-definitions';
|
|
22
22
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
23
|
-
import { IEvent as IEvent_2 } from '@fluidframework/common-definitions';
|
|
24
23
|
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
25
24
|
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
26
25
|
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
@@ -89,12 +88,20 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
89
88
|
|
|
90
89
|
/* Excluded from this release type: CreateChildSummarizerNodeParam */
|
|
91
90
|
|
|
91
|
+
/* Excluded from this release type: currentDocumentVersionSchema */
|
|
92
|
+
|
|
92
93
|
/* Excluded from this release type: DataStoreContexts */
|
|
93
94
|
|
|
94
95
|
/* Excluded from this release type: DefaultSummaryConfiguration */
|
|
95
96
|
|
|
96
97
|
/* Excluded from this release type: detectOutboundReferences */
|
|
97
98
|
|
|
99
|
+
/* Excluded from this release type: disabledCompressionConfig */
|
|
100
|
+
|
|
101
|
+
/* Excluded from this release type: DocumentSchemaValueType */
|
|
102
|
+
|
|
103
|
+
/* Excluded from this release type: DocumentsSchemaController */
|
|
104
|
+
|
|
98
105
|
/* Excluded from this release type: EnqueueSummarizeResult */
|
|
99
106
|
|
|
100
107
|
/* Excluded from this release type: FluidDataStoreContext */
|
|
@@ -153,6 +160,14 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
153
160
|
|
|
154
161
|
/* Excluded from this release type: IdCompressorMode */
|
|
155
162
|
|
|
163
|
+
/* Excluded from this release type: IDocumentSchema */
|
|
164
|
+
|
|
165
|
+
/* Excluded from this release type: IDocumentSchemaChangeMessage */
|
|
166
|
+
|
|
167
|
+
/* Excluded from this release type: IDocumentSchemaCurrent */
|
|
168
|
+
|
|
169
|
+
/* Excluded from this release type: IDocumentSchemaFeatures */
|
|
170
|
+
|
|
156
171
|
/* Excluded from this release type: IDocumentStorageService */
|
|
157
172
|
|
|
158
173
|
/* Excluded from this release type: IEnqueueSummarizeOptions */
|
|
@@ -289,8 +304,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
289
304
|
|
|
290
305
|
/* Excluded from this release type: RuntimeHeaders */
|
|
291
306
|
|
|
292
|
-
/* Excluded from this release type: RuntimeMessage */
|
|
293
|
-
|
|
294
307
|
/* Excluded from this release type: SubmitSummaryFailureData */
|
|
295
308
|
|
|
296
309
|
/* Excluded from this release type: SubmitSummaryResult */
|
|
@@ -20,7 +20,6 @@ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
|
20
20
|
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
21
21
|
import { IEnvelope } from '@fluidframework/runtime-definitions';
|
|
22
22
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
23
|
-
import { IEvent as IEvent_2 } from '@fluidframework/common-definitions';
|
|
24
23
|
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
25
24
|
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
26
25
|
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
@@ -89,12 +88,20 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
89
88
|
|
|
90
89
|
/* Excluded from this release type: CreateChildSummarizerNodeParam */
|
|
91
90
|
|
|
91
|
+
/* Excluded from this release type: currentDocumentVersionSchema */
|
|
92
|
+
|
|
92
93
|
/* Excluded from this release type: DataStoreContexts */
|
|
93
94
|
|
|
94
95
|
/* Excluded from this release type: DefaultSummaryConfiguration */
|
|
95
96
|
|
|
96
97
|
/* Excluded from this release type: detectOutboundReferences */
|
|
97
98
|
|
|
99
|
+
/* Excluded from this release type: disabledCompressionConfig */
|
|
100
|
+
|
|
101
|
+
/* Excluded from this release type: DocumentSchemaValueType */
|
|
102
|
+
|
|
103
|
+
/* Excluded from this release type: DocumentsSchemaController */
|
|
104
|
+
|
|
98
105
|
/* Excluded from this release type: EnqueueSummarizeResult */
|
|
99
106
|
|
|
100
107
|
/* Excluded from this release type: FluidDataStoreContext */
|
|
@@ -153,6 +160,14 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
153
160
|
|
|
154
161
|
/* Excluded from this release type: IdCompressorMode */
|
|
155
162
|
|
|
163
|
+
/* Excluded from this release type: IDocumentSchema */
|
|
164
|
+
|
|
165
|
+
/* Excluded from this release type: IDocumentSchemaChangeMessage */
|
|
166
|
+
|
|
167
|
+
/* Excluded from this release type: IDocumentSchemaCurrent */
|
|
168
|
+
|
|
169
|
+
/* Excluded from this release type: IDocumentSchemaFeatures */
|
|
170
|
+
|
|
156
171
|
/* Excluded from this release type: IDocumentStorageService */
|
|
157
172
|
|
|
158
173
|
/* Excluded from this release type: IEnqueueSummarizeOptions */
|
|
@@ -289,8 +304,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
289
304
|
|
|
290
305
|
/* Excluded from this release type: RuntimeHeaders */
|
|
291
306
|
|
|
292
|
-
/* Excluded from this release type: RuntimeMessage */
|
|
293
|
-
|
|
294
307
|
/* Excluded from this release type: SubmitSummaryFailureData */
|
|
295
308
|
|
|
296
309
|
/* Excluded from this release type: SubmitSummaryResult */
|