@fluidframework/datastore 2.0.0-internal.4.4.0 → 2.0.0-internal.5.0.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 +21 -0
- package/dist/channelContext.d.ts +3 -3
- package/dist/channelContext.d.ts.map +1 -1
- package/dist/channelContext.js +1 -1
- package/dist/channelContext.js.map +1 -1
- package/dist/channelStorageService.d.ts +2 -2
- package/dist/channelStorageService.d.ts.map +1 -1
- package/dist/channelStorageService.js.map +1 -1
- package/dist/dataStoreRuntime.d.ts +2 -2
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js +1 -1
- package/dist/dataStoreRuntime.js.map +1 -1
- package/dist/localChannelContext.d.ts +3 -3
- package/dist/localChannelContext.d.ts.map +1 -1
- package/dist/localChannelContext.js.map +1 -1
- package/dist/remoteChannelContext.d.ts.map +1 -1
- package/dist/remoteChannelContext.js.map +1 -1
- package/lib/channelContext.d.ts +3 -3
- package/lib/channelContext.d.ts.map +1 -1
- package/lib/channelContext.js +1 -1
- package/lib/channelContext.js.map +1 -1
- package/lib/channelStorageService.d.ts +2 -2
- package/lib/channelStorageService.d.ts.map +1 -1
- package/lib/channelStorageService.js.map +1 -1
- package/lib/dataStoreRuntime.d.ts +2 -2
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/dataStoreRuntime.js +1 -1
- package/lib/dataStoreRuntime.js.map +1 -1
- package/lib/localChannelContext.d.ts +3 -3
- package/lib/localChannelContext.d.ts.map +1 -1
- package/lib/localChannelContext.js.map +1 -1
- package/lib/remoteChannelContext.d.ts.map +1 -1
- package/lib/remoteChannelContext.js +1 -1
- package/lib/remoteChannelContext.js.map +1 -1
- package/package.json +12 -13
- package/src/channelContext.ts +3 -4
- package/src/channelStorageService.ts +2 -2
- package/src/dataStoreRuntime.ts +11 -11
- package/src/localChannelContext.ts +3 -3
- package/src/remoteChannelContext.ts +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/datastore",
|
|
3
|
-
"version": "2.0.0-internal.
|
|
3
|
+
"version": "2.0.0-internal.5.0.0",
|
|
4
4
|
"description": "Fluid data store implementation",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -37,18 +37,17 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
39
39
|
"@fluidframework/common-utils": "^1.1.1",
|
|
40
|
-
"@fluidframework/container-definitions": ">=2.0.0-internal.
|
|
41
|
-
"@fluidframework/container-utils": ">=2.0.0-internal.
|
|
42
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.
|
|
43
|
-
"@fluidframework/datastore-definitions": ">=2.0.0-internal.
|
|
44
|
-
"@fluidframework/driver-definitions": ">=2.0.0-internal.
|
|
45
|
-
"@fluidframework/driver-utils": ">=2.0.0-internal.
|
|
46
|
-
"@fluidframework/garbage-collector": ">=2.0.0-internal.4.4.0 <2.0.0-internal.4.5.0",
|
|
40
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
41
|
+
"@fluidframework/container-utils": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
42
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
43
|
+
"@fluidframework/datastore-definitions": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
44
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
45
|
+
"@fluidframework/driver-utils": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
47
46
|
"@fluidframework/protocol-base": "^0.1039.1000",
|
|
48
47
|
"@fluidframework/protocol-definitions": "^1.1.0",
|
|
49
|
-
"@fluidframework/runtime-definitions": ">=2.0.0-internal.
|
|
50
|
-
"@fluidframework/runtime-utils": ">=2.0.0-internal.
|
|
51
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-internal.
|
|
48
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
49
|
+
"@fluidframework/runtime-utils": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
50
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
52
51
|
"lodash": "^4.17.21",
|
|
53
52
|
"uuid": "^8.3.1"
|
|
54
53
|
},
|
|
@@ -58,8 +57,8 @@
|
|
|
58
57
|
"@fluidframework/build-tools": "^0.17.0",
|
|
59
58
|
"@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.0.0-internal.4.1.0",
|
|
60
59
|
"@fluidframework/eslint-config-fluid": "^2.0.0",
|
|
61
|
-
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.
|
|
62
|
-
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.
|
|
60
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
61
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.5.0.0 <2.0.0-internal.5.1.0",
|
|
63
62
|
"@microsoft/api-extractor": "^7.34.4",
|
|
64
63
|
"@types/mocha": "^9.1.1",
|
|
65
64
|
"@types/node": "^14.18.38",
|
package/src/channelContext.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { ITelemetryLoggerExt, TelemetryDataTag } from "@fluidframework/telemetry-utils";
|
|
7
7
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
8
8
|
import {
|
|
9
9
|
IChannel,
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
import { addBlobToSummary } from "@fluidframework/runtime-utils";
|
|
25
25
|
import { DataCorruptionError } from "@fluidframework/container-utils";
|
|
26
26
|
import { readAndParse } from "@fluidframework/driver-utils";
|
|
27
|
-
import { TelemetryDataTag } from "@fluidframework/telemetry-utils";
|
|
28
27
|
import { ChannelStorageService } from "./channelStorageService";
|
|
29
28
|
import { ChannelDeltaConnection } from "./channelDeltaConnection";
|
|
30
29
|
import { ISharedObjectRegistry } from "./dataStoreRuntime";
|
|
@@ -77,7 +76,7 @@ export function createChannelServiceEndpoints(
|
|
|
77
76
|
dirtyFn: () => void,
|
|
78
77
|
addedGCOutboundReferenceFn: (srcHandle: IFluidHandle, outboundHandle: IFluidHandle) => void,
|
|
79
78
|
storageService: IDocumentStorageService,
|
|
80
|
-
logger:
|
|
79
|
+
logger: ITelemetryLoggerExt,
|
|
81
80
|
tree?: ISnapshotTree,
|
|
82
81
|
extraBlobs?: Map<string, ArrayBufferLike>,
|
|
83
82
|
): ChannelServiceEndpoints {
|
|
@@ -188,7 +187,7 @@ export async function loadChannel(
|
|
|
188
187
|
attributes: IChannelAttributes,
|
|
189
188
|
factory: IChannelFactory,
|
|
190
189
|
services: ChannelServiceEndpoints,
|
|
191
|
-
logger:
|
|
190
|
+
logger: ITelemetryLoggerExt,
|
|
192
191
|
channelId: string,
|
|
193
192
|
): Promise<IChannel> {
|
|
194
193
|
// Compare snapshot version to collaborative object version
|
|
@@ -7,7 +7,7 @@ import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
|
7
7
|
import { ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
8
8
|
import { IChannelStorageService } from "@fluidframework/datastore-definitions";
|
|
9
9
|
import { getNormalizedObjectStoragePathParts } from "@fluidframework/runtime-utils";
|
|
10
|
-
import {
|
|
10
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
11
11
|
|
|
12
12
|
export class ChannelStorageService implements IChannelStorageService {
|
|
13
13
|
private static flattenTree(
|
|
@@ -31,7 +31,7 @@ export class ChannelStorageService implements IChannelStorageService {
|
|
|
31
31
|
constructor(
|
|
32
32
|
private readonly tree: ISnapshotTree | undefined,
|
|
33
33
|
private readonly storage: Pick<IDocumentStorageService, "readBlob">,
|
|
34
|
-
private readonly logger:
|
|
34
|
+
private readonly logger: ITelemetryLoggerExt,
|
|
35
35
|
private readonly extraBlobs?: Map<string, ArrayBufferLike>,
|
|
36
36
|
) {
|
|
37
37
|
this.flattenedTree = {};
|
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -3,7 +3,16 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
ITelemetryLoggerExt,
|
|
8
|
+
ChildLogger,
|
|
9
|
+
generateStack,
|
|
10
|
+
LoggingError,
|
|
11
|
+
loggerToMonitoringContext,
|
|
12
|
+
MonitoringContext,
|
|
13
|
+
raiseConnectedEvent,
|
|
14
|
+
TelemetryDataTag,
|
|
15
|
+
} from "@fluidframework/telemetry-utils";
|
|
7
16
|
import {
|
|
8
17
|
FluidObject,
|
|
9
18
|
IFluidHandle,
|
|
@@ -25,15 +34,6 @@ import {
|
|
|
25
34
|
TypedEventEmitter,
|
|
26
35
|
unreachableCase,
|
|
27
36
|
} from "@fluidframework/common-utils";
|
|
28
|
-
import {
|
|
29
|
-
ChildLogger,
|
|
30
|
-
generateStack,
|
|
31
|
-
LoggingError,
|
|
32
|
-
loggerToMonitoringContext,
|
|
33
|
-
MonitoringContext,
|
|
34
|
-
raiseConnectedEvent,
|
|
35
|
-
TelemetryDataTag,
|
|
36
|
-
} from "@fluidframework/telemetry-utils";
|
|
37
37
|
import { buildSnapshotTree } from "@fluidframework/driver-utils";
|
|
38
38
|
import {
|
|
39
39
|
IClientDetails,
|
|
@@ -206,7 +206,7 @@ export class FluidDataStoreRuntime
|
|
|
206
206
|
private readonly quorum: IQuorumClients;
|
|
207
207
|
private readonly audience: IAudience;
|
|
208
208
|
private readonly mc: MonitoringContext;
|
|
209
|
-
public get logger():
|
|
209
|
+
public get logger(): ITelemetryLoggerExt {
|
|
210
210
|
return this.mc.logger;
|
|
211
211
|
}
|
|
212
212
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line import/no-internal-modules
|
|
7
7
|
import cloneDeep from "lodash/cloneDeep";
|
|
8
|
-
import {
|
|
8
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
9
9
|
import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
10
10
|
import { ISequencedDocumentMessage, ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
11
11
|
import { IChannel, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
@@ -176,7 +176,7 @@ export class RehydratedLocalChannelContext extends LocalChannelContextBase {
|
|
|
176
176
|
runtime: IFluidDataStoreRuntime,
|
|
177
177
|
dataStoreContext: IFluidDataStoreContext,
|
|
178
178
|
storageService: IDocumentStorageService,
|
|
179
|
-
logger:
|
|
179
|
+
logger: ITelemetryLoggerExt,
|
|
180
180
|
submitFn: (content: any, localOpMetadata: unknown) => void,
|
|
181
181
|
dirtyFn: (address: string) => void,
|
|
182
182
|
addedGCOutboundReferenceFn: (srcHandle: IFluidHandle, outboundHandle: IFluidHandle) => void,
|
|
@@ -289,7 +289,7 @@ export class LocalChannelContext extends LocalChannelContextBase {
|
|
|
289
289
|
runtime: IFluidDataStoreRuntime,
|
|
290
290
|
dataStoreContext: IFluidDataStoreContext,
|
|
291
291
|
storageService: IDocumentStorageService,
|
|
292
|
-
logger:
|
|
292
|
+
logger: ITelemetryLoggerExt,
|
|
293
293
|
submitFn: (content: any, localOpMetadata: unknown) => void,
|
|
294
294
|
dirtyFn: (address: string) => void,
|
|
295
295
|
addedGCOutboundReferenceFn: (srcHandle: IFluidHandle, outboundHandle: IFluidHandle) => void,
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITelemetryLogger } from "@fluidframework/common-definitions";
|
|
7
6
|
import { LazyPromise, assert } from "@fluidframework/common-utils";
|
|
8
7
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
9
8
|
import { IChannel, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
@@ -19,7 +18,11 @@ import {
|
|
|
19
18
|
ISummarizerNodeWithGC,
|
|
20
19
|
ITelemetryContext,
|
|
21
20
|
} from "@fluidframework/runtime-definitions";
|
|
22
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
ChildLogger,
|
|
23
|
+
ITelemetryLoggerExt,
|
|
24
|
+
ThresholdCounter,
|
|
25
|
+
} from "@fluidframework/telemetry-utils";
|
|
23
26
|
import {
|
|
24
27
|
ChannelServiceEndpoints,
|
|
25
28
|
createChannelServiceEndpoints,
|
|
@@ -37,7 +40,7 @@ export class RemoteChannelContext implements IChannelContext {
|
|
|
37
40
|
private channel: IChannel | undefined;
|
|
38
41
|
private readonly services: ChannelServiceEndpoints;
|
|
39
42
|
private readonly summarizerNode: ISummarizerNodeWithGC;
|
|
40
|
-
private readonly subLogger:
|
|
43
|
+
private readonly subLogger: ITelemetryLoggerExt;
|
|
41
44
|
private readonly thresholdOpsCounter: ThresholdCounter;
|
|
42
45
|
private static readonly pendingOpsCountThreshold = 1000;
|
|
43
46
|
|