@fluidframework/container-definitions 0.44.0 → 0.45.0-49784

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/src/loader.ts CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  IClientDetails,
16
16
  IDocumentMessage,
17
17
  IPendingProposal,
18
- IQuorum,
18
+ IQuorumClients,
19
19
  ISequencedDocumentMessage,
20
20
  } from "@fluidframework/protocol-definitions";
21
21
  import { IResolvedUrl } from "@fluidframework/driver-definitions";
@@ -162,7 +162,7 @@ export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRout
162
162
  * The collection of write clients which were connected as of the current sequence number.
163
163
  * Also contains a map of key-value pairs that must be agreed upon by all clients before being accepted.
164
164
  */
165
- getQuorum(): IQuorum;
165
+ getQuorum(): IQuorumClients;
166
166
 
167
167
  /**
168
168
  * Represents the resolved url to the Container
@@ -178,14 +178,14 @@ export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRout
178
178
  * Get the code details that are currently specified for the container.
179
179
  * @returns The current code details if any are specified, undefined if none are specified.
180
180
  */
181
- getSpecifiedCodeDetails?(): IFluidCodeDetails | undefined;
181
+ getSpecifiedCodeDetails(): IFluidCodeDetails | undefined;
182
182
 
183
183
  /**
184
184
  * Get the code details that were used to load the container.
185
185
  * @returns The code details that were used to load the container if it is loaded, undefined if it is not yet
186
186
  * loaded.
187
187
  */
188
- getLoadedCodeDetails?(): IFluidCodeDetails | undefined;
188
+ getLoadedCodeDetails(): IFluidCodeDetails | undefined;
189
189
 
190
190
  /**
191
191
  * Returns true if the container has been closed, otherwise false
package/src/runtime.ts CHANGED
@@ -16,7 +16,6 @@ import { IDocumentStorageService } from "@fluidframework/driver-definitions";
16
16
  import {
17
17
  IClientConfiguration,
18
18
  IClientDetails,
19
- IQuorum,
20
19
  ISequencedDocumentMessage,
21
20
  ISnapshotTree,
22
21
  ITree,
@@ -24,6 +23,7 @@ import {
24
23
  ISummaryTree,
25
24
  IVersion,
26
25
  IDocumentMessage,
26
+ IQuorumClients,
27
27
  } from "@fluidframework/protocol-definitions";
28
28
  import { IAudience } from "./audience";
29
29
  import { IDeltaManager } from "./deltas";
@@ -121,13 +121,12 @@ export interface IRuntime extends IDisposable {
121
121
  * and the Container has created a new ContainerContext.
122
122
  */
123
123
  export interface IContainerContext extends IDisposable {
124
- /**
125
- * @deprecated This will be removed in a later release. Deprecated in 0.44 of container-definitions
126
- */
127
- readonly id: string;
128
124
  readonly existing: boolean | undefined;
129
125
  readonly options: ILoaderOptions;
130
- readonly configuration: IFluidConfiguration;
126
+ /**
127
+ * @deprecated 0.45 - Configuration is not recommended to be used and will be removed in an upcoming release.
128
+ */
129
+ readonly configuration?: IFluidConfiguration;
131
130
  readonly clientId: string | undefined;
132
131
  readonly clientDetails: IClientDetails;
133
132
  readonly storage: IDocumentStorageService;
@@ -137,7 +136,7 @@ export interface IContainerContext extends IDisposable {
137
136
  readonly submitSignalFn: (contents: any) => void;
138
137
  readonly closeFn: (error?: ICriticalContainerError) => void;
139
138
  readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
140
- readonly quorum: IQuorum;
139
+ readonly quorum: IQuorumClients;
141
140
  /**
142
141
  * @deprecated This method is provided as a migration tool for customers currently reading the code details
143
142
  * from within the Container by directly accessing the Quorum proposals. The code details should not be accessed
@@ -154,7 +153,7 @@ export interface IContainerContext extends IDisposable {
154
153
  * IContainerContext will retain both options, but hosts must now support tags as the loader
155
154
  * will soon plumb taggedLogger's events (potentially tagged) to the host's logger.
156
155
  */
157
- readonly logger: ITelemetryBaseLogger;
156
+ readonly logger?: ITelemetryBaseLogger;
158
157
  // The logger implementation, which would support tagged events, should be provided by the loader.
159
158
  readonly taggedLogger?: ITelemetryBaseLogger;
160
159
  readonly serviceConfiguration: IClientConfiguration | undefined;