@fluidframework/container-definitions 0.43.0-45414 → 0.45.0-49188
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/.eslintrc.js +4 -3
- package/BREAKING.md +6 -0
- package/api-report/container-definitions.api.md +94 -35
- package/dist/deltas.d.ts +1 -19
- package/dist/deltas.d.ts.map +1 -1
- package/dist/deltas.js.map +1 -1
- package/dist/error.d.ts +5 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +4 -0
- package/dist/error.js.map +1 -1
- package/dist/fluidPackage.d.ts +109 -0
- package/dist/fluidPackage.d.ts.map +1 -0
- package/dist/fluidPackage.js +24 -0
- package/dist/fluidPackage.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +34 -16
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/runtime.d.ts +18 -4
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js.map +1 -1
- package/lib/deltas.d.ts +1 -19
- package/lib/deltas.d.ts.map +1 -1
- package/lib/deltas.js.map +1 -1
- package/lib/error.d.ts +5 -1
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +4 -0
- package/lib/error.js.map +1 -1
- package/lib/fluidPackage.d.ts +109 -0
- package/lib/fluidPackage.d.ts.map +1 -0
- package/lib/fluidPackage.js +19 -0
- package/lib/fluidPackage.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/loader.d.ts +34 -16
- package/lib/loader.d.ts.map +1 -1
- package/lib/loader.js.map +1 -1
- package/lib/runtime.d.ts +18 -4
- package/lib/runtime.d.ts.map +1 -1
- package/lib/runtime.js.map +1 -1
- package/package.json +242 -24
- package/src/deltas.ts +1 -20
- package/src/error.ts +6 -1
- package/src/fluidPackage.ts +132 -0
- package/src/index.ts +1 -0
- package/src/loader.ts +37 -17
- package/src/runtime.ts +20 -5
package/src/runtime.ts
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
import { ITelemetryBaseLogger, IDisposable } from "@fluidframework/common-definitions";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
FluidObject,
|
|
9
|
+
IFluidCodeDetails,
|
|
9
10
|
IFluidConfiguration,
|
|
11
|
+
IFluidObject,
|
|
10
12
|
IRequest,
|
|
11
13
|
IResponse,
|
|
12
|
-
FluidObject,
|
|
13
14
|
} from "@fluidframework/core-interfaces";
|
|
14
15
|
import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
15
16
|
import {
|
|
16
17
|
IClientConfiguration,
|
|
17
18
|
IClientDetails,
|
|
18
|
-
IQuorum,
|
|
19
19
|
ISequencedDocumentMessage,
|
|
20
20
|
ISnapshotTree,
|
|
21
21
|
ITree,
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
ISummaryTree,
|
|
24
24
|
IVersion,
|
|
25
25
|
IDocumentMessage,
|
|
26
|
+
IQuorumClients,
|
|
26
27
|
} from "@fluidframework/protocol-definitions";
|
|
27
28
|
import { IAudience } from "./audience";
|
|
28
29
|
import { IDeltaManager } from "./deltas";
|
|
@@ -120,10 +121,16 @@ export interface IRuntime extends IDisposable {
|
|
|
120
121
|
* and the Container has created a new ContainerContext.
|
|
121
122
|
*/
|
|
122
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
|
+
*/
|
|
123
127
|
readonly id: string;
|
|
124
128
|
readonly existing: boolean | undefined;
|
|
125
129
|
readonly options: ILoaderOptions;
|
|
126
|
-
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated 0.45 - Configuration is not recommended to be used and will be removed in an upcoming release.
|
|
132
|
+
*/
|
|
133
|
+
readonly configuration?: IFluidConfiguration;
|
|
127
134
|
readonly clientId: string | undefined;
|
|
128
135
|
readonly clientDetails: IClientDetails;
|
|
129
136
|
readonly storage: IDocumentStorageService;
|
|
@@ -133,7 +140,15 @@ export interface IContainerContext extends IDisposable {
|
|
|
133
140
|
readonly submitSignalFn: (contents: any) => void;
|
|
134
141
|
readonly closeFn: (error?: ICriticalContainerError) => void;
|
|
135
142
|
readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
|
|
136
|
-
readonly quorum:
|
|
143
|
+
readonly quorum: IQuorumClients;
|
|
144
|
+
/**
|
|
145
|
+
* @deprecated This method is provided as a migration tool for customers currently reading the code details
|
|
146
|
+
* from within the Container by directly accessing the Quorum proposals. The code details should not be accessed
|
|
147
|
+
* from within the Container as this requires coupling between the container contents and the code loader.
|
|
148
|
+
* Direct access to Quorum proposals will be removed in an upcoming release, and in a further future release this
|
|
149
|
+
* migration tool will be removed.
|
|
150
|
+
*/
|
|
151
|
+
getSpecifiedCodeDetails?(): IFluidCodeDetails | undefined;
|
|
137
152
|
readonly audience: IAudience | undefined;
|
|
138
153
|
readonly loader: ILoader;
|
|
139
154
|
/** @deprecated - Use `taggedLogger` if present. Otherwise, be sure to handle tagged data
|