@fluidframework/core-interfaces 2.71.0 → 2.73.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.
- package/.eslintrc.cjs +1 -1
- package/CHANGELOG.md +13 -9
- package/api-extractor/api-extractor-lint-legacy.alpha.cjs.json +5 -0
- package/api-extractor/api-extractor-lint-legacy.alpha.esm.json +5 -0
- package/api-extractor/api-extractor.legacy.json +5 -1
- package/api-report/core-interfaces.legacy.alpha.api.md +473 -0
- package/dist/error.d.ts +41 -11
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +14 -3
- package/dist/error.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/legacy.alpha.d.ts +73 -0
- package/dist/package.json +4 -0
- package/legacy/alpha.d.ts +11 -0
- package/lib/error.d.ts +41 -11
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +13 -2
- package/lib/error.js.map +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/legacy.alpha.d.ts +73 -0
- package/package.json +19 -7
- package/src/cjs/package.json +4 -0
- package/src/error.ts +25 -15
- package/src/index.ts +4 -2
package/src/error.ts
CHANGED
|
@@ -41,6 +41,29 @@ export const FluidErrorTypes = {
|
|
|
41
41
|
*/
|
|
42
42
|
export type FluidErrorTypes = (typeof FluidErrorTypes)[keyof typeof FluidErrorTypes];
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* New error types that are still in alpha stage. Once stabilized, they will be moved to FluidErrorTypes.
|
|
46
|
+
* @legacy @alpha
|
|
47
|
+
*/
|
|
48
|
+
export const FluidErrorTypesAlpha = {
|
|
49
|
+
...FluidErrorTypes,
|
|
50
|
+
/**
|
|
51
|
+
* Error indicating that two Fluid layers are incompatible. For instance, if the Loader layer is
|
|
52
|
+
* not compatible with the Runtime layer, the container create / load will fail with an error of this type.
|
|
53
|
+
* In most cases, the layer compatibility validation happens during container load / create causing it to
|
|
54
|
+
* fail with this error type.
|
|
55
|
+
* In some cases such as for the Runtime and DataStore layer compatibility, the incompatibility may be detected
|
|
56
|
+
* during data store loads. In such cases, the data store load will fail with this error type.
|
|
57
|
+
*/
|
|
58
|
+
layerIncompatibilityError: "layerIncompatibilityError",
|
|
59
|
+
} as const;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @legacy @alpha
|
|
63
|
+
*/
|
|
64
|
+
export type FluidErrorTypesAlpha =
|
|
65
|
+
(typeof FluidErrorTypesAlpha)[keyof typeof FluidErrorTypesAlpha];
|
|
66
|
+
|
|
44
67
|
/**
|
|
45
68
|
* Base interface for all errors and warnings emitted the container.
|
|
46
69
|
*
|
|
@@ -130,15 +153,7 @@ export interface IThrottlingWarning extends IErrorBase {
|
|
|
130
153
|
}
|
|
131
154
|
|
|
132
155
|
/**
|
|
133
|
-
*
|
|
134
|
-
* @legacy @alpha
|
|
135
|
-
*/
|
|
136
|
-
export const layerIncompatibilityErrorSymbol: unique symbol = Symbol(
|
|
137
|
-
"LayerIncompatibilityError",
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Usage error indicating that two Fluid layers are incompatible. For instance, if the Loader layer is
|
|
156
|
+
* Layer incompatibility error indicating that two Fluid layers are incompatible. For instance, if the Loader layer is
|
|
142
157
|
* not compatible with the Runtime layer, the container will be disposed with this error.
|
|
143
158
|
* @legacy @alpha
|
|
144
159
|
*/
|
|
@@ -146,12 +161,7 @@ export interface ILayerIncompatibilityError extends IErrorBase {
|
|
|
146
161
|
/**
|
|
147
162
|
* {@inheritDoc IErrorBase.errorType}
|
|
148
163
|
*/
|
|
149
|
-
readonly errorType: typeof
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Symbol used to identify this error as a layer incompatibility error.
|
|
153
|
-
*/
|
|
154
|
-
readonly [layerIncompatibilityErrorSymbol]: true;
|
|
164
|
+
readonly errorType: typeof FluidErrorTypesAlpha.layerIncompatibilityError;
|
|
155
165
|
/**
|
|
156
166
|
* The layer that is reporting the incompatibility.
|
|
157
167
|
*/
|
package/src/index.ts
CHANGED
|
@@ -14,8 +14,10 @@ export type {
|
|
|
14
14
|
IThrottlingWarning,
|
|
15
15
|
ILayerIncompatibilityError,
|
|
16
16
|
} from "./error.js";
|
|
17
|
-
export {
|
|
18
|
-
|
|
17
|
+
export {
|
|
18
|
+
FluidErrorTypes,
|
|
19
|
+
FluidErrorTypesAlpha,
|
|
20
|
+
} from "./error.js";
|
|
19
21
|
|
|
20
22
|
export type {
|
|
21
23
|
ExtendEventProvider,
|