@fluidframework/container-definitions 2.0.0-internal.7.3.0 → 2.0.0-internal.8.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/api-extractor-lint.json +13 -0
  3. package/api-extractor.json +8 -3
  4. package/api-report/container-definitions.api.md +54 -83
  5. package/dist/audience.d.ts +2 -2
  6. package/dist/audience.js.map +1 -1
  7. package/dist/browserPackage.d.ts +3 -3
  8. package/dist/browserPackage.js +1 -1
  9. package/dist/browserPackage.js.map +1 -1
  10. package/dist/container-definitions-alpha.d.ts +60 -345
  11. package/dist/container-definitions-beta.d.ts +65 -1351
  12. package/dist/container-definitions-public.d.ts +65 -1351
  13. package/dist/container-definitions-untrimmed.d.ts +58 -123
  14. package/dist/deltas.d.ts +7 -7
  15. package/dist/deltas.js.map +1 -1
  16. package/dist/error.d.ts +5 -6
  17. package/dist/error.d.ts.map +1 -1
  18. package/dist/error.js +2 -2
  19. package/dist/error.js.map +1 -1
  20. package/dist/fluidModule.d.ts +1 -1
  21. package/dist/fluidModule.js.map +1 -1
  22. package/dist/fluidPackage.d.ts +9 -9
  23. package/dist/fluidPackage.js +3 -3
  24. package/dist/fluidPackage.js.map +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js.map +1 -1
  28. package/dist/loader.d.ts +24 -72
  29. package/dist/loader.d.ts.map +1 -1
  30. package/dist/loader.js +1 -1
  31. package/dist/loader.js.map +1 -1
  32. package/dist/runtime.d.ts +10 -23
  33. package/dist/runtime.d.ts.map +1 -1
  34. package/dist/runtime.js +2 -2
  35. package/dist/runtime.js.map +1 -1
  36. package/lib/audience.d.ts +2 -2
  37. package/lib/audience.js +2 -1
  38. package/lib/audience.js.map +1 -1
  39. package/lib/browserPackage.d.ts +3 -3
  40. package/lib/browserPackage.js +7 -3
  41. package/lib/browserPackage.js.map +1 -1
  42. package/lib/container-definitions-alpha.d.ts +60 -345
  43. package/lib/container-definitions-beta.d.ts +65 -1351
  44. package/lib/container-definitions-public.d.ts +65 -1351
  45. package/lib/container-definitions-untrimmed.d.ts +58 -123
  46. package/lib/deltas.d.ts +7 -7
  47. package/lib/deltas.js +2 -1
  48. package/lib/deltas.js.map +1 -1
  49. package/lib/error.d.ts +5 -6
  50. package/lib/error.d.ts.map +1 -1
  51. package/lib/error.js +10 -7
  52. package/lib/error.js.map +1 -1
  53. package/lib/fluidModule.d.ts +1 -1
  54. package/lib/fluidModule.js +2 -1
  55. package/lib/fluidModule.js.map +1 -1
  56. package/lib/fluidPackage.d.ts +9 -9
  57. package/lib/fluidPackage.js +12 -7
  58. package/lib/fluidPackage.js.map +1 -1
  59. package/lib/index.d.ts +1 -1
  60. package/lib/index.d.ts.map +1 -1
  61. package/lib/index.js +17 -5
  62. package/lib/index.js.map +1 -1
  63. package/lib/loader.d.ts +24 -72
  64. package/lib/loader.d.ts.map +1 -1
  65. package/lib/loader.js +6 -3
  66. package/lib/loader.js.map +1 -1
  67. package/lib/runtime.d.ts +10 -23
  68. package/lib/runtime.d.ts.map +1 -1
  69. package/lib/runtime.js +8 -5
  70. package/lib/runtime.js.map +1 -1
  71. package/package.json +36 -7
  72. package/src/audience.ts +2 -2
  73. package/src/browserPackage.ts +3 -3
  74. package/src/deltas.ts +7 -7
  75. package/src/error.ts +5 -6
  76. package/src/fluidModule.ts +1 -1
  77. package/src/fluidPackage.ts +9 -9
  78. package/src/index.ts +0 -1
  79. package/src/loader.ts +24 -85
  80. package/src/runtime.ts +10 -31
package/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # @fluidframework/container-definitions
2
2
 
3
+ ## 2.0.0-internal.8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - container-definitions: Removed request(...) and IFluidRouter from IContainer [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
8
+
9
+ The `request(...)` method and `IFluidRouter` property have been removed from `IContainer`. Please use the
10
+ `IContainer.getEntryPoint()` method to get the container's entry point.
11
+
12
+ See [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md) for more details.
13
+
14
+ - container-loader: Removed request(...) and IFluidRouter from ILoader and Loader [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
15
+
16
+ The `request(...)` method and `IFluidRouter` property have been removed from `ILoader` and `Loader`. Instead, after
17
+ calling `ILoader.resolve(...)`, call the `getEntryPoint()` method on the returned `IContainer`.
18
+
19
+ See
20
+ [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md)
21
+ for more details.
22
+
23
+ - container-runtime: Removed IPendingLocalState and IRuntime.notifyAttaching [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
24
+
25
+ The deprecated `IPendingLocalState` and `IRuntime.notifyAttaching` APIs are removed. There is no replacement as they are
26
+ not longer used.
27
+
28
+ - container-runtime: Removed request pattern from ContainerRuntime, IRuntime, and IContainerRuntimeBase [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
29
+
30
+ The `request(...)` method and `IFluidRouter` property have been removed from the following places:
31
+
32
+ - `ContainerRuntime`
33
+ - `IRuntime`
34
+ - `IContainerRuntimeBase`
35
+
36
+ Please use the `IRuntime.getEntryPoint()` method to get the runtime's entry point.
37
+
38
+ See [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md) for more details.
39
+
40
+ - container-definitions: Fix ISnapshotTreeWithBlobContents and mark internal [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
41
+
42
+ `ISnapshotTreeWithBlobContents` is an internal type that should not be used externally. Additionally, the type didn't
43
+ match the usage, specifically in runtime-utils where an `any` cast was used to work around undefined blobContents. The
44
+ type has been updated to reflect that blobContents can be undefined.
45
+
46
+ ## 2.0.0-internal.7.4.0
47
+
48
+ Dependency updates only.
49
+
3
50
  ## 2.0.0-internal.7.3.0
4
51
 
5
52
  Dependency updates only.
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "../../../common/build/build-common/api-extractor-lint.json",
4
+ "messages": {
5
+ "extractorMessageReporting": {
6
+ // TODO: remove once base config has this enabled as an error
7
+ "ae-incompatible-release-tags": {
8
+ "logLevel": "error",
9
+ "addToApiReportFile": false
10
+ }
11
+ }
12
+ }
13
+ }
@@ -1,7 +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-base.json",
4
- "dtsRollup": {
5
- "enabled": true
3
+ "extends": "../../../common/build/build-common/api-extractor-base.json",
4
+ "messages": {
5
+ "extractorMessageReporting": {
6
+ // TODO: Add missing documentation and remove this rule override
7
+ "ae-undocumented": {
8
+ "logLevel": "none"
9
+ }
10
+ }
6
11
  }
7
12
  }
@@ -17,12 +17,10 @@ import { IErrorBase } from '@fluidframework/core-interfaces';
17
17
  import { IErrorEvent } from '@fluidframework/core-interfaces';
18
18
  import { IEvent } from '@fluidframework/core-interfaces';
19
19
  import { IEventProvider } from '@fluidframework/core-interfaces';
20
- import { IFluidRouter } from '@fluidframework/core-interfaces';
21
20
  import { IGenericError } from '@fluidframework/core-interfaces';
22
21
  import { IQuorumClients } from '@fluidframework/protocol-definitions';
23
22
  import { IRequest } from '@fluidframework/core-interfaces';
24
23
  import { IResolvedUrl } from '@fluidframework/driver-definitions';
25
- import { IResponse } from '@fluidframework/core-interfaces';
26
24
  import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
27
25
  import { ISequencedProposal } from '@fluidframework/protocol-definitions';
28
26
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
@@ -36,14 +34,14 @@ import { IUsageError } from '@fluidframework/core-interfaces';
36
34
  import { IVersion } from '@fluidframework/protocol-definitions';
37
35
  import { MessageType } from '@fluidframework/protocol-definitions';
38
36
 
39
- // @public
37
+ // @alpha
40
38
  export enum AttachState {
41
39
  Attached = "Attached",
42
40
  Attaching = "Attaching",
43
41
  Detached = "Detached"
44
42
  }
45
43
 
46
- // @public
44
+ // @alpha
47
45
  export namespace ConnectionState {
48
46
  export type CatchingUp = 1;
49
47
  export type Connected = 2;
@@ -51,10 +49,10 @@ export namespace ConnectionState {
51
49
  export type EstablishingConnection = 3;
52
50
  }
53
51
 
54
- // @public
52
+ // @alpha
55
53
  export type ConnectionState = ConnectionState.Disconnected | ConnectionState.EstablishingConnection | ConnectionState.CatchingUp | ConnectionState.Connected;
56
54
 
57
- // @public @deprecated
55
+ // @internal @deprecated
58
56
  export enum ContainerErrorType {
59
57
  clientSessionExpiredError = "clientSessionExpiredError",
60
58
  dataCorruptionError = "dataCorruptionError",
@@ -64,7 +62,7 @@ export enum ContainerErrorType {
64
62
  usageError = "usageError"
65
63
  }
66
64
 
67
- // @public
65
+ // @internal
68
66
  export const ContainerErrorTypes: {
69
67
  readonly clientSessionExpiredError: "clientSessionExpiredError";
70
68
  readonly genericError: "genericError";
@@ -74,28 +72,28 @@ export const ContainerErrorTypes: {
74
72
  readonly usageError: "usageError";
75
73
  };
76
74
 
77
- // @public (undocumented)
75
+ // @internal (undocumented)
78
76
  export type ContainerErrorTypes = (typeof ContainerErrorTypes)[keyof typeof ContainerErrorTypes];
79
77
 
80
- // @public
78
+ // @alpha
81
79
  export interface ContainerWarning extends IErrorBase {
82
80
  logged?: boolean;
83
81
  }
84
82
 
85
- // @public
83
+ // @alpha
86
84
  export interface IAudience extends EventEmitter {
87
85
  getMember(clientId: string): IClient | undefined;
88
86
  getMembers(): Map<string, IClient>;
89
87
  on(event: "addMember" | "removeMember", listener: (clientId: string, client: IClient) => void): this;
90
88
  }
91
89
 
92
- // @public
90
+ // @alpha
93
91
  export interface IAudienceOwner extends IAudience {
94
92
  addMember(clientId: string, details: IClient): void;
95
93
  removeMember(clientId: string): boolean;
96
94
  }
97
95
 
98
- // @public
96
+ // @alpha
99
97
  export interface IBatchMessage {
100
98
  // (undocumented)
101
99
  compression?: string;
@@ -107,12 +105,12 @@ export interface IBatchMessage {
107
105
  referenceSequenceNumber?: number;
108
106
  }
109
107
 
110
- // @public
108
+ // @internal
111
109
  export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComparer> {
112
110
  load(source: IFluidCodeDetails): Promise<IFluidModuleWithDetails>;
113
111
  }
114
112
 
115
- // @public
113
+ // @alpha
116
114
  export interface IConnectionDetails {
117
115
  checkpointSequenceNumber: number | undefined;
118
116
  // (undocumented)
@@ -123,8 +121,8 @@ export interface IConnectionDetails {
123
121
  serviceConfiguration: IClientConfiguration;
124
122
  }
125
123
 
126
- // @public
127
- export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRouter {
124
+ // @alpha
125
+ export interface IContainer extends IEventProvider<IContainerEvents> {
128
126
  attach(request: IRequest, attachProps?: {
129
127
  deltaConnection?: "none" | "delayed";
130
128
  }): Promise<void>;
@@ -139,30 +137,20 @@ export interface IContainer extends IEventProvider<IContainerEvents>, IFluidRout
139
137
  disconnect(): void;
140
138
  dispose(error?: ICriticalContainerError): void;
141
139
  readonly disposed?: boolean;
142
- // @alpha
143
140
  forceReadonly?(readonly: boolean): any;
144
141
  getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
145
- getEntryPoint(): Promise<FluidObject | undefined>;
142
+ getEntryPoint(): Promise<FluidObject>;
146
143
  getLoadedCodeDetails(): IFluidCodeDetails | undefined;
147
144
  getQuorum(): IQuorumClients;
148
145
  getSpecifiedCodeDetails(): IFluidCodeDetails | undefined;
149
- // @deprecated (undocumented)
150
- readonly IFluidRouter: IFluidRouter;
151
146
  readonly isDirty: boolean;
152
147
  proposeCodeDetails(codeDetails: IFluidCodeDetails): Promise<boolean>;
153
148
  readonly readOnlyInfo: ReadOnlyInfo;
154
- // @deprecated (undocumented)
155
- request(request: {
156
- url: "/";
157
- headers?: undefined;
158
- }): Promise<IResponse>;
159
- // @deprecated
160
- request(request: IRequest): Promise<IResponse>;
161
149
  resolvedUrl: IResolvedUrl | undefined;
162
150
  serialize(): string;
163
151
  }
164
152
 
165
- // @public
153
+ // @alpha
166
154
  export interface IContainerContext {
167
155
  readonly attachState: AttachState;
168
156
  // (undocumented)
@@ -215,7 +203,7 @@ export interface IContainerContext {
215
203
  updateDirtyContainerState(dirty: boolean): void;
216
204
  }
217
205
 
218
- // @public
206
+ // @alpha
219
207
  export interface IContainerEvents extends IEvent {
220
208
  (event: "readonly", listener: (readonly: boolean) => void): void;
221
209
  (event: "connected", listener: (clientId: string) => void): any;
@@ -231,7 +219,7 @@ export interface IContainerEvents extends IEvent {
231
219
  (event: "saved", listener: (dirty: boolean) => void): any;
232
220
  }
233
221
 
234
- // @public (undocumented)
222
+ // @internal (undocumented)
235
223
  export interface IContainerLoadMode {
236
224
  // (undocumented)
237
225
  deltaConnection?: "none" | "delayed" | undefined;
@@ -240,10 +228,10 @@ export interface IContainerLoadMode {
240
228
  pauseAfterLoad?: boolean;
241
229
  }
242
230
 
243
- // @public
231
+ // @alpha
244
232
  export type ICriticalContainerError = IErrorBase;
245
233
 
246
- // @public
234
+ // @alpha
247
235
  export interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>, IDeltaSender {
248
236
  readonly active: boolean;
249
237
  readonly clientDetails: IClientDetails;
@@ -264,7 +252,7 @@ export interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>
264
252
  readonly version: string;
265
253
  }
266
254
 
267
- // @public
255
+ // @alpha
268
256
  export interface IDeltaManagerEvents extends IEvent {
269
257
  // @deprecated (undocumented)
270
258
  (event: "prepareSend", listener: (messageBuffer: any[]) => void): any;
@@ -280,7 +268,7 @@ export interface IDeltaManagerEvents extends IEvent {
280
268
  }) => void): any;
281
269
  }
282
270
 
283
- // @public
271
+ // @alpha
284
272
  export interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, IDisposable {
285
273
  idle: boolean;
286
274
  length: number;
@@ -295,21 +283,21 @@ export interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, ID
295
283
  }>;
296
284
  }
297
285
 
298
- // @public
286
+ // @alpha
299
287
  export interface IDeltaQueueEvents<T> extends IErrorEvent {
300
288
  (event: "push", listener: (task: T) => void): any;
301
289
  (event: "op", listener: (task: T) => void): any;
302
290
  (event: "idle", listener: (count: number, duration: number) => void): any;
303
291
  }
304
292
 
305
- // @public
293
+ // @alpha
306
294
  export interface IDeltaSender {
307
295
  flush(): void;
308
296
  }
309
297
 
310
298
  export { IErrorBase }
311
299
 
312
- // @public
300
+ // @internal
313
301
  export interface IFluidBrowserPackage extends IFluidPackage {
314
302
  // (undocumented)
315
303
  fluid: {
@@ -318,7 +306,7 @@ export interface IFluidBrowserPackage extends IFluidPackage {
318
306
  };
319
307
  }
320
308
 
321
- // @public
309
+ // @internal
322
310
  export interface IFluidBrowserPackageEnvironment extends IFluidPackageEnvironment {
323
311
  umd: {
324
312
  files: string[];
@@ -326,45 +314,45 @@ export interface IFluidBrowserPackageEnvironment extends IFluidPackageEnvironmen
326
314
  };
327
315
  }
328
316
 
329
- // @public
317
+ // @alpha
330
318
  export interface IFluidCodeDetails {
331
319
  readonly config?: IFluidCodeDetailsConfig;
332
320
  readonly package: string | Readonly<IFluidPackage>;
333
321
  }
334
322
 
335
- // @public (undocumented)
323
+ // @alpha (undocumented)
336
324
  export const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsComparer;
337
325
 
338
- // @public
326
+ // @alpha
339
327
  export interface IFluidCodeDetailsComparer extends IProvideFluidCodeDetailsComparer {
340
328
  compare(a: IFluidCodeDetails, b: IFluidCodeDetails): Promise<number | undefined>;
341
329
  satisfies(candidate: IFluidCodeDetails, constraint: IFluidCodeDetails): Promise<boolean>;
342
330
  }
343
331
 
344
- // @public
332
+ // @alpha
345
333
  export interface IFluidCodeDetailsConfig {
346
334
  // (undocumented)
347
335
  readonly [key: string]: string;
348
336
  }
349
337
 
350
- // @public
338
+ // @internal
351
339
  export interface IFluidCodeResolver {
352
340
  resolveCodeDetails(details: IFluidCodeDetails): Promise<IResolvedFluidCodeDetails>;
353
341
  }
354
342
 
355
- // @public (undocumented)
343
+ // @alpha (undocumented)
356
344
  export interface IFluidModule {
357
345
  // (undocumented)
358
346
  fluidExport: FluidObject<IRuntimeFactory & IProvideFluidCodeDetailsComparer>;
359
347
  }
360
348
 
361
- // @public
349
+ // @internal
362
350
  export interface IFluidModuleWithDetails {
363
351
  details: IFluidCodeDetails;
364
352
  module: IFluidModule;
365
353
  }
366
354
 
367
- // @public
355
+ // @alpha
368
356
  export interface IFluidPackage {
369
357
  [key: string]: unknown;
370
358
  fluid: {
@@ -373,7 +361,7 @@ export interface IFluidPackage {
373
361
  name: string;
374
362
  }
375
363
 
376
- // @public
364
+ // @alpha
377
365
  export interface IFluidPackageEnvironment {
378
366
  [target: string]: undefined | {
379
367
  files: string[];
@@ -389,7 +377,7 @@ export interface IGetPendingLocalStateProps {
389
377
  readonly stopBlobAttachingSignal?: AbortSignal;
390
378
  }
391
379
 
392
- // @public
380
+ // @alpha
393
381
  export interface IHostLoader extends ILoader {
394
382
  createDetachedContainer(codeDetails: IFluidCodeDetails, createDetachedProps?: {
395
383
  canReconnect?: boolean;
@@ -401,16 +389,12 @@ export interface IHostLoader extends ILoader {
401
389
  }): Promise<IContainer>;
402
390
  }
403
391
 
404
- // @public
392
+ // @alpha
405
393
  export interface ILoader extends Partial<IProvideLoader> {
406
- // @deprecated (undocumented)
407
- readonly IFluidRouter: IFluidRouter;
408
- // @deprecated (undocumented)
409
- request(request: IRequest): Promise<IResponse>;
410
394
  resolve(request: IRequest, pendingLocalState?: string): Promise<IContainer>;
411
395
  }
412
396
 
413
- // @public
397
+ // @internal
414
398
  export interface ILoaderHeader {
415
399
  // @deprecated (undocumented)
416
400
  [LoaderHeader.cache]: boolean;
@@ -425,7 +409,7 @@ export interface ILoaderHeader {
425
409
  [LoaderHeader.version]: string | undefined;
426
410
  }
427
411
 
428
- // @public (undocumented)
412
+ // @alpha (undocumented)
429
413
  export type ILoaderOptions = {
430
414
  [key in string | number]: any;
431
415
  } & {
@@ -434,76 +418,63 @@ export type ILoaderOptions = {
434
418
  maxClientLeaveWaitTime?: number;
435
419
  };
436
420
 
437
- // @public @deprecated (undocumented)
438
- export interface IPendingLocalState {
439
- // (undocumented)
440
- pendingRuntimeState: unknown;
441
- // (undocumented)
442
- url: string;
443
- }
444
-
445
- // @public (undocumented)
421
+ // @alpha (undocumented)
446
422
  export interface IProvideFluidCodeDetailsComparer {
447
423
  // (undocumented)
448
424
  readonly IFluidCodeDetailsComparer: IFluidCodeDetailsComparer;
449
425
  }
450
426
 
451
- // @public (undocumented)
427
+ // @alpha (undocumented)
452
428
  export interface IProvideLoader {
453
429
  // (undocumented)
454
430
  readonly ILoader: ILoader;
455
431
  }
456
432
 
457
- // @public (undocumented)
433
+ // @alpha (undocumented)
458
434
  export interface IProvideRuntimeFactory {
459
435
  // (undocumented)
460
436
  readonly IRuntimeFactory: IRuntimeFactory;
461
437
  }
462
438
 
463
- // @public
439
+ // @internal
464
440
  export interface IResolvedFluidCodeDetails extends IFluidCodeDetails {
465
441
  readonly resolvedPackage: Readonly<IFluidPackage>;
466
442
  readonly resolvedPackageCacheId: string | undefined;
467
443
  }
468
444
 
469
- // @public
445
+ // @alpha
470
446
  export interface IRuntime extends IDisposable {
471
447
  createSummary(blobRedirectTable?: Map<string, string>): ISummaryTree;
472
- getEntryPoint(): Promise<FluidObject | undefined>;
473
- // @alpha
448
+ getEntryPoint(): Promise<FluidObject>;
474
449
  getPendingLocalState(props?: IGetPendingLocalStateProps): unknown;
475
- // @deprecated
476
- notifyAttaching(snapshot: ISnapshotTreeWithBlobContents): void;
477
450
  notifyOpReplay?(message: ISequencedDocumentMessage): Promise<void>;
478
451
  process(message: ISequencedDocumentMessage, local: boolean): any;
479
452
  processSignal(message: any, local: boolean): any;
480
- // @deprecated
481
- request(request: IRequest): Promise<IResponse>;
482
453
  setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
483
454
  setConnectionState(connected: boolean, clientId?: string): any;
484
455
  }
485
456
 
486
- // @public (undocumented)
457
+ // @alpha (undocumented)
487
458
  export const IRuntimeFactory: keyof IProvideRuntimeFactory;
488
459
 
489
- // @public
460
+ // @alpha
490
461
  export interface IRuntimeFactory extends IProvideRuntimeFactory {
491
462
  instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
492
463
  }
493
464
 
494
- // @public
465
+ // @internal
495
466
  export const isFluidBrowserPackage: (maybePkg: unknown) => maybePkg is Readonly<IFluidBrowserPackage>;
496
467
 
497
- // @public
468
+ // @internal
498
469
  export const isFluidCodeDetails: (details: unknown) => details is Readonly<IFluidCodeDetails>;
499
470
 
500
- // @public
471
+ // @internal
501
472
  export const isFluidPackage: (pkg: unknown) => pkg is Readonly<IFluidPackage>;
502
473
 
503
- // @public
474
+ // @alpha
504
475
  export interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
505
476
  // (undocumented)
506
- blobsContents: {
477
+ blobsContents?: {
507
478
  [path: string]: ArrayBufferLike;
508
479
  };
509
480
  // (undocumented)
@@ -516,7 +487,7 @@ export { IThrottlingWarning }
516
487
 
517
488
  export { IUsageError }
518
489
 
519
- // @public
490
+ // @internal
520
491
  export enum LoaderHeader {
521
492
  // @deprecated (undocumented)
522
493
  cache = "fluid-cache",
@@ -529,7 +500,7 @@ export enum LoaderHeader {
529
500
  version = "version"
530
501
  }
531
502
 
532
- // @public (undocumented)
503
+ // @alpha (undocumented)
533
504
  export type ReadOnlyInfo = {
534
505
  readonly readonly: false | undefined;
535
506
  } | {
@@ -6,7 +6,7 @@ import { EventEmitter } from "events";
6
6
  import { IClient } from "@fluidframework/protocol-definitions";
7
7
  /**
8
8
  * Manages the state and the members for {@link IAudience}
9
- * @public
9
+ * @alpha
10
10
  */
11
11
  export interface IAudienceOwner extends IAudience {
12
12
  /**
@@ -24,7 +24,7 @@ export interface IAudienceOwner extends IAudience {
24
24
  *
25
25
  * See {@link https://nodejs.org/api/events.html#class-eventemitter | here} for an overview of the `EventEmitter`
26
26
  * class.
27
- * @public
27
+ * @alpha
28
28
  */
29
29
  export interface IAudience extends EventEmitter {
30
30
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"audience.js","sourceRoot":"","sources":["../src/audience.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// False positive: this is an import from the `events` package, not from Node.\n// eslint-disable-next-line unicorn/prefer-node-protocol\nimport { EventEmitter } from \"events\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\n\n/**\n * Manages the state and the members for {@link IAudience}\n * @public\n */\nexport interface IAudienceOwner extends IAudience {\n\t/**\n\t * Adds a new client to the audience\n\t */\n\taddMember(clientId: string, details: IClient): void;\n\n\t/**\n\t * Removes a client from the audience. Only emits an event if a client is actually removed\n\t * @returns if a client was removed from the audience\n\t */\n\tremoveMember(clientId: string): boolean;\n}\n\n/**\n * Audience represents all clients connected to the op stream, both read-only and read/write.\n *\n * See {@link https://nodejs.org/api/events.html#class-eventemitter | here} for an overview of the `EventEmitter`\n * class.\n * @public\n */\nexport interface IAudience extends EventEmitter {\n\t/**\n\t * See {@link https://nodejs.dev/learn/the-nodejs-event-emitter | here} for an overview of `EventEmitter.on`.\n\t */\n\ton(\n\t\tevent: \"addMember\" | \"removeMember\",\n\t\tlistener: (clientId: string, client: IClient) => void,\n\t): this;\n\n\t/**\n\t * List all clients connected to the op stream, keyed off their clientId\n\t */\n\tgetMembers(): Map<string, IClient>;\n\n\t/**\n\t * Get details about the connected client with the specified clientId,\n\t * or undefined if the specified client isn't connected\n\t */\n\tgetMember(clientId: string): IClient | undefined;\n}\n"]}
1
+ {"version":3,"file":"audience.js","sourceRoot":"","sources":["../src/audience.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// False positive: this is an import from the `events` package, not from Node.\n// eslint-disable-next-line unicorn/prefer-node-protocol\nimport { EventEmitter } from \"events\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\n\n/**\n * Manages the state and the members for {@link IAudience}\n * @alpha\n */\nexport interface IAudienceOwner extends IAudience {\n\t/**\n\t * Adds a new client to the audience\n\t */\n\taddMember(clientId: string, details: IClient): void;\n\n\t/**\n\t * Removes a client from the audience. Only emits an event if a client is actually removed\n\t * @returns if a client was removed from the audience\n\t */\n\tremoveMember(clientId: string): boolean;\n}\n\n/**\n * Audience represents all clients connected to the op stream, both read-only and read/write.\n *\n * See {@link https://nodejs.org/api/events.html#class-eventemitter | here} for an overview of the `EventEmitter`\n * class.\n * @alpha\n */\nexport interface IAudience extends EventEmitter {\n\t/**\n\t * See {@link https://nodejs.dev/learn/the-nodejs-event-emitter | here} for an overview of `EventEmitter.on`.\n\t */\n\ton(\n\t\tevent: \"addMember\" | \"removeMember\",\n\t\tlistener: (clientId: string, client: IClient) => void,\n\t): this;\n\n\t/**\n\t * List all clients connected to the op stream, keyed off their clientId\n\t */\n\tgetMembers(): Map<string, IClient>;\n\n\t/**\n\t * Get details about the connected client with the specified clientId,\n\t * or undefined if the specified client isn't connected\n\t */\n\tgetMember(clientId: string): IClient | undefined;\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  import { IFluidPackage, IFluidPackageEnvironment } from "./fluidPackage";
6
6
  /**
7
7
  * A specific Fluid package environment for browsers
8
- * @public
8
+ * @internal
9
9
  */
10
10
  export interface IFluidBrowserPackageEnvironment extends IFluidPackageEnvironment {
11
11
  /**
@@ -27,7 +27,7 @@ export interface IFluidBrowserPackageEnvironment extends IFluidPackageEnvironmen
27
27
  }
28
28
  /**
29
29
  * A Fluid package for specification for browser environments
30
- * @public
30
+ * @internal
31
31
  */
32
32
  export interface IFluidBrowserPackage extends IFluidPackage {
33
33
  /**
@@ -47,7 +47,7 @@ export interface IFluidBrowserPackage extends IFluidPackage {
47
47
  /**
48
48
  * Determines if any object is an IFluidBrowserPackage
49
49
  * @param maybePkg - The object to check for compatibility with IFluidBrowserPackage
50
- * @public
50
+ * @internal
51
51
  */
52
52
  export declare const isFluidBrowserPackage: (maybePkg: unknown) => maybePkg is Readonly<IFluidBrowserPackage>;
53
53
  //# sourceMappingURL=browserPackage.d.ts.map
@@ -9,7 +9,7 @@ const fluidPackage_1 = require("./fluidPackage");
9
9
  /**
10
10
  * Determines if any object is an IFluidBrowserPackage
11
11
  * @param maybePkg - The object to check for compatibility with IFluidBrowserPackage
12
- * @public
12
+ * @internal
13
13
  */
14
14
  const isFluidBrowserPackage = (maybePkg) => (0, fluidPackage_1.isFluidPackage)(maybePkg) &&
15
15
  typeof maybePkg?.fluid?.browser?.umd?.library === "string" &&
@@ -1 +1 @@
1
- {"version":3,"file":"browserPackage.js","sourceRoot":"","sources":["../src/browserPackage.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,iDAAyF;AA8CzF;;;;GAIG;AACI,MAAM,qBAAqB,GAAG,CACpC,QAAiB,EAC4B,EAAE,CAC/C,IAAA,6BAAc,EAAC,QAAQ,CAAC;IACxB,OAAO,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,QAAQ;IAC1D,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AALxC,QAAA,qBAAqB,yBAKmB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IFluidPackage, isFluidPackage, IFluidPackageEnvironment } from \"./fluidPackage\";\n\n/**\n * A specific Fluid package environment for browsers\n * @public\n */\nexport interface IFluidBrowserPackageEnvironment extends IFluidPackageEnvironment {\n\t/**\n\t * The Universal Module Definition (umd) target specifics the scripts necessary for\n\t * loading a packages in a browser environment and finding its entry point.\n\t */\n\tumd: {\n\t\t/**\n\t\t * The bundled js files for loading this package.\n\t\t * These files will be loaded and executed in order.\n\t\t */\n\t\tfiles: string[];\n\n\t\t/**\n\t\t * The global name that the script entry points will be exposed.\n\t\t * This entry point should be an {@link @fluidframework/container-definitions#IFluidModule}.\n\t\t */\n\t\tlibrary: string;\n\t};\n}\n\n/**\n * A Fluid package for specification for browser environments\n * @public\n */\nexport interface IFluidBrowserPackage extends IFluidPackage {\n\t/**\n\t * {@inheritDoc @fluidframework/core-interfaces#IFluidPackage.fluid}\n\t */\n\tfluid: {\n\t\t/**\n\t\t * The browser specific package information for this package\n\t\t */\n\t\tbrowser: IFluidBrowserPackageEnvironment;\n\t\t/**\n\t\t * {@inheritDoc @fluidframework/core-interfaces#IFluidPackage.fluid.environment}\n\t\t */\n\t\t[environment: string]: IFluidPackageEnvironment;\n\t};\n}\n\n/**\n * Determines if any object is an IFluidBrowserPackage\n * @param maybePkg - The object to check for compatibility with IFluidBrowserPackage\n * @public\n */\nexport const isFluidBrowserPackage = (\n\tmaybePkg: unknown,\n): maybePkg is Readonly<IFluidBrowserPackage> =>\n\tisFluidPackage(maybePkg) &&\n\ttypeof maybePkg?.fluid?.browser?.umd?.library === \"string\" &&\n\tArray.isArray(maybePkg?.fluid?.browser?.umd?.files);\n"]}
1
+ {"version":3,"file":"browserPackage.js","sourceRoot":"","sources":["../src/browserPackage.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,iDAAyF;AA8CzF;;;;GAIG;AACI,MAAM,qBAAqB,GAAG,CACpC,QAAiB,EAC4B,EAAE,CAC/C,IAAA,6BAAc,EAAC,QAAQ,CAAC;IACxB,OAAO,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,QAAQ;IAC1D,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AALxC,QAAA,qBAAqB,yBAKmB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IFluidPackage, isFluidPackage, IFluidPackageEnvironment } from \"./fluidPackage\";\n\n/**\n * A specific Fluid package environment for browsers\n * @internal\n */\nexport interface IFluidBrowserPackageEnvironment extends IFluidPackageEnvironment {\n\t/**\n\t * The Universal Module Definition (umd) target specifics the scripts necessary for\n\t * loading a packages in a browser environment and finding its entry point.\n\t */\n\tumd: {\n\t\t/**\n\t\t * The bundled js files for loading this package.\n\t\t * These files will be loaded and executed in order.\n\t\t */\n\t\tfiles: string[];\n\n\t\t/**\n\t\t * The global name that the script entry points will be exposed.\n\t\t * This entry point should be an {@link @fluidframework/container-definitions#IFluidModule}.\n\t\t */\n\t\tlibrary: string;\n\t};\n}\n\n/**\n * A Fluid package for specification for browser environments\n * @internal\n */\nexport interface IFluidBrowserPackage extends IFluidPackage {\n\t/**\n\t * {@inheritDoc @fluidframework/core-interfaces#IFluidPackage.fluid}\n\t */\n\tfluid: {\n\t\t/**\n\t\t * The browser specific package information for this package\n\t\t */\n\t\tbrowser: IFluidBrowserPackageEnvironment;\n\t\t/**\n\t\t * {@inheritDoc @fluidframework/core-interfaces#IFluidPackage.fluid.environment}\n\t\t */\n\t\t[environment: string]: IFluidPackageEnvironment;\n\t};\n}\n\n/**\n * Determines if any object is an IFluidBrowserPackage\n * @param maybePkg - The object to check for compatibility with IFluidBrowserPackage\n * @internal\n */\nexport const isFluidBrowserPackage = (\n\tmaybePkg: unknown,\n): maybePkg is Readonly<IFluidBrowserPackage> =>\n\tisFluidPackage(maybePkg) &&\n\ttypeof maybePkg?.fluid?.browser?.umd?.library === \"string\" &&\n\tArray.isArray(maybePkg?.fluid?.browser?.umd?.files);\n"]}