@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.
@@ -29,8 +29,7 @@ import type {
29
29
  IFluidDataStoreRuntime,
30
30
  IFluidDataStoreRuntimeEvents,
31
31
  IDeltaManagerErased,
32
- // eslint-disable-next-line import/no-deprecated
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 IFluidDataStoreRuntimeExperimental.inStagingMode
453
+ * Implementation of IFluidDataStoreRuntimeAlpha.inStagingMode
460
454
  */
461
- // eslint-disable-next-line import/no-deprecated
462
- private get inStagingMode(): IFluidDataStoreRuntimeExperimental["inStagingMode"] {
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 IFluidDataStoreRuntimeExperimental.isDirty
460
+ * Implementation of IFluidDataStoreRuntimeAlpha.isDirty
472
461
  */
473
- // eslint-disable-next-line import/no-deprecated
474
- private get isDirty(): IFluidDataStoreRuntimeExperimental["isDirty"] {
462
+ private get isDirty(): IFluidDataStoreRuntimeAlpha["isDirty"] {
475
463
  return this.pendingOpCount.value > 0;
476
464
  }
477
465
 
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/datastore";
9
- export const pkgVersion = "2.70.0-361788";
9
+ export const pkgVersion = "2.70.0";