@fluidframework/datastore 2.93.0 → 2.100.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/api-report/datastore.legacy.beta.api.md +2 -0
- package/dist/dataStoreLayerCompatState.d.ts +1 -1
- package/dist/dataStoreRuntime.d.ts +5 -5
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js +11 -8
- 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/lib/dataStoreLayerCompatState.d.ts +1 -1
- package/lib/dataStoreRuntime.d.ts +5 -5
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/dataStoreRuntime.js +13 -10
- 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 +16 -16
- package/src/dataStoreRuntime.ts +17 -13
- package/src/packageVersion.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/datastore",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.100.0",
|
|
4
4
|
"description": "Fluid data store implementation",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -69,29 +69,29 @@
|
|
|
69
69
|
"temp-directory": "nyc/.nyc_output"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@fluid-internal/client-utils": "~2.
|
|
73
|
-
"@fluidframework/container-definitions": "~2.
|
|
74
|
-
"@fluidframework/core-interfaces": "~2.
|
|
75
|
-
"@fluidframework/core-utils": "~2.
|
|
76
|
-
"@fluidframework/datastore-definitions": "~2.
|
|
77
|
-
"@fluidframework/driver-definitions": "~2.
|
|
78
|
-
"@fluidframework/driver-utils": "~2.
|
|
79
|
-
"@fluidframework/id-compressor": "~2.
|
|
80
|
-
"@fluidframework/runtime-definitions": "~2.
|
|
81
|
-
"@fluidframework/runtime-utils": "~2.
|
|
82
|
-
"@fluidframework/telemetry-utils": "~2.
|
|
72
|
+
"@fluid-internal/client-utils": "~2.100.0",
|
|
73
|
+
"@fluidframework/container-definitions": "~2.100.0",
|
|
74
|
+
"@fluidframework/core-interfaces": "~2.100.0",
|
|
75
|
+
"@fluidframework/core-utils": "~2.100.0",
|
|
76
|
+
"@fluidframework/datastore-definitions": "~2.100.0",
|
|
77
|
+
"@fluidframework/driver-definitions": "~2.100.0",
|
|
78
|
+
"@fluidframework/driver-utils": "~2.100.0",
|
|
79
|
+
"@fluidframework/id-compressor": "~2.100.0",
|
|
80
|
+
"@fluidframework/runtime-definitions": "~2.100.0",
|
|
81
|
+
"@fluidframework/runtime-utils": "~2.100.0",
|
|
82
|
+
"@fluidframework/telemetry-utils": "~2.100.0",
|
|
83
83
|
"uuid": "^11.1.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
87
87
|
"@biomejs/biome": "~2.4.5",
|
|
88
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
89
|
-
"@fluid-tools/build-cli": "^0.
|
|
88
|
+
"@fluid-internal/mocha-test-setup": "~2.100.0",
|
|
89
|
+
"@fluid-tools/build-cli": "^0.65.0",
|
|
90
90
|
"@fluidframework/build-common": "^2.0.3",
|
|
91
|
-
"@fluidframework/build-tools": "^0.
|
|
91
|
+
"@fluidframework/build-tools": "^0.65.0",
|
|
92
92
|
"@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.92.0",
|
|
93
93
|
"@fluidframework/eslint-config-fluid": "^9.0.0",
|
|
94
|
-
"@fluidframework/test-runtime-utils": "~2.
|
|
94
|
+
"@fluidframework/test-runtime-utils": "~2.100.0",
|
|
95
95
|
"@microsoft/api-extractor": "7.58.1",
|
|
96
96
|
"@types/lodash": "^4.14.118",
|
|
97
97
|
"@types/mocha": "^10.0.10",
|
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -29,7 +29,6 @@ import type {
|
|
|
29
29
|
IFluidDataStoreRuntime,
|
|
30
30
|
IFluidDataStoreRuntimeEvents,
|
|
31
31
|
IDeltaManagerErased,
|
|
32
|
-
IFluidDataStoreRuntimeAlpha,
|
|
33
32
|
} from "@fluidframework/datastore-definitions/internal";
|
|
34
33
|
import {
|
|
35
34
|
type IClientDetails,
|
|
@@ -64,7 +63,6 @@ import {
|
|
|
64
63
|
encodeHandlesInContainerRuntime,
|
|
65
64
|
type IFluidDataStorePolicies,
|
|
66
65
|
type MinimumVersionForCollab,
|
|
67
|
-
asLegacyAlpha,
|
|
68
66
|
currentSummarizeStepPrefix,
|
|
69
67
|
currentSummarizeStepPropertyName,
|
|
70
68
|
} from "@fluidframework/runtime-definitions/internal";
|
|
@@ -86,16 +84,19 @@ import {
|
|
|
86
84
|
encodeCompactIdToString,
|
|
87
85
|
} from "@fluidframework/runtime-utils/internal";
|
|
88
86
|
import {
|
|
89
|
-
type ITelemetryLoggerExt,
|
|
90
87
|
DataProcessingError,
|
|
91
88
|
LoggingError,
|
|
92
89
|
type MonitoringContext,
|
|
93
90
|
UsageError,
|
|
94
91
|
createChildMonitoringContext,
|
|
92
|
+
extractTelemetryLoggerExt,
|
|
95
93
|
generateStack,
|
|
96
94
|
raiseConnectedEvent,
|
|
97
95
|
tagCodeArtifacts,
|
|
96
|
+
toITelemetryLoggerExt,
|
|
98
97
|
} from "@fluidframework/telemetry-utils/internal";
|
|
98
|
+
// eslint-disable-next-line import-x/no-internal-modules -- Needed to avoid specialized /internal ITelemetryLoggerExt
|
|
99
|
+
import type { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/legacy";
|
|
99
100
|
import { v4 as uuid } from "uuid";
|
|
100
101
|
|
|
101
102
|
import { type IChannelContext, summarizeChannel } from "./channelContext.js";
|
|
@@ -354,7 +355,7 @@ export class FluidDataStoreRuntime
|
|
|
354
355
|
private readonly audience: IAudience;
|
|
355
356
|
private readonly mc: MonitoringContext;
|
|
356
357
|
public get logger(): ITelemetryLoggerExt {
|
|
357
|
-
return this.mc.logger;
|
|
358
|
+
return toITelemetryLoggerExt(this.mc.logger);
|
|
358
359
|
}
|
|
359
360
|
|
|
360
361
|
/**
|
|
@@ -422,7 +423,10 @@ export class FluidDataStoreRuntime
|
|
|
422
423
|
namespace: "FluidDataStoreRuntime",
|
|
423
424
|
properties: {
|
|
424
425
|
all: { dataStoreId: uuid(), dataStoreVersion: pkgVersion },
|
|
425
|
-
error: {
|
|
426
|
+
error: {
|
|
427
|
+
inStagingMode: () => this.inStagingMode,
|
|
428
|
+
isDirty: () => this.isDirty,
|
|
429
|
+
},
|
|
426
430
|
},
|
|
427
431
|
});
|
|
428
432
|
|
|
@@ -542,16 +546,16 @@ export class FluidDataStoreRuntime
|
|
|
542
546
|
}
|
|
543
547
|
|
|
544
548
|
/**
|
|
545
|
-
*
|
|
549
|
+
* {@inheritDoc @fluidframework/datastore-definitions#IFluidDataStoreRuntime.inStagingMode}
|
|
546
550
|
*/
|
|
547
|
-
|
|
548
|
-
return
|
|
551
|
+
public get inStagingMode(): boolean {
|
|
552
|
+
return this.dataStoreContext.containerRuntime.inStagingMode;
|
|
549
553
|
}
|
|
550
554
|
|
|
551
555
|
/**
|
|
552
|
-
*
|
|
556
|
+
* {@inheritDoc @fluidframework/datastore-definitions#IFluidDataStoreRuntime.isDirty}
|
|
553
557
|
*/
|
|
554
|
-
|
|
558
|
+
public get isDirty(): boolean {
|
|
555
559
|
return this.pendingOpCount.value > 0;
|
|
556
560
|
}
|
|
557
561
|
|
|
@@ -725,7 +729,7 @@ export class FluidDataStoreRuntime
|
|
|
725
729
|
this,
|
|
726
730
|
this.dataStoreContext,
|
|
727
731
|
this.dataStoreContext.storage,
|
|
728
|
-
this.logger,
|
|
732
|
+
extractTelemetryLoggerExt(this.logger),
|
|
729
733
|
(content, localOpMetadata) => this.submitChannelOp(channel.id, content, localOpMetadata),
|
|
730
734
|
(address: string) => this.setChannelDirty(address),
|
|
731
735
|
);
|
|
@@ -743,7 +747,7 @@ export class FluidDataStoreRuntime
|
|
|
743
747
|
this,
|
|
744
748
|
this.dataStoreContext,
|
|
745
749
|
this.dataStoreContext.storage,
|
|
746
|
-
this.logger,
|
|
750
|
+
extractTelemetryLoggerExt(this.logger),
|
|
747
751
|
(content, localOpMetadata) => this.submitChannelOp(id, content, localOpMetadata),
|
|
748
752
|
(address: string) => this.setChannelDirty(address),
|
|
749
753
|
tree,
|
|
@@ -834,7 +838,7 @@ export class FluidDataStoreRuntime
|
|
|
834
838
|
object.setConnectionState(connected, clientId);
|
|
835
839
|
}
|
|
836
840
|
|
|
837
|
-
raiseConnectedEvent(this.logger, this, connected, clientId);
|
|
841
|
+
raiseConnectedEvent(extractTelemetryLoggerExt(this.logger), this, connected, clientId);
|
|
838
842
|
}
|
|
839
843
|
|
|
840
844
|
private _readonly: boolean;
|
package/src/packageVersion.ts
CHANGED