@fluidframework/container-runtime 2.41.0-338401 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/container-runtime.test-files.tar +0 -0
- package/dist/channelCollection.d.ts +1 -1
- package/dist/channelCollection.d.ts.map +1 -1
- package/dist/channelCollection.js +4 -4
- package/dist/channelCollection.js.map +1 -1
- package/dist/compatUtils.d.ts +22 -1
- package/dist/compatUtils.d.ts.map +1 -1
- package/dist/compatUtils.js +109 -7
- package/dist/compatUtils.js.map +1 -1
- package/dist/containerRuntime.d.ts +67 -28
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +332 -186
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStore.d.ts.map +1 -1
- package/dist/dataStore.js +5 -0
- package/dist/dataStore.js.map +1 -1
- package/dist/gc/garbageCollection.d.ts.map +1 -1
- package/dist/gc/garbageCollection.js +2 -0
- package/dist/gc/garbageCollection.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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/messageTypes.d.ts +5 -4
- package/dist/messageTypes.d.ts.map +1 -1
- package/dist/messageTypes.js.map +1 -1
- package/dist/metadata.d.ts +1 -1
- package/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js.map +1 -1
- package/dist/opLifecycle/batchManager.d.ts +4 -0
- package/dist/opLifecycle/batchManager.d.ts.map +1 -1
- package/dist/opLifecycle/batchManager.js +7 -0
- package/dist/opLifecycle/batchManager.js.map +1 -1
- package/dist/opLifecycle/definitions.d.ts +6 -5
- package/dist/opLifecycle/definitions.d.ts.map +1 -1
- package/dist/opLifecycle/definitions.js.map +1 -1
- package/dist/opLifecycle/index.d.ts +1 -1
- package/dist/opLifecycle/index.d.ts.map +1 -1
- package/dist/opLifecycle/index.js.map +1 -1
- package/dist/opLifecycle/opGroupingManager.d.ts +9 -0
- package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/dist/opLifecycle/opGroupingManager.js +6 -4
- package/dist/opLifecycle/opGroupingManager.js.map +1 -1
- package/dist/opLifecycle/opSerialization.d.ts +2 -1
- package/dist/opLifecycle/opSerialization.d.ts.map +1 -1
- package/dist/opLifecycle/opSerialization.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts +1 -0
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +6 -1
- package/dist/opLifecycle/outbox.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/pendingStateManager.d.ts +22 -5
- package/dist/pendingStateManager.d.ts.map +1 -1
- package/dist/pendingStateManager.js +34 -11
- package/dist/pendingStateManager.js.map +1 -1
- package/dist/runCounter.d.ts.map +1 -1
- package/dist/runCounter.js +1 -1
- package/dist/runCounter.js.map +1 -1
- package/dist/summary/documentSchema.d.ts +42 -18
- package/dist/summary/documentSchema.d.ts.map +1 -1
- package/dist/summary/documentSchema.js +62 -52
- package/dist/summary/documentSchema.js.map +1 -1
- package/dist/summary/index.d.ts +1 -1
- package/dist/summary/index.d.ts.map +1 -1
- package/dist/summary/index.js.map +1 -1
- package/lib/channelCollection.d.ts +1 -1
- package/lib/channelCollection.d.ts.map +1 -1
- package/lib/channelCollection.js +4 -4
- package/lib/channelCollection.js.map +1 -1
- package/lib/compatUtils.d.ts +22 -1
- package/lib/compatUtils.d.ts.map +1 -1
- package/lib/compatUtils.js +102 -3
- package/lib/compatUtils.js.map +1 -1
- package/lib/containerRuntime.d.ts +67 -28
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +333 -188
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStore.d.ts.map +1 -1
- package/lib/dataStore.js +5 -0
- package/lib/dataStore.js.map +1 -1
- package/lib/gc/garbageCollection.d.ts.map +1 -1
- package/lib/gc/garbageCollection.js +2 -0
- package/lib/gc/garbageCollection.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/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/messageTypes.d.ts +5 -4
- package/lib/messageTypes.d.ts.map +1 -1
- package/lib/messageTypes.js.map +1 -1
- package/lib/metadata.d.ts +1 -1
- package/lib/metadata.d.ts.map +1 -1
- package/lib/metadata.js.map +1 -1
- package/lib/opLifecycle/batchManager.d.ts +4 -0
- package/lib/opLifecycle/batchManager.d.ts.map +1 -1
- package/lib/opLifecycle/batchManager.js +7 -0
- package/lib/opLifecycle/batchManager.js.map +1 -1
- package/lib/opLifecycle/definitions.d.ts +6 -5
- package/lib/opLifecycle/definitions.d.ts.map +1 -1
- package/lib/opLifecycle/definitions.js.map +1 -1
- package/lib/opLifecycle/index.d.ts +1 -1
- package/lib/opLifecycle/index.d.ts.map +1 -1
- package/lib/opLifecycle/index.js.map +1 -1
- package/lib/opLifecycle/opGroupingManager.d.ts +9 -0
- package/lib/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/lib/opLifecycle/opGroupingManager.js +6 -4
- package/lib/opLifecycle/opGroupingManager.js.map +1 -1
- package/lib/opLifecycle/opSerialization.d.ts +2 -1
- package/lib/opLifecycle/opSerialization.d.ts.map +1 -1
- package/lib/opLifecycle/opSerialization.js.map +1 -1
- package/lib/opLifecycle/outbox.d.ts +1 -0
- package/lib/opLifecycle/outbox.d.ts.map +1 -1
- package/lib/opLifecycle/outbox.js +6 -1
- package/lib/opLifecycle/outbox.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/pendingStateManager.d.ts +22 -5
- package/lib/pendingStateManager.d.ts.map +1 -1
- package/lib/pendingStateManager.js +34 -11
- package/lib/pendingStateManager.js.map +1 -1
- package/lib/runCounter.d.ts.map +1 -1
- package/lib/runCounter.js +1 -1
- package/lib/runCounter.js.map +1 -1
- package/lib/summary/documentSchema.d.ts +42 -18
- package/lib/summary/documentSchema.d.ts.map +1 -1
- package/lib/summary/documentSchema.js +62 -52
- package/lib/summary/documentSchema.js.map +1 -1
- package/lib/summary/index.d.ts +1 -1
- package/lib/summary/index.d.ts.map +1 -1
- package/lib/summary/index.js.map +1 -1
- package/package.json +19 -19
- package/src/channelCollection.ts +4 -4
- package/src/compatUtils.ts +145 -10
- package/src/containerRuntime.ts +472 -225
- package/src/dataStore.ts +7 -0
- package/src/gc/garbageCollection.ts +2 -0
- package/src/gc/gcDefinitions.ts +1 -1
- package/src/index.ts +2 -1
- package/src/messageTypes.ts +12 -5
- package/src/metadata.ts +1 -1
- package/src/opLifecycle/batchManager.ts +8 -0
- package/src/opLifecycle/definitions.ts +7 -3
- package/src/opLifecycle/index.ts +1 -0
- package/src/opLifecycle/opGroupingManager.ts +17 -4
- package/src/opLifecycle/opSerialization.ts +6 -1
- package/src/opLifecycle/outbox.ts +8 -1
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +64 -20
- package/src/runCounter.ts +4 -1
- package/src/summary/documentSchema.ts +111 -86
- package/src/summary/index.ts +2 -1
package/dist/compatUtils.d.ts
CHANGED
|
@@ -50,6 +50,12 @@ export type ConfigMap<T extends Record<string, unknown>> = {
|
|
|
50
50
|
[version: MinimumMinorSemanticVersion]: T[K];
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* Generic type for runtimeOptionsAffectingDocSchemaConfigValidationMap
|
|
55
|
+
*/
|
|
56
|
+
export type ConfigValidationMap<T extends Record<string, unknown>> = {
|
|
57
|
+
[K in keyof T]-?: (configValue: T[K]) => SemanticVersion | undefined;
|
|
58
|
+
};
|
|
53
59
|
/**
|
|
54
60
|
* Subset of the {@link ContainerRuntimeOptionsInternal} properties which
|
|
55
61
|
* affect {@link IDocumentSchemaFeatures}.
|
|
@@ -74,10 +80,25 @@ export declare function getMinVersionForCollabDefaults(minVersionForCollab: Mini
|
|
|
74
80
|
/**
|
|
75
81
|
* Returns a default configuration given minVersionForCollab and configuration version map.
|
|
76
82
|
*/
|
|
77
|
-
export declare function
|
|
83
|
+
export declare function getConfigsForMinVersionForCollab<T extends Record<SemanticVersion, unknown>>(minVersionForCollab: SemanticVersion, configMap: ConfigMap<T>): Partial<T>;
|
|
78
84
|
/**
|
|
79
85
|
* Checks if the minVersionForCollab is valid.
|
|
80
86
|
* A valid minVersionForCollab is a MinimumVersionForCollab that is at least `lowestMinVersionForCollab` and less than or equal to the current package version.
|
|
81
87
|
*/
|
|
82
88
|
export declare function isValidMinVersionForCollab(minVersionForCollab: MinimumVersionForCollab): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Validates if the runtime options passed in from the user are compatible with the minVersionForCollab.
|
|
91
|
+
* For example, if a user sets the `enableGroupedBatching` option to true, but the minVersionForCollab
|
|
92
|
+
* is set to "1.0.0", then we should throw a UsageError since 1.x clients do not support batching.
|
|
93
|
+
* */
|
|
94
|
+
export declare function validateRuntimeOptions(minVersionForCollab: MinimumVersionForCollab, runtimeOptions: Partial<ContainerRuntimeOptionsInternal>): void;
|
|
95
|
+
/**
|
|
96
|
+
* Generic function to validate runtime options against the minVersionForCollab.
|
|
97
|
+
*/
|
|
98
|
+
export declare function getValidationForRuntimeOptions<T extends Record<string, unknown>>(minVersionForCollab: SemanticVersion, runtimeOptions: Partial<T>, validationMap: ConfigValidationMap<T>): void;
|
|
99
|
+
/**
|
|
100
|
+
* Helper function to map ContainerRuntimeOptionsInternal config values to
|
|
101
|
+
* minVersionForCollab in {@link runtimeOptionsAffectingDocSchemaConfigValidationMap}.
|
|
102
|
+
*/
|
|
103
|
+
export declare function configValueToMinVersionForCollab<T extends string | number | boolean | undefined | object, Arr extends readonly [T, SemanticVersion][]>(configToMinVer: Arr): (configValue: T) => SemanticVersion | undefined;
|
|
83
104
|
//# sourceMappingURL=compatUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compatUtils.d.ts","sourceRoot":"","sources":["../src/compatUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"compatUtils.d.ts","sourceRoot":"","sources":["../src/compatUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAG7E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,kBACqB,CAAC;AAU7D;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,GAAG,MAAM,IAAI,MAAM,IAAI,GAAG,GAAG,MAAM,eAAe,CAAC;AAE7F;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAChC,GAAG,CAAC,GAAG,CAAC,IAAI,MAAM,IAAI,MAAM,EAAE,GAC9B,GAAG,CAAC,GAAG,CAAC,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACxB,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,GAC/B,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KACzD,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG;QACjB,CAAC,OAAO,EAAE,2BAA2B,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;CACD,CAAC;AAEF;;GAE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AE,eAAe,CAAC,EAAE,EAC1C,cAAc,EAAE,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,KAAK,eAAe,GAAG,SAAS,CAoCtE"}
|
package/dist/compatUtils.js
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.isValidMinVersionForCollab = exports.
|
|
8
|
-
const internal_1 = require("@fluidframework/
|
|
7
|
+
exports.configValueToMinVersionForCollab = exports.getValidationForRuntimeOptions = exports.validateRuntimeOptions = exports.isValidMinVersionForCollab = exports.getConfigsForMinVersionForCollab = exports.getMinVersionForCollabDefaults = exports.defaultMinVersionForCollab = void 0;
|
|
8
|
+
const internal_1 = require("@fluidframework/core-utils/internal");
|
|
9
|
+
const internal_2 = require("@fluidframework/runtime-definitions/internal");
|
|
10
|
+
const internal_3 = require("@fluidframework/telemetry-utils/internal");
|
|
9
11
|
const semver_ts_1 = require("semver-ts");
|
|
10
12
|
const compressionDefinitions_js_1 = require("./compressionDefinitions.js");
|
|
11
13
|
const packageVersion_js_1 = require("./packageVersion.js");
|
|
@@ -87,8 +89,8 @@ const runtimeOptionsAffectingDocSchemaConfigMap = {
|
|
|
87
89
|
// Note: 1.x clients are compatible with TurnBased flushing, but here we elect to remain on Immediate flush mode
|
|
88
90
|
// as a work-around for inability to send batches larger than 1Mb. Immediate flushing keeps batches smaller as
|
|
89
91
|
// fewer messages will be included per flush.
|
|
90
|
-
"1.0.0":
|
|
91
|
-
"2.0.0-defaults":
|
|
92
|
+
"1.0.0": internal_2.FlushMode.Immediate,
|
|
93
|
+
"2.0.0-defaults": internal_2.FlushMode.TurnBased,
|
|
92
94
|
},
|
|
93
95
|
gcOptions: {
|
|
94
96
|
"1.0.0": {},
|
|
@@ -102,17 +104,48 @@ const runtimeOptionsAffectingDocSchemaConfigMap = {
|
|
|
102
104
|
"1.0.0": undefined,
|
|
103
105
|
},
|
|
104
106
|
};
|
|
107
|
+
const runtimeOptionsAffectingDocSchemaConfigValidationMap = {
|
|
108
|
+
enableGroupedBatching: configValueToMinVersionForCollab([
|
|
109
|
+
[false, "1.0.0"],
|
|
110
|
+
[true, "2.0.0-defaults"],
|
|
111
|
+
]),
|
|
112
|
+
compressionOptions: configValueToMinVersionForCollab([
|
|
113
|
+
[{ ...compressionDefinitions_js_1.disabledCompressionConfig }, "1.0.0"],
|
|
114
|
+
[{ ...compressionDefinitions_js_1.enabledCompressionConfig }, "2.0.0-defaults"],
|
|
115
|
+
]),
|
|
116
|
+
enableRuntimeIdCompressor: configValueToMinVersionForCollab([
|
|
117
|
+
[undefined, "1.0.0"],
|
|
118
|
+
["on", "2.0.0-defaults"],
|
|
119
|
+
["delayed", "2.0.0-defaults"],
|
|
120
|
+
]),
|
|
121
|
+
explicitSchemaControl: configValueToMinVersionForCollab([
|
|
122
|
+
[false, "1.0.0"],
|
|
123
|
+
[true, "2.0.0-defaults"],
|
|
124
|
+
]),
|
|
125
|
+
flushMode: configValueToMinVersionForCollab([
|
|
126
|
+
[internal_2.FlushMode.Immediate, "1.0.0"],
|
|
127
|
+
[internal_2.FlushMode.TurnBased, "2.0.0-defaults"],
|
|
128
|
+
]),
|
|
129
|
+
gcOptions: configValueToMinVersionForCollab([
|
|
130
|
+
[{ enableGCSweep: undefined }, "1.0.0"],
|
|
131
|
+
[{ enableGCSweep: true }, "2.0.0-defaults"],
|
|
132
|
+
]),
|
|
133
|
+
createBlobPayloadPending: configValueToMinVersionForCollab([
|
|
134
|
+
[undefined, "1.0.0"],
|
|
135
|
+
[true, "2.40.0"],
|
|
136
|
+
]),
|
|
137
|
+
};
|
|
105
138
|
/**
|
|
106
139
|
* Returns the default RuntimeOptionsAffectingDocSchema configuration for a given minVersionForCollab.
|
|
107
140
|
*/
|
|
108
141
|
function getMinVersionForCollabDefaults(minVersionForCollab) {
|
|
109
|
-
return
|
|
142
|
+
return getConfigsForMinVersionForCollab(minVersionForCollab, runtimeOptionsAffectingDocSchemaConfigMap);
|
|
110
143
|
}
|
|
111
144
|
exports.getMinVersionForCollabDefaults = getMinVersionForCollabDefaults;
|
|
112
145
|
/**
|
|
113
146
|
* Returns a default configuration given minVersionForCollab and configuration version map.
|
|
114
147
|
*/
|
|
115
|
-
function
|
|
148
|
+
function getConfigsForMinVersionForCollab(minVersionForCollab, configMap) {
|
|
116
149
|
const defaultConfigs = {};
|
|
117
150
|
// Iterate over configMap to get default values for each option.
|
|
118
151
|
for (const key of Object.keys(configMap)) {
|
|
@@ -135,7 +168,7 @@ function getConfigsForCompatMode(minVersionForCollab, configMap) {
|
|
|
135
168
|
}
|
|
136
169
|
return defaultConfigs;
|
|
137
170
|
}
|
|
138
|
-
exports.
|
|
171
|
+
exports.getConfigsForMinVersionForCollab = getConfigsForMinVersionForCollab;
|
|
139
172
|
/**
|
|
140
173
|
* Checks if the minVersionForCollab is valid.
|
|
141
174
|
* A valid minVersionForCollab is a MinimumVersionForCollab that is at least `lowestMinVersionForCollab` and less than or equal to the current package version.
|
|
@@ -146,4 +179,73 @@ function isValidMinVersionForCollab(minVersionForCollab) {
|
|
|
146
179
|
(0, semver_ts_1.lte)(minVersionForCollab, packageVersion_js_1.pkgVersion));
|
|
147
180
|
}
|
|
148
181
|
exports.isValidMinVersionForCollab = isValidMinVersionForCollab;
|
|
182
|
+
/**
|
|
183
|
+
* Validates if the runtime options passed in from the user are compatible with the minVersionForCollab.
|
|
184
|
+
* For example, if a user sets the `enableGroupedBatching` option to true, but the minVersionForCollab
|
|
185
|
+
* is set to "1.0.0", then we should throw a UsageError since 1.x clients do not support batching.
|
|
186
|
+
* */
|
|
187
|
+
function validateRuntimeOptions(minVersionForCollab, runtimeOptions) {
|
|
188
|
+
getValidationForRuntimeOptions(minVersionForCollab, runtimeOptions, runtimeOptionsAffectingDocSchemaConfigValidationMap);
|
|
189
|
+
}
|
|
190
|
+
exports.validateRuntimeOptions = validateRuntimeOptions;
|
|
191
|
+
/**
|
|
192
|
+
* Generic function to validate runtime options against the minVersionForCollab.
|
|
193
|
+
*/
|
|
194
|
+
function getValidationForRuntimeOptions(minVersionForCollab, runtimeOptions, validationMap) {
|
|
195
|
+
if (minVersionForCollab === exports.defaultMinVersionForCollab) {
|
|
196
|
+
// If the minVersionForCollab is set to the default value, then we will not validate the runtime options
|
|
197
|
+
// This is to avoid disruption to users who have not yet set the minVersionForCollab value explicitly.
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
// Iterate through each runtime option passed in by the user
|
|
201
|
+
for (const [passedRuntimeOption, passedRuntimeOptionValue] of Object.entries(runtimeOptions)) {
|
|
202
|
+
// Skip if passedRuntimeOption is not in validation map
|
|
203
|
+
if (!(passedRuntimeOption in validationMap)) {
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
const requiredVersion = validationMap[passedRuntimeOption](passedRuntimeOptionValue);
|
|
207
|
+
if (requiredVersion !== undefined && (0, semver_ts_1.gt)(requiredVersion, minVersionForCollab)) {
|
|
208
|
+
throw new internal_3.UsageError(`Runtime option ${passedRuntimeOption}:${JSON.stringify(passedRuntimeOptionValue)} requires ` +
|
|
209
|
+
`runtime version ${requiredVersion}. Please update minVersionForCollab ` +
|
|
210
|
+
`(currently ${minVersionForCollab}) to ${requiredVersion} or later to proceed.`);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
exports.getValidationForRuntimeOptions = getValidationForRuntimeOptions;
|
|
215
|
+
/**
|
|
216
|
+
* Helper function to map ContainerRuntimeOptionsInternal config values to
|
|
217
|
+
* minVersionForCollab in {@link runtimeOptionsAffectingDocSchemaConfigValidationMap}.
|
|
218
|
+
*/
|
|
219
|
+
function configValueToMinVersionForCollab(configToMinVer) {
|
|
220
|
+
const configValueToRequiredVersionMap = new Map(configToMinVer);
|
|
221
|
+
return (configValue) => {
|
|
222
|
+
// If the configValue is not an object then we can get the version required directly from the map.
|
|
223
|
+
if (typeof configValue !== "object") {
|
|
224
|
+
return configValueToRequiredVersionMap.get(configValue);
|
|
225
|
+
}
|
|
226
|
+
// When the input `configValue` is an object, this logic determines the minimum runtime version it requires.
|
|
227
|
+
// It iterates through each entry in `configValueToRequiredVersionMap`. If `possibleConfigValue` shares at
|
|
228
|
+
// least one key-value pair with the input `configValue`, its associated `versionRequired` is collected into
|
|
229
|
+
// `matchingVersions`. After checking all entries, the highest among the collected versions is returned.
|
|
230
|
+
// This represents the overall minimum version required to support the features implied by the input `configValue`.
|
|
231
|
+
const matchingVersions = [];
|
|
232
|
+
for (const [possibleConfigValue, versionRequired,] of configValueToRequiredVersionMap.entries()) {
|
|
233
|
+
(0, internal_1.assert)(typeof possibleConfigValue == "object", 0xbb9 /* possibleConfigValue should be an object */);
|
|
234
|
+
// Check if `possibleConfigValue` and the input `configValue` share at least one
|
|
235
|
+
// common key-value pair. If they do, the `versionRequired` for this `possibleConfigValue`
|
|
236
|
+
// is added to `matchingVersions`.
|
|
237
|
+
if (Object.entries(possibleConfigValue).some(([k, v]) => configValue[k] === v)) {
|
|
238
|
+
matchingVersions.push(versionRequired);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
if (matchingVersions.length > 0) {
|
|
242
|
+
// Return the latest minVersionForCollab among all matches.
|
|
243
|
+
return matchingVersions.sort((a, b) => (0, semver_ts_1.compare)(b, a))[0];
|
|
244
|
+
}
|
|
245
|
+
// If no matches then we return undefined. This means that the config value passed in
|
|
246
|
+
// does not require a specific minVersionForCollab to be valid.
|
|
247
|
+
return undefined;
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
exports.configValueToMinVersionForCollab = configValueToMinVersionForCollab;
|
|
149
251
|
//# sourceMappingURL=compatUtils.js.map
|
package/dist/compatUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compatUtils.js","sourceRoot":"","sources":["../src/compatUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2EAAyE;AACzE,yCAAqD;AAEr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ACvC,CAAC;AATD,wEASC;AAED;;GAEG;AACH,SAAgB,uBAAuB,CACtC,mBAAoC,EACpC,SAAuB;IAEvB,MAAM,cAAc,GAAe,EAAE,CAAC;IACtC,gEAAgE;IAChE,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,SAAS,CAAC,GAAc,CAAC,CAAC;QACzC,yEAAyE;QACzE,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,mBAAO,CAAC,CAAC;QACnD,sHAAsH;QACtH,sHAAsH;QACtH,kFAAkF;QAClF,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAChC,IAAI,IAAA,eAAG,EAAC,mBAAmB,EAAE,OAAO,CAAC,EAAE,CAAC;gBACvC,cAAc,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,OAAsC,CAAC,CAAC;YACtE,CAAC;iBAAM,CAAC;gBACP,6GAA6G;gBAC7G,sBAAsB;gBACtB,MAAM;YACP,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,cAAc,CAAC;AACvB,CAAC;AAxBD,0DAwBC;AAED;;;GAGG;AACH,SAAgB,0BAA0B,CACzC,mBAA4C;IAE5C,OAAO,CACN,IAAA,iBAAK,EAAC,mBAAmB,CAAC,KAAK,IAAI;QACnC,IAAA,eAAG,EAAC,mBAAmB,EAAE,yBAAyB,CAAC;QACnD,IAAA,eAAG,EAAC,mBAAmB,EAAE,8BAAU,CAAC,CACpC,CAAC;AACH,CAAC;AARD,gEAQC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { FlushMode } from \"@fluidframework/runtime-definitions/internal\";\nimport { compare, gte, lte, valid } from \"semver-ts\";\n\nimport {\n\tdisabledCompressionConfig,\n\tenabledCompressionConfig,\n} from \"./compressionDefinitions.js\";\nimport type { ContainerRuntimeOptionsInternal } from \"./containerRuntime.js\";\nimport { pkgVersion } from \"./packageVersion.js\";\n\n/**\n * Our policy is to support N/N-1 compatibility by default, where N is the most\n * recent public major release of the runtime.\n * Therefore, if the customer does not provide a minVersionForCollab, we will\n * default to use N-1.\n *\n * However, this is not consistent with today's behavior. Some options (i.e.\n * batching, compression) are enabled by default despite not being compatible\n * with 1.x clients. Since the policy was introduced during 2.x's lifespan,\n * N/N-1 compatibility by **default** will be in effect starting with 3.0.\n * Importantly though, N/N-2 compatibility is still guaranteed with the proper\n * configurations set.\n *\n * Further to distinguish unspecified `minVersionForCollab` from a specified\n * version and allow `enableExplicitSchemaControl` to default to `true` for\n * any 2.0.0+ version, we will use a special value of `2.0.0-defaults`, which\n * is semantically less than 2.0.0.\n */\nexport const defaultMinVersionForCollab =\n\t\"2.0.0-defaults\" as const satisfies MinimumVersionForCollab;\n\n/**\n * We don't want allow a version before the major public release of the LTS version.\n * Today we use \"1.0.0\", because our policy supports N/N-1 & N/N-2, which includes\n * all minor versions of N. Though LTS starts at 1.4.0, we should stay consistent\n * with our policy and allow all 1.x versions to be compatible with 2.x.\n */\nconst lowestMinVersionForCollab = \"1.0.0\" as const satisfies MinimumVersionForCollab;\n\n/**\n * String in a valid semver format specifying bottom of a minor version\n * or special \"defaults\" prerelease of a major.\n * @remarks Only 2.0.0-defaults is expected, but index signatures cannot be a\n * literal; so, just allow any major -defaults prerelease.\n */\nexport type MinimumMinorSemanticVersion = `${bigint}.${bigint}.0` | `${bigint}.0.0-defaults`;\n\n/**\n * String in a valid semver format of a specific version at least specifying minor.\n *\n * @legacy\n * @alpha\n */\nexport type MinimumVersionForCollab =\n\t| `${1 | 2}.${bigint}.${bigint}`\n\t| `${1 | 2}.${bigint}.${bigint}-${string}`;\n\n/**\n * String in a valid semver format of a specific version at least specifying minor.\n * Unlike {@link MinimumVersionForCollab}, this type allows any bigint for the major version.\n * Used as a more generic type that allows major versions other than 1 or 2.\n */\nexport type SemanticVersion =\n\t| `${bigint}.${bigint}.${bigint}`\n\t| `${bigint}.${bigint}.${bigint}-${string}`;\n\n/**\n * Generic type for runtimeOptionsAffectingDocSchemaConfigMap\n */\nexport type ConfigMap<T extends Record<string, unknown>> = {\n\t[K in keyof T]-?: {\n\t\t[version: MinimumMinorSemanticVersion]: T[K];\n\t};\n};\n\n/**\n * Subset of the {@link ContainerRuntimeOptionsInternal} properties which\n * affect {@link IDocumentSchemaFeatures}.\n *\n * @remarks\n * When a new option is added to {@link ContainerRuntimeOptionsInternal}, we\n * must consider if it changes the DocumentSchema. If so, then a corresponding\n * entry must be added to {@link runtimeOptionsAffectingDocSchemaConfigMap}\n * below. If not, then it must be omitted from this type.\n *\n * Note: `Omit` is used instead of `Pick` to ensure that all new options are\n * included in this type by default. If any new properties are added to\n * {@link ContainerRuntimeOptionsInternal}, they will be included in this\n * type unless explicitly omitted. This will prevent us from forgetting to\n * account for any new properties in the future.\n */\nexport type RuntimeOptionsAffectingDocSchema = Omit<\n\tContainerRuntimeOptionsInternal,\n\t| \"chunkSizeInBytes\"\n\t| \"maxBatchSizeInBytes\"\n\t| \"loadSequenceNumberVerification\"\n\t| \"summaryOptions\"\n>;\n\n/**\n * Mapping of RuntimeOptionsAffectingDocSchema to their compatibility related configs.\n *\n * Each key in this map corresponds to a property in RuntimeOptionsAffectingDocSchema. The value is an object that maps MinimumVersionForCollab\n * to the appropriate default value for that property to supporting that MinimumVersionForCollab. If clients running MinimumVersionForCollab X are able to understand\n * the format changes introduced by the property, then the default value for that MinimumVersionForCollab will enable the feature associated with the property.\n * Otherwise, the feature will be disabled.\n *\n * For example if the minVersionForCollab is a 1.x version (i.e. \"1.5.0\"), then the default value for `enableGroupedBatching` will be false since 1.x\n * clients do not understand the document format when batching is enabled. If the minVersionForCollab is a 2.x client (i.e. \"2.0.0\" or later), then the\n * default value for `enableGroupedBatching` will be true because clients running 2.0 or later will be able to understand the format changes associated\n * with the batching feature.\n */\nconst runtimeOptionsAffectingDocSchemaConfigMap = {\n\tenableGroupedBatching: {\n\t\t\"1.0.0\": false,\n\t\t\"2.0.0-defaults\": true,\n\t} as const,\n\tcompressionOptions: {\n\t\t\"1.0.0\": disabledCompressionConfig,\n\t\t\"2.0.0-defaults\": enabledCompressionConfig,\n\t} as const,\n\tenableRuntimeIdCompressor: {\n\t\t// For IdCompressorMode, `undefined` represents a logical state (off).\n\t\t// However, to satisfy the Required<> constraint while\n\t\t// `exactOptionalPropertyTypes` is `false` (TODO: AB#8215), we need\n\t\t// to have it defined, so we trick the type checker here.\n\t\t\"1.0.0\": undefined,\n\t\t// We do not yet want to enable idCompressor by default since it will\n\t\t// increase bundle sizes, and not all customers will benefit from it.\n\t\t// Therefore, we will require customers to explicitly enable it. We\n\t\t// are keeping it as a DocSchema affecting option for now as this may\n\t\t// change in the future.\n\t} as const,\n\texplicitSchemaControl: {\n\t\t\"1.0.0\": false,\n\t\t// This option's intention is to prevent 1.x clients from joining sessions\n\t\t// when enabled. This is set to true when the minVersionForCollab is set\n\t\t// to >=2.0.0 (explicitly). This is different than other 2.0 defaults\n\t\t// because it was not enabled by default prior to the implementation of\n\t\t// `minVersionForCollab`.\n\t\t// `defaultMinVersionForCollab` is set to \"2.0.0-defaults\" which \"2.0.0\"\n\t\t// does not satisfy to avoiding enabling this option by default as of\n\t\t// `minVersionForCollab` introduction, which could be unexpected.\n\t\t// Only enable as a default when `minVersionForCollab` is specified at\n\t\t// 2.0.0+.\n\t\t\"2.0.0\": true,\n\t} as const,\n\tflushMode: {\n\t\t// Note: 1.x clients are compatible with TurnBased flushing, but here we elect to remain on Immediate flush mode\n\t\t// as a work-around for inability to send batches larger than 1Mb. Immediate flushing keeps batches smaller as\n\t\t// fewer messages will be included per flush.\n\t\t\"1.0.0\": FlushMode.Immediate,\n\t\t\"2.0.0-defaults\": FlushMode.TurnBased,\n\t} as const,\n\tgcOptions: {\n\t\t\"1.0.0\": {},\n\t\t// Although sweep is supported in 2.x, it is disabled by default until minVersionForCollab>=3.0.0 to be extra safe.\n\t\t\"3.0.0\": { enableGCSweep: true },\n\t} as const,\n\tcreateBlobPayloadPending: {\n\t\t// This feature is new and disabled by default. In the future we will enable it by default, but we have not\n\t\t// closed on the version where that will happen yet. Probably a .10 release since blob functionality is not\n\t\t// exposed on the `@public` API surface.\n\t\t\"1.0.0\": undefined,\n\t} as const,\n} as const satisfies ConfigMap<RuntimeOptionsAffectingDocSchema>;\n\n/**\n * Returns the default RuntimeOptionsAffectingDocSchema configuration for a given minVersionForCollab.\n */\nexport function getMinVersionForCollabDefaults(\n\tminVersionForCollab: MinimumVersionForCollab,\n): RuntimeOptionsAffectingDocSchema {\n\treturn getConfigsForCompatMode(\n\t\tminVersionForCollab,\n\t\truntimeOptionsAffectingDocSchemaConfigMap,\n\t\t// This is a bad cast away from Partial that getConfigsForCompatMode provides.\n\t\t// ConfigMap should be restructured to provide RuntimeOptionsAffectingDocSchema guarantee.\n\t) as RuntimeOptionsAffectingDocSchema;\n}\n\n/**\n * Returns a default configuration given minVersionForCollab and configuration version map.\n */\nexport function getConfigsForCompatMode<T extends Record<SemanticVersion, unknown>>(\n\tminVersionForCollab: SemanticVersion,\n\tconfigMap: ConfigMap<T>,\n): Partial<T> {\n\tconst defaultConfigs: Partial<T> = {};\n\t// Iterate over configMap to get default values for each option.\n\tfor (const key of Object.keys(configMap)) {\n\t\tconst config = configMap[key as keyof T];\n\t\t// Sort the versions in ascending order so we can short circuit the loop.\n\t\tconst versions = Object.keys(config).sort(compare);\n\t\t// For each config, we iterate over the keys and check if minVersionForCollab is greater than or equal to the version.\n\t\t// If so, we set it as the default value for the option. At the end of the loop we should have the most recent default\n\t\t// value that is compatible with the version specified as the minVersionForCollab.\n\t\tfor (const version of versions) {\n\t\t\tif (gte(minVersionForCollab, version)) {\n\t\t\t\tdefaultConfigs[key] = config[version as MinimumMinorSemanticVersion];\n\t\t\t} else {\n\t\t\t\t// If the minVersionForCollab is less than the version, we break out of the loop since we don't need to check\n\t\t\t\t// any later versions.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn defaultConfigs;\n}\n\n/**\n * Checks if the minVersionForCollab is valid.\n * A valid minVersionForCollab is a MinimumVersionForCollab that is at least `lowestMinVersionForCollab` and less than or equal to the current package version.\n */\nexport function isValidMinVersionForCollab(\n\tminVersionForCollab: MinimumVersionForCollab,\n): boolean {\n\treturn (\n\t\tvalid(minVersionForCollab) !== null &&\n\t\tgte(minVersionForCollab, lowestMinVersionForCollab) &&\n\t\tlte(minVersionForCollab, pkgVersion)\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"compatUtils.js","sourceRoot":"","sources":["../src/compatUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,kEAA6D;AAC7D,2EAAyE;AACzE,uEAAsE;AACtE,yCAAyD;AAEzD,2EAGqC;AAErC,2DAAiD;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,0BAA0B,GACtC,gBAA2D,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,yBAAyB,GAAG,OAAkD,CAAC;AAqErF;;;;;;;;;;;;GAYG;AACH,MAAM,yCAAyC,GAAG;IACjD,qBAAqB,EAAE;QACtB,OAAO,EAAE,KAAK;QACd,gBAAgB,EAAE,IAAI;KACtB;IACD,kBAAkB,EAAE;QACnB,OAAO,EAAE,qDAAyB;QAClC,gBAAgB,EAAE,oDAAwB;KAC1C;IACD,yBAAyB,EAAE;QAC1B,sEAAsE;QACtE,sDAAsD;QACtD,mEAAmE;QACnE,yDAAyD;QACzD,OAAO,EAAE,SAAS;QAClB,qEAAqE;QACrE,qEAAqE;QACrE,mEAAmE;QACnE,qEAAqE;QACrE,wBAAwB;KACxB;IACD,qBAAqB,EAAE;QACtB,OAAO,EAAE,KAAK;QACd,0EAA0E;QAC1E,wEAAwE;QACxE,qEAAqE;QACrE,uEAAuE;QACvE,yBAAyB;QACzB,wEAAwE;QACxE,qEAAqE;QACrE,iEAAiE;QACjE,sEAAsE;QACtE,UAAU;Q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,WAAW,KAAK,QAAQ,EAAE,CAAC;YACrC,OAAO,+BAA+B,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzD,CAAC;QACD,4GAA4G;QAC5G,0GAA0G;QAC1G,4GAA4G;QAC5G,wGAAwG;QACxG,mHAAmH;QACnH,MAAM,gBAAgB,GAAsB,EAAE,CAAC;QAC/C,KAAK,MAAM,CACV,mBAAmB,EACnB,eAAe,EACf,IAAI,+BAA+B,CAAC,OAAO,EAAE,EAAE,CAAC;YAChD,IAAA,iBAAM,EACL,OAAO,mBAAmB,IAAI,QAAQ,EACtC,KAAK,CAAC,6CAA6C,CACnD,CAAC;YACF,gFAAgF;YAChF,0FAA0F;YAC1F,kCAAkC;YAClC,IAAI,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;gBAChF,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YACxC,CAAC;QACF,CAAC;QACD,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACjC,2DAA2D;YAC3D,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,mBAAO,EAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,CAAC;QACD,qFAAqF;QACrF,+DAA+D;QAC/D,OAAO,SAAS,CAAC;IAClB,CAAC,CAAC;AACH,CAAC;AAvCD,4EAuCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert } from \"@fluidframework/core-utils/internal\";\nimport { FlushMode } from \"@fluidframework/runtime-definitions/internal\";\nimport { UsageError } from \"@fluidframework/telemetry-utils/internal\";\nimport { compare, gt, gte, lte, valid } from \"semver-ts\";\n\nimport {\n\tdisabledCompressionConfig,\n\tenabledCompressionConfig,\n} from \"./compressionDefinitions.js\";\nimport type { ContainerRuntimeOptionsInternal } from \"./containerRuntime.js\";\nimport { pkgVersion } from \"./packageVersion.js\";\n\n/**\n * Our policy is to support N/N-1 compatibility by default, where N is the most\n * recent public major release of the runtime.\n * Therefore, if the customer does not provide a minVersionForCollab, we will\n * default to use N-1.\n *\n * However, this is not consistent with today's behavior. Some options (i.e.\n * batching, compression) are enabled by default despite not being compatible\n * with 1.x clients. Since the policy was introduced during 2.x's lifespan,\n * N/N-1 compatibility by **default** will be in effect starting with 3.0.\n * Importantly though, N/N-2 compatibility is still guaranteed with the proper\n * configurations set.\n *\n * Further to distinguish unspecified `minVersionForCollab` from a specified\n * version and allow `enableExplicitSchemaControl` to default to `true` for\n * any 2.0.0+ version, we will use a special value of `2.0.0-defaults`, which\n * is semantically less than 2.0.0.\n */\nexport const defaultMinVersionForCollab =\n\t\"2.0.0-defaults\" as const satisfies MinimumVersionForCollab;\n\n/**\n * We don't want allow a version before the major public release of the LTS version.\n * Today we use \"1.0.0\", because our policy supports N/N-1 & N/N-2, which includes\n * all minor versions of N. Though LTS starts at 1.4.0, we should stay consistent\n * with our policy and allow all 1.x versions to be compatible with 2.x.\n */\nconst lowestMinVersionForCollab = \"1.0.0\" as const satisfies MinimumVersionForCollab;\n\n/**\n * String in a valid semver format specifying bottom of a minor version\n * or special \"defaults\" prerelease of a major.\n * @remarks Only 2.0.0-defaults is expected, but index signatures cannot be a\n * literal; so, just allow any major -defaults prerelease.\n */\nexport type MinimumMinorSemanticVersion = `${bigint}.${bigint}.0` | `${bigint}.0.0-defaults`;\n\n/**\n * String in a valid semver format of a specific version at least specifying minor.\n *\n * @legacy\n * @alpha\n */\nexport type MinimumVersionForCollab =\n\t| `${1 | 2}.${bigint}.${bigint}`\n\t| `${1 | 2}.${bigint}.${bigint}-${string}`;\n\n/**\n * String in a valid semver format of a specific version at least specifying minor.\n * Unlike {@link MinimumVersionForCollab}, this type allows any bigint for the major version.\n * Used as a more generic type that allows major versions other than 1 or 2.\n */\nexport type SemanticVersion =\n\t| `${bigint}.${bigint}.${bigint}`\n\t| `${bigint}.${bigint}.${bigint}-${string}`;\n\n/**\n * Generic type for runtimeOptionsAffectingDocSchemaConfigMap\n */\nexport type ConfigMap<T extends Record<string, unknown>> = {\n\t[K in keyof T]-?: {\n\t\t[version: MinimumMinorSemanticVersion]: T[K];\n\t};\n};\n\n/**\n * Generic type for runtimeOptionsAffectingDocSchemaConfigValidationMap\n */\nexport type ConfigValidationMap<T extends Record<string, unknown>> = {\n\t[K in keyof T]-?: (configValue: T[K]) => SemanticVersion | undefined;\n};\n\n/**\n * Subset of the {@link ContainerRuntimeOptionsInternal} properties which\n * affect {@link IDocumentSchemaFeatures}.\n *\n * @remarks\n * When a new option is added to {@link ContainerRuntimeOptionsInternal}, we\n * must consider if it changes the DocumentSchema. If so, then a corresponding\n * entry must be added to {@link runtimeOptionsAffectingDocSchemaConfigMap}\n * below. If not, then it must be omitted from this type.\n *\n * Note: `Omit` is used instead of `Pick` to ensure that all new options are\n * included in this type by default. If any new properties are added to\n * {@link ContainerRuntimeOptionsInternal}, they will be included in this\n * type unless explicitly omitted. This will prevent us from forgetting to\n * account for any new properties in the future.\n */\nexport type RuntimeOptionsAffectingDocSchema = Omit<\n\tContainerRuntimeOptionsInternal,\n\t| \"chunkSizeInBytes\"\n\t| \"maxBatchSizeInBytes\"\n\t| \"loadSequenceNumberVerification\"\n\t| \"summaryOptions\"\n>;\n\n/**\n * Mapping of RuntimeOptionsAffectingDocSchema to their compatibility related configs.\n *\n * Each key in this map corresponds to a property in RuntimeOptionsAffectingDocSchema. The value is an object that maps MinimumVersionForCollab\n * to the appropriate default value for that property to supporting that MinimumVersionForCollab. If clients running MinimumVersionForCollab X are able to understand\n * the format changes introduced by the property, then the default value for that MinimumVersionForCollab will enable the feature associated with the property.\n * Otherwise, the feature will be disabled.\n *\n * For example if the minVersionForCollab is a 1.x version (i.e. \"1.5.0\"), then the default value for `enableGroupedBatching` will be false since 1.x\n * clients do not understand the document format when batching is enabled. If the minVersionForCollab is a 2.x client (i.e. \"2.0.0\" or later), then the\n * default value for `enableGroupedBatching` will be true because clients running 2.0 or later will be able to understand the format changes associated\n * with the batching feature.\n */\nconst runtimeOptionsAffectingDocSchemaConfigMap = {\n\tenableGroupedBatching: {\n\t\t\"1.0.0\": false,\n\t\t\"2.0.0-defaults\": true,\n\t},\n\tcompressionOptions: {\n\t\t\"1.0.0\": disabledCompressionConfig,\n\t\t\"2.0.0-defaults\": enabledCompressionConfig,\n\t},\n\tenableRuntimeIdCompressor: {\n\t\t// For IdCompressorMode, `undefined` represents a logical state (off).\n\t\t// However, to satisfy the Required<> constraint while\n\t\t// `exactOptionalPropertyTypes` is `false` (TODO: AB#8215), we need\n\t\t// to have it defined, so we trick the type checker here.\n\t\t\"1.0.0\": undefined,\n\t\t// We do not yet want to enable idCompressor by default since it will\n\t\t// increase bundle sizes, and not all customers will benefit from it.\n\t\t// Therefore, we will require customers to explicitly enable it. We\n\t\t// are keeping it as a DocSchema affecting option for now as this may\n\t\t// change in the future.\n\t},\n\texplicitSchemaControl: {\n\t\t\"1.0.0\": false,\n\t\t// This option's intention is to prevent 1.x clients from joining sessions\n\t\t// when enabled. This is set to true when the minVersionForCollab is set\n\t\t// to >=2.0.0 (explicitly). This is different than other 2.0 defaults\n\t\t// because it was not enabled by default prior to the implementation of\n\t\t// `minVersionForCollab`.\n\t\t// `defaultMinVersionForCollab` is set to \"2.0.0-defaults\" which \"2.0.0\"\n\t\t// does not satisfy to avoiding enabling this option by default as of\n\t\t// `minVersionForCollab` introduction, which could be unexpected.\n\t\t// Only enable as a default when `minVersionForCollab` is specified at\n\t\t// 2.0.0+.\n\t\t\"2.0.0\": true,\n\t},\n\tflushMode: {\n\t\t// Note: 1.x clients are compatible with TurnBased flushing, but here we elect to remain on Immediate flush mode\n\t\t// as a work-around for inability to send batches larger than 1Mb. Immediate flushing keeps batches smaller as\n\t\t// fewer messages will be included per flush.\n\t\t\"1.0.0\": FlushMode.Immediate,\n\t\t\"2.0.0-defaults\": FlushMode.TurnBased,\n\t},\n\tgcOptions: {\n\t\t\"1.0.0\": {},\n\t\t// Although sweep is supported in 2.x, it is disabled by default until minVersionForCollab>=3.0.0 to be extra safe.\n\t\t\"3.0.0\": { enableGCSweep: true },\n\t},\n\tcreateBlobPayloadPending: {\n\t\t// This feature is new and disabled by default. In the future we will enable it by default, but we have not\n\t\t// closed on the version where that will happen yet. Probably a .10 release since blob functionality is not\n\t\t// exposed on the `@public` API surface.\n\t\t\"1.0.0\": undefined,\n\t},\n} as const satisfies ConfigMap<RuntimeOptionsAffectingDocSchema>;\n\nconst runtimeOptionsAffectingDocSchemaConfigValidationMap = {\n\tenableGroupedBatching: configValueToMinVersionForCollab([\n\t\t[false, \"1.0.0\"],\n\t\t[true, \"2.0.0-defaults\"],\n\t]),\n\tcompressionOptions: configValueToMinVersionForCollab([\n\t\t[{ ...disabledCompressionConfig }, \"1.0.0\"],\n\t\t[{ ...enabledCompressionConfig }, \"2.0.0-defaults\"],\n\t]),\n\tenableRuntimeIdCompressor: configValueToMinVersionForCollab([\n\t\t[undefined, \"1.0.0\"],\n\t\t[\"on\", \"2.0.0-defaults\"],\n\t\t[\"delayed\", \"2.0.0-defaults\"],\n\t]),\n\texplicitSchemaControl: configValueToMinVersionForCollab([\n\t\t[false, \"1.0.0\"],\n\t\t[true, \"2.0.0-defaults\"],\n\t]),\n\tflushMode: configValueToMinVersionForCollab([\n\t\t[FlushMode.Immediate, \"1.0.0\"],\n\t\t[FlushMode.TurnBased, \"2.0.0-defaults\"],\n\t]),\n\tgcOptions: configValueToMinVersionForCollab([\n\t\t[{ enableGCSweep: undefined }, \"1.0.0\"],\n\t\t[{ enableGCSweep: true }, \"2.0.0-defaults\"],\n\t]),\n\tcreateBlobPayloadPending: configValueToMinVersionForCollab([\n\t\t[undefined, \"1.0.0\"],\n\t\t[true, \"2.40.0\"],\n\t]),\n} as const satisfies ConfigValidationMap<RuntimeOptionsAffectingDocSchema>;\n\n/**\n * Returns the default RuntimeOptionsAffectingDocSchema configuration for a given minVersionForCollab.\n */\nexport function getMinVersionForCollabDefaults(\n\tminVersionForCollab: MinimumVersionForCollab,\n): RuntimeOptionsAffectingDocSchema {\n\treturn getConfigsForMinVersionForCollab(\n\t\tminVersionForCollab,\n\t\truntimeOptionsAffectingDocSchemaConfigMap,\n\t\t// This is a bad cast away from Partial that getConfigsForCompatMode provides.\n\t\t// ConfigMap should be restructured to provide RuntimeOptionsAffectingDocSchema guarantee.\n\t) as RuntimeOptionsAffectingDocSchema;\n}\n\n/**\n * Returns a default configuration given minVersionForCollab and configuration version map.\n */\nexport function getConfigsForMinVersionForCollab<T extends Record<SemanticVersion, unknown>>(\n\tminVersionForCollab: SemanticVersion,\n\tconfigMap: ConfigMap<T>,\n): Partial<T> {\n\tconst defaultConfigs: Partial<T> = {};\n\t// Iterate over configMap to get default values for each option.\n\tfor (const key of Object.keys(configMap)) {\n\t\tconst config = configMap[key as keyof T];\n\t\t// Sort the versions in ascending order so we can short circuit the loop.\n\t\tconst versions = Object.keys(config).sort(compare);\n\t\t// For each config, we iterate over the keys and check if minVersionForCollab is greater than or equal to the version.\n\t\t// If so, we set it as the default value for the option. At the end of the loop we should have the most recent default\n\t\t// value that is compatible with the version specified as the minVersionForCollab.\n\t\tfor (const version of versions) {\n\t\t\tif (gte(minVersionForCollab, version)) {\n\t\t\t\tdefaultConfigs[key] = config[version as MinimumMinorSemanticVersion];\n\t\t\t} else {\n\t\t\t\t// If the minVersionForCollab is less than the version, we break out of the loop since we don't need to check\n\t\t\t\t// any later versions.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn defaultConfigs;\n}\n\n/**\n * Checks if the minVersionForCollab is valid.\n * A valid minVersionForCollab is a MinimumVersionForCollab that is at least `lowestMinVersionForCollab` and less than or equal to the current package version.\n */\nexport function isValidMinVersionForCollab(\n\tminVersionForCollab: MinimumVersionForCollab,\n): boolean {\n\treturn (\n\t\tvalid(minVersionForCollab) !== null &&\n\t\tgte(minVersionForCollab, lowestMinVersionForCollab) &&\n\t\tlte(minVersionForCollab, pkgVersion)\n\t);\n}\n\n/**\n * Validates if the runtime options passed in from the user are compatible with the minVersionForCollab.\n * For example, if a user sets the `enableGroupedBatching` option to true, but the minVersionForCollab\n * is set to \"1.0.0\", then we should throw a UsageError since 1.x clients do not support batching.\n * */\nexport function validateRuntimeOptions(\n\tminVersionForCollab: MinimumVersionForCollab,\n\truntimeOptions: Partial<ContainerRuntimeOptionsInternal>,\n): void {\n\tgetValidationForRuntimeOptions<RuntimeOptionsAffectingDocSchema>(\n\t\tminVersionForCollab,\n\t\truntimeOptions as Partial<RuntimeOptionsAffectingDocSchema>,\n\t\truntimeOptionsAffectingDocSchemaConfigValidationMap,\n\t);\n}\n\n/**\n * Generic function to validate runtime options against the minVersionForCollab.\n */\nexport function getValidationForRuntimeOptions<T extends Record<string, unknown>>(\n\tminVersionForCollab: SemanticVersion,\n\truntimeOptions: Partial<T>,\n\tvalidationMap: ConfigValidationMap<T>,\n): void {\n\tif (minVersionForCollab === defaultMinVersionForCollab) {\n\t\t// If the minVersionForCollab is set to the default value, then we will not validate the runtime options\n\t\t// This is to avoid disruption to users who have not yet set the minVersionForCollab value explicitly.\n\t\treturn;\n\t}\n\t// Iterate through each runtime option passed in by the user\n\tfor (const [passedRuntimeOption, passedRuntimeOptionValue] of Object.entries(\n\t\truntimeOptions,\n\t) as [keyof T & string, T[keyof T & string]][]) {\n\t\t// Skip if passedRuntimeOption is not in validation map\n\t\tif (!(passedRuntimeOption in validationMap)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst requiredVersion = validationMap[passedRuntimeOption](passedRuntimeOptionValue);\n\t\tif (requiredVersion !== undefined && gt(requiredVersion, minVersionForCollab)) {\n\t\t\tthrow new UsageError(\n\t\t\t\t`Runtime option ${passedRuntimeOption}:${JSON.stringify(passedRuntimeOptionValue)} requires ` +\n\t\t\t\t\t`runtime version ${requiredVersion}. Please update minVersionForCollab ` +\n\t\t\t\t\t`(currently ${minVersionForCollab}) to ${requiredVersion} or later to proceed.`,\n\t\t\t);\n\t\t}\n\t}\n}\n\n/**\n * Helper function to map ContainerRuntimeOptionsInternal config values to\n * minVersionForCollab in {@link runtimeOptionsAffectingDocSchemaConfigValidationMap}.\n */\nexport function configValueToMinVersionForCollab<\n\tT extends string | number | boolean | undefined | object,\n\tArr extends readonly [T, SemanticVersion][],\n>(configToMinVer: Arr): (configValue: T) => SemanticVersion | undefined {\n\tconst configValueToRequiredVersionMap = new Map(configToMinVer);\n\treturn (configValue: T) => {\n\t\t// If the configValue is not an object then we can get the version required directly from the map.\n\t\tif (typeof configValue !== \"object\") {\n\t\t\treturn configValueToRequiredVersionMap.get(configValue);\n\t\t}\n\t\t// When the input `configValue` is an object, this logic determines the minimum runtime version it requires.\n\t\t// It iterates through each entry in `configValueToRequiredVersionMap`. If `possibleConfigValue` shares at\n\t\t// least one key-value pair with the input `configValue`, its associated `versionRequired` is collected into\n\t\t// `matchingVersions`. After checking all entries, the highest among the collected versions is returned.\n\t\t// This represents the overall minimum version required to support the features implied by the input `configValue`.\n\t\tconst matchingVersions: SemanticVersion[] = [];\n\t\tfor (const [\n\t\t\tpossibleConfigValue,\n\t\t\tversionRequired,\n\t\t] of configValueToRequiredVersionMap.entries()) {\n\t\t\tassert(\n\t\t\t\ttypeof possibleConfigValue == \"object\",\n\t\t\t\t0xbb9 /* possibleConfigValue should be an object */,\n\t\t\t);\n\t\t\t// Check if `possibleConfigValue` and the input `configValue` share at least one\n\t\t\t// common key-value pair. If they do, the `versionRequired` for this `possibleConfigValue`\n\t\t\t// is added to `matchingVersions`.\n\t\t\tif (Object.entries(possibleConfigValue).some(([k, v]) => configValue[k] === v)) {\n\t\t\t\tmatchingVersions.push(versionRequired);\n\t\t\t}\n\t\t}\n\t\tif (matchingVersions.length > 0) {\n\t\t\t// Return the latest minVersionForCollab among all matches.\n\t\t\treturn matchingVersions.sort((a, b) => compare(b, a))[0];\n\t\t}\n\t\t// If no matches then we return undefined. This means that the config value passed in\n\t\t// does not require a specific minVersionForCollab to be valid.\n\t\treturn undefined;\n\t};\n}\n"]}
|
|
@@ -7,9 +7,9 @@ import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
|
7
7
|
import type { IAudience, ICriticalContainerError } from "@fluidframework/container-definitions";
|
|
8
8
|
import { AttachState } from "@fluidframework/container-definitions";
|
|
9
9
|
import type { IContainerContext, IGetPendingLocalStateProps, IRuntime, IDeltaManager } from "@fluidframework/container-definitions/internal";
|
|
10
|
-
import type { IContainerRuntime, IContainerRuntimeEvents } from "@fluidframework/container-runtime-definitions/internal";
|
|
10
|
+
import type { ContainerExtensionFactory, ContainerExtensionId, ExtensionRuntimeProperties, IContainerRuntime, IContainerRuntimeEvents, IContainerRuntimeInternal, IContainerRuntimeWithResolveHandle_Deprecated } from "@fluidframework/container-runtime-definitions/internal";
|
|
11
11
|
import type { FluidObject, IFluidHandle, IRequest, IResponse, ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
12
|
-
import type { IFluidHandleContext, IFluidHandleInternal, IProvideFluidHandleContext, ISignalEnvelope } from "@fluidframework/core-interfaces/internal";
|
|
12
|
+
import type { IFluidHandleContext, IFluidHandleInternal, IProvideFluidHandleContext, ISignalEnvelope, JsonDeserialized } from "@fluidframework/core-interfaces/internal";
|
|
13
13
|
import type { IClientDetails, IQuorumClients, ISummaryTree } from "@fluidframework/driver-definitions";
|
|
14
14
|
import type { IDocumentStorageService, IDocumentMessage, ISequencedDocumentMessage, ISignalMessage, ISnapshotTree } from "@fluidframework/driver-definitions/internal";
|
|
15
15
|
import { MessageType } from "@fluidframework/driver-definitions/internal";
|
|
@@ -22,7 +22,7 @@ import { IPendingBlobs, type IBlobManagerLoadInfo } from "./blobManager/index.js
|
|
|
22
22
|
import { type MinimumVersionForCollab } from "./compatUtils.js";
|
|
23
23
|
import type { ICompressionRuntimeOptions } from "./compressionDefinitions.js";
|
|
24
24
|
import { GCNodeType, IGCRuntimeOptions, IGCStats, type IGarbageCollectionRuntime } from "./gc/index.js";
|
|
25
|
-
import { ContainerMessageType } from "./messageTypes.js";
|
|
25
|
+
import { ContainerMessageType, type LocalContainerRuntimeMessage } from "./messageTypes.js";
|
|
26
26
|
import { type OutboundBatch } from "./opLifecycle/index.js";
|
|
27
27
|
import { IPendingLocalState } from "./pendingStateManager.js";
|
|
28
28
|
import type { IDocumentSchemaCurrent, IDocumentSchemaFeatures, EnqueueSummarizeResult, ISerializedElection, ISummarizeResults } from "./summary/index.js";
|
|
@@ -264,6 +264,7 @@ export declare const makeLegacySendBatchFn: (submitFn: (type: MessageType, conte
|
|
|
264
264
|
* We only want to log this once, to avoid spamming telemetry if we are wrong and these cases are hit commonly.
|
|
265
265
|
*/
|
|
266
266
|
export declare let getSingleUseLegacyLogCallback: (logger: ITelemetryLoggerExt, type: string) => (codePath: string) => void;
|
|
267
|
+
type UnsequencedSignalEnvelope = Omit<ISignalEnvelope, "clientBroadcastSignalSequenceNumber">;
|
|
267
268
|
/**
|
|
268
269
|
* This object holds the parameters necessary for the {@link loadContainerRuntime} function.
|
|
269
270
|
* @legacy
|
|
@@ -335,7 +336,7 @@ export declare function loadContainerRuntime(params: LoadContainerRuntimeParams)
|
|
|
335
336
|
*
|
|
336
337
|
* @internal
|
|
337
338
|
*/
|
|
338
|
-
export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents> implements
|
|
339
|
+
export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents> implements IContainerRuntimeInternal, IContainerRuntimeBaseExperimental, IContainerRuntimeWithResolveHandle_Deprecated, IRuntime, IGarbageCollectionRuntime, ISummarizerRuntime, ISummarizerInternalsProvider, IFluidParentContext, IProvideFluidHandleContext, IProvideLayerCompatDetails {
|
|
339
340
|
private readonly registry;
|
|
340
341
|
private readonly metadata;
|
|
341
342
|
private readonly electedSummarizerData;
|
|
@@ -383,12 +384,10 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
383
384
|
private readonly _getClientId;
|
|
384
385
|
get clientId(): string | undefined;
|
|
385
386
|
readonly clientDetails: IClientDetails;
|
|
387
|
+
private readonly isSummarizerClient;
|
|
386
388
|
get storage(): IDocumentStorageService;
|
|
387
389
|
get containerRuntime(): ContainerRuntime;
|
|
388
390
|
private readonly submitSummaryFn;
|
|
389
|
-
/**
|
|
390
|
-
* Do not call directly - use submitAddressesSignal
|
|
391
|
-
*/
|
|
392
391
|
private readonly submitSignalFn;
|
|
393
392
|
readonly disposeFn: (error?: ICriticalContainerError) => void;
|
|
394
393
|
readonly closeFn: (error?: ICriticalContainerError) => void;
|
|
@@ -450,8 +449,8 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
450
449
|
private readonly batchRunner;
|
|
451
450
|
private readonly _flushMode;
|
|
452
451
|
private readonly offlineEnabled;
|
|
453
|
-
private
|
|
454
|
-
private
|
|
452
|
+
private flushScheduled;
|
|
453
|
+
private canSendOps;
|
|
455
454
|
private consecutiveReconnects;
|
|
456
455
|
/**
|
|
457
456
|
* Used to delay transition to "connected" state while we upload
|
|
@@ -461,11 +460,15 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
461
460
|
private readonly dataModelChangeRunner;
|
|
462
461
|
/**
|
|
463
462
|
* Invokes the given callback and expects that no ops are submitted
|
|
464
|
-
* until execution finishes. If an op is submitted,
|
|
463
|
+
* until execution finishes. If an op is submitted, it will be marked as reentrant.
|
|
465
464
|
*
|
|
466
465
|
* @param callback - the callback to be invoked
|
|
467
466
|
*/
|
|
468
467
|
ensureNoDataModelChanges<T>(callback: () => T): T;
|
|
468
|
+
/**
|
|
469
|
+
* Indicates whether the container is in a state where it is able to send
|
|
470
|
+
* ops (connected to op stream and not in readonly mode).
|
|
471
|
+
*/
|
|
469
472
|
get connected(): boolean;
|
|
470
473
|
/**
|
|
471
474
|
* clientId of parent (non-summarizing) container that owns summarizer container
|
|
@@ -473,7 +476,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
473
476
|
get summarizerClientId(): string | undefined;
|
|
474
477
|
private _disposed;
|
|
475
478
|
get disposed(): boolean;
|
|
476
|
-
private
|
|
479
|
+
private lastEmittedDirty;
|
|
477
480
|
private emitDirtyDocumentEvent;
|
|
478
481
|
private readonly useDeltaManagerOpsProxy;
|
|
479
482
|
private readonly closeSummarizerDelayMs;
|
|
@@ -544,6 +547,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
544
547
|
* This is a kill-bit switch for this simplification of logic, in case it causes unexpected issues.
|
|
545
548
|
*/
|
|
546
549
|
private readonly skipSafetyFlushDuringProcessStack;
|
|
550
|
+
private readonly extensions;
|
|
547
551
|
/***/
|
|
548
552
|
protected constructor(context: IContainerContext, registry: IFluidDataStoreRegistry, metadata: IContainerRuntimeMetadata | undefined, electedSummarizerData: ISerializedElection | undefined, chunks: [string, string[]][], dataStoreAliasMap: [string, string][], runtimeOptions: Readonly<ContainerRuntimeOptionsInternal>, containerScope: FluidObject, baseLogger: ITelemetryBaseLogger, existing: boolean, blobManagerLoadInfo: IBlobManagerLoadInfo, _storage: IDocumentStorageService, createIdCompressorFn: () => IIdCompressor & IIdCompressorCore, documentsSchemaController: DocumentsSchemaController, featureGatesForTelemetry: Record<string, boolean | number | undefined>, provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>, minVersionForCollab: MinimumVersionForCollab, requestHandler?: ((request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>) | undefined, summaryConfiguration?: ISummaryConfiguration, recentBatchInfo?: [number, string][]);
|
|
549
553
|
onSchemaChange(schema: IDocumentSchemaCurrent): void;
|
|
@@ -609,7 +613,12 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
609
613
|
private applyStashedOp;
|
|
610
614
|
private loadIdCompressor;
|
|
611
615
|
private readonly notifyReadOnlyState;
|
|
612
|
-
setConnectionState(
|
|
616
|
+
setConnectionState(canSendOps: boolean, clientId?: string): void;
|
|
617
|
+
/**
|
|
618
|
+
* Raises and propagates connected events.
|
|
619
|
+
* @param canSendOps - Indicates whether the container can send ops or not (connected and not readonly).
|
|
620
|
+
* @remarks The connection state from container context used here when raising connected events.
|
|
621
|
+
*/
|
|
613
622
|
private setConnectionStateCore;
|
|
614
623
|
notifyOpReplay(message: ISequencedDocumentMessage): Promise<void>;
|
|
615
624
|
/**
|
|
@@ -654,7 +663,14 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
654
663
|
*/
|
|
655
664
|
private validateAndProcessRuntimeMessages;
|
|
656
665
|
private processIdCompressorMessages;
|
|
657
|
-
processSignal(message: ISignalMessage
|
|
666
|
+
processSignal(message: ISignalMessage<{
|
|
667
|
+
type: string;
|
|
668
|
+
content: ISignalEnvelope<{
|
|
669
|
+
type: string;
|
|
670
|
+
content: JsonDeserialized<unknown>;
|
|
671
|
+
}>;
|
|
672
|
+
}>, local: boolean): void;
|
|
673
|
+
private routeNonContainerSignal;
|
|
658
674
|
/**
|
|
659
675
|
* Flush the current batch of ops to the ordering service for sequencing
|
|
660
676
|
* This method is not expected to be called in the middle of a batch.
|
|
@@ -690,11 +706,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
690
706
|
getAliasedDataStoreEntryPoint(alias: string): Promise<IFluidHandle<FluidObject> | undefined>;
|
|
691
707
|
createDetachedDataStore(pkg: Readonly<string[]>, loadingGroupId?: string): IFluidDataStoreContextDetached;
|
|
692
708
|
createDataStore(pkg: Readonly<string | string[]>, loadingGroupId?: string): Promise<IDataStore>;
|
|
693
|
-
private
|
|
694
|
-
/**
|
|
695
|
-
* Typically ops are batched and later flushed together, but in some cases we want to flush immediately.
|
|
696
|
-
*/
|
|
697
|
-
private currentlyBatching;
|
|
709
|
+
private shouldSendOps;
|
|
698
710
|
private readonly _quorum;
|
|
699
711
|
getQuorum(): IQuorumClients;
|
|
700
712
|
private readonly _audience;
|
|
@@ -704,7 +716,10 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
704
716
|
* either were not sent out to delta stream or were not yet acknowledged.
|
|
705
717
|
*/
|
|
706
718
|
get isDirty(): boolean;
|
|
707
|
-
|
|
719
|
+
/**
|
|
720
|
+
* Returns true if the container is dirty: not attached, or no pending user messages (could be some "non-dirtyable" ones though)
|
|
721
|
+
*/
|
|
722
|
+
private computeCurrentDirtyState;
|
|
708
723
|
/**
|
|
709
724
|
* Submits the signal to be sent to other clients.
|
|
710
725
|
* @param type - Type of the signal.
|
|
@@ -862,6 +877,14 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
862
877
|
private shouldFailSummaryOnPendingOps;
|
|
863
878
|
private get pendingMessagesCount();
|
|
864
879
|
private hasPendingMessages;
|
|
880
|
+
/**
|
|
881
|
+
* Emit "dirty" or "saved" event based on the current dirty state of the document.
|
|
882
|
+
* This must be called every time the states underlying the dirty state change.
|
|
883
|
+
*
|
|
884
|
+
* @privateRemarks - It's helpful to think of this as an event handler registered
|
|
885
|
+
* for hypothetical "changed" events for PendingStateManager, Outbox, and Container Attach machinery.
|
|
886
|
+
* But those events don't exist so we manually call this wherever we know those changes happen.
|
|
887
|
+
*/
|
|
865
888
|
private updateDocumentDirtyState;
|
|
866
889
|
submitMessage(type: ContainerMessageType.FluidDataStoreOp | ContainerMessageType.Alias | ContainerMessageType.Attach, contents: any, localOpMetadata?: unknown): void;
|
|
867
890
|
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandleInternal<ArrayBufferLike>>;
|
|
@@ -876,21 +899,32 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
876
899
|
private verifyNotClosed;
|
|
877
900
|
/**
|
|
878
901
|
* Resubmits each message in the batch, and then flushes the outbox.
|
|
902
|
+
* This typically happens when we reconnect and there are pending messages.
|
|
903
|
+
*
|
|
904
|
+
* @remarks
|
|
905
|
+
* Attempting to resubmit a batch that has been successfully sequenced will not happen due to
|
|
906
|
+
* checks in the ConnectionStateHandler (Loader layer)
|
|
879
907
|
*
|
|
880
|
-
*
|
|
908
|
+
* The only exception to this would be if the Container "forks" due to misuse of the "Offline Load" feature.
|
|
909
|
+
* If the "Offline Load" feature is enabled, the batchId is included in the resubmitted messages,
|
|
881
910
|
* for correlation to detect container forking.
|
|
882
911
|
*/
|
|
883
912
|
private reSubmitBatch;
|
|
913
|
+
/**
|
|
914
|
+
* Resubmit the given message as part of a squash rebase upon exiting Staging Mode.
|
|
915
|
+
* How exactly to resubmit the message is up to the subsystem that submitted the op to begin with.
|
|
916
|
+
*/
|
|
917
|
+
private reSubmitWithSquashing;
|
|
918
|
+
/**
|
|
919
|
+
* Resubmit the given message which was previously submitted to the ContainerRuntime but not successfully
|
|
920
|
+
* transmitted to the ordering service (e.g. due to a disconnect, or being in Staging Mode)
|
|
921
|
+
* How to resubmit is up to the subsystem that submitted the op to begin with
|
|
922
|
+
*/
|
|
884
923
|
private reSubmit;
|
|
885
924
|
/**
|
|
886
|
-
*
|
|
887
|
-
* reconnect and there are pending messages.
|
|
888
|
-
* ! Note: successfully resubmitting an op that has been successfully sequenced is not possible due to checks in the ConnectionStateHandler (Loader layer)
|
|
889
|
-
* @param message - The original LocalContainerRuntimeMessage.
|
|
890
|
-
* @param localOpMetadata - The local metadata associated with the original message.
|
|
925
|
+
* Rollback the given op which was only staged but not yet submitted.
|
|
891
926
|
*/
|
|
892
|
-
private
|
|
893
|
-
private rollback;
|
|
927
|
+
private rollbackStagedChanges;
|
|
894
928
|
/**
|
|
895
929
|
* Implementation of ISummarizerInternalsProvider.refreshLatestSummaryAck
|
|
896
930
|
*/
|
|
@@ -907,7 +941,12 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
907
941
|
getPendingLocalState(props?: IGetPendingLocalStateProps): unknown;
|
|
908
942
|
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
909
943
|
enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;
|
|
944
|
+
private readonly lazyEventsForExtensions;
|
|
945
|
+
private readonly submitExtensionSignal;
|
|
946
|
+
acquireExtension<T, TRuntimeProperties extends ExtensionRuntimeProperties, TUseContext extends unknown[]>(id: ContainerExtensionId, factory: ContainerExtensionFactory<T, TRuntimeProperties, TUseContext>, ...useContext: TUseContext): T;
|
|
910
947
|
private get groupedBatchingEnabled();
|
|
911
948
|
}
|
|
912
|
-
export declare function createNewSignalEnvelope(address: string | undefined, type: string, content: unknown):
|
|
949
|
+
export declare function createNewSignalEnvelope(address: string | undefined, type: string, content: unknown): UnsequencedSignalEnvelope;
|
|
950
|
+
export declare function isContainerMessageDirtyable({ type, contents, }: LocalContainerRuntimeMessage): boolean;
|
|
951
|
+
export {};
|
|
913
952
|
//# sourceMappingURL=containerRuntime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerRuntime.d.ts","sourceRoot":"","sources":["../src/containerRuntime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAS,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EACX,SAAS,EAET,uBAAuB,EAEvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,KAAK,EACX,iBAAiB,EACjB,0BAA0B,EAC1B,QAAQ,EACR,aAAa,EAGb,MAAM,gDAAgD,CAAC;AAExD,OAAO,KAAK,EACX,iBAAiB,EACjB,uBAAuB,EACvB,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,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