@fluid-experimental/data-object-base 2.0.0-rc.4.0.6 → 2.0.0-rc.5.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.
@@ -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 { type IContainerContext } from "@fluidframework/container-definitions/internal";
5
+ import type { IContainerContext } from "@fluidframework/container-definitions/internal";
6
6
  import { ContainerRuntime } from "@fluidframework/container-runtime/internal";
7
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
8
- import { type FluidObject } from "@fluidframework/core-interfaces";
7
+ import type { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
8
+ import type { FluidObject } from "@fluidframework/core-interfaces";
9
9
  import { type RuntimeRequestHandler } from "@fluidframework/request-handler/internal";
10
- import { type IFluidDataStoreFactory } from "@fluidframework/runtime-definitions/internal";
10
+ import type { IFluidDataStoreFactory } from "@fluidframework/runtime-definitions/internal";
11
11
  import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils/internal";
12
12
  /**
13
13
  * {@link RuntimeFactory} construction properties.
@@ -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,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,EAEN,KAAK,qBAAqB,EAG1B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACN,KAAK,sBAAsB,EAE3B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,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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;AA3CD,wCA2CC","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\t// eslint-disable-next-line import/no-deprecated\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\t// eslint-disable-next-line import/no-deprecated\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\t// eslint-disable-next-line import/no-deprecated\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"]}
1
+ {"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yEAA8E;AAG9E,uEAKkD;AAKlD,qEAA8E;AAE9E,MAAM,cAAc,GAAG,EAAW,CAAC;AAiBnC;;GAEG;AACH,MAAa,cAAe,SAAQ,+BAAoB;IAQvD,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;AA3CD,wCA2CC","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\t// eslint-disable-next-line import/no-deprecated\n\ttype RuntimeRequestHandler,\n\t// eslint-disable-next-line import/no-deprecated\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler/internal\";\nimport type {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\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\t// eslint-disable-next-line import/no-deprecated\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\t// eslint-disable-next-line import/no-deprecated\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"]}
@@ -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 { type IContainerContext } from "@fluidframework/container-definitions/internal";
5
+ import type { IContainerContext } from "@fluidframework/container-definitions/internal";
6
6
  import { ContainerRuntime } from "@fluidframework/container-runtime/internal";
7
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
8
- import { type FluidObject } from "@fluidframework/core-interfaces";
7
+ import type { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
8
+ import type { FluidObject } from "@fluidframework/core-interfaces";
9
9
  import { type RuntimeRequestHandler } from "@fluidframework/request-handler/internal";
10
- import { type IFluidDataStoreFactory } from "@fluidframework/runtime-definitions/internal";
10
+ import type { IFluidDataStoreFactory } from "@fluidframework/runtime-definitions/internal";
11
11
  import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils/internal";
12
12
  /**
13
13
  * {@link RuntimeFactory} construction properties.
@@ -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,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,EAEN,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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I,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\t// eslint-disable-next-line import/no-deprecated\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\t// eslint-disable-next-line import/no-deprecated\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\t// eslint-disable-next-line import/no-deprecated\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"]}
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;AAGN,gDAAgD;AAChD,0BAA0B,GAC1B,MAAM,0CAA0C,CAAC;AAKlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,cAAc,GAAG,EAAW,CAAC;AAiBnC;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,oBAAoB;IAQvD,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\t// eslint-disable-next-line import/no-deprecated\n\ttype RuntimeRequestHandler,\n\t// eslint-disable-next-line import/no-deprecated\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler/internal\";\nimport type {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\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\t// eslint-disable-next-line import/no-deprecated\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\t// eslint-disable-next-line import/no-deprecated\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"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.43.1"
8
+ "packageVersion": "7.45.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/data-object-base",
3
- "version": "2.0.0-rc.4.0.6",
3
+ "version": "2.0.0-rc.5.0.1",
4
4
  "description": "Data object base for synchronously and lazily loaded object scenarios",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -33,33 +33,34 @@
33
33
  "es5/**/*"
34
34
  ],
35
35
  "dependencies": {
36
- "@fluid-internal/client-utils": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
37
- "@fluidframework/container-definitions": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
38
- "@fluidframework/container-runtime": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
39
- "@fluidframework/container-runtime-definitions": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
40
- "@fluidframework/core-interfaces": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
41
- "@fluidframework/core-utils": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
42
- "@fluidframework/datastore": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
43
- "@fluidframework/datastore-definitions": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
44
- "@fluidframework/request-handler": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
45
- "@fluidframework/runtime-definitions": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
46
- "@fluidframework/runtime-utils": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0",
47
- "@fluidframework/shared-object-base": ">=2.0.0-rc.4.0.6 <2.0.0-rc.4.1.0"
36
+ "@fluid-internal/client-utils": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
37
+ "@fluidframework/container-definitions": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
38
+ "@fluidframework/container-runtime": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
39
+ "@fluidframework/container-runtime-definitions": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
40
+ "@fluidframework/core-interfaces": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
41
+ "@fluidframework/core-utils": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
42
+ "@fluidframework/datastore": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
43
+ "@fluidframework/datastore-definitions": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
44
+ "@fluidframework/request-handler": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
45
+ "@fluidframework/runtime-definitions": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
46
+ "@fluidframework/runtime-utils": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0",
47
+ "@fluidframework/shared-object-base": ">=2.0.0-rc.5.0.1 <2.0.0-rc.5.1.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@arethetypeswrong/cli": "^0.15.2",
51
- "@biomejs/biome": "^1.6.2",
52
- "@fluid-tools/build-cli": "^0.38.0",
51
+ "@biomejs/biome": "^1.7.3",
52
+ "@fluid-tools/build-cli": "^0.39.0",
53
53
  "@fluidframework/build-common": "^2.0.3",
54
- "@fluidframework/build-tools": "^0.38.0",
55
- "@fluidframework/eslint-config-fluid": "^5.1.0",
56
- "@microsoft/api-extractor": "^7.43.1",
54
+ "@fluidframework/build-tools": "^0.39.0",
55
+ "@fluidframework/eslint-config-fluid": "^5.3.0",
56
+ "@microsoft/api-extractor": "^7.45.1",
57
57
  "@types/node": "^18.19.0",
58
+ "concurrently": "^8.2.1",
58
59
  "copyfiles": "^2.4.1",
59
60
  "eslint": "~8.55.0",
60
61
  "prettier": "~3.0.3",
61
62
  "rimraf": "^4.4.0",
62
- "typescript": "~5.1.6"
63
+ "typescript": "~5.4.5"
63
64
  },
64
65
  "typeValidation": {
65
66
  "disabled": true,
@@ -74,13 +75,19 @@
74
75
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
75
76
  "build:test:esm": "tsc --project ./src/test/tsconfig.json",
76
77
  "check:are-the-types-wrong": "attw --pack .",
78
+ "check:biome": "biome check . --formatter-enabled=true",
79
+ "check:exports": "concurrently \"npm:check:exports:*\"",
80
+ "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
81
+ "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json",
82
+ "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json",
83
+ "check:format": "npm run check:biome",
77
84
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
78
- "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
79
85
  "ci:build:docs": "api-extractor run",
80
86
  "clean": "rimraf --glob dist lib es5 \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
81
87
  "eslint": "eslint --format stylish src",
82
88
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
83
- "format": "fluid-build --task format .",
89
+ "format": "npm run format:biome",
90
+ "format:biome": "biome check . --formatter-enabled=true --apply",
84
91
  "format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
85
92
  "lint": "fluid-build . --task lint",
86
93
  "lint:fix": "fluid-build . --task eslint:fix --task format",