@fluidframework/datastore 2.23.0-325054 → 2.30.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/datastore",
3
- "version": "2.23.0-325054",
3
+ "version": "2.30.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.23.0-325054",
73
- "@fluidframework/container-definitions": "2.23.0-325054",
74
- "@fluidframework/core-interfaces": "2.23.0-325054",
75
- "@fluidframework/core-utils": "2.23.0-325054",
76
- "@fluidframework/datastore-definitions": "2.23.0-325054",
77
- "@fluidframework/driver-definitions": "2.23.0-325054",
78
- "@fluidframework/driver-utils": "2.23.0-325054",
79
- "@fluidframework/id-compressor": "2.23.0-325054",
80
- "@fluidframework/runtime-definitions": "2.23.0-325054",
81
- "@fluidframework/runtime-utils": "2.23.0-325054",
82
- "@fluidframework/telemetry-utils": "2.23.0-325054",
72
+ "@fluid-internal/client-utils": "~2.30.0",
73
+ "@fluidframework/container-definitions": "~2.30.0",
74
+ "@fluidframework/core-interfaces": "~2.30.0",
75
+ "@fluidframework/core-utils": "~2.30.0",
76
+ "@fluidframework/datastore-definitions": "~2.30.0",
77
+ "@fluidframework/driver-definitions": "~2.30.0",
78
+ "@fluidframework/driver-utils": "~2.30.0",
79
+ "@fluidframework/id-compressor": "~2.30.0",
80
+ "@fluidframework/runtime-definitions": "~2.30.0",
81
+ "@fluidframework/runtime-utils": "~2.30.0",
82
+ "@fluidframework/telemetry-utils": "~2.30.0",
83
83
  "uuid": "^9.0.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@arethetypeswrong/cli": "^0.17.1",
87
87
  "@biomejs/biome": "~1.9.3",
88
- "@fluid-internal/mocha-test-setup": "2.23.0-325054",
88
+ "@fluid-internal/mocha-test-setup": "~2.30.0",
89
89
  "@fluid-tools/build-cli": "^0.54.0",
90
90
  "@fluidframework/build-common": "^2.0.3",
91
91
  "@fluidframework/build-tools": "^0.54.0",
92
- "@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.22.0",
92
+ "@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.23.0",
93
93
  "@fluidframework/eslint-config-fluid": "^5.7.3",
94
- "@fluidframework/test-runtime-utils": "2.23.0-325054",
94
+ "@fluidframework/test-runtime-utils": "~2.30.0",
95
95
  "@microsoft/api-extractor": "7.47.8",
96
96
  "@types/lodash": "^4.14.118",
97
97
  "@types/mocha": "^10.0.10",
@@ -102,7 +102,7 @@
102
102
  "copyfiles": "^2.4.1",
103
103
  "cross-env": "^7.0.3",
104
104
  "eslint": "~8.55.0",
105
- "mocha": "^10.2.0",
105
+ "mocha": "^10.8.2",
106
106
  "mocha-multi-reporters": "^1.5.1",
107
107
  "moment": "^2.21.0",
108
108
  "prettier": "~3.0.3",
@@ -110,7 +110,14 @@
110
110
  "typescript": "~5.4.5"
111
111
  },
112
112
  "typeValidation": {
113
- "broken": {},
113
+ "broken": {
114
+ "Class_FluidDataStoreRuntime": {
115
+ "backCompat": false
116
+ },
117
+ "ClassStatics_FluidDataStoreRuntime": {
118
+ "backCompat": false
119
+ }
120
+ },
114
121
  "entrypoint": "legacy"
115
122
  },
116
123
  "scripts": {
@@ -8,7 +8,6 @@ import {
8
8
  IDeltaConnection,
9
9
  IDeltaHandler,
10
10
  } from "@fluidframework/datastore-definitions/internal";
11
- import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
12
11
  import type {
13
12
  IRuntimeMessageCollection,
14
13
  IRuntimeMessagesContent,
@@ -100,30 +99,20 @@ export class ChannelDeltaConnection implements IDeltaConnection {
100
99
  }
101
100
 
102
101
  public processMessages(messageCollection: IRuntimeMessageCollection): void {
103
- const { envelope, messagesContent, local } = messageCollection;
104
102
  // catches as data processing error whether or not they come from async pending queues
105
103
  try {
106
- const newMessagesContent = getContentsWithStashedOpHandling(messagesContent);
107
- if (this.handler.processMessages !== undefined) {
108
- this.handler.processMessages({
109
- ...messageCollection,
110
- messagesContent: newMessagesContent,
111
- });
112
- } else {
113
- for (const { contents, localOpMetadata, clientSequenceNumber } of newMessagesContent) {
114
- const compatMessage: ISequencedDocumentMessage = {
115
- ...envelope,
116
- contents,
117
- clientSequenceNumber,
118
- };
119
- this.handler.process(compatMessage, local, localOpMetadata);
120
- }
121
- }
104
+ const newMessagesContent = getContentsWithStashedOpHandling(
105
+ messageCollection.messagesContent,
106
+ );
107
+ this.handler.processMessages({
108
+ ...messageCollection,
109
+ messagesContent: newMessagesContent,
110
+ });
122
111
  } catch (error) {
123
112
  throw DataProcessingError.wrapIfUnrecognized(
124
113
  error,
125
114
  "channelDeltaConnectionFailedToProcessMessages",
126
- envelope,
115
+ messageCollection.envelope,
127
116
  );
128
117
  }
129
118
  }
@@ -788,29 +788,6 @@ export class FluidDataStoreRuntime
788
788
  }
789
789
  }
790
790
 
791
- /**
792
- * back-compat ADO 21575.
793
- * @deprecated {@link FluidDataStoreRuntime.processMessages} should be used instead to process messages. This is still here for back-compat
794
- * because it exists on IFluidDataStoreChannel. Once it is removed from the interface, this method can be removed.
795
- */
796
- public process(
797
- message: ISequencedDocumentMessage,
798
- local: boolean,
799
- localOpMetadata: unknown,
800
- ) {
801
- this.processMessages({
802
- envelope: message,
803
- messagesContent: [
804
- {
805
- contents: message.contents,
806
- localOpMetadata,
807
- clientSequenceNumber: message.clientSequenceNumber,
808
- },
809
- ],
810
- local,
811
- });
812
- }
813
-
814
791
  public processSignal(message: IInboundSignalMessage, local: boolean) {
815
792
  this.emit("signal", message, local);
816
793
  }
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/datastore";
9
- export const pkgVersion = "2.23.0-325054";
9
+ export const pkgVersion = "2.30.0";