@fluidframework/datastore 2.74.0 → 2.81.0-374083
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/api-report/datastore.legacy.beta.api.md +2 -2
- package/dist/channelContext.d.ts +1 -1
- package/dist/channelContext.d.ts.map +1 -1
- package/dist/channelContext.js.map +1 -1
- package/dist/dataStoreLayerCompatState.d.ts +3 -3
- package/dist/dataStoreLayerCompatState.d.ts.map +1 -1
- package/dist/dataStoreLayerCompatState.js +4 -3
- package/dist/dataStoreLayerCompatState.js.map +1 -1
- package/dist/dataStoreRuntime.d.ts +2 -2
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js +4 -5
- package/dist/dataStoreRuntime.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/eslint.config.mts +4 -4
- package/lib/channelContext.d.ts +1 -1
- package/lib/channelContext.d.ts.map +1 -1
- package/lib/channelContext.js.map +1 -1
- package/lib/dataStoreLayerCompatState.d.ts +3 -3
- package/lib/dataStoreLayerCompatState.d.ts.map +1 -1
- package/lib/dataStoreLayerCompatState.js +4 -3
- package/lib/dataStoreLayerCompatState.js.map +1 -1
- package/lib/dataStoreRuntime.d.ts +2 -2
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/dataStoreRuntime.js +5 -6
- package/lib/dataStoreRuntime.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/package.json +23 -23
- package/src/channelContext.ts +1 -1
- package/src/dataStoreLayerCompatState.ts +8 -7
- package/src/dataStoreRuntime.ts +18 -10
- package/src/packageVersion.ts +1 -1
- package/.eslintrc.cjs +0 -11
|
@@ -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,
|
|
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,eAAe,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.0-374083\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/datastore",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.81.0-374083",
|
|
4
4
|
"description": "Fluid data store implementation",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -69,43 +69,43 @@
|
|
|
69
69
|
"temp-directory": "nyc/.nyc_output"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@fluid-internal/client-utils": "
|
|
73
|
-
"@fluidframework/container-definitions": "
|
|
74
|
-
"@fluidframework/core-interfaces": "
|
|
75
|
-
"@fluidframework/core-utils": "
|
|
76
|
-
"@fluidframework/datastore-definitions": "
|
|
77
|
-
"@fluidframework/driver-definitions": "
|
|
78
|
-
"@fluidframework/driver-utils": "
|
|
79
|
-
"@fluidframework/id-compressor": "
|
|
80
|
-
"@fluidframework/runtime-definitions": "
|
|
81
|
-
"@fluidframework/runtime-utils": "
|
|
82
|
-
"@fluidframework/telemetry-utils": "
|
|
72
|
+
"@fluid-internal/client-utils": "2.81.0-374083",
|
|
73
|
+
"@fluidframework/container-definitions": "2.81.0-374083",
|
|
74
|
+
"@fluidframework/core-interfaces": "2.81.0-374083",
|
|
75
|
+
"@fluidframework/core-utils": "2.81.0-374083",
|
|
76
|
+
"@fluidframework/datastore-definitions": "2.81.0-374083",
|
|
77
|
+
"@fluidframework/driver-definitions": "2.81.0-374083",
|
|
78
|
+
"@fluidframework/driver-utils": "2.81.0-374083",
|
|
79
|
+
"@fluidframework/id-compressor": "2.81.0-374083",
|
|
80
|
+
"@fluidframework/runtime-definitions": "2.81.0-374083",
|
|
81
|
+
"@fluidframework/runtime-utils": "2.81.0-374083",
|
|
82
|
+
"@fluidframework/telemetry-utils": "2.81.0-374083",
|
|
83
83
|
"uuid": "^11.1.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@arethetypeswrong/cli": "^0.
|
|
86
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
87
87
|
"@biomejs/biome": "~1.9.3",
|
|
88
|
-
"@fluid-internal/mocha-test-setup": "
|
|
89
|
-
"@fluid-tools/build-cli": "^0.
|
|
88
|
+
"@fluid-internal/mocha-test-setup": "2.81.0-374083",
|
|
89
|
+
"@fluid-tools/build-cli": "^0.63.0",
|
|
90
90
|
"@fluidframework/build-common": "^2.0.3",
|
|
91
|
-
"@fluidframework/build-tools": "^0.
|
|
92
|
-
"@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.
|
|
93
|
-
"@fluidframework/eslint-config-fluid": "
|
|
94
|
-
"@fluidframework/test-runtime-utils": "
|
|
91
|
+
"@fluidframework/build-tools": "^0.63.0",
|
|
92
|
+
"@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.80.0",
|
|
93
|
+
"@fluidframework/eslint-config-fluid": "2.81.0-374083",
|
|
94
|
+
"@fluidframework/test-runtime-utils": "2.81.0-374083",
|
|
95
95
|
"@microsoft/api-extractor": "7.52.11",
|
|
96
96
|
"@types/lodash": "^4.14.118",
|
|
97
97
|
"@types/mocha": "^10.0.10",
|
|
98
98
|
"@types/node": "^18.19.0",
|
|
99
99
|
"@types/sinon": "^17.0.3",
|
|
100
100
|
"c8": "^10.1.3",
|
|
101
|
-
"concurrently": "^
|
|
101
|
+
"concurrently": "^9.2.1",
|
|
102
102
|
"copyfiles": "^2.4.1",
|
|
103
|
-
"cross-env": "^
|
|
104
|
-
"eslint": "~
|
|
103
|
+
"cross-env": "^10.1.0",
|
|
104
|
+
"eslint": "~9.39.1",
|
|
105
105
|
"jiti": "^2.6.1",
|
|
106
106
|
"mocha": "^10.8.2",
|
|
107
107
|
"mocha-multi-reporters": "^1.5.1",
|
|
108
|
-
"rimraf": "^
|
|
108
|
+
"rimraf": "^6.1.2",
|
|
109
109
|
"sinon": "^18.0.1",
|
|
110
110
|
"typescript": "~5.4.5"
|
|
111
111
|
},
|
package/src/channelContext.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface IChannelContext {
|
|
|
51
51
|
telemetryContext?: ITelemetryContext,
|
|
52
52
|
): Promise<ISummarizeResult>;
|
|
53
53
|
|
|
54
|
-
reSubmit(content: unknown, localOpMetadata: unknown, squash
|
|
54
|
+
reSubmit(content: unknown, localOpMetadata: unknown, squash: boolean): void;
|
|
55
55
|
|
|
56
56
|
applyStashedOp(content: unknown): unknown;
|
|
57
57
|
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
import {
|
|
7
|
+
generation,
|
|
8
|
+
type ILayerCompatDetails,
|
|
9
|
+
type ILayerCompatSupportRequirements,
|
|
9
10
|
} from "@fluid-internal/client-utils";
|
|
10
11
|
import {
|
|
11
12
|
validateLayerCompatibility,
|
|
12
|
-
type
|
|
13
|
+
type MonitoringContext,
|
|
13
14
|
} from "@fluidframework/telemetry-utils/internal";
|
|
14
15
|
|
|
15
16
|
import { pkgVersion } from "./packageVersion.js";
|
|
@@ -26,7 +27,7 @@ export const dataStoreCoreCompatDetails = {
|
|
|
26
27
|
/**
|
|
27
28
|
* The current generation of the DataStore layer.
|
|
28
29
|
*/
|
|
29
|
-
generation
|
|
30
|
+
generation,
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
/**
|
|
@@ -64,7 +65,7 @@ export const runtimeSupportRequirementsForDataStore: ILayerCompatSupportRequirem
|
|
|
64
65
|
export function validateRuntimeCompatibility(
|
|
65
66
|
maybeRuntimeCompatDetails: ILayerCompatDetails | undefined,
|
|
66
67
|
disposeFn: () => void,
|
|
67
|
-
|
|
68
|
+
mc: MonitoringContext,
|
|
68
69
|
): void {
|
|
69
70
|
validateLayerCompatibility(
|
|
70
71
|
"dataStore",
|
|
@@ -73,6 +74,6 @@ export function validateRuntimeCompatibility(
|
|
|
73
74
|
runtimeSupportRequirementsForDataStore,
|
|
74
75
|
maybeRuntimeCompatDetails,
|
|
75
76
|
disposeFn,
|
|
76
|
-
|
|
77
|
+
mc,
|
|
77
78
|
);
|
|
78
79
|
}
|
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -65,6 +65,8 @@ import {
|
|
|
65
65
|
type IFluidDataStorePolicies,
|
|
66
66
|
type MinimumVersionForCollab,
|
|
67
67
|
asLegacyAlpha,
|
|
68
|
+
currentSummarizeStepPrefix,
|
|
69
|
+
currentSummarizeStepPropertyName,
|
|
68
70
|
} from "@fluidframework/runtime-definitions/internal";
|
|
69
71
|
import {
|
|
70
72
|
GCDataBuilder,
|
|
@@ -349,11 +351,7 @@ export class FluidDataStoreRuntime
|
|
|
349
351
|
// Validate that the Runtime is compatible with this DataStore.
|
|
350
352
|
const { ILayerCompatDetails: runtimeCompatDetails } =
|
|
351
353
|
dataStoreContext as FluidObject<ILayerCompatDetails>;
|
|
352
|
-
validateRuntimeCompatibility(
|
|
353
|
-
runtimeCompatDetails,
|
|
354
|
-
this.dispose.bind(this),
|
|
355
|
-
this.mc.logger,
|
|
356
|
-
);
|
|
354
|
+
validateRuntimeCompatibility(runtimeCompatDetails, this.dispose.bind(this), this.mc);
|
|
357
355
|
|
|
358
356
|
if (contextSupportsFeature(dataStoreContext, notifiesReadOnlyState)) {
|
|
359
357
|
this._readonly = dataStoreContext.isReadOnly();
|
|
@@ -1280,7 +1278,7 @@ export class FluidDataStoreRuntime
|
|
|
1280
1278
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
1281
1279
|
content: any,
|
|
1282
1280
|
localOpMetadata: unknown,
|
|
1283
|
-
squash
|
|
1281
|
+
squash: boolean,
|
|
1284
1282
|
): void {
|
|
1285
1283
|
this.verifyNotClosed();
|
|
1286
1284
|
|
|
@@ -1560,6 +1558,7 @@ export const mixinRequestHandler = (
|
|
|
1560
1558
|
export const mixinSummaryHandler = (
|
|
1561
1559
|
handler: (
|
|
1562
1560
|
runtime: FluidDataStoreRuntime,
|
|
1561
|
+
setCurrentSummarizeStep: (currentStep: string) => void,
|
|
1563
1562
|
) => Promise<{ path: string[]; content: string } | undefined>,
|
|
1564
1563
|
Base: typeof FluidDataStoreRuntime = FluidDataStoreRuntime,
|
|
1565
1564
|
): typeof FluidDataStoreRuntime =>
|
|
@@ -1587,12 +1586,21 @@ export const mixinSummaryHandler = (
|
|
|
1587
1586
|
summary.summary.tree[firstName] = blob;
|
|
1588
1587
|
}
|
|
1589
1588
|
|
|
1590
|
-
async summarize(
|
|
1591
|
-
|
|
1592
|
-
|
|
1589
|
+
async summarize(
|
|
1590
|
+
fullTree: boolean = false,
|
|
1591
|
+
trackState: boolean = true,
|
|
1592
|
+
telemetryContext?: ITelemetryContext,
|
|
1593
|
+
): Promise<ISummaryTreeWithStats> {
|
|
1594
|
+
const summary = await super.summarize(fullTree, trackState, telemetryContext);
|
|
1593
1595
|
|
|
1594
1596
|
try {
|
|
1595
|
-
const content = await handler(this)
|
|
1597
|
+
const content = await handler(this, (currentStep: string) =>
|
|
1598
|
+
telemetryContext?.set(
|
|
1599
|
+
currentSummarizeStepPrefix,
|
|
1600
|
+
currentSummarizeStepPropertyName,
|
|
1601
|
+
`mixinSummaryHandler:${currentStep}`,
|
|
1602
|
+
),
|
|
1603
|
+
);
|
|
1596
1604
|
if (content !== undefined) {
|
|
1597
1605
|
this.addBlob(summary, content.path, content.content);
|
|
1598
1606
|
}
|
package/src/packageVersion.ts
CHANGED
package/.eslintrc.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
extends: [require.resolve("@fluidframework/eslint-config-fluid"), "prettier"],
|
|
8
|
-
parserOptions: {
|
|
9
|
-
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
|
|
10
|
-
},
|
|
11
|
-
};
|