@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.
Files changed (52) hide show
  1. package/.eslintrc.js +4 -3
  2. package/BREAKING.md +6 -0
  3. package/api-report/container-definitions.api.md +94 -35
  4. package/dist/deltas.d.ts +1 -19
  5. package/dist/deltas.d.ts.map +1 -1
  6. package/dist/deltas.js.map +1 -1
  7. package/dist/error.d.ts +5 -1
  8. package/dist/error.d.ts.map +1 -1
  9. package/dist/error.js +4 -0
  10. package/dist/error.js.map +1 -1
  11. package/dist/fluidPackage.d.ts +109 -0
  12. package/dist/fluidPackage.d.ts.map +1 -0
  13. package/dist/fluidPackage.js +24 -0
  14. package/dist/fluidPackage.js.map +1 -0
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/loader.d.ts +34 -16
  20. package/dist/loader.d.ts.map +1 -1
  21. package/dist/loader.js.map +1 -1
  22. package/dist/runtime.d.ts +18 -4
  23. package/dist/runtime.d.ts.map +1 -1
  24. package/dist/runtime.js.map +1 -1
  25. package/lib/deltas.d.ts +1 -19
  26. package/lib/deltas.d.ts.map +1 -1
  27. package/lib/deltas.js.map +1 -1
  28. package/lib/error.d.ts +5 -1
  29. package/lib/error.d.ts.map +1 -1
  30. package/lib/error.js +4 -0
  31. package/lib/error.js.map +1 -1
  32. package/lib/fluidPackage.d.ts +109 -0
  33. package/lib/fluidPackage.d.ts.map +1 -0
  34. package/lib/fluidPackage.js +19 -0
  35. package/lib/fluidPackage.js.map +1 -0
  36. package/lib/index.d.ts +1 -0
  37. package/lib/index.d.ts.map +1 -1
  38. package/lib/index.js +1 -0
  39. package/lib/index.js.map +1 -1
  40. package/lib/loader.d.ts +34 -16
  41. package/lib/loader.d.ts.map +1 -1
  42. package/lib/loader.js.map +1 -1
  43. package/lib/runtime.d.ts +18 -4
  44. package/lib/runtime.d.ts.map +1 -1
  45. package/lib/runtime.js.map +1 -1
  46. package/package.json +242 -24
  47. package/src/deltas.ts +1 -20
  48. package/src/error.ts +6 -1
  49. package/src/fluidPackage.ts +132 -0
  50. package/src/index.ts +1 -0
  51. package/src/loader.ts +37 -17
  52. 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
- IFluidObject,
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
- readonly configuration: IFluidConfiguration;
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: IQuorum;
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