@fluidframework/datastore-definitions 2.0.0-internal.7.0.0 → 2.0.0-internal.7.2.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,13 @@
1
1
  # @fluidframework/datastore-definitions
2
2
 
3
+ ## 2.0.0-internal.7.2.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.7.1.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.0.0-internal.7.0.0
4
12
 
5
13
  ### Major Changes
@@ -1,4 +1,12 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "@fluidframework/build-common/api-extractor-common-report.json"
3
+ "extends": "@fluidframework/build-common/api-extractor-base.json",
4
+ "messages": {
5
+ "extractorMessageReporting": {
6
+ "ae-missing-release-tag": {
7
+ // TODO: Fix violations and remove this rule override
8
+ "logLevel": "none"
9
+ }
10
+ }
11
+ }
4
12
  }
@@ -0,0 +1,155 @@
1
+ ## API Report File for "@fluidframework/datastore-definitions"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { AttachState } from '@fluidframework/container-definitions';
8
+ import { FluidObject } from '@fluidframework/core-interfaces';
9
+ import { IAudience } from '@fluidframework/container-definitions';
10
+ import { IDeltaManager } from '@fluidframework/container-definitions';
11
+ import { IDisposable } from '@fluidframework/core-interfaces';
12
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
13
+ import { IEvent } from '@fluidframework/core-interfaces';
14
+ import { IEventProvider } from '@fluidframework/core-interfaces';
15
+ import { IExperimentalIncrementalSummaryContext } from '@fluidframework/runtime-definitions';
16
+ import { IFluidHandle } from '@fluidframework/core-interfaces';
17
+ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
18
+ import { IFluidLoadable } from '@fluidframework/core-interfaces';
19
+ import { IFluidRouter } from '@fluidframework/core-interfaces';
20
+ import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
21
+ import { IIdCompressor } from '@fluidframework/runtime-definitions';
22
+ import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
23
+ import { ILoaderOptions } from '@fluidframework/container-definitions';
24
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
25
+ import { IQuorumClients } from '@fluidframework/protocol-definitions';
26
+ import { IRequest } from '@fluidframework/core-interfaces';
27
+ import { IResponse } from '@fluidframework/core-interfaces';
28
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
29
+ import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
30
+ import { ITelemetryContext } from '@fluidframework/runtime-definitions';
31
+ import { ITelemetryLogger } from '@fluidframework/core-interfaces';
32
+
33
+ // @public (undocumented)
34
+ export interface IChannel extends IFluidLoadable {
35
+ // (undocumented)
36
+ readonly attributes: IChannelAttributes;
37
+ connect(services: IChannelServices): void;
38
+ getAttachSummary(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
39
+ getGCData(fullGC?: boolean): IGarbageCollectionData;
40
+ readonly id: string;
41
+ isAttached(): boolean;
42
+ summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext): Promise<ISummaryTreeWithStats>;
43
+ }
44
+
45
+ // @public
46
+ export interface IChannelAttributes {
47
+ readonly packageVersion?: string;
48
+ readonly snapshotFormatVersion: string;
49
+ readonly type: string;
50
+ }
51
+
52
+ // @public
53
+ export interface IChannelFactory {
54
+ readonly attributes: IChannelAttributes;
55
+ create(runtime: IFluidDataStoreRuntime, id: string): IChannel;
56
+ load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, channelAttributes: Readonly<IChannelAttributes>): Promise<IChannel>;
57
+ readonly type: string;
58
+ }
59
+
60
+ // @public
61
+ export interface IChannelServices {
62
+ // (undocumented)
63
+ deltaConnection: IDeltaConnection;
64
+ // (undocumented)
65
+ objectStorage: IChannelStorageService;
66
+ }
67
+
68
+ // @public
69
+ export interface IChannelStorageService {
70
+ contains(path: string): Promise<boolean>;
71
+ list(path: string): Promise<string[]>;
72
+ readBlob(path: string): Promise<ArrayBufferLike>;
73
+ }
74
+
75
+ // @public
76
+ export interface IDeltaConnection {
77
+ addedGCOutboundReference?(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
78
+ attach(handler: IDeltaHandler): void;
79
+ // (undocumented)
80
+ connected: boolean;
81
+ dirty(): void;
82
+ submit(messageContent: any, localOpMetadata: unknown): void;
83
+ }
84
+
85
+ // @public
86
+ export interface IDeltaHandler {
87
+ applyStashedOp(message: any): unknown;
88
+ process: (message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown) => void;
89
+ reSubmit(message: any, localOpMetadata: unknown): void;
90
+ rollback?(message: any, localOpMetadata: unknown): void;
91
+ setConnectionState(connected: boolean): void;
92
+ }
93
+
94
+ // @public
95
+ export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRuntimeEvents>, IDisposable, Partial<IProvideFluidDataStoreRegistry> {
96
+ readonly attachState: AttachState;
97
+ bindChannel(channel: IChannel): void;
98
+ // (undocumented)
99
+ readonly channelsRoutingContext: IFluidHandleContext;
100
+ // (undocumented)
101
+ readonly clientId: string | undefined;
102
+ // (undocumented)
103
+ readonly connected: boolean;
104
+ createChannel(id: string | undefined, type: string): IChannel;
105
+ // (undocumented)
106
+ readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
107
+ ensureNoDataModelChanges<T>(callback: () => T): T;
108
+ readonly entryPoint: IFluidHandle<FluidObject>;
109
+ getAudience(): IAudience;
110
+ getChannel(id: string): Promise<IChannel>;
111
+ getQuorum(): IQuorumClients;
112
+ // (undocumented)
113
+ readonly id: string;
114
+ // (undocumented)
115
+ readonly idCompressor?: IIdCompressor;
116
+ // (undocumented)
117
+ readonly IFluidHandleContext: IFluidHandleContext;
118
+ // @deprecated (undocumented)
119
+ readonly IFluidRouter: IFluidRouter;
120
+ // (undocumented)
121
+ readonly logger: ITelemetryLogger;
122
+ // (undocumented)
123
+ readonly objectsRoutingContext: IFluidHandleContext;
124
+ // (undocumented)
125
+ readonly options: ILoaderOptions;
126
+ // @deprecated (undocumented)
127
+ request(request: IRequest): Promise<IResponse>;
128
+ // (undocumented)
129
+ readonly rootRoutingContext: IFluidHandleContext;
130
+ submitSignal(type: string, content: any, targetClientId?: string): void;
131
+ uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
132
+ waitAttached(): Promise<void>;
133
+ }
134
+
135
+ // @public (undocumented)
136
+ export interface IFluidDataStoreRuntimeEvents extends IEvent {
137
+ // (undocumented)
138
+ (event: "disconnected" | "dispose" | "attaching" | "attached", listener: () => void): any;
139
+ // (undocumented)
140
+ (event: "op", listener: (message: ISequencedDocumentMessage) => void): any;
141
+ // (undocumented)
142
+ (event: "signal", listener: (message: IInboundSignalMessage, local: boolean) => void): any;
143
+ // (undocumented)
144
+ (event: "connected", listener: (clientId: string) => void): any;
145
+ }
146
+
147
+ // @public
148
+ export type Jsonable<T = any, TReplaced = void> = T extends undefined | null | boolean | number | string | TReplaced ? T : Extract<T, Function> extends never ? {
149
+ [K in keyof T]: Extract<K, symbol> extends never ? Jsonable<T[K], TReplaced> : never;
150
+ } : never;
151
+
152
+ // @public
153
+ export type Serializable<T = any> = Jsonable<T, IFluidHandle>;
154
+
155
+ ```
@@ -65,8 +65,9 @@ export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRu
65
65
  * Submits the signal to be sent to other clients.
66
66
  * @param type - Type of the signal.
67
67
  * @param content - Content of the signal.
68
+ * @param targetClientId - When specified, the signal is only sent to the provided client id.
68
69
  */
69
- submitSignal(type: string, content: any): void;
70
+ submitSignal(type: string, content: any, targetClientId?: string): void;
70
71
  /**
71
72
  * Returns the current quorum.
72
73
  */
@@ -85,11 +86,11 @@ export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRu
85
86
  */
86
87
  readonly entryPoint: IFluidHandle<FluidObject>;
87
88
  /**
88
- * @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
89
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
89
90
  */
90
91
  request(request: IRequest): Promise<IResponse>;
91
92
  /**
92
- * @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
93
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
93
94
  */
94
95
  readonly IFluidRouter: IFluidRouter;
95
96
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dataStoreRuntime.d.ts","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,MAAM,EACN,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EAEnB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,SAAS,EACT,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACN,SAAS,EACT,aAAa,EACb,WAAW,EACX,cAAc,EACd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACN,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,aAAa,EACb,qBAAqB,EACrB,8BAA8B,EAC9B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAE7B,MAAM,WAAW,4BAA6B,SAAQ,MAAM;IAC3D,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,EAAE,QAAQ,EAAE,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AAC;IAElC,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE1C;;;;;;;OAOG;IACH,wBAAwB,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;IAElD;;;;OAIG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE9D;;;OAGG;IACH,WAAW,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;IAGrC;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC;IAEhG;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExE;;OAEG;IACH,SAAS,IAAI,cAAc,CAAC;IAE5B;;OAEG;IACH,WAAW,IAAI,SAAS,CAAC;IAEzB;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAE/C;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAE/C;;OAEG;IAEH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dataStoreRuntime.js","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIEvent,\n\tIEventProvider,\n\tITelemetryLogger,\n\tIDisposable,\n\tIFluidHandleContext,\n\t// eslint-disable-next-line import/no-deprecated\n\tIFluidRouter,\n\tIFluidHandle,\n\tFluidObject,\n\tIRequest,\n\tIResponse,\n} from \"@fluidframework/core-interfaces\";\nimport {\n\tIAudience,\n\tIDeltaManager,\n\tAttachState,\n\tILoaderOptions,\n} from \"@fluidframework/container-definitions\";\nimport {\n\tIDocumentMessage,\n\tIQuorumClients,\n\tISequencedDocumentMessage,\n} from \"@fluidframework/protocol-definitions\";\nimport {\n\tIIdCompressor,\n\tIInboundSignalMessage,\n\tIProvideFluidDataStoreRegistry,\n} from \"@fluidframework/runtime-definitions\";\nimport { IChannel } from \".\";\n\nexport interface IFluidDataStoreRuntimeEvents extends IEvent {\n\t(event: \"disconnected\" | \"dispose\" | \"attaching\" | \"attached\", listener: () => void);\n\t(event: \"op\", listener: (message: ISequencedDocumentMessage) => void);\n\t(event: \"signal\", listener: (message: IInboundSignalMessage, local: boolean) => void);\n\t(event: \"connected\", listener: (clientId: string) => void);\n}\n\n/**\n * Represents the runtime for the data store. Contains helper functions/state of the data store.\n */\nexport interface IFluidDataStoreRuntime\n\textends IEventProvider<IFluidDataStoreRuntimeEvents>,\n\t\tIDisposable,\n\t\tPartial<IProvideFluidDataStoreRegistry> {\n\treadonly id: string;\n\n\treadonly IFluidHandleContext: IFluidHandleContext;\n\n\treadonly rootRoutingContext: IFluidHandleContext;\n\treadonly channelsRoutingContext: IFluidHandleContext;\n\treadonly objectsRoutingContext: IFluidHandleContext;\n\n\treadonly options: ILoaderOptions;\n\n\treadonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;\n\n\treadonly clientId: string | undefined;\n\n\treadonly connected: boolean;\n\n\treadonly logger: ITelemetryLogger;\n\n\t/**\n\t * Indicates the attachment state of the data store to a host service.\n\t */\n\treadonly attachState: AttachState;\n\n\treadonly idCompressor?: IIdCompressor;\n\n\t/**\n\t * Returns the channel with the given id\n\t */\n\tgetChannel(id: string): Promise<IChannel>;\n\n\t/**\n\t * Invokes the given callback and expects that no ops are submitted\n\t * until execution finishes. If an op is submitted, an error will be raised.\n\t *\n\t * Can be disabled by feature gate `Fluid.ContainerRuntime.DisableOpReentryCheck`\n\t *\n\t * @param callback - the callback to be invoked\n\t */\n\tensureNoDataModelChanges<T>(callback: () => T): T;\n\n\t/**\n\t * Creates a new channel of the given type.\n\t * @param id - ID of the channel to be created. A unique ID will be generated if left undefined.\n\t * @param type - Type of the channel.\n\t */\n\tcreateChannel(id: string | undefined, type: string): IChannel;\n\n\t/**\n\t * Bind the channel with the data store runtime. If the runtime\n\t * is attached then we attach the channel to make it live.\n\t */\n\tbindChannel(channel: IChannel): void;\n\n\t// Blob related calls\n\t/**\n\t * Api to upload a blob of data.\n\t * @param blob - blob to be uploaded.\n\t */\n\tuploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;\n\n\t/**\n\t * Submits the signal to be sent to other clients.\n\t * @param type - Type of the signal.\n\t * @param content - Content of the signal.\n\t */\n\tsubmitSignal(type: string, content: any): void;\n\n\t/**\n\t * Returns the current quorum.\n\t */\n\tgetQuorum(): IQuorumClients;\n\n\t/**\n\t * Returns the current audience.\n\t */\n\tgetAudience(): IAudience;\n\n\t/**\n\t * Resolves when a local data store is attached.\n\t */\n\twaitAttached(): Promise<void>;\n\n\t/**\n\t * Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting\n\t * with it.\n\t */\n\treadonly entryPoint: IFluidHandle<FluidObject>;\n\n\t/**\n\t * @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequest(request: IRequest): Promise<IResponse>;\n\n\t/**\n\t * @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\t// eslint-disable-next-line import/no-deprecated\n\treadonly IFluidRouter: IFluidRouter;\n}\n"]}
1
+ {"version":3,"file":"dataStoreRuntime.js","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIEvent,\n\tIEventProvider,\n\tITelemetryLogger,\n\tIDisposable,\n\tIFluidHandleContext,\n\t// eslint-disable-next-line import/no-deprecated\n\tIFluidRouter,\n\tIFluidHandle,\n\tFluidObject,\n\tIRequest,\n\tIResponse,\n} from \"@fluidframework/core-interfaces\";\nimport {\n\tIAudience,\n\tIDeltaManager,\n\tAttachState,\n\tILoaderOptions,\n} from \"@fluidframework/container-definitions\";\nimport {\n\tIDocumentMessage,\n\tIQuorumClients,\n\tISequencedDocumentMessage,\n} from \"@fluidframework/protocol-definitions\";\nimport {\n\tIIdCompressor,\n\tIInboundSignalMessage,\n\tIProvideFluidDataStoreRegistry,\n} from \"@fluidframework/runtime-definitions\";\nimport { IChannel } from \".\";\n\nexport interface IFluidDataStoreRuntimeEvents extends IEvent {\n\t(event: \"disconnected\" | \"dispose\" | \"attaching\" | \"attached\", listener: () => void);\n\t(event: \"op\", listener: (message: ISequencedDocumentMessage) => void);\n\t(event: \"signal\", listener: (message: IInboundSignalMessage, local: boolean) => void);\n\t(event: \"connected\", listener: (clientId: string) => void);\n}\n\n/**\n * Represents the runtime for the data store. Contains helper functions/state of the data store.\n */\nexport interface IFluidDataStoreRuntime\n\textends IEventProvider<IFluidDataStoreRuntimeEvents>,\n\t\tIDisposable,\n\t\tPartial<IProvideFluidDataStoreRegistry> {\n\treadonly id: string;\n\n\treadonly IFluidHandleContext: IFluidHandleContext;\n\n\treadonly rootRoutingContext: IFluidHandleContext;\n\treadonly channelsRoutingContext: IFluidHandleContext;\n\treadonly objectsRoutingContext: IFluidHandleContext;\n\n\treadonly options: ILoaderOptions;\n\n\treadonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;\n\n\treadonly clientId: string | undefined;\n\n\treadonly connected: boolean;\n\n\treadonly logger: ITelemetryLogger;\n\n\t/**\n\t * Indicates the attachment state of the data store to a host service.\n\t */\n\treadonly attachState: AttachState;\n\n\treadonly idCompressor?: IIdCompressor;\n\n\t/**\n\t * Returns the channel with the given id\n\t */\n\tgetChannel(id: string): Promise<IChannel>;\n\n\t/**\n\t * Invokes the given callback and expects that no ops are submitted\n\t * until execution finishes. If an op is submitted, an error will be raised.\n\t *\n\t * Can be disabled by feature gate `Fluid.ContainerRuntime.DisableOpReentryCheck`\n\t *\n\t * @param callback - the callback to be invoked\n\t */\n\tensureNoDataModelChanges<T>(callback: () => T): T;\n\n\t/**\n\t * Creates a new channel of the given type.\n\t * @param id - ID of the channel to be created. A unique ID will be generated if left undefined.\n\t * @param type - Type of the channel.\n\t */\n\tcreateChannel(id: string | undefined, type: string): IChannel;\n\n\t/**\n\t * Bind the channel with the data store runtime. If the runtime\n\t * is attached then we attach the channel to make it live.\n\t */\n\tbindChannel(channel: IChannel): void;\n\n\t// Blob related calls\n\t/**\n\t * Api to upload a blob of data.\n\t * @param blob - blob to be uploaded.\n\t */\n\tuploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;\n\n\t/**\n\t * Submits the signal to be sent to other clients.\n\t * @param type - Type of the signal.\n\t * @param content - Content of the signal.\n\t * @param targetClientId - When specified, the signal is only sent to the provided client id.\n\t */\n\tsubmitSignal(type: string, content: any, targetClientId?: string): void;\n\n\t/**\n\t * Returns the current quorum.\n\t */\n\tgetQuorum(): IQuorumClients;\n\n\t/**\n\t * Returns the current audience.\n\t */\n\tgetAudience(): IAudience;\n\n\t/**\n\t * Resolves when a local data store is attached.\n\t */\n\twaitAttached(): Promise<void>;\n\n\t/**\n\t * Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting\n\t * with it.\n\t */\n\treadonly entryPoint: IFluidHandle<FluidObject>;\n\n\t/**\n\t * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequest(request: IRequest): Promise<IResponse>;\n\n\t/**\n\t * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\t// eslint-disable-next-line import/no-deprecated\n\treadonly IFluidRouter: IFluidRouter;\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.37.0"
8
+ "packageVersion": "7.38.0"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/datastore-definitions",
3
- "version": "2.0.0-internal.7.0.0",
3
+ "version": "2.0.0-internal.7.2.0",
4
4
  "description": "Fluid data store definitions",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -14,38 +14,33 @@
14
14
  "main": "dist/index.js",
15
15
  "types": "dist/index.d.ts",
16
16
  "dependencies": {
17
- "@fluidframework/container-definitions": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
18
- "@fluidframework/core-interfaces": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
17
+ "@fluidframework/container-definitions": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
18
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
19
19
  "@fluidframework/protocol-definitions": "^3.0.0",
20
- "@fluidframework/runtime-definitions": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0"
20
+ "@fluidframework/runtime-definitions": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@fluid-tools/build-cli": "^0.24.0",
24
- "@fluidframework/build-common": "^2.0.0",
25
- "@fluidframework/build-tools": "^0.24.0",
26
- "@fluidframework/datastore-definitions-previous": "npm:@fluidframework/datastore-definitions@2.0.0-internal.6.3.0",
27
- "@fluidframework/eslint-config-fluid": "^2.1.0",
23
+ "@fluid-tools/build-cli": "^0.26.1",
24
+ "@fluidframework/build-common": "^2.0.3",
25
+ "@fluidframework/build-tools": "^0.26.1",
26
+ "@fluidframework/datastore-definitions-previous": "npm:@fluidframework/datastore-definitions@2.0.0-internal.7.1.0",
27
+ "@fluidframework/eslint-config-fluid": "^3.0.0",
28
28
  "@microsoft/api-extractor": "^7.37.0",
29
- "copyfiles": "^2.4.1",
30
- "eslint": "~8.6.0",
31
- "prettier": "~2.6.2",
29
+ "eslint": "~8.50.0",
30
+ "prettier": "~3.0.3",
32
31
  "rimraf": "^4.4.0",
33
32
  "typescript": "~5.1.6"
34
33
  },
35
34
  "typeValidation": {
36
- "broken": {
37
- "InterfaceDeclaration_IFluidDataStoreRuntime": {
38
- "forwardCompat": false
39
- }
40
- }
35
+ "broken": {}
41
36
  },
42
37
  "scripts": {
43
38
  "build": "fluid-build . --task build",
44
39
  "build:compile": "fluid-build . --task compile",
45
- "build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
40
+ "build:docs": "api-extractor run --local",
46
41
  "build:test": "tsc --project ./src/test/tsconfig.json",
47
- "ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
48
- "clean": "rimraf --glob 'dist' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp'",
42
+ "ci:build:docs": "api-extractor run",
43
+ "clean": "rimraf --glob dist \"*.tsbuildinfo\" \"*.build.log\" _api-extractor-temp",
49
44
  "eslint": "eslint --format stylish src",
50
45
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
51
46
  "format": "npm run prettier:fix",
@@ -112,8 +112,9 @@ export interface IFluidDataStoreRuntime
112
112
  * Submits the signal to be sent to other clients.
113
113
  * @param type - Type of the signal.
114
114
  * @param content - Content of the signal.
115
+ * @param targetClientId - When specified, the signal is only sent to the provided client id.
115
116
  */
116
- submitSignal(type: string, content: any): void;
117
+ submitSignal(type: string, content: any, targetClientId?: string): void;
117
118
 
118
119
  /**
119
120
  * Returns the current quorum.
@@ -137,12 +138,12 @@ export interface IFluidDataStoreRuntime
137
138
  readonly entryPoint: IFluidHandle<FluidObject>;
138
139
 
139
140
  /**
140
- * @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
141
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
141
142
  */
142
143
  request(request: IRequest): Promise<IResponse>;
143
144
 
144
145
  /**
145
- * @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
146
+ * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
146
147
  */
147
148
  // eslint-disable-next-line import/no-deprecated
148
149
  readonly IFluidRouter: IFluidRouter;