@fluid-experimental/data-object-base 2.0.0-rc.2.0.2 → 2.0.0-rc.3.0.1
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/dist/runtimeFactory.d.ts +6 -6
- package/dist/runtimeFactory.d.ts.map +1 -1
- package/dist/runtimeFactory.js +6 -7
- package/dist/runtimeFactory.js.map +1 -1
- package/lib/runtimeFactory.d.ts +6 -6
- package/lib/runtimeFactory.d.ts.map +1 -1
- package/lib/runtimeFactory.js +4 -3
- package/lib/runtimeFactory.js.map +1 -1
- package/package.json +27 -61
- package/dist/data-object-base-alpha.d.ts +0 -20
- package/dist/data-object-base-beta.d.ts +0 -32
- package/dist/data-object-base-public.d.ts +0 -32
- package/dist/data-object-base-untrimmed.d.ts +0 -43
- package/lib/data-object-base-alpha.d.ts +0 -20
- package/lib/data-object-base-beta.d.ts +0 -32
- package/lib/data-object-base-public.d.ts +0 -32
- package/lib/data-object-base-untrimmed.d.ts +0 -43
- package/lib/test/tsconfig.tsbuildinfo +0 -1
- /package/{dist → lib}/tsdoc-metadata.json +0 -0
package/dist/runtimeFactory.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { type IContainerContext } from "@fluidframework/container-definitions";
|
|
6
|
-
import { ContainerRuntime } from "@fluidframework/container-runtime";
|
|
7
|
-
import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
|
|
5
|
+
import { type IContainerContext } from "@fluidframework/container-definitions/internal";
|
|
6
|
+
import { ContainerRuntime } from "@fluidframework/container-runtime/internal";
|
|
7
|
+
import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
|
|
8
8
|
import { type FluidObject } from "@fluidframework/core-interfaces";
|
|
9
|
-
import { type RuntimeRequestHandler } from "@fluidframework/request-handler";
|
|
10
|
-
import { type IFluidDataStoreFactory } from "@fluidframework/runtime-definitions";
|
|
11
|
-
import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils";
|
|
9
|
+
import { type RuntimeRequestHandler } from "@fluidframework/request-handler/internal";
|
|
10
|
+
import { type IFluidDataStoreFactory } from "@fluidframework/runtime-definitions/internal";
|
|
11
|
+
import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils/internal";
|
|
12
12
|
/**
|
|
13
13
|
* {@link RuntimeFactory} construction properties.
|
|
14
14
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EACN,KAAK,qBAAqB,EAG1B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACN,KAAK,sBAAsB,EAE3B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI9E;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,mBAAmB,EAAE,sBAAsB,CAAC;IAC5C,cAAc,EAAE,sBAAsB,EAAE,CAAC;IACzC;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC1C,iBAAiB,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CACxE;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,oBAAoB;IACvD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqC;IAE9D,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAyB;IAC7D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA0B;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuD;gBAEtE,KAAK,EAAE,mBAAmB;IAehC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9D,aAAa,CACzB,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,OAAO,GACf,OAAO,CAAC,gBAAgB,CAAC;CAY5B"}
|
package/dist/runtimeFactory.js
CHANGED
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.RuntimeFactory = void 0;
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const runtime_utils_1 = require("@fluidframework/runtime-utils");
|
|
8
|
+
const internal_1 = require("@fluidframework/container-runtime/internal");
|
|
9
|
+
const internal_2 = require("@fluidframework/request-handler/internal");
|
|
10
|
+
const internal_3 = require("@fluidframework/runtime-utils/internal");
|
|
12
11
|
const defaultStoreId = "";
|
|
13
12
|
/**
|
|
14
13
|
* @internal
|
|
15
14
|
*/
|
|
16
|
-
class RuntimeFactory extends
|
|
15
|
+
class RuntimeFactory extends internal_3.RuntimeFactoryHelper {
|
|
17
16
|
constructor(props) {
|
|
18
17
|
super();
|
|
19
18
|
this.defaultStoreFactory = props.defaultStoreFactory;
|
|
@@ -29,12 +28,12 @@ class RuntimeFactory extends runtime_utils_1.RuntimeFactoryHelper {
|
|
|
29
28
|
await dataStore.trySetAlias(defaultStoreId);
|
|
30
29
|
}
|
|
31
30
|
async preInitialize(context, existing) {
|
|
32
|
-
const runtime = await
|
|
31
|
+
const runtime = await internal_1.ContainerRuntime.loadRuntime({
|
|
33
32
|
context,
|
|
34
33
|
registryEntries: this.registry,
|
|
35
34
|
existing,
|
|
36
35
|
// eslint-disable-next-line import/no-deprecated
|
|
37
|
-
requestHandler: (0,
|
|
36
|
+
requestHandler: (0, internal_2.buildRuntimeRequestHandler)(...this.requestHandlers),
|
|
38
37
|
provideEntryPoint: this.provideEntryPoint,
|
|
39
38
|
});
|
|
40
39
|
return runtime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,
|
|
1
|
+
{"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yEAA8E;AAG9E,uEAIkD;AAKlD,qEAA8E;AAE9E,MAAM,cAAc,GAAG,EAAW,CAAC;AAgBnC;;GAEG;AACH,MAAa,cAAe,SAAQ,+BAAoB;IAOvD,YAAmB,KAA0B;QAC5C,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QACrD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACnD,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAE1E,IAAI,CAAC,QAAQ,GAAG,CACf,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC;YAChD,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,CAAC,GAAG,cAAc,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAChD,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAuC,CAAC;IACnF,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAAyB;QAC1D,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC/E,MAAM,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,aAAa,CACzB,OAA0B,EAC1B,QAAiB;QAEjB,MAAM,OAAO,GAAqB,MAAM,2BAAgB,CAAC,WAAW,CAAC;YACpE,OAAO;YACP,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,QAAQ;YACR,gDAAgD;YAChD,cAAc,EAAE,IAAA,qCAA0B,EAAC,GAAG,IAAI,CAAC,eAAe,CAAC;YACnE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AA1CD,wCA0CC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { type IContainerContext } from \"@fluidframework/container-definitions/internal\";\nimport { ContainerRuntime } from \"@fluidframework/container-runtime/internal\";\nimport { type IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport { type FluidObject } from \"@fluidframework/core-interfaces\";\nimport {\n\ttype RuntimeRequestHandler,\n\t// eslint-disable-next-line import/no-deprecated\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler/internal\";\nimport {\n\ttype IFluidDataStoreFactory,\n\ttype NamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions/internal\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils/internal\";\n\nconst defaultStoreId = \"\" as const;\n\n/**\n * {@link RuntimeFactory} construction properties.\n * @internal\n */\nexport interface RuntimeFactoryProps {\n\tdefaultStoreFactory: IFluidDataStoreFactory;\n\tstoreFactories: IFluidDataStoreFactory[];\n\t/**\n\t * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequestHandlers?: RuntimeRequestHandler[];\n\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n}\n\n/**\n * @internal\n */\nexport class RuntimeFactory extends RuntimeFactoryHelper {\n\tprivate readonly registry: NamedFluidDataStoreRegistryEntries;\n\n\tprivate readonly defaultStoreFactory: IFluidDataStoreFactory;\n\tprivate readonly requestHandlers: RuntimeRequestHandler[];\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\tpublic constructor(props: RuntimeFactoryProps) {\n\t\tsuper();\n\n\t\tthis.defaultStoreFactory = props.defaultStoreFactory;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tthis.requestHandlers = props.requestHandlers ?? [];\n\t\tconst storeFactories = props.storeFactories ?? [this.defaultStoreFactory];\n\n\t\tthis.registry = (\n\t\t\tstoreFactories.includes(this.defaultStoreFactory)\n\t\t\t\t? storeFactories\n\t\t\t\t: [...storeFactories, this.defaultStoreFactory]\n\t\t).map((factory) => [factory.type, factory]) as NamedFluidDataStoreRegistryEntries;\n\t}\n\n\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultStoreFactory.type);\n\t\tawait dataStore.trySetAlias(defaultStoreId);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<ContainerRuntime> {\n\t\tconst runtime: ContainerRuntime = await ContainerRuntime.loadRuntime({\n\t\t\tcontext,\n\t\t\tregistryEntries: this.registry,\n\t\t\texisting,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandler: buildRuntimeRequestHandler(...this.requestHandlers),\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\n\t\treturn runtime;\n\t}\n}\n"]}
|
package/lib/runtimeFactory.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { type IContainerContext } from "@fluidframework/container-definitions";
|
|
6
|
-
import { ContainerRuntime } from "@fluidframework/container-runtime";
|
|
7
|
-
import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
|
|
5
|
+
import { type IContainerContext } from "@fluidframework/container-definitions/internal";
|
|
6
|
+
import { ContainerRuntime } from "@fluidframework/container-runtime/internal";
|
|
7
|
+
import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
|
|
8
8
|
import { type FluidObject } from "@fluidframework/core-interfaces";
|
|
9
|
-
import { type RuntimeRequestHandler } from "@fluidframework/request-handler";
|
|
10
|
-
import { type IFluidDataStoreFactory } from "@fluidframework/runtime-definitions";
|
|
11
|
-
import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils";
|
|
9
|
+
import { type RuntimeRequestHandler } from "@fluidframework/request-handler/internal";
|
|
10
|
+
import { type IFluidDataStoreFactory } from "@fluidframework/runtime-definitions/internal";
|
|
11
|
+
import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils/internal";
|
|
12
12
|
/**
|
|
13
13
|
* {@link RuntimeFactory} construction properties.
|
|
14
14
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EACN,KAAK,qBAAqB,EAG1B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACN,KAAK,sBAAsB,EAE3B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI9E;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,mBAAmB,EAAE,sBAAsB,CAAC;IAC5C,cAAc,EAAE,sBAAsB,EAAE,CAAC;IACzC;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC1C,iBAAiB,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CACxE;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,oBAAoB;IACvD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqC;IAE9D,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAyB;IAC7D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA0B;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuD;gBAEtE,KAAK,EAAE,mBAAmB;IAehC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9D,aAAa,CACzB,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,OAAO,GACf,OAAO,CAAC,gBAAgB,CAAC;CAY5B"}
|
package/lib/runtimeFactory.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { ContainerRuntime } from "@fluidframework/container-runtime";
|
|
5
|
+
import { ContainerRuntime } from "@fluidframework/container-runtime/internal";
|
|
6
|
+
import {
|
|
6
7
|
// eslint-disable-next-line import/no-deprecated
|
|
7
|
-
|
|
8
|
-
import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils";
|
|
8
|
+
buildRuntimeRequestHandler, } from "@fluidframework/request-handler/internal";
|
|
9
|
+
import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils/internal";
|
|
9
10
|
const defaultStoreId = "";
|
|
10
11
|
/**
|
|
11
12
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAG9E,OAAO;AAEN,gDAAgD;AAChD,0BAA0B,GAC1B,MAAM,0CAA0C,CAAC;AAKlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,cAAc,GAAG,EAAW,CAAC;AAgBnC;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,oBAAoB;IAOvD,YAAmB,KAA0B;QAC5C,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QACrD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACnD,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAE1E,IAAI,CAAC,QAAQ,GAAG,CACf,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC;YAChD,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,CAAC,GAAG,cAAc,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAChD,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAuC,CAAC;IACnF,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAAyB;QAC1D,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC/E,MAAM,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,aAAa,CACzB,OAA0B,EAC1B,QAAiB;QAEjB,MAAM,OAAO,GAAqB,MAAM,gBAAgB,CAAC,WAAW,CAAC;YACpE,OAAO;YACP,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,QAAQ;YACR,gDAAgD;YAChD,cAAc,EAAE,0BAA0B,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;YACnE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IAChB,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { type IContainerContext } from \"@fluidframework/container-definitions/internal\";\nimport { ContainerRuntime } from \"@fluidframework/container-runtime/internal\";\nimport { type IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport { type FluidObject } from \"@fluidframework/core-interfaces\";\nimport {\n\ttype RuntimeRequestHandler,\n\t// eslint-disable-next-line import/no-deprecated\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler/internal\";\nimport {\n\ttype IFluidDataStoreFactory,\n\ttype NamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions/internal\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils/internal\";\n\nconst defaultStoreId = \"\" as const;\n\n/**\n * {@link RuntimeFactory} construction properties.\n * @internal\n */\nexport interface RuntimeFactoryProps {\n\tdefaultStoreFactory: IFluidDataStoreFactory;\n\tstoreFactories: IFluidDataStoreFactory[];\n\t/**\n\t * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequestHandlers?: RuntimeRequestHandler[];\n\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n}\n\n/**\n * @internal\n */\nexport class RuntimeFactory extends RuntimeFactoryHelper {\n\tprivate readonly registry: NamedFluidDataStoreRegistryEntries;\n\n\tprivate readonly defaultStoreFactory: IFluidDataStoreFactory;\n\tprivate readonly requestHandlers: RuntimeRequestHandler[];\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\tpublic constructor(props: RuntimeFactoryProps) {\n\t\tsuper();\n\n\t\tthis.defaultStoreFactory = props.defaultStoreFactory;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tthis.requestHandlers = props.requestHandlers ?? [];\n\t\tconst storeFactories = props.storeFactories ?? [this.defaultStoreFactory];\n\n\t\tthis.registry = (\n\t\t\tstoreFactories.includes(this.defaultStoreFactory)\n\t\t\t\t? storeFactories\n\t\t\t\t: [...storeFactories, this.defaultStoreFactory]\n\t\t).map((factory) => [factory.type, factory]) as NamedFluidDataStoreRegistryEntries;\n\t}\n\n\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultStoreFactory.type);\n\t\tawait dataStore.trySetAlias(defaultStoreId);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<ContainerRuntime> {\n\t\tconst runtime: ContainerRuntime = await ContainerRuntime.loadRuntime({\n\t\t\tcontext,\n\t\t\tregistryEntries: this.registry,\n\t\t\texisting,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandler: buildRuntimeRequestHandler(...this.requestHandlers),\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\n\t\treturn runtime;\n\t}\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/data-object-base",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.3.0.1",
|
|
4
4
|
"description": "Data object base for synchronously and lazily loaded object scenarios",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -22,30 +22,10 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"default": "./dist/index.js"
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
"./public": {
|
|
27
|
-
"import": {
|
|
28
|
-
"types": "./lib/data-object-base-public.d.ts",
|
|
29
|
-
"default": "./lib/index.js"
|
|
30
|
-
},
|
|
31
|
-
"require": {
|
|
32
|
-
"types": "./dist/data-object-base-public.d.ts",
|
|
33
|
-
"default": "./dist/index.js"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"./internal": {
|
|
37
|
-
"import": {
|
|
38
|
-
"types": "./lib/index.d.ts",
|
|
39
|
-
"default": "./lib/index.js"
|
|
40
|
-
},
|
|
41
|
-
"require": {
|
|
42
|
-
"types": "./dist/index.d.ts",
|
|
43
|
-
"default": "./dist/index.js"
|
|
44
|
-
}
|
|
45
25
|
}
|
|
46
26
|
},
|
|
47
|
-
"main": "
|
|
48
|
-
"types": "
|
|
27
|
+
"main": "lib/index.js",
|
|
28
|
+
"types": "lib/index.d.ts",
|
|
49
29
|
"files": [
|
|
50
30
|
"dist/**/*",
|
|
51
31
|
"!dist/test/**",
|
|
@@ -53,25 +33,26 @@
|
|
|
53
33
|
"es5/**/*"
|
|
54
34
|
],
|
|
55
35
|
"dependencies": {
|
|
56
|
-
"@fluid-internal/client-utils": ">=2.0.0-rc.
|
|
57
|
-
"@fluidframework/container-definitions": ">=2.0.0-rc.
|
|
58
|
-
"@fluidframework/container-runtime": ">=2.0.0-rc.
|
|
59
|
-
"@fluidframework/container-runtime-definitions": ">=2.0.0-rc.
|
|
60
|
-
"@fluidframework/core-interfaces": ">=2.0.0-rc.
|
|
61
|
-
"@fluidframework/core-utils": ">=2.0.0-rc.
|
|
62
|
-
"@fluidframework/datastore": ">=2.0.0-rc.
|
|
63
|
-
"@fluidframework/datastore-definitions": ">=2.0.0-rc.
|
|
64
|
-
"@fluidframework/request-handler": ">=2.0.0-rc.
|
|
65
|
-
"@fluidframework/runtime-definitions": ">=2.0.0-rc.
|
|
66
|
-
"@fluidframework/runtime-utils": ">=2.0.0-rc.
|
|
67
|
-
"@fluidframework/shared-object-base": ">=2.0.0-rc.
|
|
36
|
+
"@fluid-internal/client-utils": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
37
|
+
"@fluidframework/container-definitions": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
38
|
+
"@fluidframework/container-runtime": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
39
|
+
"@fluidframework/container-runtime-definitions": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
40
|
+
"@fluidframework/core-interfaces": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
41
|
+
"@fluidframework/core-utils": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
42
|
+
"@fluidframework/datastore": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
43
|
+
"@fluidframework/datastore-definitions": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
44
|
+
"@fluidframework/request-handler": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
45
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
46
|
+
"@fluidframework/runtime-utils": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0",
|
|
47
|
+
"@fluidframework/shared-object-base": ">=2.0.0-rc.3.0.1 <2.0.0-rc.3.1.0"
|
|
68
48
|
},
|
|
69
49
|
"devDependencies": {
|
|
70
|
-
"@arethetypeswrong/cli": "^0.
|
|
71
|
-
"@
|
|
50
|
+
"@arethetypeswrong/cli": "^0.15.2",
|
|
51
|
+
"@biomejs/biome": "^1.6.2",
|
|
52
|
+
"@fluid-tools/build-cli": "^0.37.0",
|
|
72
53
|
"@fluidframework/build-common": "^2.0.3",
|
|
73
|
-
"@fluidframework/build-tools": "^0.
|
|
74
|
-
"@fluidframework/eslint-config-fluid": "^
|
|
54
|
+
"@fluidframework/build-tools": "^0.37.0",
|
|
55
|
+
"@fluidframework/eslint-config-fluid": "^5.1.0",
|
|
75
56
|
"@microsoft/api-extractor": "^7.42.3",
|
|
76
57
|
"@types/node": "^18.19.0",
|
|
77
58
|
"copyfiles": "^2.4.1",
|
|
@@ -80,44 +61,29 @@
|
|
|
80
61
|
"rimraf": "^4.4.0",
|
|
81
62
|
"typescript": "~5.1.6"
|
|
82
63
|
},
|
|
83
|
-
"fluidBuild": {
|
|
84
|
-
"tasks": {
|
|
85
|
-
"build:docs": {
|
|
86
|
-
"dependsOn": [
|
|
87
|
-
"...",
|
|
88
|
-
"api-extractor:commonjs",
|
|
89
|
-
"api-extractor:esnext"
|
|
90
|
-
],
|
|
91
|
-
"script": false
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
64
|
"typeValidation": {
|
|
96
65
|
"disabled": true,
|
|
97
66
|
"broken": {}
|
|
98
67
|
},
|
|
99
68
|
"scripts": {
|
|
100
|
-
"api": "fluid-build . --task api",
|
|
101
|
-
"api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json",
|
|
102
|
-
"api-extractor:esnext": "api-extractor run --local",
|
|
103
69
|
"build": "fluid-build . --task build",
|
|
104
70
|
"build:compile": "fluid-build . --task compile",
|
|
105
|
-
"build:docs": "
|
|
71
|
+
"build:docs": "api-extractor run --local",
|
|
106
72
|
"build:esnext": "tsc --project ./tsconfig.json",
|
|
107
73
|
"build:test": "npm run build:test:esm && npm run build:test:cjs",
|
|
108
74
|
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
109
75
|
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
110
|
-
"check:are-the-types-wrong": "attw --pack .
|
|
76
|
+
"check:are-the-types-wrong": "attw --pack .",
|
|
77
|
+
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
111
78
|
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
112
79
|
"ci:build:docs": "api-extractor run",
|
|
113
80
|
"clean": "rimraf --glob dist lib es5 \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
|
|
114
81
|
"eslint": "eslint --format stylish src",
|
|
115
82
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
116
|
-
"format": "
|
|
117
|
-
"
|
|
118
|
-
"lint
|
|
119
|
-
"
|
|
120
|
-
"prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
83
|
+
"format": "fluid-build --task format .",
|
|
84
|
+
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
85
|
+
"lint": "fluid-build . --task lint",
|
|
86
|
+
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
|
121
87
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
122
88
|
"typetests:gen": "fluid-type-test-generator",
|
|
123
89
|
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The view interfaces provide a generic way for objects to expose their
|
|
3
|
-
* rendering capabilities to consumers.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
13
|
-
import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
|
|
14
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: RuntimeFactory */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: RuntimeFactoryProps */
|
|
19
|
-
|
|
20
|
-
export { }
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The view interfaces provide a generic way for objects to expose their
|
|
3
|
-
* rendering capabilities to consumers.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
13
|
-
import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
|
|
14
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: ContainerRuntime */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: IContainerContext */
|
|
19
|
-
|
|
20
|
-
/* Excluded from this release type: IContainerRuntime */
|
|
21
|
-
|
|
22
|
-
/* Excluded from this release type: IFluidDataStoreFactory */
|
|
23
|
-
|
|
24
|
-
/* Excluded from this release type: RuntimeFactory */
|
|
25
|
-
|
|
26
|
-
/* Excluded from this release type: RuntimeFactoryHelper */
|
|
27
|
-
|
|
28
|
-
/* Excluded from this release type: RuntimeFactoryProps */
|
|
29
|
-
|
|
30
|
-
/* Excluded from this release type: RuntimeRequestHandler */
|
|
31
|
-
|
|
32
|
-
export { }
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The view interfaces provide a generic way for objects to expose their
|
|
3
|
-
* rendering capabilities to consumers.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
13
|
-
import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
|
|
14
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: ContainerRuntime */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: IContainerContext */
|
|
19
|
-
|
|
20
|
-
/* Excluded from this release type: IContainerRuntime */
|
|
21
|
-
|
|
22
|
-
/* Excluded from this release type: IFluidDataStoreFactory */
|
|
23
|
-
|
|
24
|
-
/* Excluded from this release type: RuntimeFactory */
|
|
25
|
-
|
|
26
|
-
/* Excluded from this release type: RuntimeFactoryHelper */
|
|
27
|
-
|
|
28
|
-
/* Excluded from this release type: RuntimeFactoryProps */
|
|
29
|
-
|
|
30
|
-
/* Excluded from this release type: RuntimeRequestHandler */
|
|
31
|
-
|
|
32
|
-
export { }
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The view interfaces provide a generic way for objects to expose their
|
|
3
|
-
* rendering capabilities to consumers.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
13
|
-
import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
|
|
14
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
export declare class RuntimeFactory extends RuntimeFactoryHelper {
|
|
20
|
-
private readonly registry;
|
|
21
|
-
private readonly defaultStoreFactory;
|
|
22
|
-
private readonly requestHandlers;
|
|
23
|
-
private readonly provideEntryPoint;
|
|
24
|
-
constructor(props: RuntimeFactoryProps);
|
|
25
|
-
instantiateFirstTime(runtime: ContainerRuntime): Promise<void>;
|
|
26
|
-
preInitialize(context: IContainerContext, existing: boolean): Promise<ContainerRuntime>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* {@link RuntimeFactory} construction properties.
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export declare interface RuntimeFactoryProps {
|
|
34
|
-
defaultStoreFactory: IFluidDataStoreFactory;
|
|
35
|
-
storeFactories: IFluidDataStoreFactory[];
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
38
|
-
*/
|
|
39
|
-
requestHandlers?: RuntimeRequestHandler[];
|
|
40
|
-
provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { }
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The view interfaces provide a generic way for objects to expose their
|
|
3
|
-
* rendering capabilities to consumers.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
13
|
-
import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
|
|
14
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: RuntimeFactory */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: RuntimeFactoryProps */
|
|
19
|
-
|
|
20
|
-
export { }
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The view interfaces provide a generic way for objects to expose their
|
|
3
|
-
* rendering capabilities to consumers.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
13
|
-
import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
|
|
14
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: ContainerRuntime */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: IContainerContext */
|
|
19
|
-
|
|
20
|
-
/* Excluded from this release type: IContainerRuntime */
|
|
21
|
-
|
|
22
|
-
/* Excluded from this release type: IFluidDataStoreFactory */
|
|
23
|
-
|
|
24
|
-
/* Excluded from this release type: RuntimeFactory */
|
|
25
|
-
|
|
26
|
-
/* Excluded from this release type: RuntimeFactoryHelper */
|
|
27
|
-
|
|
28
|
-
/* Excluded from this release type: RuntimeFactoryProps */
|
|
29
|
-
|
|
30
|
-
/* Excluded from this release type: RuntimeRequestHandler */
|
|
31
|
-
|
|
32
|
-
export { }
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The view interfaces provide a generic way for objects to expose their
|
|
3
|
-
* rendering capabilities to consumers.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
13
|
-
import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
|
|
14
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: ContainerRuntime */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: IContainerContext */
|
|
19
|
-
|
|
20
|
-
/* Excluded from this release type: IContainerRuntime */
|
|
21
|
-
|
|
22
|
-
/* Excluded from this release type: IFluidDataStoreFactory */
|
|
23
|
-
|
|
24
|
-
/* Excluded from this release type: RuntimeFactory */
|
|
25
|
-
|
|
26
|
-
/* Excluded from this release type: RuntimeFactoryHelper */
|
|
27
|
-
|
|
28
|
-
/* Excluded from this release type: RuntimeFactoryProps */
|
|
29
|
-
|
|
30
|
-
/* Excluded from this release type: RuntimeRequestHandler */
|
|
31
|
-
|
|
32
|
-
export { }
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The view interfaces provide a generic way for objects to expose their
|
|
3
|
-
* rendering capabilities to consumers.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
10
|
-
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
12
|
-
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
13
|
-
import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
|
|
14
|
-
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
export declare class RuntimeFactory extends RuntimeFactoryHelper {
|
|
20
|
-
private readonly registry;
|
|
21
|
-
private readonly defaultStoreFactory;
|
|
22
|
-
private readonly requestHandlers;
|
|
23
|
-
private readonly provideEntryPoint;
|
|
24
|
-
constructor(props: RuntimeFactoryProps);
|
|
25
|
-
instantiateFirstTime(runtime: ContainerRuntime): Promise<void>;
|
|
26
|
-
preInitialize(context: IContainerContext, existing: boolean): Promise<ContainerRuntime>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* {@link RuntimeFactory} construction properties.
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export declare interface RuntimeFactoryProps {
|
|
34
|
-
defaultStoreFactory: IFluidDataStoreFactory;
|
|
35
|
-
storeFactories: IFluidDataStoreFactory[];
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
38
|
-
*/
|
|
39
|
-
requestHandlers?: RuntimeRequestHandler[];
|
|
40
|
-
provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"fileNames":[],"fileInfos":[],"options":{"composite":false,"declaration":false,"declarationMap":false,"esModuleInterop":true,"inlineSources":true,"jsx":2,"module":100,"noImplicitAny":false,"noUnusedLocals":true,"outDir":"","rootDir":"../../src/test","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7}},"version":"5.1.6"}
|
|
File without changes
|