@fluidframework/datastore 2.0.0-dev.4.4.0.162574 → 2.0.0-dev.5.3.2.178189
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 +37 -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 +3 -2
- package/dist/dataStoreRuntime.js.map +1 -1
- package/dist/localChannelContext.d.ts +4 -4
- package/dist/localChannelContext.d.ts.map +1 -1
- package/dist/localChannelContext.js +4 -3
- package/dist/localChannelContext.js.map +1 -1
- package/dist/remoteChannelContext.d.ts.map +1 -1
- package/dist/remoteChannelContext.js +2 -1
- package/dist/remoteChannelContext.js.map +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- 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 +3 -2
- package/lib/dataStoreRuntime.js.map +1 -1
- package/lib/localChannelContext.d.ts +4 -4
- package/lib/localChannelContext.d.ts.map +1 -1
- package/lib/localChannelContext.js +2 -1
- package/lib/localChannelContext.js.map +1 -1
- package/lib/remoteChannelContext.d.ts.map +1 -1
- package/lib/remoteChannelContext.js +3 -2
- package/lib/remoteChannelContext.js.map +1 -1
- package/package.json +22 -28
- package/src/channelContext.ts +3 -4
- package/src/channelStorageService.ts +2 -2
- package/src/dataStoreRuntime.ts +13 -18
- package/src/localChannelContext.ts +5 -4
- package/src/remoteChannelContext.ts +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/datastore",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.5.3.2.178189",
|
|
4
4
|
"description": "Fluid data store implementation",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -37,29 +37,29 @@
|
|
|
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-dev.
|
|
41
|
-
"@fluidframework/container-utils": "2.0.0-dev.
|
|
42
|
-
"@fluidframework/core-interfaces": "2.0.0-dev.
|
|
43
|
-
"@fluidframework/
|
|
44
|
-
"@fluidframework/
|
|
45
|
-
"@fluidframework/driver-
|
|
46
|
-
"@fluidframework/
|
|
40
|
+
"@fluidframework/container-definitions": "2.0.0-dev.5.3.2.178189",
|
|
41
|
+
"@fluidframework/container-utils": "2.0.0-dev.5.3.2.178189",
|
|
42
|
+
"@fluidframework/core-interfaces": "2.0.0-dev.5.3.2.178189",
|
|
43
|
+
"@fluidframework/core-utils": "2.0.0-dev.5.3.2.178189",
|
|
44
|
+
"@fluidframework/datastore-definitions": "2.0.0-dev.5.3.2.178189",
|
|
45
|
+
"@fluidframework/driver-definitions": "2.0.0-dev.5.3.2.178189",
|
|
46
|
+
"@fluidframework/driver-utils": "2.0.0-dev.5.3.2.178189",
|
|
47
47
|
"@fluidframework/protocol-base": "^0.1039.1000",
|
|
48
48
|
"@fluidframework/protocol-definitions": "^1.1.0",
|
|
49
|
-
"@fluidframework/runtime-definitions": "2.0.0-dev.
|
|
50
|
-
"@fluidframework/runtime-utils": "2.0.0-dev.
|
|
51
|
-
"@fluidframework/telemetry-utils": "2.0.0-dev.
|
|
49
|
+
"@fluidframework/runtime-definitions": "2.0.0-dev.5.3.2.178189",
|
|
50
|
+
"@fluidframework/runtime-utils": "2.0.0-dev.5.3.2.178189",
|
|
51
|
+
"@fluidframework/telemetry-utils": "2.0.0-dev.5.3.2.178189",
|
|
52
52
|
"lodash": "^4.17.21",
|
|
53
53
|
"uuid": "^8.3.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@fluid-tools/build-cli": "^0.
|
|
57
|
-
"@fluidframework/build-common": "^1.
|
|
58
|
-
"@fluidframework/build-tools": "^0.
|
|
59
|
-
"@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.0.0-internal.
|
|
56
|
+
"@fluid-tools/build-cli": "^0.21.0",
|
|
57
|
+
"@fluidframework/build-common": "^1.2.0",
|
|
58
|
+
"@fluidframework/build-tools": "^0.21.0",
|
|
59
|
+
"@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.0.0-internal.5.2.0",
|
|
60
60
|
"@fluidframework/eslint-config-fluid": "^2.0.0",
|
|
61
|
-
"@fluidframework/mocha-test-setup": "2.0.0-dev.
|
|
62
|
-
"@fluidframework/test-runtime-utils": "2.0.0-dev.
|
|
61
|
+
"@fluidframework/mocha-test-setup": "2.0.0-dev.5.3.2.178189",
|
|
62
|
+
"@fluidframework/test-runtime-utils": "2.0.0-dev.5.3.2.178189",
|
|
63
63
|
"@microsoft/api-extractor": "^7.34.4",
|
|
64
64
|
"@types/mocha": "^9.1.1",
|
|
65
65
|
"@types/node": "^14.18.38",
|
|
@@ -78,20 +78,14 @@
|
|
|
78
78
|
"typescript": "~4.5.5"
|
|
79
79
|
},
|
|
80
80
|
"typeValidation": {
|
|
81
|
-
"broken": {
|
|
82
|
-
"ClassDeclaration_FluidDataStoreRuntime": {
|
|
83
|
-
"forwardCompat": false
|
|
84
|
-
}
|
|
85
|
-
}
|
|
81
|
+
"broken": {}
|
|
86
82
|
},
|
|
87
83
|
"scripts": {
|
|
88
|
-
"build": "
|
|
89
|
-
"build:commonjs": "
|
|
90
|
-
"build:compile": "
|
|
84
|
+
"build": "fluid-build . --task build",
|
|
85
|
+
"build:commonjs": "fluid-build . --task commonjs",
|
|
86
|
+
"build:compile": "fluid-build . --task compile",
|
|
91
87
|
"build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
|
|
92
88
|
"build:esnext": "tsc --project ./tsconfig.esnext.json",
|
|
93
|
-
"build:full": "npm run build",
|
|
94
|
-
"build:full:compile": "npm run build:compile",
|
|
95
89
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
96
90
|
"ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
|
|
97
91
|
"clean": "rimraf dist lib *.tsbuildinfo *.build.log",
|
|
@@ -110,6 +104,6 @@
|
|
|
110
104
|
"tsc": "tsc",
|
|
111
105
|
"tsc:watch": "tsc --watch",
|
|
112
106
|
"typetests:gen": "fluid-type-test-generator",
|
|
113
|
-
"typetests:prepare": "flub
|
|
107
|
+
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
|
114
108
|
}
|
|
115
109
|
}
|
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,
|
|
@@ -11,6 +20,7 @@ import {
|
|
|
11
20
|
IRequest,
|
|
12
21
|
IResponse,
|
|
13
22
|
} from "@fluidframework/core-interfaces";
|
|
23
|
+
import { LazyPromise } from "@fluidframework/core-utils";
|
|
14
24
|
import {
|
|
15
25
|
IAudience,
|
|
16
26
|
IDeltaManager,
|
|
@@ -18,22 +28,7 @@ import {
|
|
|
18
28
|
ILoaderOptions,
|
|
19
29
|
} from "@fluidframework/container-definitions";
|
|
20
30
|
import { DataProcessingError, UsageError } from "@fluidframework/container-utils";
|
|
21
|
-
import {
|
|
22
|
-
assert,
|
|
23
|
-
Deferred,
|
|
24
|
-
LazyPromise,
|
|
25
|
-
TypedEventEmitter,
|
|
26
|
-
unreachableCase,
|
|
27
|
-
} 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";
|
|
31
|
+
import { assert, Deferred, TypedEventEmitter, unreachableCase } from "@fluidframework/common-utils";
|
|
37
32
|
import { buildSnapshotTree } from "@fluidframework/driver-utils";
|
|
38
33
|
import {
|
|
39
34
|
IClientDetails,
|
|
@@ -206,7 +201,7 @@ export class FluidDataStoreRuntime
|
|
|
206
201
|
private readonly quorum: IQuorumClients;
|
|
207
202
|
private readonly audience: IAudience;
|
|
208
203
|
private readonly mc: MonitoringContext;
|
|
209
|
-
public get logger():
|
|
204
|
+
public get logger(): ITelemetryLoggerExt {
|
|
210
205
|
return this.mc.logger;
|
|
211
206
|
}
|
|
212
207
|
|
|
@@ -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";
|
|
@@ -16,8 +16,9 @@ import {
|
|
|
16
16
|
ITelemetryContext,
|
|
17
17
|
} from "@fluidframework/runtime-definitions";
|
|
18
18
|
import { DataProcessingError } from "@fluidframework/container-utils";
|
|
19
|
-
import { assert
|
|
19
|
+
import { assert } from "@fluidframework/common-utils";
|
|
20
20
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
21
|
+
import { Lazy, LazyPromise } from "@fluidframework/core-utils";
|
|
21
22
|
import {
|
|
22
23
|
ChannelServiceEndpoints,
|
|
23
24
|
createChannelServiceEndpoints,
|
|
@@ -176,7 +177,7 @@ export class RehydratedLocalChannelContext extends LocalChannelContextBase {
|
|
|
176
177
|
runtime: IFluidDataStoreRuntime,
|
|
177
178
|
dataStoreContext: IFluidDataStoreContext,
|
|
178
179
|
storageService: IDocumentStorageService,
|
|
179
|
-
logger:
|
|
180
|
+
logger: ITelemetryLoggerExt,
|
|
180
181
|
submitFn: (content: any, localOpMetadata: unknown) => void,
|
|
181
182
|
dirtyFn: (address: string) => void,
|
|
182
183
|
addedGCOutboundReferenceFn: (srcHandle: IFluidHandle, outboundHandle: IFluidHandle) => void,
|
|
@@ -289,7 +290,7 @@ export class LocalChannelContext extends LocalChannelContextBase {
|
|
|
289
290
|
runtime: IFluidDataStoreRuntime,
|
|
290
291
|
dataStoreContext: IFluidDataStoreContext,
|
|
291
292
|
storageService: IDocumentStorageService,
|
|
292
|
-
logger:
|
|
293
|
+
logger: ITelemetryLoggerExt,
|
|
293
294
|
submitFn: (content: any, localOpMetadata: unknown) => void,
|
|
294
295
|
dirtyFn: (address: string) => void,
|
|
295
296
|
addedGCOutboundReferenceFn: (srcHandle: IFluidHandle, outboundHandle: IFluidHandle) => void,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import { LazyPromise, assert } from "@fluidframework/common-utils";
|
|
6
|
+
import { assert } from "@fluidframework/common-utils";
|
|
8
7
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
8
|
+
import { LazyPromise } from "@fluidframework/core-utils";
|
|
9
9
|
import { IChannel, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
10
10
|
import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
11
11
|
import { ISequencedDocumentMessage, ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
@@ -19,7 +19,11 @@ import {
|
|
|
19
19
|
ISummarizerNodeWithGC,
|
|
20
20
|
ITelemetryContext,
|
|
21
21
|
} from "@fluidframework/runtime-definitions";
|
|
22
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
ChildLogger,
|
|
24
|
+
ITelemetryLoggerExt,
|
|
25
|
+
ThresholdCounter,
|
|
26
|
+
} from "@fluidframework/telemetry-utils";
|
|
23
27
|
import {
|
|
24
28
|
ChannelServiceEndpoints,
|
|
25
29
|
createChannelServiceEndpoints,
|
|
@@ -37,7 +41,7 @@ export class RemoteChannelContext implements IChannelContext {
|
|
|
37
41
|
private channel: IChannel | undefined;
|
|
38
42
|
private readonly services: ChannelServiceEndpoints;
|
|
39
43
|
private readonly summarizerNode: ISummarizerNodeWithGC;
|
|
40
|
-
private readonly subLogger:
|
|
44
|
+
private readonly subLogger: ITelemetryLoggerExt;
|
|
41
45
|
private readonly thresholdOpsCounter: ThresholdCounter;
|
|
42
46
|
private static readonly pendingOpsCountThreshold = 1000;
|
|
43
47
|
|