@fluidframework/datastore 2.70.0-361788 → 2.70.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/dist/dataStoreRuntime.d.ts +2 -2
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js +4 -12
- 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/dataStoreRuntime.d.ts +2 -2
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/dataStoreRuntime.js +5 -13
- 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 +14 -14
- package/src/dataStoreRuntime.ts +8 -20
- package/src/packageVersion.ts +1 -1
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -29,8 +29,7 @@ import type {
|
|
|
29
29
|
IFluidDataStoreRuntime,
|
|
30
30
|
IFluidDataStoreRuntimeEvents,
|
|
31
31
|
IDeltaManagerErased,
|
|
32
|
-
|
|
33
|
-
IFluidDataStoreRuntimeExperimental,
|
|
32
|
+
IFluidDataStoreRuntimeAlpha,
|
|
34
33
|
} from "@fluidframework/datastore-definitions/internal";
|
|
35
34
|
import {
|
|
36
35
|
type IClientDetails,
|
|
@@ -61,12 +60,11 @@ import {
|
|
|
61
60
|
type IInboundSignalMessage,
|
|
62
61
|
type IRuntimeMessageCollection,
|
|
63
62
|
type IRuntimeMessagesContent,
|
|
64
|
-
// eslint-disable-next-line import/no-deprecated
|
|
65
|
-
type IContainerRuntimeBaseExperimental,
|
|
66
63
|
notifiesReadOnlyState,
|
|
67
64
|
encodeHandlesInContainerRuntime,
|
|
68
65
|
type IFluidDataStorePolicies,
|
|
69
66
|
type MinimumVersionForCollab,
|
|
67
|
+
asLegacyAlpha,
|
|
70
68
|
} from "@fluidframework/runtime-definitions/internal";
|
|
71
69
|
import {
|
|
72
70
|
GCDataBuilder,
|
|
@@ -328,6 +326,7 @@ export class FluidDataStoreRuntime
|
|
|
328
326
|
namespace: "FluidDataStoreRuntime",
|
|
329
327
|
properties: {
|
|
330
328
|
all: { dataStoreId: uuid(), dataStoreVersion: pkgVersion },
|
|
329
|
+
error: { inStagingMode: () => this.inStagingMode, isDirty: () => this.isDirty },
|
|
331
330
|
},
|
|
332
331
|
});
|
|
333
332
|
|
|
@@ -447,31 +446,20 @@ export class FluidDataStoreRuntime
|
|
|
447
446
|
this.localChangesTelemetryCount =
|
|
448
447
|
this.mc.config.getNumber("Fluid.Telemetry.LocalChangesTelemetryCount") ?? 10;
|
|
449
448
|
|
|
450
|
-
// Reference these properties to avoid unused private member errors.
|
|
451
|
-
// They're accessed via IFluidDataStoreRuntimeExperimental interface.
|
|
452
|
-
// eslint-disable-next-line no-void
|
|
453
|
-
void [this.inStagingMode, this.isDirty];
|
|
454
|
-
|
|
455
449
|
this.minVersionForCollab = this.dataStoreContext.minVersionForCollab;
|
|
456
450
|
}
|
|
457
451
|
|
|
458
452
|
/**
|
|
459
|
-
* Implementation of
|
|
453
|
+
* Implementation of IFluidDataStoreRuntimeAlpha.inStagingMode
|
|
460
454
|
*/
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
return (
|
|
464
|
-
// eslint-disable-next-line import/no-deprecated
|
|
465
|
-
(this.dataStoreContext.containerRuntime as IContainerRuntimeBaseExperimental)
|
|
466
|
-
?.inStagingMode
|
|
467
|
-
);
|
|
455
|
+
private get inStagingMode(): IFluidDataStoreRuntimeAlpha["inStagingMode"] {
|
|
456
|
+
return asLegacyAlpha(this.dataStoreContext.containerRuntime)?.inStagingMode;
|
|
468
457
|
}
|
|
469
458
|
|
|
470
459
|
/**
|
|
471
|
-
* Implementation of
|
|
460
|
+
* Implementation of IFluidDataStoreRuntimeAlpha.isDirty
|
|
472
461
|
*/
|
|
473
|
-
|
|
474
|
-
private get isDirty(): IFluidDataStoreRuntimeExperimental["isDirty"] {
|
|
462
|
+
private get isDirty(): IFluidDataStoreRuntimeAlpha["isDirty"] {
|
|
475
463
|
return this.pendingOpCount.value > 0;
|
|
476
464
|
}
|
|
477
465
|
|
package/src/packageVersion.ts
CHANGED