@fluidframework/test-utils 2.0.0-dev-rc.3.0.0.250606 → 2.0.0-dev-rc.3.0.0.253463
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/api-report/test-utils.api.md +35 -35
- package/dist/DriverWrappers.d.ts +1 -1
- package/dist/DriverWrappers.d.ts.map +1 -1
- package/dist/DriverWrappers.js.map +1 -1
- package/dist/TestSummaryUtils.d.ts +4 -4
- package/dist/TestSummaryUtils.d.ts.map +1 -1
- package/dist/TestSummaryUtils.js +12 -12
- package/dist/TestSummaryUtils.js.map +1 -1
- package/dist/containerUtils.d.ts +2 -2
- package/dist/containerUtils.d.ts.map +1 -1
- package/dist/containerUtils.js +3 -3
- package/dist/containerUtils.js.map +1 -1
- package/dist/debug.d.ts.map +1 -1
- package/dist/debug.js.map +1 -1
- package/dist/interfaces.d.ts +1 -1
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/loaderContainerTracker.d.ts +1 -1
- package/dist/loaderContainerTracker.d.ts.map +1 -1
- package/dist/loaderContainerTracker.js +13 -13
- package/dist/loaderContainerTracker.js.map +1 -1
- package/dist/localCodeLoader.d.ts +3 -3
- package/dist/localCodeLoader.d.ts.map +1 -1
- package/dist/localCodeLoader.js +4 -4
- package/dist/localCodeLoader.js.map +1 -1
- package/dist/localLoader.d.ts +2 -2
- package/dist/localLoader.d.ts.map +1 -1
- package/dist/localLoader.js +2 -2
- package/dist/localLoader.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/retry.js +2 -2
- package/dist/retry.js.map +1 -1
- package/dist/test-utils-alpha.d.ts +35 -37
- package/dist/test-utils-beta.d.ts +35 -37
- package/dist/test-utils-public.d.ts +35 -37
- package/dist/test-utils-untrimmed.d.ts +35 -35
- package/dist/testContainerRuntimeFactory.d.ts +5 -5
- package/dist/testContainerRuntimeFactory.d.ts.map +1 -1
- package/dist/testContainerRuntimeFactory.js +15 -13
- package/dist/testContainerRuntimeFactory.js.map +1 -1
- package/dist/testContainerRuntimeFactoryWithDefaultDataStore.d.ts +5 -5
- package/dist/testContainerRuntimeFactoryWithDefaultDataStore.d.ts.map +1 -1
- package/dist/testContainerRuntimeFactoryWithDefaultDataStore.js +2 -2
- package/dist/testContainerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
- package/dist/testFluidObject.d.ts +2 -2
- package/dist/testFluidObject.d.ts.map +1 -1
- package/dist/testFluidObject.js +7 -7
- package/dist/testFluidObject.js.map +1 -1
- package/dist/testObjectProvider.d.ts +5 -5
- package/dist/testObjectProvider.d.ts.map +1 -1
- package/dist/testObjectProvider.js +9 -9
- package/dist/testObjectProvider.js.map +1 -1
- package/dist/timeoutUtils.js +4 -4
- package/dist/timeoutUtils.js.map +1 -1
- package/lib/DriverWrappers.d.ts +1 -1
- package/lib/DriverWrappers.d.ts.map +1 -1
- package/lib/DriverWrappers.js.map +1 -1
- package/lib/TestSummaryUtils.d.ts +4 -4
- package/lib/TestSummaryUtils.d.ts.map +1 -1
- package/lib/TestSummaryUtils.js +4 -4
- package/lib/TestSummaryUtils.js.map +1 -1
- package/lib/containerUtils.d.ts +2 -2
- package/lib/containerUtils.d.ts.map +1 -1
- package/lib/containerUtils.js +1 -1
- package/lib/containerUtils.js.map +1 -1
- package/lib/debug.d.ts.map +1 -1
- package/lib/debug.js.map +1 -1
- package/lib/interfaces.d.ts +1 -1
- package/lib/interfaces.d.ts.map +1 -1
- package/lib/interfaces.js.map +1 -1
- package/lib/loaderContainerTracker.d.ts +1 -1
- package/lib/loaderContainerTracker.d.ts.map +1 -1
- package/lib/loaderContainerTracker.js +2 -2
- package/lib/loaderContainerTracker.js.map +1 -1
- package/lib/localCodeLoader.d.ts +3 -3
- package/lib/localCodeLoader.d.ts.map +1 -1
- package/lib/localCodeLoader.js +2 -2
- package/lib/localCodeLoader.js.map +1 -1
- package/lib/localLoader.d.ts +2 -2
- package/lib/localLoader.d.ts.map +1 -1
- package/lib/localLoader.js +1 -1
- package/lib/localLoader.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/test-utils-alpha.d.ts +35 -37
- package/lib/test-utils-beta.d.ts +35 -37
- package/lib/test-utils-public.d.ts +35 -37
- package/lib/test-utils-untrimmed.d.ts +35 -35
- package/lib/testContainerRuntimeFactory.d.ts +5 -5
- package/lib/testContainerRuntimeFactory.d.ts.map +1 -1
- package/lib/testContainerRuntimeFactory.js +9 -5
- package/lib/testContainerRuntimeFactory.js.map +1 -1
- package/lib/testContainerRuntimeFactoryWithDefaultDataStore.d.ts +5 -5
- package/lib/testContainerRuntimeFactoryWithDefaultDataStore.d.ts.map +1 -1
- package/lib/testContainerRuntimeFactoryWithDefaultDataStore.js +1 -1
- package/lib/testContainerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
- package/lib/testFluidObject.d.ts +2 -2
- package/lib/testFluidObject.d.ts.map +1 -1
- package/lib/testFluidObject.js +3 -3
- package/lib/testFluidObject.js.map +1 -1
- package/lib/testObjectProvider.d.ts +5 -5
- package/lib/testObjectProvider.d.ts.map +1 -1
- package/lib/testObjectProvider.js +2 -2
- package/lib/testObjectProvider.js.map +1 -1
- package/lib/timeoutUtils.js +1 -1
- package/lib/timeoutUtils.js.map +1 -1
- package/lib/tsdoc-metadata.json +11 -0
- package/package.json +22 -34
- package/src/DriverWrappers.ts +1 -1
- package/src/TestSummaryUtils.ts +11 -6
- package/src/containerUtils.ts +4 -3
- package/src/debug.ts +1 -0
- package/src/interfaces.ts +1 -1
- package/src/loaderContainerTracker.ts +5 -3
- package/src/localCodeLoader.ts +6 -5
- package/src/localLoader.ts +4 -3
- package/src/packageVersion.ts +1 -1
- package/src/retry.ts +1 -1
- package/src/testContainerRuntimeFactory.ts +13 -8
- package/src/testContainerRuntimeFactoryWithDefaultDataStore.ts +5 -5
- package/src/testFluidObject.ts +5 -4
- package/src/testObjectProvider.ts +8 -10
- package/src/timeoutUtils.ts +1 -1
- package/lib/test/timeoutUtils.spec.js +0 -165
- package/lib/test/timeoutUtils.spec.js.map +0 -1
- package/lib/test/types/validateTestUtilsPrevious.generated.js +0 -90
- package/lib/test/types/validateTestUtilsPrevious.generated.js.map +0 -1
package/lib/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/test-utils";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-dev-rc.3.0.0.
|
|
8
|
+
export declare const pkgVersion = "2.0.0-dev-rc.3.0.0.253463";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export const pkgName = "@fluidframework/test-utils";
|
|
8
|
-
export const pkgVersion = "2.0.0-dev-rc.3.0.0.
|
|
8
|
+
export const pkgVersion = "2.0.0-dev-rc.3.0.0.253463";
|
|
9
9
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,4BAA4B,CAAC;AACpD,MAAM,CAAC,MAAM,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.0.0-dev-rc.3.0.0.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,4BAA4B,CAAC;AACpD,MAAM,CAAC,MAAM,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.0.0-dev-rc.3.0.0.253463\";\n"]}
|
package/lib/retry.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { delay } from "@fluidframework/core-utils";
|
|
5
|
+
import { delay } from "@fluidframework/core-utils/internal";
|
|
6
6
|
const retry = async (callback, defaultValue, maxTries, backOffMs) => {
|
|
7
7
|
for (let currentTry = 1; currentTry <= maxTries; currentTry++) {
|
|
8
8
|
try {
|
package/lib/retry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAE5D,MAAM,KAAK,GAAG,KAAK,EAClB,QAA0B,EAC1B,YAAe,EACf,QAAgB,EAChB,SAAiB,EACJ,EAAE;IACf,KAAK,IAAI,UAAU,GAAG,CAAC,EAAE,UAAU,IAAI,QAAQ,EAAE,UAAU,EAAE,EAAE;QAC9D,IAAI;YACH,MAAM,MAAM,GAAG,MAAM,QAAQ,EAAE,CAAC;YAChC,OAAO,MAAM,CAAC;SACd;QAAC,OAAO,KAAK,EAAE;YACf,MAAM,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;SACpC;KACD;IAED,OAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EAC1C,QAA0B,EAC1B,KAA4B,EAC5B,YAAe,EACf,QAAQ,GAAG,EAAE,EACb,SAAS,GAAG,EAAE,EACD,EAAE,CACf,KAAK,CACJ,KAAK,IAAI,EAAE;IACV,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE,CAAC;IAC/B,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE;QACjB,OAAO,KAAK,CAAC;KACb;IAED,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC;AAC1B,CAAC,EACD,YAAY,EACZ,QAAQ,EACR,SAAS,CACT,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { delay } from \"@fluidframework/core-utils/internal\";\n\nconst retry = async <T>(\n\tcallback: () => Promise<T>,\n\tdefaultValue: T,\n\tmaxTries: number,\n\tbackOffMs: number,\n): Promise<T> => {\n\tfor (let currentTry = 1; currentTry <= maxTries; currentTry++) {\n\t\ttry {\n\t\t\tconst result = await callback();\n\t\t\treturn result;\n\t\t} catch (error) {\n\t\t\tawait delay(currentTry * backOffMs);\n\t\t}\n\t}\n\n\treturn Promise.resolve(defaultValue);\n};\n\n/**\n * Simple retry mechanism with linear back off to call\n * a function which may eventually return an accepted value.\n *\n * @param callback - the function to execute\n * @param check - the function to check if the value is acceptable\n * @param defaultValue - the default value\n * @param maxTries - maximum number of attempts\n * @param backOffMs - back off between attempts in milliseconds\n * @returns the actual value from the callback when successful or the default value otherwise\n * @internal\n */\nexport const retryWithEventualValue = async <T>(\n\tcallback: () => Promise<T>,\n\tcheck: (value: T) => boolean,\n\tdefaultValue: T,\n\tmaxTries = 20,\n\tbackOffMs = 50,\n): Promise<T> =>\n\tretry(\n\t\tasync () => {\n\t\t\tconst value = await callback();\n\t\t\tif (check(value)) {\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\tthrow Error(\"Not ready\");\n\t\t},\n\t\tdefaultValue,\n\t\tmaxTries,\n\t\tbackOffMs,\n\t);\n"]}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { ConfigTypes } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
3
|
-
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct';
|
|
4
|
-
import { FluidDataStoreRuntime } from '@fluidframework/datastore';
|
|
2
|
+
import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
|
|
3
|
+
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct/internal';
|
|
4
|
+
import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
|
|
5
5
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
6
6
|
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
7
|
-
import { ICodeDetailsLoader } from '@fluidframework/container-definitions';
|
|
7
|
+
import { ICodeDetailsLoader } from '@fluidframework/container-definitions/internal';
|
|
8
8
|
import { IConfigProviderBase } from '@fluidframework/core-interfaces';
|
|
9
|
-
import { IContainer } from '@fluidframework/container-definitions';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
|
|
13
|
-
import { IDataStore } from '@fluidframework/runtime-definitions';
|
|
14
|
-
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
15
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
16
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
17
|
-
import { IFluidCodeDetails } from '@fluidframework/container-definitions';
|
|
18
|
-
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
19
|
-
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
20
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
9
|
+
import { IContainer } from '@fluidframework/container-definitions/internal';
|
|
10
|
+
import { IContainerContext } from '@fluidframework/container-definitions/internal';
|
|
11
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
|
|
12
|
+
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
|
|
13
|
+
import { IDataStore } from '@fluidframework/runtime-definitions/internal';
|
|
14
|
+
import { IDocumentService } from '@fluidframework/driver-definitions/internal';
|
|
15
|
+
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions/internal';
|
|
16
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
|
|
17
|
+
import { IFluidCodeDetails } from '@fluidframework/container-definitions/internal';
|
|
18
|
+
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
|
|
19
|
+
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
|
|
20
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
21
21
|
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
22
22
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
23
23
|
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
24
|
-
import { IFluidModule } from '@fluidframework/container-definitions';
|
|
25
|
-
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions';
|
|
26
|
-
import { IHostLoader } from '@fluidframework/container-definitions';
|
|
27
|
-
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
28
|
-
import { ILoaderProps } from '@fluidframework/container-loader';
|
|
29
|
-
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime';
|
|
30
|
-
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
|
|
31
|
-
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
32
|
-
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
33
|
-
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions';
|
|
24
|
+
import { IFluidModule } from '@fluidframework/container-definitions/internal';
|
|
25
|
+
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions/internal';
|
|
26
|
+
import { IHostLoader } from '@fluidframework/container-definitions/internal';
|
|
27
|
+
import { ILoaderOptions } from '@fluidframework/container-definitions/internal';
|
|
28
|
+
import { ILoaderProps } from '@fluidframework/container-loader/internal';
|
|
29
|
+
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime/internal';
|
|
30
|
+
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions/internal';
|
|
31
|
+
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
32
|
+
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
33
|
+
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions/internal';
|
|
34
34
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
35
35
|
import { IRequestHeader } from '@fluidframework/core-interfaces';
|
|
36
|
-
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
36
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
|
|
37
37
|
import { IResponse } from '@fluidframework/core-interfaces';
|
|
38
|
-
import { IRuntime } from '@fluidframework/container-definitions';
|
|
38
|
+
import { IRuntime } from '@fluidframework/container-definitions/internal';
|
|
39
39
|
import { ISharedMap } from '@fluidframework/map';
|
|
40
|
-
import { ISummarizer } from '@fluidframework/container-runtime';
|
|
41
|
-
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
40
|
+
import { ISummarizer } from '@fluidframework/container-runtime/internal';
|
|
41
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions/internal';
|
|
42
42
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
43
43
|
import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
|
|
44
44
|
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
45
45
|
import { ITelemetryGenericEventExt } from '@fluidframework/telemetry-utils';
|
|
46
|
-
import { ITestDriver } from '@
|
|
47
|
-
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
48
|
-
import { Loader } from '@fluidframework/container-loader';
|
|
49
|
-
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
50
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
46
|
+
import { ITestDriver } from '@fluid-internal/test-driver-definitions';
|
|
47
|
+
import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
|
|
48
|
+
import { Loader } from '@fluidframework/container-loader/internal';
|
|
49
|
+
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
|
|
50
|
+
import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
|
|
51
51
|
|
|
52
52
|
/* Excluded from this release type: ChannelFactoryRegistry */
|
|
53
53
|
|
|
@@ -113,8 +113,6 @@ export declare interface IProvideTestFluidObject {
|
|
|
113
113
|
|
|
114
114
|
/* Excluded from this release type: ITestContainerConfig */
|
|
115
115
|
|
|
116
|
-
/* Excluded from this release type: ITestDriver */
|
|
117
|
-
|
|
118
116
|
/**
|
|
119
117
|
* @alpha
|
|
120
118
|
*/
|
package/lib/test-utils-beta.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { ConfigTypes } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
3
|
-
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct';
|
|
4
|
-
import { FluidDataStoreRuntime } from '@fluidframework/datastore';
|
|
2
|
+
import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
|
|
3
|
+
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct/internal';
|
|
4
|
+
import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
|
|
5
5
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
6
6
|
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
7
|
-
import { ICodeDetailsLoader } from '@fluidframework/container-definitions';
|
|
7
|
+
import { ICodeDetailsLoader } from '@fluidframework/container-definitions/internal';
|
|
8
8
|
import { IConfigProviderBase } from '@fluidframework/core-interfaces';
|
|
9
|
-
import { IContainer } from '@fluidframework/container-definitions';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
|
|
13
|
-
import { IDataStore } from '@fluidframework/runtime-definitions';
|
|
14
|
-
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
15
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
16
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
17
|
-
import { IFluidCodeDetails } from '@fluidframework/container-definitions';
|
|
18
|
-
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
19
|
-
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
20
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
9
|
+
import { IContainer } from '@fluidframework/container-definitions/internal';
|
|
10
|
+
import { IContainerContext } from '@fluidframework/container-definitions/internal';
|
|
11
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
|
|
12
|
+
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
|
|
13
|
+
import { IDataStore } from '@fluidframework/runtime-definitions/internal';
|
|
14
|
+
import { IDocumentService } from '@fluidframework/driver-definitions/internal';
|
|
15
|
+
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions/internal';
|
|
16
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
|
|
17
|
+
import { IFluidCodeDetails } from '@fluidframework/container-definitions/internal';
|
|
18
|
+
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
|
|
19
|
+
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
|
|
20
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
21
21
|
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
22
22
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
23
23
|
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
24
|
-
import { IFluidModule } from '@fluidframework/container-definitions';
|
|
25
|
-
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions';
|
|
26
|
-
import { IHostLoader } from '@fluidframework/container-definitions';
|
|
27
|
-
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
28
|
-
import { ILoaderProps } from '@fluidframework/container-loader';
|
|
29
|
-
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime';
|
|
30
|
-
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
|
|
31
|
-
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
32
|
-
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
33
|
-
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions';
|
|
24
|
+
import { IFluidModule } from '@fluidframework/container-definitions/internal';
|
|
25
|
+
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions/internal';
|
|
26
|
+
import { IHostLoader } from '@fluidframework/container-definitions/internal';
|
|
27
|
+
import { ILoaderOptions } from '@fluidframework/container-definitions/internal';
|
|
28
|
+
import { ILoaderProps } from '@fluidframework/container-loader/internal';
|
|
29
|
+
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime/internal';
|
|
30
|
+
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions/internal';
|
|
31
|
+
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
32
|
+
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
33
|
+
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions/internal';
|
|
34
34
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
35
35
|
import { IRequestHeader } from '@fluidframework/core-interfaces';
|
|
36
|
-
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
36
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
|
|
37
37
|
import { IResponse } from '@fluidframework/core-interfaces';
|
|
38
|
-
import { IRuntime } from '@fluidframework/container-definitions';
|
|
38
|
+
import { IRuntime } from '@fluidframework/container-definitions/internal';
|
|
39
39
|
import { ISharedMap } from '@fluidframework/map';
|
|
40
|
-
import { ISummarizer } from '@fluidframework/container-runtime';
|
|
41
|
-
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
40
|
+
import { ISummarizer } from '@fluidframework/container-runtime/internal';
|
|
41
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions/internal';
|
|
42
42
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
43
43
|
import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
|
|
44
44
|
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
45
45
|
import { ITelemetryGenericEventExt } from '@fluidframework/telemetry-utils';
|
|
46
|
-
import { ITestDriver } from '@
|
|
47
|
-
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
48
|
-
import { Loader } from '@fluidframework/container-loader';
|
|
49
|
-
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
50
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
46
|
+
import { ITestDriver } from '@fluid-internal/test-driver-definitions';
|
|
47
|
+
import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
|
|
48
|
+
import { Loader } from '@fluidframework/container-loader/internal';
|
|
49
|
+
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
|
|
50
|
+
import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
|
|
51
51
|
|
|
52
52
|
/* Excluded from this release type: ChannelFactoryRegistry */
|
|
53
53
|
|
|
@@ -153,8 +153,6 @@ import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
|
153
153
|
|
|
154
154
|
/* Excluded from this release type: ITestContainerConfig */
|
|
155
155
|
|
|
156
|
-
/* Excluded from this release type: ITestDriver */
|
|
157
|
-
|
|
158
156
|
/* Excluded from this release type: ITestFluidObject */
|
|
159
157
|
|
|
160
158
|
/* Excluded from this release type: ITestObjectProvider */
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { ConfigTypes } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
3
|
-
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct';
|
|
4
|
-
import { FluidDataStoreRuntime } from '@fluidframework/datastore';
|
|
2
|
+
import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
|
|
3
|
+
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct/internal';
|
|
4
|
+
import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
|
|
5
5
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
6
6
|
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
7
|
-
import { ICodeDetailsLoader } from '@fluidframework/container-definitions';
|
|
7
|
+
import { ICodeDetailsLoader } from '@fluidframework/container-definitions/internal';
|
|
8
8
|
import { IConfigProviderBase } from '@fluidframework/core-interfaces';
|
|
9
|
-
import { IContainer } from '@fluidframework/container-definitions';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
|
|
13
|
-
import { IDataStore } from '@fluidframework/runtime-definitions';
|
|
14
|
-
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
15
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
16
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
17
|
-
import { IFluidCodeDetails } from '@fluidframework/container-definitions';
|
|
18
|
-
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
19
|
-
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
20
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
9
|
+
import { IContainer } from '@fluidframework/container-definitions/internal';
|
|
10
|
+
import { IContainerContext } from '@fluidframework/container-definitions/internal';
|
|
11
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
|
|
12
|
+
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
|
|
13
|
+
import { IDataStore } from '@fluidframework/runtime-definitions/internal';
|
|
14
|
+
import { IDocumentService } from '@fluidframework/driver-definitions/internal';
|
|
15
|
+
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions/internal';
|
|
16
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
|
|
17
|
+
import { IFluidCodeDetails } from '@fluidframework/container-definitions/internal';
|
|
18
|
+
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
|
|
19
|
+
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
|
|
20
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
21
21
|
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
22
22
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
23
23
|
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
24
|
-
import { IFluidModule } from '@fluidframework/container-definitions';
|
|
25
|
-
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions';
|
|
26
|
-
import { IHostLoader } from '@fluidframework/container-definitions';
|
|
27
|
-
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
28
|
-
import { ILoaderProps } from '@fluidframework/container-loader';
|
|
29
|
-
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime';
|
|
30
|
-
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
|
|
31
|
-
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
32
|
-
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
33
|
-
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions';
|
|
24
|
+
import { IFluidModule } from '@fluidframework/container-definitions/internal';
|
|
25
|
+
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions/internal';
|
|
26
|
+
import { IHostLoader } from '@fluidframework/container-definitions/internal';
|
|
27
|
+
import { ILoaderOptions } from '@fluidframework/container-definitions/internal';
|
|
28
|
+
import { ILoaderProps } from '@fluidframework/container-loader/internal';
|
|
29
|
+
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime/internal';
|
|
30
|
+
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions/internal';
|
|
31
|
+
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
32
|
+
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
33
|
+
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions/internal';
|
|
34
34
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
35
35
|
import { IRequestHeader } from '@fluidframework/core-interfaces';
|
|
36
|
-
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
36
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
|
|
37
37
|
import { IResponse } from '@fluidframework/core-interfaces';
|
|
38
|
-
import { IRuntime } from '@fluidframework/container-definitions';
|
|
38
|
+
import { IRuntime } from '@fluidframework/container-definitions/internal';
|
|
39
39
|
import { ISharedMap } from '@fluidframework/map';
|
|
40
|
-
import { ISummarizer } from '@fluidframework/container-runtime';
|
|
41
|
-
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
40
|
+
import { ISummarizer } from '@fluidframework/container-runtime/internal';
|
|
41
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions/internal';
|
|
42
42
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
43
43
|
import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
|
|
44
44
|
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
45
45
|
import { ITelemetryGenericEventExt } from '@fluidframework/telemetry-utils';
|
|
46
|
-
import { ITestDriver } from '@
|
|
47
|
-
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
48
|
-
import { Loader } from '@fluidframework/container-loader';
|
|
49
|
-
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
50
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
46
|
+
import { ITestDriver } from '@fluid-internal/test-driver-definitions';
|
|
47
|
+
import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
|
|
48
|
+
import { Loader } from '@fluidframework/container-loader/internal';
|
|
49
|
+
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
|
|
50
|
+
import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
|
|
51
51
|
|
|
52
52
|
/* Excluded from this release type: ChannelFactoryRegistry */
|
|
53
53
|
|
|
@@ -153,8 +153,6 @@ import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
|
153
153
|
|
|
154
154
|
/* Excluded from this release type: ITestContainerConfig */
|
|
155
155
|
|
|
156
|
-
/* Excluded from this release type: ITestDriver */
|
|
157
|
-
|
|
158
156
|
/* Excluded from this release type: ITestFluidObject */
|
|
159
157
|
|
|
160
158
|
/* Excluded from this release type: ITestObjectProvider */
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { ConfigTypes } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
3
|
-
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct';
|
|
4
|
-
import { FluidDataStoreRuntime } from '@fluidframework/datastore';
|
|
2
|
+
import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
|
|
3
|
+
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct/internal';
|
|
4
|
+
import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
|
|
5
5
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
6
6
|
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
7
|
-
import { ICodeDetailsLoader } from '@fluidframework/container-definitions';
|
|
7
|
+
import { ICodeDetailsLoader } from '@fluidframework/container-definitions/internal';
|
|
8
8
|
import { IConfigProviderBase } from '@fluidframework/core-interfaces';
|
|
9
|
-
import { IContainer } from '@fluidframework/container-definitions';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
|
|
13
|
-
import { IDataStore } from '@fluidframework/runtime-definitions';
|
|
14
|
-
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
15
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
16
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
17
|
-
import { IFluidCodeDetails } from '@fluidframework/container-definitions';
|
|
18
|
-
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
19
|
-
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
20
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
9
|
+
import { IContainer } from '@fluidframework/container-definitions/internal';
|
|
10
|
+
import { IContainerContext } from '@fluidframework/container-definitions/internal';
|
|
11
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
|
|
12
|
+
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
|
|
13
|
+
import { IDataStore } from '@fluidframework/runtime-definitions/internal';
|
|
14
|
+
import { IDocumentService } from '@fluidframework/driver-definitions/internal';
|
|
15
|
+
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions/internal';
|
|
16
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
|
|
17
|
+
import { IFluidCodeDetails } from '@fluidframework/container-definitions/internal';
|
|
18
|
+
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
|
|
19
|
+
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
|
|
20
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
21
21
|
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
22
22
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
23
23
|
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
24
|
-
import { IFluidModule } from '@fluidframework/container-definitions';
|
|
25
|
-
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions';
|
|
26
|
-
import { IHostLoader } from '@fluidframework/container-definitions';
|
|
27
|
-
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
28
|
-
import { ILoaderProps } from '@fluidframework/container-loader';
|
|
29
|
-
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime';
|
|
30
|
-
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
|
|
31
|
-
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
32
|
-
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
33
|
-
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions';
|
|
24
|
+
import { IFluidModule } from '@fluidframework/container-definitions/internal';
|
|
25
|
+
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions/internal';
|
|
26
|
+
import { IHostLoader } from '@fluidframework/container-definitions/internal';
|
|
27
|
+
import { ILoaderOptions } from '@fluidframework/container-definitions/internal';
|
|
28
|
+
import { ILoaderProps } from '@fluidframework/container-loader/internal';
|
|
29
|
+
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime/internal';
|
|
30
|
+
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions/internal';
|
|
31
|
+
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
|
|
32
|
+
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
|
|
33
|
+
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions/internal';
|
|
34
34
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
35
35
|
import { IRequestHeader } from '@fluidframework/core-interfaces';
|
|
36
|
-
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
36
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
|
|
37
37
|
import { IResponse } from '@fluidframework/core-interfaces';
|
|
38
|
-
import { IRuntime } from '@fluidframework/container-definitions';
|
|
38
|
+
import { IRuntime } from '@fluidframework/container-definitions/internal';
|
|
39
39
|
import { ISharedMap } from '@fluidframework/map';
|
|
40
|
-
import { ISummarizer } from '@fluidframework/container-runtime';
|
|
41
|
-
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
40
|
+
import { ISummarizer } from '@fluidframework/container-runtime/internal';
|
|
41
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions/internal';
|
|
42
42
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
43
43
|
import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
|
|
44
44
|
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
45
45
|
import { ITelemetryGenericEventExt } from '@fluidframework/telemetry-utils';
|
|
46
|
-
import { ITestDriver } from '@
|
|
47
|
-
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
48
|
-
import { Loader } from '@fluidframework/container-loader';
|
|
49
|
-
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
50
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
46
|
+
import { ITestDriver } from '@fluid-internal/test-driver-definitions';
|
|
47
|
+
import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
|
|
48
|
+
import { Loader } from '@fluidframework/container-loader/internal';
|
|
49
|
+
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
|
|
50
|
+
import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* @internal
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { IContainerContext, IRuntime } from "@fluidframework/container-definitions";
|
|
6
|
-
import { ContainerRuntime, IContainerRuntimeOptions } from "@fluidframework/container-runtime";
|
|
7
|
-
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions";
|
|
8
|
-
import { RuntimeRequestHandler } from "@fluidframework/request-handler";
|
|
9
|
-
import { IFluidDataStoreFactory } from "@fluidframework/runtime-definitions";
|
|
5
|
+
import { IContainerContext, IRuntime } from "@fluidframework/container-definitions/internal";
|
|
6
|
+
import { ContainerRuntime, IContainerRuntimeOptions } from "@fluidframework/container-runtime/internal";
|
|
7
|
+
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
|
|
8
|
+
import { RuntimeRequestHandler } from "@fluidframework/request-handler/internal";
|
|
9
|
+
import { IFluidDataStoreFactory } from "@fluidframework/runtime-definitions/internal";
|
|
10
10
|
/**
|
|
11
11
|
* Create a container runtime factory class that allows you to set runtime options
|
|
12
12
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testContainerRuntimeFactory.d.ts","sourceRoot":"","sources":["../src/testContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"testContainerRuntimeFactory.d.ts","sourceRoot":"","sources":["../src/testContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EACN,gBAAgB,EAEhB,wBAAwB,EACxB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAQ3F,OAAO,EACN,qBAAqB,EAGrB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACN,sBAAsB,EAEtB,MAAM,8CAA8C,CAAC;AAmCtD;;;GAGG;AACH,eAAO,MAAM,iCAAiC,yBACvB,uBAAuB;eAI9B,MAAM,oBACM,sBAAsB,mBACxB,wBAAwB,oBAUvB,qBAAqB,EAAE;cAZlC,MAAM;0BACM,sBAAsB;wBACxB,wBAAwB;yBAUvB,qBAAqB,EAAE;sCAKL,gBAAgB,GAAG,QAAQ,IAAI,CAAC;yCAkB7B,gBAAgB,GAAG,QAAQ,IAAI,CAAC;+BAiBpE,iBAAiB,YAChB,OAAO,GACf,QAAQ,QAAQ,GAAG,iBAAiB,CAAC;;;;;CA0DzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B;eAtHxB,MAAM,oBACM,sBAAsB,mBACxB,wBAAwB,oBAUvB,qBAAqB,EAAE;cAZlC,MAAM;0BACM,sBAAsB;wBACxB,wBAAwB;yBAUvB,qBAAqB,EAAE;sCAKL,gBAAgB,GAAG,QAAQ,IAAI,CAAC;yCAkB7B,gBAAgB,GAAG,QAAQ,IAAI,CAAC;+BAiBpE,iBAAiB,YAChB,OAAO,GACf,QAAQ,QAAQ,GAAG,iBAAiB,CAAC;;;;;CAgEoD,CAAC"}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { ContainerRuntime, DefaultSummaryConfiguration, } from "@fluidframework/container-runtime";
|
|
6
|
-
import { assert } from "@fluidframework/core-utils";
|
|
5
|
+
import { ContainerRuntime, DefaultSummaryConfiguration, } from "@fluidframework/container-runtime/internal";
|
|
6
|
+
import { assert } from "@fluidframework/core-utils/internal";
|
|
7
|
+
import {
|
|
7
8
|
// eslint-disable-next-line import/no-deprecated
|
|
8
|
-
|
|
9
|
-
import { RequestParser, RuntimeFactoryHelper } from "@fluidframework/runtime-utils";
|
|
9
|
+
buildRuntimeRequestHandler, } from "@fluidframework/request-handler/internal";
|
|
10
|
+
import { RequestParser, RuntimeFactoryHelper } from "@fluidframework/runtime-utils/internal";
|
|
10
11
|
const backCompat_DefaultRouteRequestHandler = (defaultRootId) => {
|
|
11
12
|
return async (request, runtime) => {
|
|
12
13
|
const parser = RequestParser.create(request);
|
|
@@ -68,7 +69,9 @@ export const createTestContainerRuntimeFactory = (containerRuntimeCtor) => {
|
|
|
68
69
|
return containerRuntimeCtor.load(context, [
|
|
69
70
|
["default", Promise.resolve(this.dataStoreFactory)],
|
|
70
71
|
[this.type, Promise.resolve(this.dataStoreFactory)],
|
|
71
|
-
],
|
|
72
|
+
],
|
|
73
|
+
// eslint-disable-next-line import/no-deprecated
|
|
74
|
+
buildRuntimeRequestHandler(backCompat_DefaultRouteRequestHandler("default"), ...this.requestHandlers), this.runtimeOptions, context.scope, existing);
|
|
72
75
|
}
|
|
73
76
|
const provideEntryPoint = async (runtime) => {
|
|
74
77
|
const entryPoint = await runtime.getAliasedDataStoreEntryPoint("default");
|
|
@@ -94,6 +97,7 @@ export const createTestContainerRuntimeFactory = (containerRuntimeCtor) => {
|
|
|
94
97
|
["default", Promise.resolve(this.dataStoreFactory)],
|
|
95
98
|
[this.type, Promise.resolve(this.dataStoreFactory)],
|
|
96
99
|
],
|
|
100
|
+
// eslint-disable-next-line import/no-deprecated
|
|
97
101
|
requestHandler: buildRuntimeRequestHandler(getDefaultObject, ...this.requestHandlers),
|
|
98
102
|
provideEntryPoint,
|
|
99
103
|
// ! This prop is needed for back-compat. Can be removed in 2.0.0-internal.8.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testContainerRuntimeFactory.js","sourceRoot":"","sources":["../src/testContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACN,gBAAgB,EAChB,2BAA2B,GAE3B,MAAM,mCAAmC,CAAC;AAQ3C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,gDAAgD;AAChD,OAAO,EAAyB,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAKpG,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAOpF,MAAM,qCAAqC,GAAG,CAAC,aAAqB,EAAE,EAAE;IACvE,OAAO,KAAK,EAAE,OAAiB,EAAE,OAA0B,EAAE,EAAE;QAC9D,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;YAClC,OACC,OACA,CAAC,mBAAmB,CAAC,aAAa,CAAC;gBACnC,GAAG,EAAE,IAAI,aAAa,GAAG,MAAM,CAAC,KAAK,EAAE;gBACvC,OAAO,EAAE,OAAO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7C,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;oBAClC,oEAAoE;oBACpE,OAAQ,OAA4B,CAAC,aAAa,CAAC;wBAClD,GAAG,EAAE,WAAW,MAAM,CAAC,KAAK,EAAE;wBAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;qBACxB,CAAC,CAAC;iBACH;gBACD,OAAO,SAAS,CAAC,CAAC,kBAAkB;YACrC,CAAC,CAAC;YACF,OAAO,oBAAoB,CAAC,WAAW,CAAC;gBACvC,OAAO;gBACP,eAAe,EAAE;oBAChB,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;oBACnD,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;iBACnD;gBACD,cAAc,EAAE,0BAA0B,CACzC,gBAAgB,EAChB,GAAG,IAAI,CAAC,eAAe,CACvB;gBACD,iBAAiB;gBACjB,gFAAgF;gBAChF,oBAAoB,EAAE,iBAAiB;gBACvC,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,cAAc,EAAE,OAAO,CAAC,KAAK;gBAC7B,QAAQ;aACD,CAAC,CAAC;QACX,CAAC;KACD,CAAC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,iCAAiC,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IContainerContext, IRuntime } from \"@fluidframework/container-definitions\";\nimport {\n\tContainerRuntime,\n\tDefaultSummaryConfiguration,\n\tIContainerRuntimeOptions,\n} from \"@fluidframework/container-runtime\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport {\n\tFluidObject,\n\tIFluidHandleContext,\n\tIRequest,\n\tIResponse,\n} from \"@fluidframework/core-interfaces\";\nimport { assert } from \"@fluidframework/core-utils\";\n// eslint-disable-next-line import/no-deprecated\nimport { RuntimeRequestHandler, buildRuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport { RequestParser, RuntimeFactoryHelper } from \"@fluidframework/runtime-utils\";\n\ninterface backCompat_IFluidRouter {\n\tIFluidRouter?: backCompat_IFluidRouter;\n\trequest(request: IRequest): Promise<IResponse>;\n}\n\nconst backCompat_DefaultRouteRequestHandler = (defaultRootId: string) => {\n\treturn async (request: IRequest, runtime: IContainerRuntime) => {\n\t\tconst parser = RequestParser.create(request);\n\t\tif (parser.pathParts.length === 0) {\n\t\t\treturn (\n\t\t\t\truntime as any as Required<FluidObject<IFluidHandleContext>>\n\t\t\t).IFluidHandleContext.resolveHandle({\n\t\t\t\turl: `/${defaultRootId}${parser.query}`,\n\t\t\t\theaders: request.headers,\n\t\t\t});\n\t\t}\n\t\treturn undefined; // continue search\n\t};\n};\n\ninterface backCompat_ContainerRuntime {\n\tload(\n\t\tcontext: IContainerContext,\n\t\tregistryEntries: NamedFluidDataStoreRegistryEntries,\n\t\trequestHandler?: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>,\n\t\truntimeOptions?: IContainerRuntimeOptions,\n\t\tcontainerScope?: FluidObject,\n\t\texisting?: boolean,\n\t\tcontainerRuntimeCtor?: typeof ContainerRuntime,\n\t): Promise<ContainerRuntime>;\n}\n\n/**\n * Create a container runtime factory class that allows you to set runtime options\n * @internal\n */\nexport const createTestContainerRuntimeFactory = (\n\tcontainerRuntimeCtor: typeof ContainerRuntime,\n) => {\n\treturn class extends RuntimeFactoryHelper {\n\t\tconstructor(\n\t\t\tpublic type: string,\n\t\t\tpublic dataStoreFactory: IFluidDataStoreFactory,\n\t\t\tpublic runtimeOptions: IContainerRuntimeOptions = {\n\t\t\t\tsummaryOptions: {\n\t\t\t\t\tsummaryConfigOverrides: {\n\t\t\t\t\t\t...DefaultSummaryConfiguration,\n\t\t\t\t\t\t...{\n\t\t\t\t\t\t\tinitialSummarizerDelayMs: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tpublic requestHandlers: RuntimeRequestHandler[] = [],\n\t\t) {\n\t\t\tsuper();\n\t\t}\n\n\t\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\t\t// Back-compat - old code does not return IDataStore for rootContext.attachRuntime() call!\n\t\t\t// Thus need to leverage old API createDetachedRootDataStore() that is gone in latest releases.\n\t\t\tconst rootContext =\n\t\t\t\t\"createDetachedRootDataStore\" in runtime\n\t\t\t\t\t? (runtime as any).createDetachedRootDataStore([this.type], \"default\")\n\t\t\t\t\t: runtime.createDetachedDataStore([this.type], \"default\");\n\n\t\t\tconst rootRuntime = await this.dataStoreFactory.instantiateDataStore(\n\t\t\t\trootContext,\n\t\t\t\t/* existing */ false,\n\t\t\t);\n\t\t\tconst dataStore = await rootContext.attachRuntime(this.dataStoreFactory, rootRuntime);\n\n\t\t\tconst result = await dataStore?.trySetAlias(\"default\");\n\t\t\tassert(result === \"Success\" || result === undefined, \"success\");\n\t\t}\n\n\t\tpublic async instantiateFromExisting(runtime: ContainerRuntime): Promise<void> {\n\t\t\t// Validate we can load root data stores.\n\t\t\t// We should be able to load any data store that was created in initializeFirstTime!\n\t\t\t// Note: We use the deprecated `getRootDataStore` from v1.X here to allow for cross-major version compat\n\t\t\t// testing. Can be removed when we no longer support v1.X.\n\t\t\tawait (runtime.getAliasedDataStoreEntryPoint?.(\"default\") ??\n\t\t\t\t(\n\t\t\t\t\truntime as any as {\n\t\t\t\t\t\tgetRootDataStore(\n\t\t\t\t\t\t\tid: string,\n\t\t\t\t\t\t\twait?: boolean,\n\t\t\t\t\t\t): Promise<backCompat_IFluidRouter>;\n\t\t\t\t\t}\n\t\t\t\t).getRootDataStore(\"default\"));\n\t\t}\n\n\t\tasync preInitialize(\n\t\t\tcontext: IContainerContext,\n\t\t\texisting: boolean,\n\t\t): Promise<IRuntime & IContainerRuntime> {\n\t\t\tif (containerRuntimeCtor.loadRuntime === undefined) {\n\t\t\t\t// Note: We use the deprecated `load` from v1.X here to allow for cross-major version compat testing.\n\t\t\t\t// Can be removed when we no longer support v1.X.\n\t\t\t\treturn (containerRuntimeCtor as any as backCompat_ContainerRuntime).load(\n\t\t\t\t\tcontext,\n\t\t\t\t\t[\n\t\t\t\t\t\t[\"default\", Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t\t\t[this.type, Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t\t],\n\t\t\t\t\tbuildRuntimeRequestHandler(\n\t\t\t\t\t\tbackCompat_DefaultRouteRequestHandler(\"default\"),\n\t\t\t\t\t\t...this.requestHandlers,\n\t\t\t\t\t),\n\t\t\t\t\tthis.runtimeOptions,\n\t\t\t\t\tcontext.scope,\n\t\t\t\t\texisting,\n\t\t\t\t);\n\t\t\t}\n\t\t\tconst provideEntryPoint = async (runtime: IContainerRuntime) => {\n\t\t\t\tconst entryPoint = await runtime.getAliasedDataStoreEntryPoint(\"default\");\n\t\t\t\tif (entryPoint === undefined) {\n\t\t\t\t\tthrow new Error(\"default dataStore must exist\");\n\t\t\t\t}\n\t\t\t\treturn entryPoint.get();\n\t\t\t};\n\t\t\tconst getDefaultObject = async (request: IRequest, runtime: IContainerRuntime) => {\n\t\t\t\tconst parser = RequestParser.create(request);\n\t\t\t\tif (parser.pathParts.length === 0) {\n\t\t\t\t\t// This cast is safe as ContainerRuntime.loadRuntime is called below\n\t\t\t\t\treturn (runtime as ContainerRuntime).resolveHandle({\n\t\t\t\t\t\turl: `/default${parser.query}`,\n\t\t\t\t\t\theaders: request.headers,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn undefined; // continue search\n\t\t\t};\n\t\t\treturn containerRuntimeCtor.loadRuntime({\n\t\t\t\tcontext,\n\t\t\t\tregistryEntries: [\n\t\t\t\t\t[\"default\", Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t\t[this.type, Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t],\n\t\t\t\trequestHandler: buildRuntimeRequestHandler(\n\t\t\t\t\tgetDefaultObject,\n\t\t\t\t\t...this.requestHandlers,\n\t\t\t\t),\n\t\t\t\tprovideEntryPoint,\n\t\t\t\t// ! This prop is needed for back-compat. Can be removed in 2.0.0-internal.8.0.0\n\t\t\t\tinitializeEntryPoint: provideEntryPoint,\n\t\t\t\truntimeOptions: this.runtimeOptions,\n\t\t\t\tcontainerScope: context.scope,\n\t\t\t\texisting,\n\t\t\t} as any);\n\t\t}\n\t};\n};\n\n/**\n * A container runtime factory that allows you to set runtime options\n * @internal\n */\nexport const TestContainerRuntimeFactory = createTestContainerRuntimeFactory(ContainerRuntime);\n"]}
|
|
1
|
+
{"version":3,"file":"testContainerRuntimeFactory.js","sourceRoot":"","sources":["../src/testContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACN,gBAAgB,EAChB,2BAA2B,GAE3B,MAAM,4CAA4C,CAAC;AAQpD,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAC7D,OAAO;AAEN,gDAAgD;AAChD,0BAA0B,GAC1B,MAAM,0CAA0C,CAAC;AAKlD,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAO7F,MAAM,qCAAqC,GAAG,CAAC,aAAqB,EAAE,EAAE;IACvE,OAAO,KAAK,EAAE,OAAiB,EAAE,OAA0B,EAAE,EAAE;QAC9D,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;YAClC,OACC,OACA,CAAC,mBAAmB,CAAC,aAAa,CAAC;gBACnC,GAAG,EAAE,IAAI,aAAa,GAAG,MAAM,CAAC,KAAK,EAAE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,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBAC7C,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;oBAClC,oEAAoE;oBACpE,OAAQ,OAA4B,CAAC,aAAa,CAAC;wBAClD,GAAG,EAAE,WAAW,MAAM,CAAC,KAAK,EAAE;wBAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;qBACxB,CAAC,CAAC;iBACH;gBACD,OAAO,SAAS,CAAC,CAAC,kBAAkB;YACrC,CAAC,CAAC;YACF,OAAO,oBAAoB,CAAC,WAAW,CAAC;gBACvC,OAAO;gBACP,eAAe,EAAE;oBAChB,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;oBACnD,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;iBACnD;gBACD,gDAAgD;gBAChD,cAAc,EAAE,0BAA0B,CACzC,gBAAgB,EAChB,GAAG,IAAI,CAAC,eAAe,CACvB;gBACD,iBAAiB;gBACjB,gFAAgF;gBAChF,oBAAoB,EAAE,iBAAiB;gBACvC,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,cAAc,EAAE,OAAO,CAAC,KAAK;gBAC7B,QAAQ;aACD,CAAC,CAAC;QACX,CAAC;KACD,CAAC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,iCAAiC,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IContainerContext, IRuntime } from \"@fluidframework/container-definitions/internal\";\nimport {\n\tContainerRuntime,\n\tDefaultSummaryConfiguration,\n\tIContainerRuntimeOptions,\n} from \"@fluidframework/container-runtime/internal\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport {\n\tFluidObject,\n\tIFluidHandleContext,\n\tIRequest,\n\tIResponse,\n} from \"@fluidframework/core-interfaces\";\nimport { assert } from \"@fluidframework/core-utils/internal\";\nimport {\n\tRuntimeRequestHandler,\n\t// eslint-disable-next-line import/no-deprecated\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler/internal\";\nimport {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions/internal\";\nimport { RequestParser, RuntimeFactoryHelper } from \"@fluidframework/runtime-utils/internal\";\n\ninterface backCompat_IFluidRouter {\n\tIFluidRouter?: backCompat_IFluidRouter;\n\trequest(request: IRequest): Promise<IResponse>;\n}\n\nconst backCompat_DefaultRouteRequestHandler = (defaultRootId: string) => {\n\treturn async (request: IRequest, runtime: IContainerRuntime) => {\n\t\tconst parser = RequestParser.create(request);\n\t\tif (parser.pathParts.length === 0) {\n\t\t\treturn (\n\t\t\t\truntime as any as Required<FluidObject<IFluidHandleContext>>\n\t\t\t).IFluidHandleContext.resolveHandle({\n\t\t\t\turl: `/${defaultRootId}${parser.query}`,\n\t\t\t\theaders: request.headers,\n\t\t\t});\n\t\t}\n\t\treturn undefined; // continue search\n\t};\n};\n\ninterface backCompat_ContainerRuntime {\n\tload(\n\t\tcontext: IContainerContext,\n\t\tregistryEntries: NamedFluidDataStoreRegistryEntries,\n\t\trequestHandler?: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>,\n\t\truntimeOptions?: IContainerRuntimeOptions,\n\t\tcontainerScope?: FluidObject,\n\t\texisting?: boolean,\n\t\tcontainerRuntimeCtor?: typeof ContainerRuntime,\n\t): Promise<ContainerRuntime>;\n}\n\n/**\n * Create a container runtime factory class that allows you to set runtime options\n * @internal\n */\nexport const createTestContainerRuntimeFactory = (\n\tcontainerRuntimeCtor: typeof ContainerRuntime,\n) => {\n\treturn class extends RuntimeFactoryHelper {\n\t\tconstructor(\n\t\t\tpublic type: string,\n\t\t\tpublic dataStoreFactory: IFluidDataStoreFactory,\n\t\t\tpublic runtimeOptions: IContainerRuntimeOptions = {\n\t\t\t\tsummaryOptions: {\n\t\t\t\t\tsummaryConfigOverrides: {\n\t\t\t\t\t\t...DefaultSummaryConfiguration,\n\t\t\t\t\t\t...{\n\t\t\t\t\t\t\tinitialSummarizerDelayMs: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tpublic requestHandlers: RuntimeRequestHandler[] = [],\n\t\t) {\n\t\t\tsuper();\n\t\t}\n\n\t\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\t\t// Back-compat - old code does not return IDataStore for rootContext.attachRuntime() call!\n\t\t\t// Thus need to leverage old API createDetachedRootDataStore() that is gone in latest releases.\n\t\t\tconst rootContext =\n\t\t\t\t\"createDetachedRootDataStore\" in runtime\n\t\t\t\t\t? (runtime as any).createDetachedRootDataStore([this.type], \"default\")\n\t\t\t\t\t: runtime.createDetachedDataStore([this.type], \"default\");\n\n\t\t\tconst rootRuntime = await this.dataStoreFactory.instantiateDataStore(\n\t\t\t\trootContext,\n\t\t\t\t/* existing */ false,\n\t\t\t);\n\t\t\tconst dataStore = await rootContext.attachRuntime(this.dataStoreFactory, rootRuntime);\n\n\t\t\tconst result = await dataStore?.trySetAlias(\"default\");\n\t\t\tassert(result === \"Success\" || result === undefined, \"success\");\n\t\t}\n\n\t\tpublic async instantiateFromExisting(runtime: ContainerRuntime): Promise<void> {\n\t\t\t// Validate we can load root data stores.\n\t\t\t// We should be able to load any data store that was created in initializeFirstTime!\n\t\t\t// Note: We use the deprecated `getRootDataStore` from v1.X here to allow for cross-major version compat\n\t\t\t// testing. Can be removed when we no longer support v1.X.\n\t\t\tawait (runtime.getAliasedDataStoreEntryPoint?.(\"default\") ??\n\t\t\t\t(\n\t\t\t\t\truntime as any as {\n\t\t\t\t\t\tgetRootDataStore(\n\t\t\t\t\t\t\tid: string,\n\t\t\t\t\t\t\twait?: boolean,\n\t\t\t\t\t\t): Promise<backCompat_IFluidRouter>;\n\t\t\t\t\t}\n\t\t\t\t).getRootDataStore(\"default\"));\n\t\t}\n\n\t\tasync preInitialize(\n\t\t\tcontext: IContainerContext,\n\t\t\texisting: boolean,\n\t\t): Promise<IRuntime & IContainerRuntime> {\n\t\t\tif (containerRuntimeCtor.loadRuntime === undefined) {\n\t\t\t\t// Note: We use the deprecated `load` from v1.X here to allow for cross-major version compat testing.\n\t\t\t\t// Can be removed when we no longer support v1.X.\n\t\t\t\treturn (containerRuntimeCtor as any as backCompat_ContainerRuntime).load(\n\t\t\t\t\tcontext,\n\t\t\t\t\t[\n\t\t\t\t\t\t[\"default\", Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t\t\t[this.type, Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t\t],\n\t\t\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\t\t\tbuildRuntimeRequestHandler(\n\t\t\t\t\t\tbackCompat_DefaultRouteRequestHandler(\"default\"),\n\t\t\t\t\t\t...this.requestHandlers,\n\t\t\t\t\t),\n\t\t\t\t\tthis.runtimeOptions,\n\t\t\t\t\tcontext.scope,\n\t\t\t\t\texisting,\n\t\t\t\t);\n\t\t\t}\n\t\t\tconst provideEntryPoint = async (runtime: IContainerRuntime) => {\n\t\t\t\tconst entryPoint = await runtime.getAliasedDataStoreEntryPoint(\"default\");\n\t\t\t\tif (entryPoint === undefined) {\n\t\t\t\t\tthrow new Error(\"default dataStore must exist\");\n\t\t\t\t}\n\t\t\t\treturn entryPoint.get();\n\t\t\t};\n\t\t\tconst getDefaultObject = async (request: IRequest, runtime: IContainerRuntime) => {\n\t\t\t\tconst parser = RequestParser.create(request);\n\t\t\t\tif (parser.pathParts.length === 0) {\n\t\t\t\t\t// This cast is safe as ContainerRuntime.loadRuntime is called below\n\t\t\t\t\treturn (runtime as ContainerRuntime).resolveHandle({\n\t\t\t\t\t\turl: `/default${parser.query}`,\n\t\t\t\t\t\theaders: request.headers,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn undefined; // continue search\n\t\t\t};\n\t\t\treturn containerRuntimeCtor.loadRuntime({\n\t\t\t\tcontext,\n\t\t\t\tregistryEntries: [\n\t\t\t\t\t[\"default\", Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t\t[this.type, Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t],\n\t\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\t\trequestHandler: buildRuntimeRequestHandler(\n\t\t\t\t\tgetDefaultObject,\n\t\t\t\t\t...this.requestHandlers,\n\t\t\t\t),\n\t\t\t\tprovideEntryPoint,\n\t\t\t\t// ! This prop is needed for back-compat. Can be removed in 2.0.0-internal.8.0.0\n\t\t\t\tinitializeEntryPoint: provideEntryPoint,\n\t\t\t\truntimeOptions: this.runtimeOptions,\n\t\t\t\tcontainerScope: context.scope,\n\t\t\t\texisting,\n\t\t\t} as any);\n\t\t}\n\t};\n};\n\n/**\n * A container runtime factory that allows you to set runtime options\n * @internal\n */\nexport const TestContainerRuntimeFactory = createTestContainerRuntimeFactory(ContainerRuntime);\n"]}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { ContainerRuntimeFactoryWithDefaultDataStore } from "@fluidframework/aqueduct";
|
|
6
|
-
import { IContainerRuntimeOptions } from "@fluidframework/container-runtime";
|
|
7
|
-
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions";
|
|
5
|
+
import { ContainerRuntimeFactoryWithDefaultDataStore } from "@fluidframework/aqueduct/internal";
|
|
6
|
+
import { IContainerRuntimeOptions } from "@fluidframework/container-runtime/internal";
|
|
7
|
+
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
|
|
8
8
|
import { FluidObject } from "@fluidframework/core-interfaces";
|
|
9
|
-
import { RuntimeRequestHandler } from "@fluidframework/request-handler";
|
|
10
|
-
import { IFluidDataStoreFactory, NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions";
|
|
9
|
+
import { RuntimeRequestHandler } from "@fluidframework/request-handler/internal";
|
|
10
|
+
import { IFluidDataStoreFactory, NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions/internal";
|
|
11
11
|
/**
|
|
12
12
|
* ! Note: This function is purely needed for back-compat as the constructor argument structure was changed
|
|
13
13
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testContainerRuntimeFactoryWithDefaultDataStore.d.ts","sourceRoot":"","sources":["../src/testContainerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,2CAA2C,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"testContainerRuntimeFactoryWithDefaultDataStore.d.ts","sourceRoot":"","sources":["../src/testContainerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,2CAA2C,EAAE,MAAM,mCAAmC,CAAC;AAChG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EACN,sBAAsB,EACtB,kCAAkC,EAClC,MAAM,8CAA8C,CAAC;AAUtD;;;GAGG;AACH,eAAO,MAAM,iDAAiD;oBAG5C,sBAAsB;;0BAEhB,GAAG;;;mCAGK,iBAAiB,KAAK,QAAQ,WAAW,CAAC;MAEvE,2CAuBF,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { ContainerRuntimeFactoryWithDefaultDataStore } from "@fluidframework/aqueduct";
|
|
5
|
+
import { ContainerRuntimeFactoryWithDefaultDataStore } from "@fluidframework/aqueduct/internal";
|
|
6
6
|
const getDefaultFluidObject = async (runtime) => {
|
|
7
7
|
const entryPoint = await runtime.getAliasedDataStoreEntryPoint("default");
|
|
8
8
|
if (entryPoint === undefined) {
|