@fluidframework/container-definitions 2.53.0 → 2.60.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 (69) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/api-report/{container-definitions.legacy.alpha.api.md → container-definitions.legacy.beta.api.md} +44 -44
  3. package/dist/audience.d.ts +1 -2
  4. package/dist/audience.d.ts.map +1 -1
  5. package/dist/audience.js.map +1 -1
  6. package/dist/browserPackage.d.ts +3 -6
  7. package/dist/browserPackage.d.ts.map +1 -1
  8. package/dist/browserPackage.js +1 -2
  9. package/dist/browserPackage.js.map +1 -1
  10. package/dist/deltas.d.ts +7 -14
  11. package/dist/deltas.d.ts.map +1 -1
  12. package/dist/deltas.js.map +1 -1
  13. package/dist/error.d.ts +3 -6
  14. package/dist/error.d.ts.map +1 -1
  15. package/dist/error.js +1 -2
  16. package/dist/error.js.map +1 -1
  17. package/dist/fluidModule.d.ts +1 -2
  18. package/dist/fluidModule.d.ts.map +1 -1
  19. package/dist/fluidModule.js.map +1 -1
  20. package/dist/fluidPackage.d.ts +8 -16
  21. package/dist/fluidPackage.d.ts.map +1 -1
  22. package/dist/fluidPackage.js +2 -4
  23. package/dist/fluidPackage.js.map +1 -1
  24. package/dist/loader.d.ts +12 -24
  25. package/dist/loader.d.ts.map +1 -1
  26. package/dist/loader.js +1 -2
  27. package/dist/loader.js.map +1 -1
  28. package/dist/runtime.d.ts +8 -16
  29. package/dist/runtime.d.ts.map +1 -1
  30. package/dist/runtime.js +1 -2
  31. package/dist/runtime.js.map +1 -1
  32. package/lib/audience.d.ts +1 -2
  33. package/lib/audience.d.ts.map +1 -1
  34. package/lib/audience.js.map +1 -1
  35. package/lib/browserPackage.d.ts +3 -6
  36. package/lib/browserPackage.d.ts.map +1 -1
  37. package/lib/browserPackage.js +1 -2
  38. package/lib/browserPackage.js.map +1 -1
  39. package/lib/deltas.d.ts +7 -14
  40. package/lib/deltas.d.ts.map +1 -1
  41. package/lib/deltas.js.map +1 -1
  42. package/lib/error.d.ts +3 -6
  43. package/lib/error.d.ts.map +1 -1
  44. package/lib/error.js +1 -2
  45. package/lib/error.js.map +1 -1
  46. package/lib/fluidModule.d.ts +1 -2
  47. package/lib/fluidModule.d.ts.map +1 -1
  48. package/lib/fluidModule.js.map +1 -1
  49. package/lib/fluidPackage.d.ts +8 -16
  50. package/lib/fluidPackage.d.ts.map +1 -1
  51. package/lib/fluidPackage.js +2 -4
  52. package/lib/fluidPackage.js.map +1 -1
  53. package/lib/loader.d.ts +12 -24
  54. package/lib/loader.d.ts.map +1 -1
  55. package/lib/loader.js +1 -2
  56. package/lib/loader.js.map +1 -1
  57. package/lib/runtime.d.ts +8 -16
  58. package/lib/runtime.d.ts.map +1 -1
  59. package/lib/runtime.js +1 -2
  60. package/lib/runtime.js.map +1 -1
  61. package/package.json +5 -5
  62. package/src/audience.ts +1 -2
  63. package/src/browserPackage.ts +3 -6
  64. package/src/deltas.ts +7 -14
  65. package/src/error.ts +3 -6
  66. package/src/fluidModule.ts +1 -2
  67. package/src/fluidPackage.ts +8 -16
  68. package/src/loader.ts +12 -24
  69. package/src/runtime.ts +8 -16
package/src/error.ts CHANGED
@@ -8,8 +8,7 @@ import { FluidErrorTypes } from "@fluidframework/core-interfaces/internal";
8
8
 
9
9
  /**
10
10
  * Different error types the ClientSession may report out to the Host.
11
- * @legacy
12
- * @alpha
11
+ * @legacy @beta
13
12
  */
14
13
  export const ContainerErrorTypes = {
15
14
  ...FluidErrorTypes,
@@ -22,16 +21,14 @@ export const ContainerErrorTypes = {
22
21
 
23
22
  /**
24
23
  * {@inheritDoc (ContainerErrorTypes:variable)}
25
- * @legacy
26
- * @alpha
24
+ * @legacy @beta
27
25
  */
28
26
  export type ContainerErrorTypes =
29
27
  (typeof ContainerErrorTypes)[keyof typeof ContainerErrorTypes];
30
28
 
31
29
  /**
32
30
  * Represents warnings raised on container.
33
- * @legacy
34
- * @alpha
31
+ * @legacy @beta
35
32
  */
36
33
  export interface ContainerWarning extends IErrorBase {
37
34
  /**
@@ -9,8 +9,7 @@ import type { IProvideFluidCodeDetailsComparer } from "./fluidPackage.js";
9
9
  import type { IRuntimeFactory } from "./runtime.js";
10
10
 
11
11
  /**
12
- * @legacy
13
- * @alpha
12
+ * @legacy @beta
14
13
  */
15
14
  export interface IFluidModule {
16
15
  fluidExport: FluidObject<IRuntimeFactory & IProvideFluidCodeDetailsComparer>;
@@ -5,8 +5,7 @@
5
5
 
6
6
  /**
7
7
  * Specifies an environment on Fluid property of a IFluidPackage.
8
- * @legacy
9
- * @alpha
8
+ * @legacy @beta
10
9
  */
11
10
  export interface IFluidPackageEnvironment {
12
11
  /**
@@ -37,8 +36,7 @@ export interface IFluidPackageEnvironment {
37
36
  * While compatible with the npm package format it is not necessary that that package is an
38
37
  * npm package:
39
38
  * {@link https://stackoverflow.com/questions/10065564/add-custom-metadata-or-config-to-package-json-is-it-valid}
40
- * @legacy
41
- * @alpha
39
+ * @legacy @beta
42
40
  */
43
41
  export interface IFluidPackage {
44
42
  /**
@@ -66,8 +64,7 @@ export interface IFluidPackage {
66
64
  /**
67
65
  * Check if the package.json defines a Fluid package
68
66
  * @param pkg - the package json data to check if it is a Fluid package.
69
- * @legacy
70
- * @alpha
67
+ * @legacy @beta
71
68
  */
72
69
  export const isFluidPackage = (pkg: unknown): pkg is Readonly<IFluidPackage> =>
73
70
  typeof pkg === "object" &&
@@ -76,8 +73,7 @@ export const isFluidPackage = (pkg: unknown): pkg is Readonly<IFluidPackage> =>
76
73
 
77
74
  /**
78
75
  * Package manager configuration. Provides a key value mapping of config values
79
- * @legacy
80
- * @alpha
76
+ * @legacy @beta
81
77
  */
82
78
  export interface IFluidCodeDetailsConfig {
83
79
  readonly [key: string]: string;
@@ -85,8 +81,7 @@ export interface IFluidCodeDetailsConfig {
85
81
 
86
82
  /**
87
83
  * Data structure used to describe the code to load on the Fluid document
88
- * @legacy
89
- * @alpha
84
+ * @legacy @beta
90
85
  */
91
86
  export interface IFluidCodeDetails {
92
87
  /**
@@ -121,15 +116,13 @@ export const isFluidCodeDetails = (
121
116
  };
122
117
 
123
118
  /**
124
- * @legacy
125
- * @alpha
119
+ * @legacy @beta
126
120
  */
127
121
  export const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsComparer =
128
122
  "IFluidCodeDetailsComparer";
129
123
 
130
124
  /**
131
- * @legacy
132
- * @alpha
125
+ * @legacy @beta
133
126
  */
134
127
  export interface IProvideFluidCodeDetailsComparer {
135
128
  readonly IFluidCodeDetailsComparer: IFluidCodeDetailsComparer;
@@ -137,8 +130,7 @@ export interface IProvideFluidCodeDetailsComparer {
137
130
 
138
131
  /**
139
132
  * Provides capability to compare Fluid code details.
140
- * @legacy
141
- * @alpha
133
+ * @legacy @beta
142
134
  */
143
135
  export interface IFluidCodeDetailsComparer extends IProvideFluidCodeDetailsComparer {
144
136
  /**
package/src/loader.ts CHANGED
@@ -35,8 +35,7 @@ import type { AttachState } from "./runtime.js";
35
35
 
36
36
  /**
37
37
  * Encapsulates a module entry point with corresponding code details.
38
- * @legacy
39
- * @alpha
38
+ * @legacy @beta
40
39
  */
41
40
  export interface IFluidModuleWithDetails {
42
41
  /**
@@ -56,8 +55,7 @@ export interface IFluidModuleWithDetails {
56
55
  /**
57
56
  * Fluid code loader resolves a code module matching the document schema, i.e. code details, such as
58
57
  * a package name and package version range.
59
- * @legacy
60
- * @alpha
58
+ * @legacy @beta
61
59
  */
62
60
  export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComparer> {
63
61
  /**
@@ -105,8 +103,7 @@ export interface IFluidCodeResolver {
105
103
 
106
104
  /**
107
105
  * Events emitted by the {@link IContainer} "upwards" to the Loader and Host.
108
- * @legacy
109
- * @alpha
106
+ * @legacy @beta
110
107
  */
111
108
  export interface IContainerEvents extends IEvent {
112
109
  /**
@@ -333,8 +330,7 @@ export type ConnectionState =
333
330
 
334
331
  /**
335
332
  * The Host's view of a Container and its connection to storage
336
- * @legacy
337
- * @alpha
333
+ * @legacy @beta
338
334
  */
339
335
  export interface IContainer extends IEventProvider<IContainerEvents> {
340
336
  /**
@@ -545,8 +541,7 @@ export interface IContainer extends IEventProvider<IContainerEvents> {
545
541
 
546
542
  /**
547
543
  * The Runtime's view of the Loader, used for loading Containers
548
- * @legacy
549
- * @alpha
544
+ * @legacy @beta
550
545
  */
551
546
  export interface ILoader extends Partial<IProvideLoader> {
552
547
  /**
@@ -563,8 +558,7 @@ export interface ILoader extends Partial<IProvideLoader> {
563
558
 
564
559
  /**
565
560
  * The Host's view of the Loader, used for loading Containers
566
- * @legacy
567
- * @alpha
561
+ * @legacy @beta
568
562
  */
569
563
  export interface IHostLoader extends ILoader {
570
564
  /**
@@ -594,8 +588,7 @@ export interface IHostLoader extends ILoader {
594
588
 
595
589
  /**
596
590
  * Options to configure various behaviors of the ILoader.
597
- * @legacy
598
- * @alpha
591
+ * @legacy @beta
599
592
  */
600
593
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
601
594
  export type ILoaderOptions = {
@@ -637,8 +630,7 @@ export type ILoaderOptions = {
637
630
 
638
631
  /**
639
632
  * Policies to have various behaviors during container create and load.
640
- * @legacy
641
- * @alpha
633
+ * @legacy @beta
642
634
  */
643
635
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
644
636
  export type IContainerPolicies = {
@@ -650,8 +642,7 @@ export type IContainerPolicies = {
650
642
 
651
643
  /**
652
644
  * Accepted header keys for requests coming to the Loader
653
- * @legacy
654
- * @alpha
645
+ * @legacy @beta
655
646
  */
656
647
  export enum LoaderHeader {
657
648
  /**
@@ -683,8 +674,7 @@ export enum LoaderHeader {
683
674
  }
684
675
 
685
676
  /**
686
- * @legacy
687
- * @alpha
677
+ * @legacy @beta
688
678
  */
689
679
  export interface IContainerLoadMode {
690
680
  opsBeforeReturn?: /*
@@ -741,8 +731,7 @@ export interface ILoaderHeader {
741
731
  }
742
732
 
743
733
  /**
744
- * @legacy
745
- * @alpha
734
+ * @legacy @beta
746
735
  */
747
736
  export interface IProvideLoader {
748
737
  readonly ILoader: ILoader;
@@ -753,8 +742,7 @@ export interface IProvideLoader {
753
742
  * in separate property: {@link ISnapshotTreeWithBlobContents.blobsContents}.
754
743
  *
755
744
  * @remarks This is used as the `ContainerContext`'s base snapshot when attaching.
756
- * @legacy
757
- * @alpha
745
+ * @legacy @beta
758
746
  */
759
747
  export interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
760
748
  blobsContents?: { [path: string]: ArrayBufferLike };
package/src/runtime.ts CHANGED
@@ -62,8 +62,7 @@ export enum AttachState {
62
62
  * The IRuntime represents an instantiation of a code package within a Container.
63
63
  * Primarily held by the ContainerContext to be able to interact with the running instance of the Container.
64
64
  *
65
- * @legacy
66
- * @alpha
65
+ * @legacy @beta
67
66
  */
68
67
  export interface IRuntime extends IDisposable {
69
68
  /**
@@ -124,8 +123,7 @@ export interface IRuntime extends IDisposable {
124
123
 
125
124
  /**
126
125
  * Payload type for IContainerContext.submitBatchFn()
127
- * @legacy
128
- * @alpha
126
+ * @legacy @beta
129
127
  */
130
128
  export interface IBatchMessage {
131
129
  contents?: string;
@@ -142,8 +140,7 @@ export interface IBatchMessage {
142
140
  * allows the Runtime to not support layer compatibility with the Driver layer. Instead, it supports compatibility
143
141
  * with the Loader layer which it already does.
144
142
  *
145
- * @legacy
146
- * @alpha
143
+ * @legacy @beta
147
144
  */
148
145
  export interface IContainerStorageService {
149
146
  /**
@@ -255,8 +252,7 @@ export interface IContainerStorageService {
255
252
  * TODO: once `@alpha` tag is removed, `unknown` should be removed from submitSignalFn.
256
253
  * See {@link https://dev.azure.com/fluidframework/internal/_workitems/edit/7462}
257
254
  *
258
- * @legacy
259
- * @alpha
255
+ * @legacy @beta
260
256
  */
261
257
  export interface IContainerContext {
262
258
  /**
@@ -357,14 +353,12 @@ export interface IContainerContext {
357
353
  }
358
354
 
359
355
  /**
360
- * @legacy
361
- * @alpha
356
+ * @legacy @beta
362
357
  */
363
358
  export const IRuntimeFactory: keyof IProvideRuntimeFactory = "IRuntimeFactory";
364
359
 
365
360
  /**
366
- * @legacy
367
- * @alpha
361
+ * @legacy @beta
368
362
  */
369
363
  export interface IProvideRuntimeFactory {
370
364
  readonly IRuntimeFactory: IRuntimeFactory;
@@ -375,8 +369,7 @@ export interface IProvideRuntimeFactory {
375
369
  *
376
370
  * Provides the entry point for the ContainerContext to load the proper IRuntime
377
371
  * to start up the running instance of the Container.
378
- * @legacy
379
- * @alpha
372
+ * @legacy @beta
380
373
  */
381
374
  export interface IRuntimeFactory extends IProvideRuntimeFactory {
382
375
  /**
@@ -391,8 +384,7 @@ export interface IRuntimeFactory extends IProvideRuntimeFactory {
391
384
 
392
385
  /**
393
386
  * Defines list of properties expected for getPendingLocalState
394
- * @legacy
395
- * @alpha
387
+ * @legacy @beta
396
388
  */
397
389
  export interface IGetPendingLocalStateProps {
398
390
  /**