@fluidframework/container-definitions 2.60.0 → 2.61.0-355516

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.
@@ -43,9 +43,16 @@ export interface IAudienceEvents extends IEvent {
43
43
  }
44
44
 
45
45
  // @public
46
- export type ICriticalContainerError = IErrorBase_2;
46
+ export type ICriticalContainerError = IErrorBase;
47
47
 
48
- export { IErrorBase }
48
+ // @public
49
+ export interface IErrorBase extends Partial<Error> {
50
+ readonly errorType: string;
51
+ getTelemetryProperties?(): ITelemetryBaseProperties;
52
+ readonly message: string;
53
+ readonly name?: string;
54
+ readonly stack?: string;
55
+ }
49
56
 
50
57
  // @public
51
58
  export interface ISelf {
@@ -40,7 +40,7 @@ export const ContainerErrorTypes: {
40
40
  export type ContainerErrorTypes = (typeof ContainerErrorTypes)[keyof typeof ContainerErrorTypes];
41
41
 
42
42
  // @beta @legacy
43
- export interface ContainerWarning extends IErrorBase_2 {
43
+ export interface ContainerWarning extends IErrorBase {
44
44
  logged?: boolean;
45
45
  }
46
46
 
@@ -226,7 +226,7 @@ export interface IContainerStorageService {
226
226
  }
227
227
 
228
228
  // @public
229
- export type ICriticalContainerError = IErrorBase_2;
229
+ export type ICriticalContainerError = IErrorBase;
230
230
 
231
231
  // @beta @sealed @legacy
232
232
  export interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>, IDeltaSender {
@@ -259,7 +259,7 @@ export interface IDeltaManagerEvents extends IEvent {
259
259
  (event: "disconnect", listener: (reason: string, error?: IAnyDriverError) => void): any;
260
260
  (event: "readonly", listener: (readonly: boolean, readonlyConnectionReason?: {
261
261
  reason: string;
262
- error?: IErrorBase_2;
262
+ error?: IErrorBase;
263
263
  }) => void): any;
264
264
  }
265
265
 
@@ -290,7 +290,14 @@ export interface IDeltaSender {
290
290
  flush(): void;
291
291
  }
292
292
 
293
- export { IErrorBase }
293
+ // @public
294
+ export interface IErrorBase extends Partial<Error> {
295
+ readonly errorType: string;
296
+ getTelemetryProperties?(): ITelemetryBaseProperties;
297
+ readonly message: string;
298
+ readonly name?: string;
299
+ readonly stack?: string;
300
+ }
294
301
 
295
302
  // @beta @legacy
296
303
  export interface IFluidBrowserPackage extends IFluidPackage {
@@ -454,7 +461,12 @@ export interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
454
461
  };
455
462
  }
456
463
 
457
- export { IThrottlingWarning }
464
+ // @beta @legacy
465
+ export interface IThrottlingWarning extends IErrorBase {
466
+ readonly errorType: typeof FluidErrorTypes.throttlingError;
467
+ // (undocumented)
468
+ readonly retryAfterSeconds: number;
469
+ }
458
470
 
459
471
  // @beta @legacy
460
472
  export enum LoaderHeader {
@@ -43,9 +43,16 @@ export interface IAudienceEvents extends IEvent {
43
43
  }
44
44
 
45
45
  // @public
46
- export type ICriticalContainerError = IErrorBase_2;
46
+ export type ICriticalContainerError = IErrorBase;
47
47
 
48
- export { IErrorBase }
48
+ // @public
49
+ export interface IErrorBase extends Partial<Error> {
50
+ readonly errorType: string;
51
+ getTelemetryProperties?(): ITelemetryBaseProperties;
52
+ readonly message: string;
53
+ readonly name?: string;
54
+ readonly stack?: string;
55
+ }
49
56
 
50
57
  // @public
51
58
  export interface ISelf {
@@ -43,9 +43,16 @@ export interface IAudienceEvents extends IEvent {
43
43
  }
44
44
 
45
45
  // @public
46
- export type ICriticalContainerError = IErrorBase_2;
46
+ export type ICriticalContainerError = IErrorBase;
47
47
 
48
- export { IErrorBase }
48
+ // @public
49
+ export interface IErrorBase extends Partial<Error> {
50
+ readonly errorType: string;
51
+ getTelemetryProperties?(): ITelemetryBaseProperties;
52
+ readonly message: string;
53
+ readonly name?: string;
54
+ readonly stack?: string;
55
+ }
49
56
 
50
57
  // @public
51
58
  export interface ISelf {
package/dist/legacy.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  export {
18
- // @public APIs
18
+ // #region @public APIs
19
19
  AttachState,
20
20
  ConnectionState,
21
21
  IAudience,
@@ -23,8 +23,9 @@ export {
23
23
  ICriticalContainerError,
24
24
  IErrorBase,
25
25
  ISelf,
26
+ // #endregion
26
27
 
27
- // @legacy APIs
28
+ // #region @legacyBeta APIs
28
29
  ContainerErrorTypes,
29
30
  ContainerWarning,
30
31
  IAudienceOwner,
@@ -66,4 +67,5 @@ export {
66
67
  ReadOnlyInfo,
67
68
  isFluidBrowserPackage,
68
69
  isFluidPackage
70
+ // #endregion
69
71
  } from "./index.js";
package/dist/public.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  export {
18
- // @public APIs
18
+ // #region @public APIs
19
19
  AttachState,
20
20
  ConnectionState,
21
21
  IAudience,
@@ -23,4 +23,5 @@ export {
23
23
  ICriticalContainerError,
24
24
  IErrorBase,
25
25
  ISelf
26
+ // #endregion
26
27
  } from "./index.js";
package/lib/legacy.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  export {
18
- // @public APIs
18
+ // #region @public APIs
19
19
  AttachState,
20
20
  ConnectionState,
21
21
  IAudience,
@@ -23,8 +23,9 @@ export {
23
23
  ICriticalContainerError,
24
24
  IErrorBase,
25
25
  ISelf,
26
+ // #endregion
26
27
 
27
- // @legacy APIs
28
+ // #region @legacyBeta APIs
28
29
  ContainerErrorTypes,
29
30
  ContainerWarning,
30
31
  IAudienceOwner,
@@ -66,4 +67,5 @@ export {
66
67
  ReadOnlyInfo,
67
68
  isFluidBrowserPackage,
68
69
  isFluidPackage
70
+ // #endregion
69
71
  } from "./index.js";
package/lib/public.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  export {
18
- // @public APIs
18
+ // #region @public APIs
19
19
  AttachState,
20
20
  ConnectionState,
21
21
  IAudience,
@@ -23,4 +23,5 @@ export {
23
23
  ICriticalContainerError,
24
24
  IErrorBase,
25
25
  ISelf
26
+ // #endregion
26
27
  } from "./index.js";
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.8"
8
+ "packageVersion": "7.52.11"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/container-definitions",
3
- "version": "2.60.0",
3
+ "version": "2.61.0-355516",
4
4
  "description": "Fluid container definitions",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -47,18 +47,18 @@
47
47
  "main": "lib/index.js",
48
48
  "types": "lib/public.d.ts",
49
49
  "dependencies": {
50
- "@fluidframework/core-interfaces": "~2.60.0",
51
- "@fluidframework/driver-definitions": "~2.60.0"
50
+ "@fluidframework/core-interfaces": "2.61.0-355516",
51
+ "@fluidframework/driver-definitions": "2.61.0-355516"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@arethetypeswrong/cli": "^0.17.1",
55
55
  "@biomejs/biome": "~1.9.3",
56
- "@fluid-tools/build-cli": "^0.57.0",
56
+ "@fluid-tools/build-cli": "^0.58.1",
57
57
  "@fluidframework/build-common": "^2.0.3",
58
- "@fluidframework/build-tools": "^0.57.0",
59
- "@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@2.53.0",
58
+ "@fluidframework/build-tools": "^0.58.1",
59
+ "@fluidframework/container-definitions-previous": "npm:@fluidframework/container-definitions@2.60.0",
60
60
  "@fluidframework/eslint-config-fluid": "^6.0.0",
61
- "@microsoft/api-extractor": "7.52.8",
61
+ "@microsoft/api-extractor": "7.52.11",
62
62
  "concurrently": "^8.2.1",
63
63
  "copyfiles": "^2.4.1",
64
64
  "eslint": "~8.55.0",
@@ -71,8 +71,8 @@
71
71
  },
72
72
  "scripts": {
73
73
  "api": "fluid-build . --task api",
74
- "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
75
- "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat",
74
+ "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist",
75
+ "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat",
76
76
  "build": "fluid-build . --task build",
77
77
  "build:api-reports": "concurrently \"npm:build:api-reports:*\"",
78
78
  "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json",