@fluidframework/datastore 2.81.1 → 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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @fluidframework/datastore
2
2
 
3
+ ## 2.83.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.82.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.81.0
4
12
 
5
13
  Dependency updates only.
@@ -12,11 +12,11 @@ export declare const dataStoreCoreCompatDetails: {
12
12
  /**
13
13
  * The package version of the DataStore layer.
14
14
  */
15
- pkgVersion: string;
15
+ readonly pkgVersion: "2.83.0";
16
16
  /**
17
17
  * The current generation of the DataStore layer.
18
18
  */
19
- generation: number;
19
+ readonly generation: 4;
20
20
  };
21
21
  /**
22
22
  * DataStore's compatibility details that is exposed to the Runtime layer.
@@ -1 +1 @@
1
- {"version":3,"file":"dataStoreLayerCompatState.d.ts","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEN,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,0CAA0C,CAAC;AAIlD;;;GAGG;AACH,eAAO,MAAM,0BAA0B;IACtC;;OAEG;;IAEH;;OAEG;;CAEH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,mBAM9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,+BAUpD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,yBAAyB,EAAE,mBAAmB,GAAG,SAAS,EAC1D,SAAS,EAAE,MAAM,IAAI,EACrB,EAAE,EAAE,iBAAiB,GACnB,IAAI,CAUN"}
1
+ {"version":3,"file":"dataStoreLayerCompatState.d.ts","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGN,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,0CAA0C,CAAC;AAIlD;;;GAGG;AACH,eAAO,MAAM,0BAA0B;IACtC;;OAEG;;IAEH;;OAEG;;CAEM,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,mBAM9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,+BAgBpD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,yBAAyB,EAAE,mBAAmB,GAAG,SAAS,EAC1D,SAAS,EAAE,MAAM,IAAI,EACrB,EAAE,EAAE,iBAAiB,GACnB,IAAI,CAUN"}
@@ -39,10 +39,13 @@ exports.dataStoreCompatDetailsForRuntime = {
39
39
  */
40
40
  exports.runtimeSupportRequirementsForDataStore = {
41
41
  /**
42
- * Minimum generation that Runtime must be at to be compatible with DataStore. Note that 0 is used here so
43
- * that Runtime layers before the introduction of the layer compatibility enforcement are compatible.
42
+ * Minimum generation that Runtime must be at to be compatible with this DataStore. This is calculated
43
+ * based on the LayerCompatibilityPolicyWindowMonths.DataStoreRuntime value which defines how many months old can
44
+ * the Runtime layer be compared to the DataStore 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.dataStoreCoreCompatDetails.generation -
48
+ client_utils_1.LayerCompatibilityPolicyWindowMonths.DataStoreRuntime),
46
49
  /**
47
50
  * The features that the Runtime must support to be compatible with DataStore.
48
51
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dataStoreLayerCompatState.js","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAIsC;AACtC,uEAGkD;AAElD,2DAAiD;AAEjD;;;GAGG;AACU,QAAA,0BAA0B,GAAG;IACzC;;OAEG;IACH,UAAU,EAAV,8BAAU;IACV;;OAEG;IACH,UAAU,EAAV,yBAAU;CACV,CAAC;AAEF;;;GAGG;AACU,QAAA,gCAAgC,GAAwB;IACpE,GAAG,kCAA0B;IAC7B;;OAEG;IACH,iBAAiB,EAAE,IAAI,GAAG,EAAU;CACpC,CAAC;AAEF;;;GAGG;AACU,QAAA,sCAAsC,GAAoC;IACtF;;;OAGG;IACH,sBAAsB,EAAE,CAAC;IACzB;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACH,SAAgB,4BAA4B,CAC3C,yBAA0D,EAC1D,SAAqB,EACrB,EAAqB;IAErB,IAAA,qCAA0B,EACzB,WAAW,EACX,SAAS,EACT,wCAAgC,EAChC,8CAAsC,EACtC,yBAAyB,EACzB,SAAS,EACT,EAAE,CACF,CAAC;AACH,CAAC;AAdD,oEAcC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tgeneration,\n\ttype ILayerCompatDetails,\n\ttype ILayerCompatSupportRequirements,\n} from \"@fluid-internal/client-utils\";\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 DataStore layer that is the same across all layer boundaries.\n * @internal\n */\nexport const dataStoreCoreCompatDetails = {\n\t/**\n\t * The package version of the DataStore layer.\n\t */\n\tpkgVersion,\n\t/**\n\t * The current generation of the DataStore layer.\n\t */\n\tgeneration,\n};\n\n/**\n * DataStore's compatibility details that is exposed to the Runtime layer.\n * @internal\n */\nexport const dataStoreCompatDetailsForRuntime: ILayerCompatDetails = {\n\t...dataStoreCoreCompatDetails,\n\t/**\n\t * The features supported by the DataStore layer across the DataStore / 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 DataStore.\n * @internal\n */\nexport const runtimeSupportRequirementsForDataStore: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Runtime must be at to be compatible with DataStore. Note that 0 is used here so\n\t * that Runtime layers before the introduction of the layer compatibility enforcement are compatible.\n\t */\n\tminSupportedGeneration: 0,\n\t/**\n\t * The features that the Runtime must support to be compatible with DataStore.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * Validates that the Runtime layer is compatible with this DataStore.\n * @internal\n */\nexport function validateRuntimeCompatibility(\n\tmaybeRuntimeCompatDetails: ILayerCompatDetails | undefined,\n\tdisposeFn: () => void,\n\tmc: MonitoringContext,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"dataStore\",\n\t\t\"runtime\",\n\t\tdataStoreCompatDetailsForRuntime,\n\t\truntimeSupportRequirementsForDataStore,\n\t\tmaybeRuntimeCompatDetails,\n\t\tdisposeFn,\n\t\tmc,\n\t);\n}\n"]}
1
+ {"version":3,"file":"dataStoreLayerCompatState.js","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAKsC;AACtC,uEAGkD;AAElD,2DAAiD;AAEjD;;;GAGG;AACU,QAAA,0BAA0B,GAAG;IACzC;;OAEG;IACH,UAAU,EAAV,8BAAU;IACV;;OAEG;IACH,UAAU,EAAV,yBAAU;CACD,CAAC;AAEX;;;GAGG;AACU,QAAA,gCAAgC,GAAwB;IACpE,GAAG,kCAA0B;IAC7B;;OAEG;IACH,iBAAiB,EAAE,IAAI,GAAG,EAAU;CACpC,CAAC;AAEF;;;GAGG;AACU,QAAA,sCAAsC,GAAoC;IACtF;;;;;OAKG;IACH,sBAAsB,EAAE,IAAI,CAAC,GAAG,CAC/B,CAAC,EACD,kCAA0B,CAAC,UAAU;QACpC,mDAAoC,CAAC,gBAAgB,CACtD;IACD;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACH,SAAgB,4BAA4B,CAC3C,yBAA0D,EAC1D,SAAqB,EACrB,EAAqB;IAErB,IAAA,qCAA0B,EACzB,WAAW,EACX,SAAS,EACT,wCAAgC,EAChC,8CAAsC,EACtC,yBAAyB,EACzB,SAAS,EACT,EAAE,CACF,CAAC;AACH,CAAC;AAdD,oEAcC","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 {\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 DataStore layer that is the same across all layer boundaries.\n * @internal\n */\nexport const dataStoreCoreCompatDetails = {\n\t/**\n\t * The package version of the DataStore layer.\n\t */\n\tpkgVersion,\n\t/**\n\t * The current generation of the DataStore layer.\n\t */\n\tgeneration,\n} as const;\n\n/**\n * DataStore's compatibility details that is exposed to the Runtime layer.\n * @internal\n */\nexport const dataStoreCompatDetailsForRuntime: ILayerCompatDetails = {\n\t...dataStoreCoreCompatDetails,\n\t/**\n\t * The features supported by the DataStore layer across the DataStore / 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 DataStore.\n * @internal\n */\nexport const runtimeSupportRequirementsForDataStore: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Runtime must be at to be compatible with this DataStore. This is calculated\n\t * based on the LayerCompatibilityPolicyWindowMonths.DataStoreRuntime value which defines how many months old can\n\t * the Runtime layer be compared to the DataStore 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\tdataStoreCoreCompatDetails.generation -\n\t\t\tLayerCompatibilityPolicyWindowMonths.DataStoreRuntime,\n\t),\n\t/**\n\t * The features that the Runtime must support to be compatible with DataStore.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * Validates that the Runtime layer is compatible with this DataStore.\n * @internal\n */\nexport function validateRuntimeCompatibility(\n\tmaybeRuntimeCompatDetails: ILayerCompatDetails | undefined,\n\tdisposeFn: () => void,\n\tmc: MonitoringContext,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"dataStore\",\n\t\t\"runtime\",\n\t\tdataStoreCompatDetailsForRuntime,\n\t\truntimeSupportRequirementsForDataStore,\n\t\tmaybeRuntimeCompatDetails,\n\t\tdisposeFn,\n\t\tmc,\n\t);\n}\n"]}
@@ -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/datastore";
8
- export declare const pkgVersion = "2.81.1";
8
+ export declare const pkgVersion = "2.83.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -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/datastore";
11
- exports.pkgVersion = "2.81.1";
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,2BAA2B,CAAC;AACtC,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/datastore\";\nexport const pkgVersion = \"2.81.1\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,2BAA2B,CAAC;AACtC,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/datastore\";\nexport const pkgVersion = \"2.83.0\";\n"]}
@@ -12,11 +12,11 @@ export declare const dataStoreCoreCompatDetails: {
12
12
  /**
13
13
  * The package version of the DataStore layer.
14
14
  */
15
- pkgVersion: string;
15
+ readonly pkgVersion: "2.83.0";
16
16
  /**
17
17
  * The current generation of the DataStore layer.
18
18
  */
19
- generation: number;
19
+ readonly generation: 4;
20
20
  };
21
21
  /**
22
22
  * DataStore's compatibility details that is exposed to the Runtime layer.
@@ -1 +1 @@
1
- {"version":3,"file":"dataStoreLayerCompatState.d.ts","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEN,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,0CAA0C,CAAC;AAIlD;;;GAGG;AACH,eAAO,MAAM,0BAA0B;IACtC;;OAEG;;IAEH;;OAEG;;CAEH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,mBAM9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,+BAUpD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,yBAAyB,EAAE,mBAAmB,GAAG,SAAS,EAC1D,SAAS,EAAE,MAAM,IAAI,EACrB,EAAE,EAAE,iBAAiB,GACnB,IAAI,CAUN"}
1
+ {"version":3,"file":"dataStoreLayerCompatState.d.ts","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGN,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,0CAA0C,CAAC;AAIlD;;;GAGG;AACH,eAAO,MAAM,0BAA0B;IACtC;;OAEG;;IAEH;;OAEG;;CAEM,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,mBAM9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,EAAE,+BAgBpD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,yBAAyB,EAAE,mBAAmB,GAAG,SAAS,EAC1D,SAAS,EAAE,MAAM,IAAI,EACrB,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,13 @@ export const dataStoreCompatDetailsForRuntime = {
36
36
  */
37
37
  export const runtimeSupportRequirementsForDataStore = {
38
38
  /**
39
- * Minimum generation that Runtime must be at to be compatible with DataStore. Note that 0 is used here so
40
- * that Runtime layers before the introduction of the layer compatibility enforcement are compatible.
39
+ * Minimum generation that Runtime must be at to be compatible with this DataStore. This is calculated
40
+ * based on the LayerCompatibilityPolicyWindowMonths.DataStoreRuntime value which defines how many months old can
41
+ * the Runtime layer be compared to the DataStore 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, dataStoreCoreCompatDetails.generation -
45
+ LayerCompatibilityPolicyWindowMonths.DataStoreRuntime),
43
46
  /**
44
47
  * The features that the Runtime must support to be compatible with DataStore.
45
48
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dataStoreLayerCompatState.js","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,UAAU,GAGV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,0BAA0B,GAE1B,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,UAAU;IACV;;OAEG;IACH,UAAU;CACV,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAwB;IACpE,GAAG,0BAA0B;IAC7B;;OAEG;IACH,iBAAiB,EAAE,IAAI,GAAG,EAAU;CACpC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAoC;IACtF;;;OAGG;IACH,sBAAsB,EAAE,CAAC;IACzB;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAC3C,yBAA0D,EAC1D,SAAqB,EACrB,EAAqB;IAErB,0BAA0B,CACzB,WAAW,EACX,SAAS,EACT,gCAAgC,EAChC,sCAAsC,EACtC,yBAAyB,EACzB,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\ttype ILayerCompatDetails,\n\ttype ILayerCompatSupportRequirements,\n} from \"@fluid-internal/client-utils\";\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 DataStore layer that is the same across all layer boundaries.\n * @internal\n */\nexport const dataStoreCoreCompatDetails = {\n\t/**\n\t * The package version of the DataStore layer.\n\t */\n\tpkgVersion,\n\t/**\n\t * The current generation of the DataStore layer.\n\t */\n\tgeneration,\n};\n\n/**\n * DataStore's compatibility details that is exposed to the Runtime layer.\n * @internal\n */\nexport const dataStoreCompatDetailsForRuntime: ILayerCompatDetails = {\n\t...dataStoreCoreCompatDetails,\n\t/**\n\t * The features supported by the DataStore layer across the DataStore / 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 DataStore.\n * @internal\n */\nexport const runtimeSupportRequirementsForDataStore: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Runtime must be at to be compatible with DataStore. Note that 0 is used here so\n\t * that Runtime layers before the introduction of the layer compatibility enforcement are compatible.\n\t */\n\tminSupportedGeneration: 0,\n\t/**\n\t * The features that the Runtime must support to be compatible with DataStore.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * Validates that the Runtime layer is compatible with this DataStore.\n * @internal\n */\nexport function validateRuntimeCompatibility(\n\tmaybeRuntimeCompatDetails: ILayerCompatDetails | undefined,\n\tdisposeFn: () => void,\n\tmc: MonitoringContext,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"dataStore\",\n\t\t\"runtime\",\n\t\tdataStoreCompatDetailsForRuntime,\n\t\truntimeSupportRequirementsForDataStore,\n\t\tmaybeRuntimeCompatDetails,\n\t\tdisposeFn,\n\t\tmc,\n\t);\n}\n"]}
1
+ {"version":3,"file":"dataStoreLayerCompatState.js","sourceRoot":"","sources":["../src/dataStoreLayerCompatState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,UAAU,EACV,oCAAoC,GAGpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,0BAA0B,GAE1B,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,UAAU;IACV;;OAEG;IACH,UAAU;CACD,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAwB;IACpE,GAAG,0BAA0B;IAC7B;;OAEG;IACH,iBAAiB,EAAE,IAAI,GAAG,EAAU;CACpC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAoC;IACtF;;;;;OAKG;IACH,sBAAsB,EAAE,IAAI,CAAC,GAAG,CAC/B,CAAC,EACD,0BAA0B,CAAC,UAAU;QACpC,oCAAoC,CAAC,gBAAgB,CACtD;IACD;;OAEG;IACH,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAC3C,yBAA0D,EAC1D,SAAqB,EACrB,EAAqB;IAErB,0BAA0B,CACzB,WAAW,EACX,SAAS,EACT,gCAAgC,EAChC,sCAAsC,EACtC,yBAAyB,EACzB,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 {\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 DataStore layer that is the same across all layer boundaries.\n * @internal\n */\nexport const dataStoreCoreCompatDetails = {\n\t/**\n\t * The package version of the DataStore layer.\n\t */\n\tpkgVersion,\n\t/**\n\t * The current generation of the DataStore layer.\n\t */\n\tgeneration,\n} as const;\n\n/**\n * DataStore's compatibility details that is exposed to the Runtime layer.\n * @internal\n */\nexport const dataStoreCompatDetailsForRuntime: ILayerCompatDetails = {\n\t...dataStoreCoreCompatDetails,\n\t/**\n\t * The features supported by the DataStore layer across the DataStore / 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 DataStore.\n * @internal\n */\nexport const runtimeSupportRequirementsForDataStore: ILayerCompatSupportRequirements = {\n\t/**\n\t * Minimum generation that Runtime must be at to be compatible with this DataStore. This is calculated\n\t * based on the LayerCompatibilityPolicyWindowMonths.DataStoreRuntime value which defines how many months old can\n\t * the Runtime layer be compared to the DataStore 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\tdataStoreCoreCompatDetails.generation -\n\t\t\tLayerCompatibilityPolicyWindowMonths.DataStoreRuntime,\n\t),\n\t/**\n\t * The features that the Runtime must support to be compatible with DataStore.\n\t */\n\trequiredFeatures: [],\n};\n\n/**\n * Validates that the Runtime layer is compatible with this DataStore.\n * @internal\n */\nexport function validateRuntimeCompatibility(\n\tmaybeRuntimeCompatDetails: ILayerCompatDetails | undefined,\n\tdisposeFn: () => void,\n\tmc: MonitoringContext,\n): void {\n\tvalidateLayerCompatibility(\n\t\t\"dataStore\",\n\t\t\"runtime\",\n\t\tdataStoreCompatDetailsForRuntime,\n\t\truntimeSupportRequirementsForDataStore,\n\t\tmaybeRuntimeCompatDetails,\n\t\tdisposeFn,\n\t\tmc,\n\t);\n}\n"]}
@@ -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/datastore";
8
- export declare const pkgVersion = "2.81.1";
8
+ export declare const pkgVersion = "2.83.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/datastore";
8
- export const pkgVersion = "2.81.1";
8
+ export const pkgVersion = "2.83.0";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,2BAA2B,CAAC;AACnD,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/datastore\";\nexport const pkgVersion = \"2.81.1\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,2BAA2B,CAAC;AACnD,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/datastore\";\nexport const pkgVersion = \"2.83.0\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/datastore",
3
- "version": "2.81.1",
3
+ "version": "2.83.0",
4
4
  "description": "Fluid data store implementation",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -69,33 +69,33 @@
69
69
  "temp-directory": "nyc/.nyc_output"
70
70
  },
71
71
  "dependencies": {
72
- "@fluid-internal/client-utils": "~2.81.1",
73
- "@fluidframework/container-definitions": "~2.81.1",
74
- "@fluidframework/core-interfaces": "~2.81.1",
75
- "@fluidframework/core-utils": "~2.81.1",
76
- "@fluidframework/datastore-definitions": "~2.81.1",
77
- "@fluidframework/driver-definitions": "~2.81.1",
78
- "@fluidframework/driver-utils": "~2.81.1",
79
- "@fluidframework/id-compressor": "~2.81.1",
80
- "@fluidframework/runtime-definitions": "~2.81.1",
81
- "@fluidframework/runtime-utils": "~2.81.1",
82
- "@fluidframework/telemetry-utils": "~2.81.1",
72
+ "@fluid-internal/client-utils": "~2.83.0",
73
+ "@fluidframework/container-definitions": "~2.83.0",
74
+ "@fluidframework/core-interfaces": "~2.83.0",
75
+ "@fluidframework/core-utils": "~2.83.0",
76
+ "@fluidframework/datastore-definitions": "~2.83.0",
77
+ "@fluidframework/driver-definitions": "~2.83.0",
78
+ "@fluidframework/driver-utils": "~2.83.0",
79
+ "@fluidframework/id-compressor": "~2.83.0",
80
+ "@fluidframework/runtime-definitions": "~2.83.0",
81
+ "@fluidframework/runtime-utils": "~2.83.0",
82
+ "@fluidframework/telemetry-utils": "~2.83.0",
83
83
  "uuid": "^11.1.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@arethetypeswrong/cli": "^0.18.2",
87
87
  "@biomejs/biome": "~1.9.3",
88
- "@fluid-internal/mocha-test-setup": "~2.81.1",
88
+ "@fluid-internal/mocha-test-setup": "~2.83.0",
89
89
  "@fluid-tools/build-cli": "^0.63.0",
90
90
  "@fluidframework/build-common": "^2.0.3",
91
91
  "@fluidframework/build-tools": "^0.63.0",
92
- "@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.81.0",
93
- "@fluidframework/eslint-config-fluid": "~2.81.1",
94
- "@fluidframework/test-runtime-utils": "~2.81.1",
92
+ "@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.82.0",
93
+ "@fluidframework/eslint-config-fluid": "~2.83.0",
94
+ "@fluidframework/test-runtime-utils": "~2.83.0",
95
95
  "@microsoft/api-extractor": "7.52.11",
96
96
  "@types/lodash": "^4.14.118",
97
97
  "@types/mocha": "^10.0.10",
98
- "@types/node": "^18.19.0",
98
+ "@types/node": "~20.19.30",
99
99
  "@types/sinon": "^17.0.3",
100
100
  "c8": "^10.1.3",
101
101
  "concurrently": "^9.2.1",
@@ -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";
@@ -28,7 +29,7 @@ export const dataStoreCoreCompatDetails = {
28
29
  * The current generation of the DataStore layer.
29
30
  */
30
31
  generation,
31
- };
32
+ } as const;
32
33
 
33
34
  /**
34
35
  * DataStore's compatibility details that is exposed to the Runtime layer.
@@ -48,10 +49,16 @@ export const dataStoreCompatDetailsForRuntime: ILayerCompatDetails = {
48
49
  */
49
50
  export const runtimeSupportRequirementsForDataStore: ILayerCompatSupportRequirements = {
50
51
  /**
51
- * Minimum generation that Runtime must be at to be compatible with DataStore. Note that 0 is used here so
52
- * that Runtime layers before the introduction of the layer compatibility enforcement are compatible.
52
+ * Minimum generation that Runtime must be at to be compatible with this DataStore. This is calculated
53
+ * based on the LayerCompatibilityPolicyWindowMonths.DataStoreRuntime value which defines how many months old can
54
+ * the Runtime layer be compared to the DataStore layer for them to still be considered compatible.
55
+ * The minimum valid generation value is 0.
53
56
  */
54
- minSupportedGeneration: 0,
57
+ minSupportedGeneration: Math.max(
58
+ 0,
59
+ dataStoreCoreCompatDetails.generation -
60
+ LayerCompatibilityPolicyWindowMonths.DataStoreRuntime,
61
+ ),
55
62
  /**
56
63
  * The features that the Runtime must support to be compatible with DataStore.
57
64
  */
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/datastore";
9
- export const pkgVersion = "2.81.1";
9
+ export const pkgVersion = "2.83.0";
@@ -1,4 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "../../../common/build/build-common/api-extractor-lint.esm.primary.json"
4
- }
package/biome.jsonc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3
- "extends": ["../../../biome.jsonc"]
4
- }