@fluidframework/test-runtime-utils 2.74.0-370705 → 2.80.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/CHANGELOG.md +16 -0
- package/api-report/test-runtime-utils.legacy.beta.api.md +3 -3
- package/assertTagging.config.mjs +1 -1
- package/dist/assertionShortCodesMap.d.ts +12 -21
- package/dist/assertionShortCodesMap.d.ts.map +1 -1
- package/dist/assertionShortCodesMap.js +13 -22
- package/dist/assertionShortCodesMap.js.map +1 -1
- package/dist/deepFreeze.js.map +1 -1
- package/dist/mockDeltas.d.ts.map +1 -1
- package/dist/mockDeltas.js.map +1 -1
- package/dist/mockStorage.d.ts.map +1 -1
- package/dist/mockStorage.js.map +1 -1
- package/dist/mocks.d.ts +3 -2
- package/dist/mocks.d.ts.map +1 -1
- package/dist/mocks.js +2 -1
- package/dist/mocks.js.map +1 -1
- package/dist/mocksDataStoreContext.d.ts.map +1 -1
- package/dist/mocksDataStoreContext.js.map +1 -1
- package/dist/mocksForReconnection.d.ts.map +1 -1
- package/dist/mocksForReconnection.js.map +1 -1
- package/dist/validateAssertionError.d.ts.map +1 -1
- package/dist/validateAssertionError.js +4 -4
- package/dist/validateAssertionError.js.map +1 -1
- package/eslint.config.mts +30 -0
- package/lib/assertionShortCodesMap.d.ts +12 -21
- package/lib/assertionShortCodesMap.d.ts.map +1 -1
- package/lib/assertionShortCodesMap.js +13 -22
- package/lib/assertionShortCodesMap.js.map +1 -1
- package/lib/deepFreeze.js.map +1 -1
- package/lib/mockDeltas.d.ts.map +1 -1
- package/lib/mockDeltas.js.map +1 -1
- package/lib/mockStorage.d.ts.map +1 -1
- package/lib/mockStorage.js.map +1 -1
- package/lib/mocks.d.ts +3 -2
- package/lib/mocks.d.ts.map +1 -1
- package/lib/mocks.js +2 -1
- package/lib/mocks.js.map +1 -1
- package/lib/mocksDataStoreContext.d.ts.map +1 -1
- package/lib/mocksDataStoreContext.js.map +1 -1
- package/lib/mocksForReconnection.d.ts.map +1 -1
- package/lib/mocksForReconnection.js.map +1 -1
- package/lib/validateAssertionError.d.ts.map +1 -1
- package/lib/validateAssertionError.js +1 -1
- package/lib/validateAssertionError.js.map +1 -1
- package/package.json +25 -24
- package/src/assertionShortCodesMap.ts +13 -22
- package/src/deepFreeze.ts +1 -1
- package/src/mockDeltas.ts +9 -9
- package/src/mockStorage.ts +1 -1
- package/src/mocks.ts +45 -37
- package/src/mocksDataStoreContext.ts +5 -1
- package/src/mocksForReconnection.ts +7 -7
- package/src/validateAssertionError.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @fluidframework/test-runtime-utils
|
|
2
2
|
|
|
3
|
+
## 2.80.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Types not intended for consumer implementation/extension are now @sealed ([#26024](https://github.com/microsoft/FluidFramework/pull/26024)) [75a3861ba8b](https://github.com/microsoft/FluidFramework/commit/75a3861ba8bd4b1b0043bb137a17e0c8d4d3b330)
|
|
8
|
+
|
|
9
|
+
The following types are now explicitly marked as `@sealed` to indicate that they are not intended for consumer implementation or extension.
|
|
10
|
+
- `MockFluidDataStoreRuntime` class in `@fluidframework/test-runtime-utils`
|
|
11
|
+
- `IFluidParentContext` interface in `@fluidframework/runtime-definitions`
|
|
12
|
+
- `IFluidDataStoreContext` interface in `@fluidframework/runtime-definitions`
|
|
13
|
+
- `IFluidDataStoreContextDetached` interface in `@fluidframework/runtime-definitions`
|
|
14
|
+
|
|
15
|
+
## 2.74.0
|
|
16
|
+
|
|
17
|
+
Dependency updates only.
|
|
18
|
+
|
|
3
19
|
## 2.73.0
|
|
4
20
|
|
|
5
21
|
Dependency updates only.
|
|
@@ -191,7 +191,7 @@ export class MockDeltaConnection implements IDeltaConnection {
|
|
|
191
191
|
// (undocumented)
|
|
192
192
|
processMessages(messageCollection: IRuntimeMessageCollection): void;
|
|
193
193
|
// (undocumented)
|
|
194
|
-
reSubmit(content: any, localOpMetadata: unknown, squash
|
|
194
|
+
reSubmit(content: any, localOpMetadata: unknown, squash: boolean): void;
|
|
195
195
|
// (undocumented)
|
|
196
196
|
rollback?(message: any, localOpMetadata: unknown): void;
|
|
197
197
|
// (undocumented)
|
|
@@ -376,7 +376,7 @@ export class MockFluidDataStoreContext implements IFluidDataStoreContext {
|
|
|
376
376
|
uploadBlob(blob: ArrayBufferLike): Promise<IFluidHandleInternal<ArrayBufferLike>>;
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
-
// @beta @legacy
|
|
379
|
+
// @beta @sealed @legacy
|
|
380
380
|
export class MockFluidDataStoreRuntime extends EventEmitter implements IFluidDataStoreRuntime, IFluidDataStoreChannel, IFluidHandleContext {
|
|
381
381
|
constructor(overrides?: {
|
|
382
382
|
clientId?: string;
|
|
@@ -490,7 +490,7 @@ export class MockFluidDataStoreRuntime extends EventEmitter implements IFluidDat
|
|
|
490
490
|
// (undocumented)
|
|
491
491
|
resolveHandle(request: IRequest): Promise<IResponse>;
|
|
492
492
|
// (undocumented)
|
|
493
|
-
reSubmit(content: any, localOpMetadata: unknown, squash
|
|
493
|
+
reSubmit(content: any, localOpMetadata: unknown, squash: boolean): void;
|
|
494
494
|
// (undocumented)
|
|
495
495
|
rollback?(message: any, localOpMetadata: unknown): void;
|
|
496
496
|
// (undocumented)
|
package/assertTagging.config.mjs
CHANGED
|
@@ -1006,7 +1006,6 @@ export declare const shortCodeMap: {
|
|
|
1006
1006
|
"0x7a2": string;
|
|
1007
1007
|
"0x7a5": string;
|
|
1008
1008
|
"0x7a8": string;
|
|
1009
|
-
"0x7a9": string;
|
|
1010
1009
|
"0x7aa": string;
|
|
1011
1010
|
"0x7af": string;
|
|
1012
1011
|
"0x7b6": string;
|
|
@@ -1284,14 +1283,10 @@ export declare const shortCodeMap: {
|
|
|
1284
1283
|
"0x9aa": string;
|
|
1285
1284
|
"0x9ab": string;
|
|
1286
1285
|
"0x9ad": string;
|
|
1287
|
-
"0x9af": string;
|
|
1288
|
-
"0x9b0": string;
|
|
1289
1286
|
"0x9b1": string;
|
|
1290
1287
|
"0x9b4": string;
|
|
1291
1288
|
"0x9b5": string;
|
|
1292
1289
|
"0x9b6": string;
|
|
1293
|
-
"0x9b8": string;
|
|
1294
|
-
"0x9b9": string;
|
|
1295
1290
|
"0x9ba": string;
|
|
1296
1291
|
"0x9bb": string;
|
|
1297
1292
|
"0x9bc": string;
|
|
@@ -1419,18 +1414,6 @@ export declare const shortCodeMap: {
|
|
|
1419
1414
|
"0xa6f": string;
|
|
1420
1415
|
"0xa70": string;
|
|
1421
1416
|
"0xa71": string;
|
|
1422
|
-
"0xa73": string;
|
|
1423
|
-
"0xa74": string;
|
|
1424
|
-
"0xa75": string;
|
|
1425
|
-
"0xa76": string;
|
|
1426
|
-
"0xa77": string;
|
|
1427
|
-
"0xa78": string;
|
|
1428
|
-
"0xa79": string;
|
|
1429
|
-
"0xa7a": string;
|
|
1430
|
-
"0xa7b": string;
|
|
1431
|
-
"0xa7c": string;
|
|
1432
|
-
"0xa7d": string;
|
|
1433
|
-
"0xa7e": string;
|
|
1434
1417
|
"0xa7f": string;
|
|
1435
1418
|
"0xa80": string;
|
|
1436
1419
|
"0xa83": string;
|
|
@@ -1449,7 +1432,6 @@ export declare const shortCodeMap: {
|
|
|
1449
1432
|
"0xa94": string;
|
|
1450
1433
|
"0xa95": string;
|
|
1451
1434
|
"0xa97": string;
|
|
1452
|
-
"0xa98": string;
|
|
1453
1435
|
"0xa99": string;
|
|
1454
1436
|
"0xa9a": string;
|
|
1455
1437
|
"0xa9b": string;
|
|
@@ -1621,7 +1603,6 @@ export declare const shortCodeMap: {
|
|
|
1621
1603
|
"0xb5d": string;
|
|
1622
1604
|
"0xb5e": string;
|
|
1623
1605
|
"0xb5f": string;
|
|
1624
|
-
"0xb60": string;
|
|
1625
1606
|
"0xb61": string;
|
|
1626
1607
|
"0xb62": string;
|
|
1627
1608
|
"0xb63": string;
|
|
@@ -1774,7 +1755,6 @@ export declare const shortCodeMap: {
|
|
|
1774
1755
|
"0xc16": string;
|
|
1775
1756
|
"0xc17": string;
|
|
1776
1757
|
"0xc1a": string;
|
|
1777
|
-
"0xc1b": string;
|
|
1778
1758
|
"0xc1e": string;
|
|
1779
1759
|
"0xc1f": string;
|
|
1780
1760
|
"0xc20": string;
|
|
@@ -1838,7 +1818,6 @@ export declare const shortCodeMap: {
|
|
|
1838
1818
|
"0xc62": string;
|
|
1839
1819
|
"0xc63": string;
|
|
1840
1820
|
"0xc64": string;
|
|
1841
|
-
"0xc65": string;
|
|
1842
1821
|
"0xc66": string;
|
|
1843
1822
|
"0xc67": string;
|
|
1844
1823
|
"0xc68": string;
|
|
@@ -1900,5 +1879,17 @@ export declare const shortCodeMap: {
|
|
|
1900
1879
|
"0xca1": string;
|
|
1901
1880
|
"0xca2": string;
|
|
1902
1881
|
"0xca3": string;
|
|
1882
|
+
"0xca4": string;
|
|
1883
|
+
"0xca5": string;
|
|
1884
|
+
"0xca6": string;
|
|
1885
|
+
"0xca7": string;
|
|
1886
|
+
"0xca8": string;
|
|
1887
|
+
"0xca9": string;
|
|
1888
|
+
"0xcaa": string;
|
|
1889
|
+
"0xcab": string;
|
|
1890
|
+
"0xcac": string;
|
|
1891
|
+
"0xcad": string;
|
|
1892
|
+
"0xcae": string;
|
|
1893
|
+
"0xcaf": string;
|
|
1903
1894
|
};
|
|
1904
1895
|
//# sourceMappingURL=assertionShortCodesMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertionShortCodesMap.d.ts","sourceRoot":"","sources":["../src/assertionShortCodesMap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"assertionShortCodesMap.d.ts","sourceRoot":"","sources":["../src/assertionShortCodesMap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+1DxB,CAAC"}
|
|
@@ -1010,7 +1010,6 @@ exports.shortCodeMap = {
|
|
|
1010
1010
|
"0x7a2": "Must be in a field in order to attach",
|
|
1011
1011
|
"0x7a5": "Must be in a field in order to detach",
|
|
1012
1012
|
"0x7a8": "should be in fields",
|
|
1013
|
-
"0x7a9": "Collision during index update",
|
|
1014
1013
|
"0x7aa": "Unknown removed node ID",
|
|
1015
1014
|
"0x7af": "Destination must be a new empty detached field",
|
|
1016
1015
|
"0x7b6": "Attach source field must be different from current field",
|
|
@@ -1288,14 +1287,10 @@ exports.shortCodeMap = {
|
|
|
1288
1287
|
"0x9aa": "identifier must be type string",
|
|
1289
1288
|
"0x9ab": "childId is undefined in unpackChildNodesUsedRoutes",
|
|
1290
1289
|
"0x9ad": "previous ordinal should not be empty",
|
|
1291
|
-
"0x9af": "A view cannot be rebased while it has a pending transaction",
|
|
1292
|
-
"0x9b0": "Views cannot be merged into a view while it has a pending transaction",
|
|
1293
1290
|
"0x9b1": "Expected tree node to have kernel",
|
|
1294
1291
|
"0x9b4": "Unexpected flex node implementation",
|
|
1295
1292
|
"0x9b5": "Inheritance should work",
|
|
1296
1293
|
"0x9b6": "No error to clear",
|
|
1297
|
-
"0x9b8": "Inconsistent data: missing detached node entry",
|
|
1298
|
-
"0x9b9": "Inconsistent data: missing node entry in latestRelevantRevision",
|
|
1299
1294
|
"0x9ba": "Unable to delete unknown entry",
|
|
1300
1295
|
"0x9bb": "Unable to delete unknown entry",
|
|
1301
1296
|
"0x9bc": "detached node id does not exist in the detached field index",
|
|
@@ -1423,18 +1418,6 @@ exports.shortCodeMap = {
|
|
|
1423
1418
|
"0xa6f": "Pending changes must exist for rollback when collaborating",
|
|
1424
1419
|
"0xa70": "Pending changes must not exist when not collaborating",
|
|
1425
1420
|
"0xa71": "must have local change to ack",
|
|
1426
|
-
"0xa73": "The typeField must be present in new JSON content",
|
|
1427
|
-
"0xa74": "Expected object schema",
|
|
1428
|
-
"0xa75": "the field must be an array node",
|
|
1429
|
-
"0xa76": "the modification must be an array node",
|
|
1430
|
-
"0xa77": "node to move must exist",
|
|
1431
|
-
"0xa78": "node to move must exist",
|
|
1432
|
-
"0xa79": "objectId does not exist in nodeMap",
|
|
1433
|
-
"0xa7a": "Different scopes not supported yet.",
|
|
1434
|
-
"0xa7b": "Collision of object id property.",
|
|
1435
|
-
"0xa7c": "Ref not found.",
|
|
1436
|
-
"0xa7d": "Expected at least two types",
|
|
1437
|
-
"0xa7e": "Expected at least two types",
|
|
1438
1421
|
"0xa7f": "Delta manager does not have inbound/outbound queues.",
|
|
1439
1422
|
"0xa80": "Invalid delta manager",
|
|
1440
1423
|
"0xa83": "Expected commit(s) for a non no-op rebase",
|
|
@@ -1453,7 +1436,6 @@ exports.shortCodeMap = {
|
|
|
1453
1436
|
"0xa94": "invalid forbidden field",
|
|
1454
1437
|
"0xa95": "Invalid map schema",
|
|
1455
1438
|
"0xa97": "Not in transaction",
|
|
1456
|
-
"0xa98": "Expected transaction branch",
|
|
1457
1439
|
"0xa99": "must have a parent",
|
|
1458
1440
|
"0xa9a": "must have a parent",
|
|
1459
1441
|
"0xa9b": "attach should happen in a node",
|
|
@@ -1625,7 +1607,6 @@ exports.shortCodeMap = {
|
|
|
1625
1607
|
"0xb5d": "Expected last remove to be unacked",
|
|
1626
1608
|
"0xb5e": "Expected prior remove to be acked",
|
|
1627
1609
|
"0xb5f": "Expected same length for client ids and seqs",
|
|
1628
|
-
"0xb60": "Invalid schema",
|
|
1629
1610
|
"0xb61": "Invalid old reference",
|
|
1630
1611
|
"0xb62": "Invalid new segment on rebase",
|
|
1631
1612
|
"0xb63": "Resubmitting obliterate op without obliterate info in segment group",
|
|
@@ -1778,7 +1759,6 @@ exports.shortCodeMap = {
|
|
|
1778
1759
|
"0xc16": "missing schema for array node",
|
|
1779
1760
|
"0xc17": "Expected MapNodeStoredSchema",
|
|
1780
1761
|
"0xc1a": "Expected MapNodeStoredSchema",
|
|
1781
|
-
"0xc1b": "Expected at least two types",
|
|
1782
1762
|
"0xc1e": "Expected a constructed node to be an object",
|
|
1783
1763
|
"0xc1f": "Transaction did not complete.",
|
|
1784
1764
|
"0xc20": "snapshot tree not found for one of tree's summarizables",
|
|
@@ -1842,7 +1822,6 @@ exports.shortCodeMap = {
|
|
|
1842
1822
|
"0xc62": "Cannot encode branch base without originatorId",
|
|
1843
1823
|
"0xc63": "Cannot decode branch id without originatorId",
|
|
1844
1824
|
"0xc64": "Cannot decode branch base without originatorId",
|
|
1845
|
-
"0xc65": "Cannot encode V5 summary without originator",
|
|
1846
1825
|
"0xc66": "Shared branches must have an id",
|
|
1847
1826
|
"0xc67": "Duplicate shared branch id",
|
|
1848
1827
|
"0xc68": "Only commit messages are supported",
|
|
@@ -1903,6 +1882,18 @@ exports.shortCodeMap = {
|
|
|
1903
1882
|
"0xca0": "Unsupported FieldBatchFormatVersion for incremental encoding; must be v2 or higher",
|
|
1904
1883
|
"0xca1": "Unsupported FieldBatchFormatVersion for incremental encoding; must be v2 or higher",
|
|
1905
1884
|
"0xca2": "localOpActivity must be undefined when entering rollback",
|
|
1906
|
-
"0xca3": "localOpActivity must be undefined when entering applyStashedOp"
|
|
1885
|
+
"0xca3": "localOpActivity must be undefined when entering applyStashedOp",
|
|
1886
|
+
"0xca4": "Expected applied commit to be parented",
|
|
1887
|
+
"0xca5": "Cannot encode vSharedBranches summary without originator",
|
|
1888
|
+
"0xca6": "Unsupported write version requested.",
|
|
1889
|
+
"0xca7": "getUnhydratedContext should not be reentrant",
|
|
1890
|
+
"0xca8": "missing schema",
|
|
1891
|
+
"0xca9": "missing schema",
|
|
1892
|
+
"0xcaa": "Reachable schema missing from input TreeSchema",
|
|
1893
|
+
"0xcab": "missing kind",
|
|
1894
|
+
"0xcac": "Unexpected branch implementation",
|
|
1895
|
+
"0xcad": "Unexpected branch implementation",
|
|
1896
|
+
"0xcae": "The outer transaction should be ending",
|
|
1897
|
+
"0xcaf": "Unexpected commit in transaction"
|
|
1907
1898
|
};
|
|
1908
1899
|
//# sourceMappingURL=assertionShortCodesMap.js.map
|