@fluidframework/datastore 2.0.0-rc.2.0.2 → 2.0.0-rc.3.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 +23 -0
- package/api-report/datastore.api.md +7 -5
- package/dist/channelContext.d.ts +5 -4
- package/dist/channelContext.d.ts.map +1 -1
- package/dist/channelContext.js +10 -10
- package/dist/channelContext.js.map +1 -1
- package/dist/channelDeltaConnection.d.ts +2 -2
- package/dist/channelDeltaConnection.d.ts.map +1 -1
- package/dist/channelDeltaConnection.js +5 -5
- package/dist/channelDeltaConnection.js.map +1 -1
- package/dist/channelStorageService.d.ts +2 -2
- package/dist/channelStorageService.d.ts.map +1 -1
- package/dist/channelStorageService.js +2 -2
- package/dist/channelStorageService.js.map +1 -1
- package/dist/dataStoreRuntime.d.ts +10 -8
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js +114 -97
- package/dist/dataStoreRuntime.js.map +1 -1
- package/dist/fluidHandle.d.ts +1 -1
- package/dist/fluidHandle.d.ts.map +1 -1
- package/dist/fluidHandle.js +2 -2
- package/dist/fluidHandle.js.map +1 -1
- package/dist/legacy.d.ts +19 -0
- package/dist/localChannelContext.d.ts +7 -6
- package/dist/localChannelContext.d.ts.map +1 -1
- package/dist/localChannelContext.js +16 -16
- package/dist/localChannelContext.js.map +1 -1
- package/dist/localChannelStorageService.d.ts.map +1 -1
- package/dist/localChannelStorageService.js +2 -2
- package/dist/localChannelStorageService.js.map +1 -1
- package/dist/packageVersion.d.ts +9 -0
- package/dist/packageVersion.d.ts.map +1 -0
- package/dist/packageVersion.js +12 -0
- package/dist/packageVersion.js.map +1 -0
- package/dist/public.d.ts +12 -0
- package/dist/remoteChannelContext.d.ts +3 -2
- package/dist/remoteChannelContext.d.ts.map +1 -1
- package/dist/remoteChannelContext.js +12 -12
- package/dist/remoteChannelContext.js.map +1 -1
- package/internal.d.ts +11 -0
- package/legacy.d.ts +11 -0
- package/lib/channelContext.d.ts +5 -4
- package/lib/channelContext.d.ts.map +1 -1
- package/lib/channelContext.js +4 -4
- package/lib/channelContext.js.map +1 -1
- package/lib/channelDeltaConnection.d.ts +2 -2
- package/lib/channelDeltaConnection.d.ts.map +1 -1
- package/lib/channelDeltaConnection.js +2 -2
- package/lib/channelDeltaConnection.js.map +1 -1
- package/lib/channelStorageService.d.ts +2 -2
- package/lib/channelStorageService.d.ts.map +1 -1
- package/lib/channelStorageService.js +1 -1
- package/lib/channelStorageService.js.map +1 -1
- package/lib/dataStoreRuntime.d.ts +10 -8
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/dataStoreRuntime.js +52 -35
- package/lib/dataStoreRuntime.js.map +1 -1
- package/lib/fluidHandle.d.ts +1 -1
- package/lib/fluidHandle.d.ts.map +1 -1
- package/lib/fluidHandle.js +1 -1
- package/lib/fluidHandle.js.map +1 -1
- package/lib/legacy.d.ts +19 -0
- package/lib/localChannelContext.d.ts +7 -6
- package/lib/localChannelContext.d.ts.map +1 -1
- package/lib/localChannelContext.js +2 -2
- package/lib/localChannelContext.js.map +1 -1
- package/lib/localChannelStorageService.d.ts.map +1 -1
- package/lib/localChannelStorageService.js +1 -1
- package/lib/localChannelStorageService.js.map +1 -1
- package/lib/packageVersion.d.ts +9 -0
- package/lib/packageVersion.d.ts.map +1 -0
- package/lib/packageVersion.js +9 -0
- package/lib/packageVersion.js.map +1 -0
- package/lib/public.d.ts +12 -0
- package/lib/remoteChannelContext.d.ts +3 -2
- package/lib/remoteChannelContext.d.ts.map +1 -1
- package/lib/remoteChannelContext.js +2 -2
- package/lib/remoteChannelContext.js.map +1 -1
- package/package.json +38 -57
- package/src/channelContext.ts +12 -12
- package/src/channelDeltaConnection.ts +4 -4
- package/src/channelStorageService.ts +3 -3
- package/src/dataStoreRuntime.ts +104 -76
- package/src/fluidHandle.ts +2 -2
- package/src/localChannelContext.ts +11 -10
- package/src/localChannelStorageService.ts +2 -2
- package/src/packageVersion.ts +9 -0
- package/src/remoteChannelContext.ts +13 -13
- package/api-extractor-cjs.json +0 -8
- package/dist/datastore-alpha.d.ts +0 -334
- package/dist/datastore-beta.d.ts +0 -46
- package/dist/datastore-public.d.ts +0 -46
- package/dist/datastore-untrimmed.d.ts +0 -341
- package/lib/datastore-alpha.d.ts +0 -334
- package/lib/datastore-beta.d.ts +0 -46
- package/lib/datastore-public.d.ts +0 -46
- package/lib/datastore-untrimmed.d.ts +0 -341
- package/lib/test/channelStorageService.spec.js +0 -70
- package/lib/test/channelStorageService.spec.js.map +0 -1
- package/lib/test/dataStoreRuntime.spec.js +0 -121
- package/lib/test/dataStoreRuntime.spec.js.map +0 -1
- package/lib/test/localChannelContext.spec.js +0 -41
- package/lib/test/localChannelContext.spec.js.map +0 -1
- package/lib/test/localChannelStorageService.spec.js +0 -72
- package/lib/test/localChannelStorageService.spec.js.map +0 -1
- package/lib/test/remoteChannelContext.spec.js +0 -33
- package/lib/test/remoteChannelContext.spec.js.map +0 -1
- package/lib/test/types/validateDatastorePrevious.generated.js +0 -16
- package/lib/test/types/validateDatastorePrevious.generated.js.map +0 -1
- /package/{dist → lib}/tsdoc-metadata.json +0 -0
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -4,17 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
7
|
-
import {
|
|
8
|
-
DataProcessingError,
|
|
9
|
-
ITelemetryLoggerExt,
|
|
10
|
-
generateStack,
|
|
11
|
-
LoggingError,
|
|
12
|
-
MonitoringContext,
|
|
13
|
-
raiseConnectedEvent,
|
|
14
|
-
createChildMonitoringContext,
|
|
15
|
-
tagCodeArtifacts,
|
|
16
|
-
UsageError,
|
|
17
|
-
} from "@fluidframework/telemetry-utils";
|
|
7
|
+
import { AttachState, IAudience, IDeltaManager } from "@fluidframework/container-definitions";
|
|
18
8
|
import {
|
|
19
9
|
FluidObject,
|
|
20
10
|
IFluidHandle,
|
|
@@ -22,64 +12,83 @@ import {
|
|
|
22
12
|
IRequest,
|
|
23
13
|
IResponse,
|
|
24
14
|
} from "@fluidframework/core-interfaces";
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
import {
|
|
16
|
+
assert,
|
|
17
|
+
Deferred,
|
|
18
|
+
LazyPromise,
|
|
19
|
+
unreachableCase,
|
|
20
|
+
} from "@fluidframework/core-utils/internal";
|
|
21
|
+
import {
|
|
22
|
+
IChannel,
|
|
23
|
+
IChannelFactory,
|
|
24
|
+
IFluidDataStoreRuntime,
|
|
25
|
+
IFluidDataStoreRuntimeEvents,
|
|
26
|
+
} from "@fluidframework/datastore-definitions";
|
|
27
|
+
import { buildSnapshotTree } from "@fluidframework/driver-utils/internal";
|
|
28
|
+
import { IIdCompressor } from "@fluidframework/id-compressor";
|
|
28
29
|
import {
|
|
29
30
|
IClientDetails,
|
|
30
31
|
IDocumentMessage,
|
|
32
|
+
IQuorumClients,
|
|
31
33
|
ISequencedDocumentMessage,
|
|
32
|
-
SummaryType,
|
|
33
34
|
type ISnapshotTree,
|
|
34
35
|
ISummaryBlob,
|
|
35
36
|
ISummaryTree,
|
|
36
|
-
|
|
37
|
+
SummaryType,
|
|
37
38
|
} from "@fluidframework/protocol-definitions";
|
|
39
|
+
import {
|
|
40
|
+
IGarbageCollectionData,
|
|
41
|
+
IInboundSignalMessage,
|
|
42
|
+
ISummaryTreeWithStats,
|
|
43
|
+
ITelemetryContext,
|
|
44
|
+
} from "@fluidframework/runtime-definitions";
|
|
38
45
|
import {
|
|
39
46
|
CreateChildSummarizerNodeParam,
|
|
40
47
|
CreateSummarizerNodeSource,
|
|
41
48
|
IAttachMessage,
|
|
42
49
|
IEnvelope,
|
|
43
|
-
IFluidDataStoreContext,
|
|
44
50
|
IFluidDataStoreChannel,
|
|
45
|
-
|
|
46
|
-
IInboundSignalMessage,
|
|
47
|
-
ISummaryTreeWithStats,
|
|
51
|
+
IFluidDataStoreContext,
|
|
48
52
|
VisibilityState,
|
|
49
|
-
ITelemetryContext,
|
|
50
53
|
gcDataBlobKey,
|
|
51
|
-
} from "@fluidframework/runtime-definitions";
|
|
54
|
+
} from "@fluidframework/runtime-definitions/internal";
|
|
52
55
|
import {
|
|
53
|
-
|
|
54
|
-
convertSummaryTreeToITree,
|
|
55
|
-
generateHandleContextPath,
|
|
56
|
+
GCDataBuilder,
|
|
56
57
|
RequestParser,
|
|
57
58
|
SummaryTreeBuilder,
|
|
59
|
+
addBlobToSummary,
|
|
60
|
+
convertSnapshotTreeToSummaryTree,
|
|
61
|
+
convertSummaryTreeToITree,
|
|
58
62
|
create404Response,
|
|
59
63
|
createResponseError,
|
|
64
|
+
encodeCompactIdToString,
|
|
60
65
|
exceptionToResponse,
|
|
61
|
-
|
|
62
|
-
unpackChildNodesUsedRoutes,
|
|
63
|
-
addBlobToSummary,
|
|
66
|
+
generateHandleContextPath,
|
|
64
67
|
processAttachMessageGCData,
|
|
65
|
-
|
|
66
|
-
} from "@fluidframework/runtime-utils";
|
|
68
|
+
unpackChildNodesUsedRoutes,
|
|
69
|
+
} from "@fluidframework/runtime-utils/internal";
|
|
70
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
67
71
|
import {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
DataProcessingError,
|
|
73
|
+
LoggingError,
|
|
74
|
+
MonitoringContext,
|
|
75
|
+
UsageError,
|
|
76
|
+
createChildMonitoringContext,
|
|
77
|
+
generateStack,
|
|
78
|
+
raiseConnectedEvent,
|
|
79
|
+
tagCodeArtifacts,
|
|
80
|
+
} from "@fluidframework/telemetry-utils/internal";
|
|
73
81
|
import { v4 as uuid } from "uuid";
|
|
74
|
-
|
|
82
|
+
|
|
75
83
|
import { IChannelContext, summarizeChannel } from "./channelContext.js";
|
|
84
|
+
import { FluidObjectHandle } from "./fluidHandle.js";
|
|
76
85
|
import {
|
|
77
86
|
LocalChannelContext,
|
|
78
87
|
LocalChannelContextBase,
|
|
79
88
|
RehydratedLocalChannelContext,
|
|
80
89
|
} from "./localChannelContext.js";
|
|
90
|
+
import { pkgVersion } from "./packageVersion.js";
|
|
81
91
|
import { RemoteChannelContext } from "./remoteChannelContext.js";
|
|
82
|
-
import { FluidObjectHandle } from "./fluidHandle.js";
|
|
83
92
|
|
|
84
93
|
/**
|
|
85
94
|
* @alpha
|
|
@@ -236,7 +245,7 @@ export class FluidDataStoreRuntime
|
|
|
236
245
|
logger: dataStoreContext.logger,
|
|
237
246
|
namespace: "FluidDataStoreRuntime",
|
|
238
247
|
properties: {
|
|
239
|
-
all: { dataStoreId: uuid() },
|
|
248
|
+
all: { dataStoreId: uuid(), dataStoreVersion: pkgVersion },
|
|
240
249
|
},
|
|
241
250
|
});
|
|
242
251
|
|
|
@@ -961,10 +970,10 @@ export class FluidDataStoreRuntime
|
|
|
961
970
|
/**
|
|
962
971
|
* Submits the signal to be sent to other clients.
|
|
963
972
|
* @param type - Type of the signal.
|
|
964
|
-
* @param content - Content of the signal.
|
|
973
|
+
* @param content - Content of the signal. Should be a JSON serializable object or primitive.
|
|
965
974
|
* @param targetClientId - When specified, the signal is only sent to the provided client id.
|
|
966
975
|
*/
|
|
967
|
-
public submitSignal(type: string, content:
|
|
976
|
+
public submitSignal(type: string, content: unknown, targetClientId?: string) {
|
|
968
977
|
this.verifyNotClosed();
|
|
969
978
|
return this.dataStoreContext.submitSignal(type, content, targetClientId);
|
|
970
979
|
}
|
|
@@ -1157,43 +1166,17 @@ export class FluidDataStoreRuntime
|
|
|
1157
1166
|
|
|
1158
1167
|
private attachListener() {
|
|
1159
1168
|
this.setMaxListeners(Number.MAX_SAFE_INTEGER);
|
|
1160
|
-
this.dataStoreContext.once("attaching", () => {
|
|
1161
|
-
/**
|
|
1162
|
-
* back-compat 0.59.1000 - Ideally, attachGraph() should have already been called making the data store
|
|
1163
|
-
* locally visible. However, before visibility state was added, this may not have been the case and data
|
|
1164
|
-
* store can move to "attaching" state in 2 scenarios:
|
|
1165
|
-
* 1) Before attachGraph() is called - When a data store is created and bound in an attached container.
|
|
1166
|
-
* 2) After attachGraph() is called - When a detached container is attached.
|
|
1167
|
-
*
|
|
1168
|
-
* The basic idea is that all local object should become locally visible before they are globally visible.
|
|
1169
|
-
*/
|
|
1170
|
-
this.attachGraph();
|
|
1171
|
-
|
|
1172
|
-
this._attachState = AttachState.Attaching;
|
|
1173
|
-
|
|
1174
|
-
assert(
|
|
1175
|
-
this.visibilityState === VisibilityState.LocallyVisible,
|
|
1176
|
-
0x2d1 /* "Data store should be locally visible before it can become globally visible." */,
|
|
1177
|
-
);
|
|
1178
|
-
|
|
1179
|
-
// Mark the data store globally visible and make its child channels visible as well.
|
|
1180
|
-
this.visibilityState = VisibilityState.GloballyVisible;
|
|
1181
|
-
this.localChannelContextQueue.forEach((channel) => {
|
|
1182
|
-
channel.makeVisible();
|
|
1183
|
-
});
|
|
1184
|
-
this.localChannelContextQueue.clear();
|
|
1185
1169
|
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1170
|
+
// back-compat, to be removed in the future.
|
|
1171
|
+
// Added in "2.0.0-rc.2.0.0" timeframe.
|
|
1172
|
+
(this.dataStoreContext as any).once?.("attaching", () => {
|
|
1173
|
+
this.setAttachState(AttachState.Attaching);
|
|
1189
1174
|
});
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
);
|
|
1195
|
-
this._attachState = AttachState.Attached;
|
|
1196
|
-
this.emit("attached");
|
|
1175
|
+
|
|
1176
|
+
// back-compat, to be removed in the future.
|
|
1177
|
+
// Added in "2.0.0-rc.2.0.0" timeframe.
|
|
1178
|
+
(this.dataStoreContext as any).once?.("attached", () => {
|
|
1179
|
+
this.setAttachState(AttachState.Attached);
|
|
1197
1180
|
});
|
|
1198
1181
|
}
|
|
1199
1182
|
|
|
@@ -1232,6 +1215,51 @@ export class FluidDataStoreRuntime
|
|
|
1232
1215
|
});
|
|
1233
1216
|
this.localChangesTelemetryCount--;
|
|
1234
1217
|
}
|
|
1218
|
+
|
|
1219
|
+
public setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void {
|
|
1220
|
+
switch (attachState) {
|
|
1221
|
+
case AttachState.Attaching:
|
|
1222
|
+
/**
|
|
1223
|
+
* back-compat 0.59.1000 - Ideally, attachGraph() should have already been called making the data store
|
|
1224
|
+
* locally visible. However, before visibility state was added, this may not have been the case and data
|
|
1225
|
+
* store can move to "attaching" state in 2 scenarios:
|
|
1226
|
+
* 1) Before attachGraph() is called - When a data store is created and bound in an attached container.
|
|
1227
|
+
* 2) After attachGraph() is called - When a detached container is attached.
|
|
1228
|
+
*
|
|
1229
|
+
* The basic idea is that all local object should become locally visible before they are globally visible.
|
|
1230
|
+
*/
|
|
1231
|
+
this.attachGraph();
|
|
1232
|
+
|
|
1233
|
+
this._attachState = AttachState.Attaching;
|
|
1234
|
+
|
|
1235
|
+
assert(
|
|
1236
|
+
this.visibilityState === VisibilityState.LocallyVisible,
|
|
1237
|
+
0x2d1 /* "Data store should be locally visible before it can become globally visible." */,
|
|
1238
|
+
);
|
|
1239
|
+
|
|
1240
|
+
// Mark the data store globally visible and make its child channels visible as well.
|
|
1241
|
+
this.visibilityState = VisibilityState.GloballyVisible;
|
|
1242
|
+
this.localChannelContextQueue.forEach((channel) => {
|
|
1243
|
+
channel.makeVisible();
|
|
1244
|
+
});
|
|
1245
|
+
this.localChannelContextQueue.clear();
|
|
1246
|
+
|
|
1247
|
+
// This promise resolution will be moved to attached event once we fix the scheduler.
|
|
1248
|
+
this.deferredAttached.resolve();
|
|
1249
|
+
this.emit("attaching");
|
|
1250
|
+
break;
|
|
1251
|
+
case AttachState.Attached:
|
|
1252
|
+
assert(
|
|
1253
|
+
this.visibilityState === VisibilityState.GloballyVisible,
|
|
1254
|
+
0x2d2 /* "Data store should be globally visible when its attached." */,
|
|
1255
|
+
);
|
|
1256
|
+
this._attachState = AttachState.Attached;
|
|
1257
|
+
this.emit("attached");
|
|
1258
|
+
break;
|
|
1259
|
+
default:
|
|
1260
|
+
unreachableCase(attachState, "unreached");
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1235
1263
|
}
|
|
1236
1264
|
|
|
1237
1265
|
/**
|
|
@@ -1239,7 +1267,7 @@ export class FluidDataStoreRuntime
|
|
|
1239
1267
|
* Request handler is only called when data store can't resolve request, i.e. for custom requests.
|
|
1240
1268
|
* @param Base - base class, inherits from FluidDataStoreRuntime
|
|
1241
1269
|
* @param requestHandler - request handler to mix in
|
|
1242
|
-
* @
|
|
1270
|
+
* @alpha
|
|
1243
1271
|
*/
|
|
1244
1272
|
export const mixinRequestHandler = (
|
|
1245
1273
|
requestHandler: (request: IRequest, runtime: FluidDataStoreRuntime) => Promise<IResponse>,
|
package/src/fluidHandle.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IFluidHandle, IFluidHandleContext
|
|
7
|
-
import { generateHandleContextPath } from "@fluidframework/runtime-utils";
|
|
6
|
+
import { FluidObject, IFluidHandle, IFluidHandleContext } from "@fluidframework/core-interfaces";
|
|
7
|
+
import { generateHandleContextPath } from "@fluidframework/runtime-utils/internal";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Handle for a shared {@link @fluidframework/core-interfaces#FluidObject}.
|
|
@@ -3,23 +3,24 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { ISnapshotTreeWithBlobContents } from "@fluidframework/container-definitions/internal";
|
|
7
|
+
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
8
|
+
import { assert, Lazy, LazyPromise } from "@fluidframework/core-utils/internal";
|
|
9
9
|
import { IChannel, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
10
|
+
import { IDocumentStorageService } from "@fluidframework/driver-definitions/internal";
|
|
11
|
+
import { ISequencedDocumentMessage, ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
12
|
+
import { IGarbageCollectionData, ITelemetryContext } from "@fluidframework/runtime-definitions";
|
|
10
13
|
import {
|
|
11
14
|
IFluidDataStoreContext,
|
|
12
|
-
IGarbageCollectionData,
|
|
13
15
|
ISummarizeResult,
|
|
14
|
-
|
|
15
|
-
} from "@fluidframework/
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
import { ISnapshotTreeWithBlobContents } from "@fluidframework/container-definitions";
|
|
16
|
+
} from "@fluidframework/runtime-definitions/internal";
|
|
17
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
18
|
+
import { DataProcessingError } from "@fluidframework/telemetry-utils/internal";
|
|
19
|
+
|
|
19
20
|
import {
|
|
20
21
|
ChannelServiceEndpoints,
|
|
21
|
-
createChannelServiceEndpoints,
|
|
22
22
|
IChannelContext,
|
|
23
|
+
createChannelServiceEndpoints,
|
|
23
24
|
loadChannel,
|
|
24
25
|
loadChannelFactoryAndAttributes,
|
|
25
26
|
summarizeChannel,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IChannelStorageService } from "@fluidframework/datastore-definitions";
|
|
7
6
|
import { stringToBuffer } from "@fluid-internal/client-utils";
|
|
7
|
+
import { IChannelStorageService } from "@fluidframework/datastore-definitions";
|
|
8
8
|
import { IBlob, ITree, TreeEntry } from "@fluidframework/protocol-definitions";
|
|
9
|
-
import { listBlobsAtTreePath } from "@fluidframework/runtime-utils";
|
|
9
|
+
import { listBlobsAtTreePath } from "@fluidframework/runtime-utils/internal";
|
|
10
10
|
|
|
11
11
|
export class LocalChannelStorageService implements IChannelStorageService {
|
|
12
12
|
constructor(private readonly tree: ITree) {}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const pkgName = "@fluidframework/datastore";
|
|
9
|
+
export const pkgVersion = "2.0.0-rc.3.0.0";
|
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { AttachState } from "@fluidframework/container-definitions";
|
|
7
7
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
8
|
+
import { assert, LazyPromise } from "@fluidframework/core-utils/internal";
|
|
8
9
|
import { IChannel, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
9
|
-
import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
10
|
+
import { IDocumentStorageService } from "@fluidframework/driver-definitions/internal";
|
|
10
11
|
import { ISequencedDocumentMessage, ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
12
|
+
import {
|
|
13
|
+
IExperimentalIncrementalSummaryContext,
|
|
14
|
+
IGarbageCollectionData,
|
|
15
|
+
ITelemetryContext,
|
|
16
|
+
} from "@fluidframework/runtime-definitions";
|
|
11
17
|
import {
|
|
12
18
|
CreateChildSummarizerNodeFn,
|
|
13
19
|
IFluidDataStoreContext,
|
|
14
|
-
IGarbageCollectionData,
|
|
15
|
-
IExperimentalIncrementalSummaryContext,
|
|
16
20
|
ISummarizeInternalResult,
|
|
17
21
|
ISummarizeResult,
|
|
18
22
|
ISummarizerNodeWithGC,
|
|
19
|
-
|
|
20
|
-
} from "@fluidframework/
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
ITelemetryLoggerExt,
|
|
24
|
-
ThresholdCounter,
|
|
25
|
-
} from "@fluidframework/telemetry-utils";
|
|
26
|
-
import { AttachState } from "@fluidframework/container-definitions";
|
|
23
|
+
} from "@fluidframework/runtime-definitions/internal";
|
|
24
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
25
|
+
import { ThresholdCounter, createChildLogger } from "@fluidframework/telemetry-utils/internal";
|
|
26
|
+
|
|
27
27
|
import {
|
|
28
28
|
ChannelServiceEndpoints,
|
|
29
|
-
createChannelServiceEndpoints,
|
|
30
29
|
IChannelContext,
|
|
30
|
+
createChannelServiceEndpoints,
|
|
31
31
|
loadChannel,
|
|
32
32
|
loadChannelFactoryAndAttributes,
|
|
33
33
|
summarizeChannelAsync,
|
package/api-extractor-cjs.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"extends": "../../../common/build/build-common/api-extractor-base.cjs.primary.json",
|
|
4
|
-
// CJS is actually secondary; so, no report.
|
|
5
|
-
"apiReport": {
|
|
6
|
-
"enabled": false
|
|
7
|
-
}
|
|
8
|
-
}
|