@fluidframework/datastore-definitions 2.5.0-302463 → 2.5.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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @fluidframework/datastore-definitions
|
|
2
2
|
|
|
3
|
+
## 2.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- The op event on IFluidDataStoreRuntimeEvents and IContainerRuntimeBaseEvents is emitted at a different time ([#22840](https://github.com/microsoft/FluidFramework/pull/22840)) [2e5b969d3a](https://github.com/microsoft/FluidFramework/commit/2e5b969d3a28b05da1502d521b725cee66e36a15)
|
|
8
|
+
|
|
9
|
+
Previously, in versions 2.4 and below, the `op` event was emitted immediately after an op was processed and before the next op was processed.
|
|
10
|
+
|
|
11
|
+
In versions 2.5.0 and beyond, the `op` event will be emitted after an op is processed, but it may not be immediate. In addition, other ops in a
|
|
12
|
+
batch may be processed before the op event is emitted for a particular op.
|
|
13
|
+
|
|
14
|
+
- The process function on IFluidDataStoreChannel, IDeltaHandler, MockFluidDataStoreRuntime and MockDeltaConnection is now deprecated ([#22840](https://github.com/microsoft/FluidFramework/pull/22840)) [2e5b969d3a](https://github.com/microsoft/FluidFramework/commit/2e5b969d3a28b05da1502d521b725cee66e36a15)
|
|
15
|
+
|
|
16
|
+
The process function on IFluidDataStoreChannel, IDeltaHandler, MockFluidDataStoreRuntime and MockDeltaConnection is now
|
|
17
|
+
deprecated. It has been replaced with a new function `processMessages`, which will be called to process multiple messages instead of a single one on the channel. This is part of a feature called "Op bunching", where contiguous ops of a given type and to a given data store / DDS are bunched and sent together for processing.
|
|
18
|
+
|
|
19
|
+
Implementations of `IFluidDataStoreChannel` and `IDeltaHandler` must now also implement `processMessages`. For reference implementations, see `FluidDataStoreRuntime::processMessages` and `SharedObjectCore::attachDeltaHandler`.
|
|
20
|
+
|
|
3
21
|
## 2.4.0
|
|
4
22
|
|
|
5
23
|
Dependency updates only.
|
|
@@ -58,7 +58,9 @@ export interface IDeltaConnection {
|
|
|
58
58
|
// @alpha
|
|
59
59
|
export interface IDeltaHandler {
|
|
60
60
|
applyStashedOp(message: any): void;
|
|
61
|
+
// @deprecated
|
|
61
62
|
process: (message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown) => void;
|
|
63
|
+
processMessages?: (messageCollection: IRuntimeMessageCollection) => void;
|
|
62
64
|
reSubmit(message: any, localOpMetadata: unknown): void;
|
|
63
65
|
rollback?(message: any, localOpMetadata: unknown): void;
|
|
64
66
|
setConnectionState(connected: boolean): void;
|
package/dist/channel.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { IFluidLoadable } from "@fluidframework/core-interfaces";
|
|
6
6
|
import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
7
|
-
import type { IExperimentalIncrementalSummaryContext, IGarbageCollectionData, ISummaryTreeWithStats, ITelemetryContext } from "@fluidframework/runtime-definitions/internal";
|
|
7
|
+
import type { IExperimentalIncrementalSummaryContext, IGarbageCollectionData, IRuntimeMessageCollection, ISummaryTreeWithStats, ITelemetryContext } from "@fluidframework/runtime-definitions/internal";
|
|
8
8
|
import type { IFluidDataStoreRuntime } from "./dataStoreRuntime.js";
|
|
9
9
|
import type { IChannelAttributes } from "./storage.js";
|
|
10
10
|
/**
|
|
@@ -106,8 +106,14 @@ export interface IDeltaHandler {
|
|
|
106
106
|
* @param local - Whether the message originated from the local client
|
|
107
107
|
* @param localOpMetadata - For local client messages, this is the metadata that was submitted with the message.
|
|
108
108
|
* For messages from a remote client, this will be undefined.
|
|
109
|
+
* @deprecated - Use processMessages instead to process messages.
|
|
109
110
|
*/
|
|
110
111
|
process: (message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown) => void;
|
|
112
|
+
/**
|
|
113
|
+
* Process messages for this channel. The messages here are contiguous messages for this channel in a batch.
|
|
114
|
+
* @param messageCollection - The collection of messages to process.
|
|
115
|
+
*/
|
|
116
|
+
processMessages?: (messageCollection: IRuntimeMessageCollection) => void;
|
|
111
117
|
/**
|
|
112
118
|
* State change events to indicate changes to the delta connection
|
|
113
119
|
* @param connected - true if connected, false otherwise
|
package/dist/channel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,EACX,sCAAsC,EACtC,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,gBAAgB,CACf,QAAQ,CAAC,EAAE,OAAO,EAClB,UAAU,CAAC,EAAE,OAAO,EACpB,gBAAgB,CAAC,EAAE,iBAAiB,GAClC,qBAAqB,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,SAAS,CACR,QAAQ,CAAC,EAAE,OAAO,EAClB,UAAU,CAAC,EAAE,OAAO,EACpB,gBAAgB,CAAC,EAAE,iBAAiB,EACpC,yBAAyB,CAAC,EAAE,sCAAsC,GAChE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;OAGG;IACH,UAAU,IAAI,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,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACtC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAChC,eAAe,EAAE,gBAAgB,CAAC;IAElC,aAAa,EAAE,sBAAsB,CAAC;CACtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,eAAe,CAAC,GAAG,CAAC,QAAQ,GAAG,OAAO;IACtD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAExC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACH,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,iBAAiB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAC7C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;CACzE"}
|
package/lib/channel.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { IFluidLoadable } from "@fluidframework/core-interfaces";
|
|
6
6
|
import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
7
|
-
import type { IExperimentalIncrementalSummaryContext, IGarbageCollectionData, ISummaryTreeWithStats, ITelemetryContext } from "@fluidframework/runtime-definitions/internal";
|
|
7
|
+
import type { IExperimentalIncrementalSummaryContext, IGarbageCollectionData, IRuntimeMessageCollection, ISummaryTreeWithStats, ITelemetryContext } from "@fluidframework/runtime-definitions/internal";
|
|
8
8
|
import type { IFluidDataStoreRuntime } from "./dataStoreRuntime.js";
|
|
9
9
|
import type { IChannelAttributes } from "./storage.js";
|
|
10
10
|
/**
|
|
@@ -106,8 +106,14 @@ export interface IDeltaHandler {
|
|
|
106
106
|
* @param local - Whether the message originated from the local client
|
|
107
107
|
* @param localOpMetadata - For local client messages, this is the metadata that was submitted with the message.
|
|
108
108
|
* For messages from a remote client, this will be undefined.
|
|
109
|
+
* @deprecated - Use processMessages instead to process messages.
|
|
109
110
|
*/
|
|
110
111
|
process: (message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown) => void;
|
|
112
|
+
/**
|
|
113
|
+
* Process messages for this channel. The messages here are contiguous messages for this channel in a batch.
|
|
114
|
+
* @param messageCollection - The collection of messages to process.
|
|
115
|
+
*/
|
|
116
|
+
processMessages?: (messageCollection: IRuntimeMessageCollection) => void;
|
|
111
117
|
/**
|
|
112
118
|
* State change events to indicate changes to the delta connection
|
|
113
119
|
* @param connected - true if connected, false otherwise
|
package/lib/channel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,EACX,sCAAsC,EACtC,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAExC;;;;;;;;;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package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/datastore-definitions",
|
|
3
|
-
"version": "2.5.0
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Fluid data store definitions",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"main": "",
|
|
42
42
|
"types": "lib/public.d.ts",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@fluidframework/container-definitions": "2.5.0
|
|
45
|
-
"@fluidframework/core-interfaces": "2.5.0
|
|
46
|
-
"@fluidframework/driver-definitions": "2.5.0
|
|
47
|
-
"@fluidframework/id-compressor": "2.5.0
|
|
48
|
-
"@fluidframework/runtime-definitions": "2.5.0
|
|
44
|
+
"@fluidframework/container-definitions": "~2.5.0",
|
|
45
|
+
"@fluidframework/core-interfaces": "~2.5.0",
|
|
46
|
+
"@fluidframework/driver-definitions": "~2.5.0",
|
|
47
|
+
"@fluidframework/id-compressor": "~2.5.0",
|
|
48
|
+
"@fluidframework/runtime-definitions": "~2.5.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@arethetypeswrong/cli": "^0.16.4",
|
package/src/channel.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitio
|
|
|
8
8
|
import type {
|
|
9
9
|
IExperimentalIncrementalSummaryContext,
|
|
10
10
|
IGarbageCollectionData,
|
|
11
|
+
IRuntimeMessageCollection,
|
|
11
12
|
ISummaryTreeWithStats,
|
|
12
13
|
ITelemetryContext,
|
|
13
14
|
} from "@fluidframework/runtime-definitions/internal";
|
|
@@ -130,6 +131,7 @@ export interface IDeltaHandler {
|
|
|
130
131
|
* @param local - Whether the message originated from the local client
|
|
131
132
|
* @param localOpMetadata - For local client messages, this is the metadata that was submitted with the message.
|
|
132
133
|
* For messages from a remote client, this will be undefined.
|
|
134
|
+
* @deprecated - Use processMessages instead to process messages.
|
|
133
135
|
*/
|
|
134
136
|
process: (
|
|
135
137
|
message: ISequencedDocumentMessage,
|
|
@@ -137,6 +139,12 @@ export interface IDeltaHandler {
|
|
|
137
139
|
localOpMetadata: unknown,
|
|
138
140
|
) => void;
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Process messages for this channel. The messages here are contiguous messages for this channel in a batch.
|
|
144
|
+
* @param messageCollection - The collection of messages to process.
|
|
145
|
+
*/
|
|
146
|
+
processMessages?: (messageCollection: IRuntimeMessageCollection) => void;
|
|
147
|
+
|
|
140
148
|
/**
|
|
141
149
|
* State change events to indicate changes to the delta connection
|
|
142
150
|
* @param connected - true if connected, false otherwise
|