@fluidframework/container-runtime 2.30.0 → 2.31.1
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 +588 -584
- package/dist/channelCollection.js +1 -1
- package/dist/channelCollection.js.map +1 -1
- package/dist/containerRuntime.d.ts +19 -4
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +100 -74
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStoreContext.d.ts +6 -1
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +12 -1
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/gc/gcTelemetry.js +2 -2
- package/dist/gc/gcTelemetry.js.map +1 -1
- package/dist/opLifecycle/batchManager.d.ts.map +1 -1
- package/dist/opLifecycle/batchManager.js +16 -5
- package/dist/opLifecycle/batchManager.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts +12 -3
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +41 -21
- package/dist/opLifecycle/outbox.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 -0
- package/dist/pendingStateManager.d.ts.map +1 -1
- package/dist/pendingStateManager.js +12 -2
- package/dist/pendingStateManager.js.map +1 -1
- package/dist/runCounter.d.ts +11 -0
- package/dist/runCounter.d.ts.map +1 -0
- package/dist/runCounter.js +43 -0
- package/dist/runCounter.js.map +1 -0
- package/dist/runtimeLayerCompatState.d.ts +51 -0
- package/dist/runtimeLayerCompatState.d.ts.map +1 -0
- package/dist/runtimeLayerCompatState.js +123 -0
- package/dist/runtimeLayerCompatState.js.map +1 -0
- 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 +4 -4
- package/dist/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +1 -18
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.js +0 -27
- package/dist/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -2
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js +1 -2
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/lib/channelCollection.js +1 -1
- package/lib/channelCollection.js.map +1 -1
- package/lib/containerRuntime.d.ts +19 -4
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +100 -74
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStoreContext.d.ts +6 -1
- package/lib/dataStoreContext.d.ts.map +1 -1
- package/lib/dataStoreContext.js +12 -1
- package/lib/dataStoreContext.js.map +1 -1
- package/lib/gc/gcTelemetry.js +2 -2
- package/lib/gc/gcTelemetry.js.map +1 -1
- package/lib/opLifecycle/batchManager.d.ts.map +1 -1
- package/lib/opLifecycle/batchManager.js +16 -5
- package/lib/opLifecycle/batchManager.js.map +1 -1
- package/lib/opLifecycle/outbox.d.ts +12 -3
- package/lib/opLifecycle/outbox.d.ts.map +1 -1
- package/lib/opLifecycle/outbox.js +43 -23
- package/lib/opLifecycle/outbox.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 -0
- package/lib/pendingStateManager.d.ts.map +1 -1
- package/lib/pendingStateManager.js +12 -2
- package/lib/pendingStateManager.js.map +1 -1
- package/lib/runCounter.d.ts +11 -0
- package/lib/runCounter.d.ts.map +1 -0
- package/lib/runCounter.js +39 -0
- package/lib/runCounter.js.map +1 -0
- package/lib/runtimeLayerCompatState.d.ts +51 -0
- package/lib/runtimeLayerCompatState.d.ts.map +1 -0
- package/lib/runtimeLayerCompatState.js +118 -0
- package/lib/runtimeLayerCompatState.js.map +1 -0
- 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 +5 -5
- package/lib/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts +1 -18
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.js +1 -25
- package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -2
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js +1 -2
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +20 -30
- package/src/channelCollection.ts +1 -1
- package/src/containerRuntime.ts +148 -100
- package/src/dataStoreContext.ts +22 -1
- package/src/gc/{garbageCollection.md → README.md} +17 -19
- package/src/gc/gcTelemetry.ts +2 -2
- package/src/opLifecycle/batchManager.ts +20 -6
- package/src/opLifecycle/outbox.ts +64 -24
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +18 -2
- package/src/runCounter.ts +25 -0
- package/src/runtimeLayerCompatState.ts +143 -0
- package/src/summary/summarizerNode/summarizerNode.ts +6 -5
- package/src/summary/summarizerNode/summarizerNodeUtils.ts +1 -27
- package/src/summary/summarizerNode/summarizerNodeWithGc.ts +2 -3
- package/tsconfig.json +1 -0
- package/dist/layerCompatState.d.ts +0 -19
- package/dist/layerCompatState.d.ts.map +0 -1
- package/dist/layerCompatState.js +0 -64
- package/dist/layerCompatState.js.map +0 -1
- package/lib/layerCompatState.d.ts +0 -19
- package/lib/layerCompatState.d.ts.map +0 -1
- package/lib/layerCompatState.js +0 -60
- package/lib/layerCompatState.js.map +0 -1
- package/prettier.config.cjs +0 -8
- package/src/layerCompatState.ts +0 -75
package/lib/layerCompatState.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
import { checkLayerCompatibility, } from "@fluid-internal/client-utils";
|
|
6
|
-
import { UsageError } from "@fluidframework/telemetry-utils/internal";
|
|
7
|
-
import { pkgVersion } from "./packageVersion.js";
|
|
8
|
-
/**
|
|
9
|
-
* Runtime's compatibility details that is exposed to the Loader layer.
|
|
10
|
-
*/
|
|
11
|
-
export const RuntimeCompatDetails = {
|
|
12
|
-
/**
|
|
13
|
-
* The package version of the Runtime layer.
|
|
14
|
-
*/
|
|
15
|
-
pkgVersion,
|
|
16
|
-
/**
|
|
17
|
-
* The current generation of the Runtime layer.
|
|
18
|
-
*/
|
|
19
|
-
generation: 1,
|
|
20
|
-
/**
|
|
21
|
-
* The features supported by the Runtime layer across the Runtime / Loader boundary.
|
|
22
|
-
*/
|
|
23
|
-
supportedFeatures: new Set(),
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* The requirements that the Loader layer must meet to be compatible with this Runtime.
|
|
27
|
-
*/
|
|
28
|
-
export const LoaderSupportRequirements = {
|
|
29
|
-
/**
|
|
30
|
-
* Minimum generation that Loader must be at to be compatible with Runtime.
|
|
31
|
-
*/
|
|
32
|
-
minSupportedGeneration: 0,
|
|
33
|
-
/**
|
|
34
|
-
* The features that the Loader must support to be compatible with Runtime. Note that 0 is used here for
|
|
35
|
-
* Loader layers before the introduction of the layer compatibility enforcement.
|
|
36
|
-
*/
|
|
37
|
-
requiredFeatures: [],
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Validates that the Loader layer is compatible with this Runtime.
|
|
41
|
-
*/
|
|
42
|
-
export function validateLoaderCompatibility(maybeLoaderCompatDetails, disposeFn) {
|
|
43
|
-
const layerCheckResult = checkLayerCompatibility(LoaderSupportRequirements, maybeLoaderCompatDetails);
|
|
44
|
-
if (!layerCheckResult.isCompatible) {
|
|
45
|
-
const error = new UsageError("Runtime is not compatible with Loader", {
|
|
46
|
-
errorDetails: JSON.stringify({
|
|
47
|
-
runtimeVersion: RuntimeCompatDetails.pkgVersion,
|
|
48
|
-
loaderVersion: maybeLoaderCompatDetails?.pkgVersion,
|
|
49
|
-
runtimeGeneration: RuntimeCompatDetails.generation,
|
|
50
|
-
loaderGeneration: maybeLoaderCompatDetails?.generation,
|
|
51
|
-
minSupportedGeneration: LoaderSupportRequirements.minSupportedGeneration,
|
|
52
|
-
isGenerationCompatible: layerCheckResult.isGenerationCompatible,
|
|
53
|
-
unsupportedFeatures: layerCheckResult.unsupportedFeatures,
|
|
54
|
-
}),
|
|
55
|
-
});
|
|
56
|
-
disposeFn(error);
|
|
57
|
-
throw error;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=layerCompatState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layerCompatState.js","sourceRoot":"","sources":["../src/layerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,uBAAuB,GAGvB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAEtE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAwB;IACxD;;OAEG;IACH,UAAU;IACV;;OAEG;IACH,UAAU,EAAE,CAAC;IACb;;OAEG;IACH,iBAAiB,EAAE,IAAI,GAAG,EAAU;CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAoC;IACzE;;OAEG;IACH,sBAAsB,EAAE,CAAC;IACzB;;;OAGG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAC1C,wBAAyD,EACzD,SAAoD;IAEpD,MAAM,gBAAgB,GAAG,uBAAuB,CAC/C,yBAAyB,EACzB,wBAAwB,CACxB,CAAC;IACF,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;QACpC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,uCAAuC,EAAE;YACrE,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC;gBAC5B,cAAc,EAAE,oBAAoB,CAAC,UAAU;gBAC/C,aAAa,EAAE,wBAAwB,EAAE,UAAU;gBACnD,iBAAiB,EAAE,oBAAoB,CAAC,UAAU;gBAClD,gBAAgB,EAAE,wBAAwB,EAAE,UAAU;gBACtD,sBAAsB,EAAE,yBAAyB,CAAC,sBAAsB;gBACxE,sBAAsB,EAAE,gBAAgB,CAAC,sBAAsB;gBAC/D,mBAAmB,EAAE,gBAAgB,CAAC,mBAAmB;aACzD,CAAC;SACF,CAAC,CAAC;QACH,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tcheckLayerCompatibility,\n\ttype ILayerCompatDetails,\n\ttype ILayerCompatSupportRequirements,\n} from \"@fluid-internal/client-utils\";\nimport type { ICriticalContainerError } from \"@fluidframework/container-definitions\";\nimport { UsageError } from \"@fluidframework/telemetry-utils/internal\";\n\nimport { pkgVersion } from \"./packageVersion.js\";\n\n/**\n * Runtime's compatibility details that is exposed to the Loader layer.\n */\nexport const RuntimeCompatDetails: ILayerCompatDetails = {\n\t/**\n\t * The package version of the Runtime layer.\n\t */\n\tpkgVersion,\n\t/**\n\t * The current generation of the Runtime layer.\n\t */\n\tgeneration: 1,\n\t/**\n\t * The features supported by the Runtime layer across the Runtime / Loader boundary.\n\t */\n\tsupportedFeatures: new Set<string>(),\n};\n\n/**\n * The requirements that the Loader layer must meet to be compatible with this Runtime.\n */\nexport const LoaderSupportRequirements: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Loader must be at to be compatible with Runtime.\n\t */\n\tminSupportedGeneration: 0,\n\t/**\n\t * The features that the Loader must support to be compatible with Runtime. Note that 0 is used here for\n\t * Loader layers before the introduction of the layer compatibility enforcement.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * Validates that the Loader layer is compatible with this Runtime.\n */\nexport function validateLoaderCompatibility(\n\tmaybeLoaderCompatDetails: ILayerCompatDetails | undefined,\n\tdisposeFn: (error?: ICriticalContainerError) => void,\n): void {\n\tconst layerCheckResult = checkLayerCompatibility(\n\t\tLoaderSupportRequirements,\n\t\tmaybeLoaderCompatDetails,\n\t);\n\tif (!layerCheckResult.isCompatible) {\n\t\tconst error = new UsageError(\"Runtime is not compatible with Loader\", {\n\t\t\terrorDetails: JSON.stringify({\n\t\t\t\truntimeVersion: RuntimeCompatDetails.pkgVersion,\n\t\t\t\tloaderVersion: maybeLoaderCompatDetails?.pkgVersion,\n\t\t\t\truntimeGeneration: RuntimeCompatDetails.generation,\n\t\t\t\tloaderGeneration: maybeLoaderCompatDetails?.generation,\n\t\t\t\tminSupportedGeneration: LoaderSupportRequirements.minSupportedGeneration,\n\t\t\t\tisGenerationCompatible: layerCheckResult.isGenerationCompatible,\n\t\t\t\tunsupportedFeatures: layerCheckResult.unsupportedFeatures,\n\t\t\t}),\n\t\t});\n\t\tdisposeFn(error);\n\t\tthrow error;\n\t}\n}\n"]}
|
package/prettier.config.cjs
DELETED
package/src/layerCompatState.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
checkLayerCompatibility,
|
|
8
|
-
type ILayerCompatDetails,
|
|
9
|
-
type ILayerCompatSupportRequirements,
|
|
10
|
-
} from "@fluid-internal/client-utils";
|
|
11
|
-
import type { ICriticalContainerError } from "@fluidframework/container-definitions";
|
|
12
|
-
import { UsageError } from "@fluidframework/telemetry-utils/internal";
|
|
13
|
-
|
|
14
|
-
import { pkgVersion } from "./packageVersion.js";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Runtime's compatibility details that is exposed to the Loader layer.
|
|
18
|
-
*/
|
|
19
|
-
export const RuntimeCompatDetails: ILayerCompatDetails = {
|
|
20
|
-
/**
|
|
21
|
-
* The package version of the Runtime layer.
|
|
22
|
-
*/
|
|
23
|
-
pkgVersion,
|
|
24
|
-
/**
|
|
25
|
-
* The current generation of the Runtime layer.
|
|
26
|
-
*/
|
|
27
|
-
generation: 1,
|
|
28
|
-
/**
|
|
29
|
-
* The features supported by the Runtime layer across the Runtime / Loader boundary.
|
|
30
|
-
*/
|
|
31
|
-
supportedFeatures: new Set<string>(),
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* The requirements that the Loader layer must meet to be compatible with this Runtime.
|
|
36
|
-
*/
|
|
37
|
-
export const LoaderSupportRequirements: ILayerCompatSupportRequirements = {
|
|
38
|
-
/**
|
|
39
|
-
* Minimum generation that Loader must be at to be compatible with Runtime.
|
|
40
|
-
*/
|
|
41
|
-
minSupportedGeneration: 0,
|
|
42
|
-
/**
|
|
43
|
-
* The features that the Loader must support to be compatible with Runtime. Note that 0 is used here for
|
|
44
|
-
* Loader layers before the introduction of the layer compatibility enforcement.
|
|
45
|
-
*/
|
|
46
|
-
requiredFeatures: [],
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Validates that the Loader layer is compatible with this Runtime.
|
|
51
|
-
*/
|
|
52
|
-
export function validateLoaderCompatibility(
|
|
53
|
-
maybeLoaderCompatDetails: ILayerCompatDetails | undefined,
|
|
54
|
-
disposeFn: (error?: ICriticalContainerError) => void,
|
|
55
|
-
): void {
|
|
56
|
-
const layerCheckResult = checkLayerCompatibility(
|
|
57
|
-
LoaderSupportRequirements,
|
|
58
|
-
maybeLoaderCompatDetails,
|
|
59
|
-
);
|
|
60
|
-
if (!layerCheckResult.isCompatible) {
|
|
61
|
-
const error = new UsageError("Runtime is not compatible with Loader", {
|
|
62
|
-
errorDetails: JSON.stringify({
|
|
63
|
-
runtimeVersion: RuntimeCompatDetails.pkgVersion,
|
|
64
|
-
loaderVersion: maybeLoaderCompatDetails?.pkgVersion,
|
|
65
|
-
runtimeGeneration: RuntimeCompatDetails.generation,
|
|
66
|
-
loaderGeneration: maybeLoaderCompatDetails?.generation,
|
|
67
|
-
minSupportedGeneration: LoaderSupportRequirements.minSupportedGeneration,
|
|
68
|
-
isGenerationCompatible: layerCheckResult.isGenerationCompatible,
|
|
69
|
-
unsupportedFeatures: layerCheckResult.unsupportedFeatures,
|
|
70
|
-
}),
|
|
71
|
-
});
|
|
72
|
-
disposeFn(error);
|
|
73
|
-
throw error;
|
|
74
|
-
}
|
|
75
|
-
}
|