@fluidframework/container-loader 2.82.0 → 2.83.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 +4 -0
- package/dist/loaderLayerCompatState.d.ts +2 -2
- package/dist/loaderLayerCompatState.d.ts.map +1 -1
- package/dist/loaderLayerCompatState.js +10 -6
- package/dist/loaderLayerCompatState.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/lib/loaderLayerCompatState.d.ts +2 -2
- package/lib/loaderLayerCompatState.d.ts.map +1 -1
- package/lib/loaderLayerCompatState.js +11 -7
- package/lib/loaderLayerCompatState.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/package.json +13 -13
- package/src/loaderLayerCompatState.ts +18 -7
- package/src/packageVersion.ts +1 -1
- package/api-extractor-lint.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -13,11 +13,11 @@ export declare const loaderCoreCompatDetails: {
|
|
|
13
13
|
/**
|
|
14
14
|
* The package version of the Loader layer.
|
|
15
15
|
*/
|
|
16
|
-
pkgVersion:
|
|
16
|
+
readonly pkgVersion: "2.83.0";
|
|
17
17
|
/**
|
|
18
18
|
* The current generation of the Loader layer.
|
|
19
19
|
*/
|
|
20
|
-
generation:
|
|
20
|
+
readonly generation: 4;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* Loader's compatibility details that is exposed to the Runtime layer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loaderLayerCompatState.d.ts","sourceRoot":"","sources":["../src/loaderLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"loaderLayerCompatState.d.ts","sourceRoot":"","sources":["../src/loaderLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGN,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,0CAA0C,CAAC;AAIlD;;;GAGG;AACH,eAAO,MAAM,uBAAuB;IACnC;;OAEG;;IAEH;;OAEG;;CAEM,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,mBAM3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mCAAmC,EAAE,+BAejD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,+BAehD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,yBAAyB,EAAE,mBAAmB,GAAG,SAAS,EAC1D,EAAE,EAAE,iBAAiB,GACnB,IAAI,CAUN;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAC1C,wBAAwB,EAAE,mBAAmB,GAAG,SAAS,EACzD,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,uBAAuB,KAAK,IAAI,EACpD,EAAE,EAAE,iBAAiB,GACnB,IAAI,CAUN"}
|
|
@@ -39,10 +39,12 @@ exports.loaderCompatDetailsForRuntime = {
|
|
|
39
39
|
*/
|
|
40
40
|
exports.runtimeSupportRequirementsForLoader = {
|
|
41
41
|
/**
|
|
42
|
-
* Minimum generation that Runtime must be at to be compatible with Loader.
|
|
43
|
-
*
|
|
42
|
+
* Minimum generation that Runtime must be at to be compatible with this Loader. This is calculated
|
|
43
|
+
* based on the LayerCompatibilityPolicyWindowMonths.LoaderRuntime value which defines how many months old can
|
|
44
|
+
* the Runtime layer be compared to the Loader layer for them to still be considered compatible.
|
|
45
|
+
* The minimum valid generation value is 0.
|
|
44
46
|
*/
|
|
45
|
-
minSupportedGeneration: 0,
|
|
47
|
+
minSupportedGeneration: Math.max(0, exports.loaderCoreCompatDetails.generation - client_utils_1.LayerCompatibilityPolicyWindowMonths.LoaderRuntime),
|
|
46
48
|
/**
|
|
47
49
|
* The features that the Runtime must support to be compatible with Loader.
|
|
48
50
|
*/
|
|
@@ -54,10 +56,12 @@ exports.runtimeSupportRequirementsForLoader = {
|
|
|
54
56
|
*/
|
|
55
57
|
exports.driverSupportRequirementsForLoader = {
|
|
56
58
|
/**
|
|
57
|
-
* Minimum generation that Driver must be at to be compatible with Loader.
|
|
58
|
-
*
|
|
59
|
+
* Minimum generation that Driver must be at to be compatible with this Loader. This is calculated
|
|
60
|
+
* based on the LayerCompatibilityPolicyWindowMonths.LoaderDriver value which defines how many months old can
|
|
61
|
+
* the Driver layer be compared to the Loader layer for them to still be considered compatible.
|
|
62
|
+
* The minimum valid generation value is 0.
|
|
59
63
|
*/
|
|
60
|
-
minSupportedGeneration: 0,
|
|
64
|
+
minSupportedGeneration: Math.max(0, exports.loaderCoreCompatDetails.generation - client_utils_1.LayerCompatibilityPolicyWindowMonths.LoaderDriver),
|
|
61
65
|
/**
|
|
62
66
|
* The features that the Driver must support to be compatible with Loader.
|
|
63
67
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loaderLayerCompatState.js","sourceRoot":"","sources":["../src/loaderLayerCompatState.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+
|
|
1
|
+
{"version":3,"file":"loaderLayerCompatState.js","sourceRoot":"","sources":["../src/loaderLayerCompatState.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAKsC;AAEtC,uEAGkD;AAElD,2DAAiD;AAEjD;;;GAGG;AACU,QAAA,uBAAuB,GAAG;IACtC;;OAEG;IACH,UAAU,EAAV,8BAAU;IACV;;OAEG;IACH,UAAU,EAAV,yBAAU;CACD,CAAC;AAEX;;;GAGG;AACU,QAAA,6BAA6B,GAAwB;IACjE,GAAG,+BAAuB;IAC1B;;OAEG;IACH,iBAAiB,EAAE,IAAI,GAAG,EAAU;CACpC,CAAC;AAEF;;;GAGG;AACU,QAAA,mCAAmC,GAAoC;IACnF;;;;;OAKG;IACH,sBAAsB,EAAE,IAAI,CAAC,GAAG,CAC/B,CAAC,EACD,+BAAuB,CAAC,UAAU,GAAG,mDAAoC,CAAC,aAAa,CACvF;IACD;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACU,QAAA,kCAAkC,GAAoC;IAClF;;;;;OAKG;IACH,sBAAsB,EAAE,IAAI,CAAC,GAAG,CAC/B,CAAC,EACD,+BAAuB,CAAC,UAAU,GAAG,mDAAoC,CAAC,YAAY,CACtF;IACD;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACH,SAAgB,4BAA4B,CAC3C,yBAA0D,EAC1D,EAAqB;IAErB,IAAA,qCAA0B,EACzB,QAAQ,EACR,SAAS,EACT,qCAA6B,EAC7B,2CAAmC,EACnC,yBAAyB,EACzB,GAAG,EAAE,GAAE,CAAC,CAAC,2DAA2D,EACpE,EAAE,CACF,CAAC;AACH,CAAC;AAbD,oEAaC;AAED;;;GAGG;AACH,SAAgB,2BAA2B,CAC1C,wBAAyD,EACzD,SAAoD,EACpD,EAAqB;IAErB,IAAA,qCAA0B,EACzB,QAAQ,EACR,QAAQ,EACR,qCAA6B,EAC7B,0CAAkC,EAClC,wBAAwB,EACxB,SAAS,EACT,EAAE,CACF,CAAC;AACH,CAAC;AAdD,kEAcC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tgeneration,\n\tLayerCompatibilityPolicyWindowMonths,\n\ttype ILayerCompatDetails,\n\ttype ILayerCompatSupportRequirements,\n} from \"@fluid-internal/client-utils\";\nimport type { ICriticalContainerError } from \"@fluidframework/container-definitions\";\nimport {\n\tvalidateLayerCompatibility,\n\ttype MonitoringContext,\n} from \"@fluidframework/telemetry-utils/internal\";\n\nimport { pkgVersion } from \"./packageVersion.js\";\n\n/**\n * The core compatibility details of the Loader layer that is the same across all layer boundaries.\n * @internal\n */\nexport const loaderCoreCompatDetails = {\n\t/**\n\t * The package version of the Loader layer.\n\t */\n\tpkgVersion,\n\t/**\n\t * The current generation of the Loader layer.\n\t */\n\tgeneration,\n} as const;\n\n/**\n * Loader's compatibility details that is exposed to the Runtime layer.\n * @internal\n */\nexport const loaderCompatDetailsForRuntime: ILayerCompatDetails = {\n\t...loaderCoreCompatDetails,\n\t/**\n\t * The features supported by the Loader layer across the Loader / Runtime boundary.\n\t */\n\tsupportedFeatures: new Set<string>(),\n};\n\n/**\n * The requirements that the Runtime layer must meet to be compatible with this Loader.\n * @internal\n */\nexport const runtimeSupportRequirementsForLoader: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Runtime must be at to be compatible with this Loader. This is calculated\n\t * based on the LayerCompatibilityPolicyWindowMonths.LoaderRuntime value which defines how many months old can\n\t * the Runtime layer be compared to the Loader layer for them to still be considered compatible.\n\t * The minimum valid generation value is 0.\n\t */\n\tminSupportedGeneration: Math.max(\n\t\t0,\n\t\tloaderCoreCompatDetails.generation - LayerCompatibilityPolicyWindowMonths.LoaderRuntime,\n\t),\n\t/**\n\t * The features that the Runtime must support to be compatible with Loader.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * The requirements that the Driver layer must meet to be compatible with this Loader.\n * @internal\n */\nexport const driverSupportRequirementsForLoader: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Driver must be at to be compatible with this Loader. This is calculated\n\t * based on the LayerCompatibilityPolicyWindowMonths.LoaderDriver value which defines how many months old can\n\t * the Driver layer be compared to the Loader layer for them to still be considered compatible.\n\t * The minimum valid generation value is 0.\n\t */\n\tminSupportedGeneration: Math.max(\n\t\t0,\n\t\tloaderCoreCompatDetails.generation - LayerCompatibilityPolicyWindowMonths.LoaderDriver,\n\t),\n\t/**\n\t * The features that the Driver must support to be compatible with Loader.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * Validates that the Runtime layer is compatible with the Loader. *\n * @internal\n */\nexport function validateRuntimeCompatibility(\n\tmaybeRuntimeCompatDetails: ILayerCompatDetails | undefined,\n\tmc: MonitoringContext,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"loader\",\n\t\t\"runtime\",\n\t\tloaderCompatDetailsForRuntime,\n\t\truntimeSupportRequirementsForLoader,\n\t\tmaybeRuntimeCompatDetails,\n\t\t() => {} /* disposeFn - no op. This will be handled by the caller */,\n\t\tmc,\n\t);\n}\n\n/**\n * Validates that the Driver layer is compatible with the Loader.\n * @internal\n */\nexport function validateDriverCompatibility(\n\tmaybeDriverCompatDetails: ILayerCompatDetails | undefined,\n\tdisposeFn: (error?: ICriticalContainerError) => void,\n\tmc: MonitoringContext,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"loader\",\n\t\t\"driver\",\n\t\tloaderCompatDetailsForRuntime,\n\t\tdriverSupportRequirementsForLoader,\n\t\tmaybeDriverCompatDetails,\n\t\tdisposeFn,\n\t\tmc,\n\t);\n}\n"]}
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/container-loader";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.83.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/container-loader";
|
|
11
|
-
exports.pkgVersion = "2.
|
|
11
|
+
exports.pkgVersion = "2.83.0";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,kCAAkC,CAAC;AAC7C,QAAA,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-loader\";\nexport const pkgVersion = \"2.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,kCAAkC,CAAC;AAC7C,QAAA,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-loader\";\nexport const pkgVersion = \"2.83.0\";\n"]}
|
|
@@ -13,11 +13,11 @@ export declare const loaderCoreCompatDetails: {
|
|
|
13
13
|
/**
|
|
14
14
|
* The package version of the Loader layer.
|
|
15
15
|
*/
|
|
16
|
-
pkgVersion:
|
|
16
|
+
readonly pkgVersion: "2.83.0";
|
|
17
17
|
/**
|
|
18
18
|
* The current generation of the Loader layer.
|
|
19
19
|
*/
|
|
20
|
-
generation:
|
|
20
|
+
readonly generation: 4;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* Loader's compatibility details that is exposed to the Runtime layer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loaderLayerCompatState.d.ts","sourceRoot":"","sources":["../src/loaderLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"loaderLayerCompatState.d.ts","sourceRoot":"","sources":["../src/loaderLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGN,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,0CAA0C,CAAC;AAIlD;;;GAGG;AACH,eAAO,MAAM,uBAAuB;IACnC;;OAEG;;IAEH;;OAEG;;CAEM,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,mBAM3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mCAAmC,EAAE,+BAejD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,+BAehD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,yBAAyB,EAAE,mBAAmB,GAAG,SAAS,EAC1D,EAAE,EAAE,iBAAiB,GACnB,IAAI,CAUN;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAC1C,wBAAwB,EAAE,mBAAmB,GAAG,SAAS,EACzD,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,uBAAuB,KAAK,IAAI,EACpD,EAAE,EAAE,iBAAiB,GACnB,IAAI,CAUN"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { generation, } from "@fluid-internal/client-utils";
|
|
5
|
+
import { generation, LayerCompatibilityPolicyWindowMonths, } from "@fluid-internal/client-utils";
|
|
6
6
|
import { validateLayerCompatibility, } from "@fluidframework/telemetry-utils/internal";
|
|
7
7
|
import { pkgVersion } from "./packageVersion.js";
|
|
8
8
|
/**
|
|
@@ -36,10 +36,12 @@ export const loaderCompatDetailsForRuntime = {
|
|
|
36
36
|
*/
|
|
37
37
|
export const runtimeSupportRequirementsForLoader = {
|
|
38
38
|
/**
|
|
39
|
-
* Minimum generation that Runtime must be at to be compatible with Loader.
|
|
40
|
-
*
|
|
39
|
+
* Minimum generation that Runtime must be at to be compatible with this Loader. This is calculated
|
|
40
|
+
* based on the LayerCompatibilityPolicyWindowMonths.LoaderRuntime value which defines how many months old can
|
|
41
|
+
* the Runtime layer be compared to the Loader layer for them to still be considered compatible.
|
|
42
|
+
* The minimum valid generation value is 0.
|
|
41
43
|
*/
|
|
42
|
-
minSupportedGeneration: 0,
|
|
44
|
+
minSupportedGeneration: Math.max(0, loaderCoreCompatDetails.generation - LayerCompatibilityPolicyWindowMonths.LoaderRuntime),
|
|
43
45
|
/**
|
|
44
46
|
* The features that the Runtime must support to be compatible with Loader.
|
|
45
47
|
*/
|
|
@@ -51,10 +53,12 @@ export const runtimeSupportRequirementsForLoader = {
|
|
|
51
53
|
*/
|
|
52
54
|
export const driverSupportRequirementsForLoader = {
|
|
53
55
|
/**
|
|
54
|
-
* Minimum generation that Driver must be at to be compatible with Loader.
|
|
55
|
-
*
|
|
56
|
+
* Minimum generation that Driver must be at to be compatible with this Loader. This is calculated
|
|
57
|
+
* based on the LayerCompatibilityPolicyWindowMonths.LoaderDriver value which defines how many months old can
|
|
58
|
+
* the Driver layer be compared to the Loader layer for them to still be considered compatible.
|
|
59
|
+
* The minimum valid generation value is 0.
|
|
56
60
|
*/
|
|
57
|
-
minSupportedGeneration: 0,
|
|
61
|
+
minSupportedGeneration: Math.max(0, loaderCoreCompatDetails.generation - LayerCompatibilityPolicyWindowMonths.LoaderDriver),
|
|
58
62
|
/**
|
|
59
63
|
* The features that the Driver must support to be compatible with Loader.
|
|
60
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loaderLayerCompatState.js","sourceRoot":"","sources":["../src/loaderLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,UAAU,
|
|
1
|
+
{"version":3,"file":"loaderLayerCompatState.js","sourceRoot":"","sources":["../src/loaderLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,UAAU,EACV,oCAAoC,GAGpC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,0BAA0B,GAE1B,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,UAAU;IACV;;OAEG;IACH,UAAU;CACD,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwB;IACjE,GAAG,uBAAuB;IAC1B;;OAEG;IACH,iBAAiB,EAAE,IAAI,GAAG,EAAU;CACpC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAoC;IACnF;;;;;OAKG;IACH,sBAAsB,EAAE,IAAI,CAAC,GAAG,CAC/B,CAAC,EACD,uBAAuB,CAAC,UAAU,GAAG,oCAAoC,CAAC,aAAa,CACvF;IACD;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAoC;IAClF;;;;;OAKG;IACH,sBAAsB,EAAE,IAAI,CAAC,GAAG,CAC/B,CAAC,EACD,uBAAuB,CAAC,UAAU,GAAG,oCAAoC,CAAC,YAAY,CACtF;IACD;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAC3C,yBAA0D,EAC1D,EAAqB;IAErB,0BAA0B,CACzB,QAAQ,EACR,SAAS,EACT,6BAA6B,EAC7B,mCAAmC,EACnC,yBAAyB,EACzB,GAAG,EAAE,GAAE,CAAC,CAAC,2DAA2D,EACpE,EAAE,CACF,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,2BAA2B,CAC1C,wBAAyD,EACzD,SAAoD,EACpD,EAAqB;IAErB,0BAA0B,CACzB,QAAQ,EACR,QAAQ,EACR,6BAA6B,EAC7B,kCAAkC,EAClC,wBAAwB,EACxB,SAAS,EACT,EAAE,CACF,CAAC;AACH,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tgeneration,\n\tLayerCompatibilityPolicyWindowMonths,\n\ttype ILayerCompatDetails,\n\ttype ILayerCompatSupportRequirements,\n} from \"@fluid-internal/client-utils\";\nimport type { ICriticalContainerError } from \"@fluidframework/container-definitions\";\nimport {\n\tvalidateLayerCompatibility,\n\ttype MonitoringContext,\n} from \"@fluidframework/telemetry-utils/internal\";\n\nimport { pkgVersion } from \"./packageVersion.js\";\n\n/**\n * The core compatibility details of the Loader layer that is the same across all layer boundaries.\n * @internal\n */\nexport const loaderCoreCompatDetails = {\n\t/**\n\t * The package version of the Loader layer.\n\t */\n\tpkgVersion,\n\t/**\n\t * The current generation of the Loader layer.\n\t */\n\tgeneration,\n} as const;\n\n/**\n * Loader's compatibility details that is exposed to the Runtime layer.\n * @internal\n */\nexport const loaderCompatDetailsForRuntime: ILayerCompatDetails = {\n\t...loaderCoreCompatDetails,\n\t/**\n\t * The features supported by the Loader layer across the Loader / Runtime boundary.\n\t */\n\tsupportedFeatures: new Set<string>(),\n};\n\n/**\n * The requirements that the Runtime layer must meet to be compatible with this Loader.\n * @internal\n */\nexport const runtimeSupportRequirementsForLoader: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Runtime must be at to be compatible with this Loader. This is calculated\n\t * based on the LayerCompatibilityPolicyWindowMonths.LoaderRuntime value which defines how many months old can\n\t * the Runtime layer be compared to the Loader layer for them to still be considered compatible.\n\t * The minimum valid generation value is 0.\n\t */\n\tminSupportedGeneration: Math.max(\n\t\t0,\n\t\tloaderCoreCompatDetails.generation - LayerCompatibilityPolicyWindowMonths.LoaderRuntime,\n\t),\n\t/**\n\t * The features that the Runtime must support to be compatible with Loader.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * The requirements that the Driver layer must meet to be compatible with this Loader.\n * @internal\n */\nexport const driverSupportRequirementsForLoader: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Driver must be at to be compatible with this Loader. This is calculated\n\t * based on the LayerCompatibilityPolicyWindowMonths.LoaderDriver value which defines how many months old can\n\t * the Driver layer be compared to the Loader layer for them to still be considered compatible.\n\t * The minimum valid generation value is 0.\n\t */\n\tminSupportedGeneration: Math.max(\n\t\t0,\n\t\tloaderCoreCompatDetails.generation - LayerCompatibilityPolicyWindowMonths.LoaderDriver,\n\t),\n\t/**\n\t * The features that the Driver must support to be compatible with Loader.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * Validates that the Runtime layer is compatible with the Loader. *\n * @internal\n */\nexport function validateRuntimeCompatibility(\n\tmaybeRuntimeCompatDetails: ILayerCompatDetails | undefined,\n\tmc: MonitoringContext,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"loader\",\n\t\t\"runtime\",\n\t\tloaderCompatDetailsForRuntime,\n\t\truntimeSupportRequirementsForLoader,\n\t\tmaybeRuntimeCompatDetails,\n\t\t() => {} /* disposeFn - no op. This will be handled by the caller */,\n\t\tmc,\n\t);\n}\n\n/**\n * Validates that the Driver layer is compatible with the Loader.\n * @internal\n */\nexport function validateDriverCompatibility(\n\tmaybeDriverCompatDetails: ILayerCompatDetails | undefined,\n\tdisposeFn: (error?: ICriticalContainerError) => void,\n\tmc: MonitoringContext,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"loader\",\n\t\t\"driver\",\n\t\tloaderCompatDetailsForRuntime,\n\t\tdriverSupportRequirementsForLoader,\n\t\tmaybeDriverCompatDetails,\n\t\tdisposeFn,\n\t\tmc,\n\t);\n}\n"]}
|
package/lib/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/container-loader";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.83.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-loader\";\nexport const pkgVersion = \"2.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-loader\";\nexport const pkgVersion = \"2.83.0\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/container-loader",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.83.0",
|
|
4
4
|
"description": "Fluid container loader",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -129,13 +129,13 @@
|
|
|
129
129
|
"temp-directory": "nyc/.nyc_output"
|
|
130
130
|
},
|
|
131
131
|
"dependencies": {
|
|
132
|
-
"@fluid-internal/client-utils": "~2.
|
|
133
|
-
"@fluidframework/container-definitions": "~2.
|
|
134
|
-
"@fluidframework/core-interfaces": "~2.
|
|
135
|
-
"@fluidframework/core-utils": "~2.
|
|
136
|
-
"@fluidframework/driver-definitions": "~2.
|
|
137
|
-
"@fluidframework/driver-utils": "~2.
|
|
138
|
-
"@fluidframework/telemetry-utils": "~2.
|
|
132
|
+
"@fluid-internal/client-utils": "~2.83.0",
|
|
133
|
+
"@fluidframework/container-definitions": "~2.83.0",
|
|
134
|
+
"@fluidframework/core-interfaces": "~2.83.0",
|
|
135
|
+
"@fluidframework/core-utils": "~2.83.0",
|
|
136
|
+
"@fluidframework/driver-definitions": "~2.83.0",
|
|
137
|
+
"@fluidframework/driver-utils": "~2.83.0",
|
|
138
|
+
"@fluidframework/telemetry-utils": "~2.83.0",
|
|
139
139
|
"@types/events_pkg": "npm:@types/events@^3.0.0",
|
|
140
140
|
"@ungap/structured-clone": "^1.2.0",
|
|
141
141
|
"debug": "^4.3.4",
|
|
@@ -146,14 +146,14 @@
|
|
|
146
146
|
"devDependencies": {
|
|
147
147
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
148
148
|
"@biomejs/biome": "~1.9.3",
|
|
149
|
-
"@fluid-internal/client-utils": "~2.
|
|
150
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
151
|
-
"@fluid-private/test-loader-utils": "~2.
|
|
149
|
+
"@fluid-internal/client-utils": "~2.83.0",
|
|
150
|
+
"@fluid-internal/mocha-test-setup": "~2.83.0",
|
|
151
|
+
"@fluid-private/test-loader-utils": "~2.83.0",
|
|
152
152
|
"@fluid-tools/build-cli": "^0.63.0",
|
|
153
153
|
"@fluidframework/build-common": "^2.0.3",
|
|
154
154
|
"@fluidframework/build-tools": "^0.63.0",
|
|
155
|
-
"@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.
|
|
156
|
-
"@fluidframework/eslint-config-fluid": "~2.
|
|
155
|
+
"@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.82.0",
|
|
156
|
+
"@fluidframework/eslint-config-fluid": "~2.83.0",
|
|
157
157
|
"@microsoft/api-extractor": "7.52.11",
|
|
158
158
|
"@types/debug": "^4.1.5",
|
|
159
159
|
"@types/double-ended-queue": "^2.1.0",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
generation,
|
|
8
|
+
LayerCompatibilityPolicyWindowMonths,
|
|
8
9
|
type ILayerCompatDetails,
|
|
9
10
|
type ILayerCompatSupportRequirements,
|
|
10
11
|
} from "@fluid-internal/client-utils";
|
|
@@ -29,7 +30,7 @@ export const loaderCoreCompatDetails = {
|
|
|
29
30
|
* The current generation of the Loader layer.
|
|
30
31
|
*/
|
|
31
32
|
generation,
|
|
32
|
-
};
|
|
33
|
+
} as const;
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
* Loader's compatibility details that is exposed to the Runtime layer.
|
|
@@ -49,10 +50,15 @@ export const loaderCompatDetailsForRuntime: ILayerCompatDetails = {
|
|
|
49
50
|
*/
|
|
50
51
|
export const runtimeSupportRequirementsForLoader: ILayerCompatSupportRequirements = {
|
|
51
52
|
/**
|
|
52
|
-
* Minimum generation that Runtime must be at to be compatible with Loader.
|
|
53
|
-
*
|
|
53
|
+
* Minimum generation that Runtime must be at to be compatible with this Loader. This is calculated
|
|
54
|
+
* based on the LayerCompatibilityPolicyWindowMonths.LoaderRuntime value which defines how many months old can
|
|
55
|
+
* the Runtime layer be compared to the Loader layer for them to still be considered compatible.
|
|
56
|
+
* The minimum valid generation value is 0.
|
|
54
57
|
*/
|
|
55
|
-
minSupportedGeneration:
|
|
58
|
+
minSupportedGeneration: Math.max(
|
|
59
|
+
0,
|
|
60
|
+
loaderCoreCompatDetails.generation - LayerCompatibilityPolicyWindowMonths.LoaderRuntime,
|
|
61
|
+
),
|
|
56
62
|
/**
|
|
57
63
|
* The features that the Runtime must support to be compatible with Loader.
|
|
58
64
|
*/
|
|
@@ -65,10 +71,15 @@ export const runtimeSupportRequirementsForLoader: ILayerCompatSupportRequirement
|
|
|
65
71
|
*/
|
|
66
72
|
export const driverSupportRequirementsForLoader: ILayerCompatSupportRequirements = {
|
|
67
73
|
/**
|
|
68
|
-
* Minimum generation that Driver must be at to be compatible with Loader.
|
|
69
|
-
*
|
|
74
|
+
* Minimum generation that Driver must be at to be compatible with this Loader. This is calculated
|
|
75
|
+
* based on the LayerCompatibilityPolicyWindowMonths.LoaderDriver value which defines how many months old can
|
|
76
|
+
* the Driver layer be compared to the Loader layer for them to still be considered compatible.
|
|
77
|
+
* The minimum valid generation value is 0.
|
|
70
78
|
*/
|
|
71
|
-
minSupportedGeneration:
|
|
79
|
+
minSupportedGeneration: Math.max(
|
|
80
|
+
0,
|
|
81
|
+
loaderCoreCompatDetails.generation - LayerCompatibilityPolicyWindowMonths.LoaderDriver,
|
|
82
|
+
),
|
|
72
83
|
/**
|
|
73
84
|
* The features that the Driver must support to be compatible with Loader.
|
|
74
85
|
*/
|
package/src/packageVersion.ts
CHANGED
package/api-extractor-lint.json
DELETED