@fluid-experimental/data-object-base 2.0.0-dev-rc.2.0.0.246488 → 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.
@@ -5,13 +5,13 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
 
8
- import { ContainerRuntime } from '@fluidframework/container-runtime';
8
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
9
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';
10
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
13
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
14
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
15
15
 
16
16
  /* Excluded from this release type: RuntimeFactory */
17
17
 
@@ -5,13 +5,13 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
 
8
- import { ContainerRuntime } from '@fluidframework/container-runtime';
8
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
9
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';
10
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
13
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
14
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
15
15
 
16
16
  /* Excluded from this release type: ContainerRuntime */
17
17
 
@@ -5,13 +5,13 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
 
8
- import { ContainerRuntime } from '@fluidframework/container-runtime';
8
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
9
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';
10
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
13
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
14
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
15
15
 
16
16
  /* Excluded from this release type: ContainerRuntime */
17
17
 
@@ -5,13 +5,13 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
 
8
- import { ContainerRuntime } from '@fluidframework/container-runtime';
8
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
9
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';
10
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
13
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
14
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
15
15
 
16
16
  /**
17
17
  * @internal
@@ -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,uCAAuC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEn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,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"}
@@ -5,15 +5,14 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.RuntimeFactory = void 0;
8
- const container_runtime_1 = require("@fluidframework/container-runtime");
9
- // eslint-disable-next-line import/no-deprecated
10
- const request_handler_1 = require("@fluidframework/request-handler");
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 runtime_utils_1.RuntimeFactoryHelper {
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 container_runtime_1.ContainerRuntime.loadRuntime({
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, request_handler_1.buildRuntimeRequestHandler)(...this.requestHandlers),
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,yEAAqE;AAGrE,gDAAgD;AAChD,qEAGyC;AAKzC,iEAAqE;AAErE,MAAM,cAAc,GAAG,EAAW,CAAC;AAgBnC;;GAEG;AACH,MAAa,cAAe,SAAQ,oCAAoB;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,oCAAgB,CAAC,WAAW,CAAC;YACpE,OAAO;YACP,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,QAAQ;YACR,gDAAgD;YAChD,cAAc,EAAE,IAAA,4CAA0B,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\";\nimport { ContainerRuntime } from \"@fluidframework/container-runtime\";\nimport { type IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport { type FluidObject } from \"@fluidframework/core-interfaces\";\n// eslint-disable-next-line import/no-deprecated\nimport {\n\ttype RuntimeRequestHandler,\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler\";\nimport {\n\ttype NamedFluidDataStoreRegistryEntries,\n\ttype IFluidDataStoreFactory,\n} from \"@fluidframework/runtime-definitions\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils\";\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"]}
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"]}
@@ -5,13 +5,13 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
 
8
- import { ContainerRuntime } from '@fluidframework/container-runtime';
8
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
9
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';
10
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
13
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
14
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
15
15
 
16
16
  /* Excluded from this release type: RuntimeFactory */
17
17
 
@@ -5,13 +5,13 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
 
8
- import { ContainerRuntime } from '@fluidframework/container-runtime';
8
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
9
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';
10
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
13
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
14
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
15
15
 
16
16
  /* Excluded from this release type: ContainerRuntime */
17
17
 
@@ -5,13 +5,13 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
 
8
- import { ContainerRuntime } from '@fluidframework/container-runtime';
8
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
9
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';
10
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
13
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
14
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
15
15
 
16
16
  /* Excluded from this release type: ContainerRuntime */
17
17
 
@@ -5,13 +5,13 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
 
8
- import { ContainerRuntime } from '@fluidframework/container-runtime';
8
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
9
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';
10
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
11
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
12
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
13
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
14
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
15
15
 
16
16
  /**
17
17
  * @internal
@@ -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,uCAAuC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EACN,KAAK,qBAAqB,EAE1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAIrE;;;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,E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,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"}
@@ -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
- import { buildRuntimeRequestHandler, } from "@fluidframework/request-handler";
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,mCAAmC,CAAC;AAGrE,gDAAgD;AAChD,OAAO,EAEN,0BAA0B,GAC1B,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,cAAc,GAAG,EAAW,CAAC;AAgBnC;;GAE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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\";\nimport { ContainerRuntime } from \"@fluidframework/container-runtime\";\nimport { type IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport { type FluidObject } from \"@fluidframework/core-interfaces\";\n// eslint-disable-next-line import/no-deprecated\nimport {\n\ttype RuntimeRequestHandler,\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler\";\nimport {\n\ttype NamedFluidDataStoreRegistryEntries,\n\ttype IFluidDataStoreFactory,\n} from \"@fluidframework/runtime-definitions\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils\";\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"]}
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"]}
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.42.3"
9
+ }
10
+ ]
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/data-object-base",
3
- "version": "2.0.0-dev-rc.2.0.0.246488",
3
+ "version": "2.0.0-dev-rc.3.0.0.253463",
4
4
  "description": "Data object base for synchronously and lazily loaded object scenarios",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -53,21 +53,22 @@
53
53
  "es5/**/*"
54
54
  ],
55
55
  "dependencies": {
56
- "@fluid-internal/client-utils": "2.0.0-dev-rc.2.0.0.246488",
57
- "@fluidframework/container-definitions": "2.0.0-dev-rc.2.0.0.246488",
58
- "@fluidframework/container-runtime": "2.0.0-dev-rc.2.0.0.246488",
59
- "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.2.0.0.246488",
60
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.2.0.0.246488",
61
- "@fluidframework/core-utils": "2.0.0-dev-rc.2.0.0.246488",
62
- "@fluidframework/datastore": "2.0.0-dev-rc.2.0.0.246488",
63
- "@fluidframework/datastore-definitions": "2.0.0-dev-rc.2.0.0.246488",
64
- "@fluidframework/request-handler": "2.0.0-dev-rc.2.0.0.246488",
65
- "@fluidframework/runtime-definitions": "2.0.0-dev-rc.2.0.0.246488",
66
- "@fluidframework/runtime-utils": "2.0.0-dev-rc.2.0.0.246488",
67
- "@fluidframework/shared-object-base": "2.0.0-dev-rc.2.0.0.246488"
56
+ "@fluid-internal/client-utils": "2.0.0-dev-rc.3.0.0.253463",
57
+ "@fluidframework/container-definitions": "2.0.0-dev-rc.3.0.0.253463",
58
+ "@fluidframework/container-runtime": "2.0.0-dev-rc.3.0.0.253463",
59
+ "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.3.0.0.253463",
60
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.253463",
61
+ "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.253463",
62
+ "@fluidframework/datastore": "2.0.0-dev-rc.3.0.0.253463",
63
+ "@fluidframework/datastore-definitions": "2.0.0-dev-rc.3.0.0.253463",
64
+ "@fluidframework/request-handler": "2.0.0-dev-rc.3.0.0.253463",
65
+ "@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.253463",
66
+ "@fluidframework/runtime-utils": "2.0.0-dev-rc.3.0.0.253463",
67
+ "@fluidframework/shared-object-base": "2.0.0-dev-rc.3.0.0.253463"
68
68
  },
69
69
  "devDependencies": {
70
- "@arethetypeswrong/cli": "^0.13.3",
70
+ "@arethetypeswrong/cli": "^0.15.2",
71
+ "@biomejs/biome": "^1.6.2",
71
72
  "@fluid-tools/build-cli": "^0.34.0",
72
73
  "@fluidframework/build-common": "^2.0.3",
73
74
  "@fluidframework/build-tools": "^0.34.0",
@@ -108,16 +109,16 @@
108
109
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
109
110
  "build:test:esm": "tsc --project ./src/test/tsconfig.json",
110
111
  "check:are-the-types-wrong": "attw --pack . --entrypoints .",
112
+ "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
111
113
  "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
112
114
  "ci:build:docs": "api-extractor run",
113
115
  "clean": "rimraf --glob dist lib es5 \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
114
116
  "eslint": "eslint --format stylish src",
115
117
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
116
- "format": "npm run prettier:fix",
117
- "lint": "npm run prettier && npm run check:release-tags && npm run eslint",
118
- "lint:fix": "npm run prettier:fix && npm run eslint:fix",
119
- "prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
120
- "prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
118
+ "format": "fluid-build --task format .",
119
+ "format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
120
+ "lint": "fluid-build . --task lint",
121
+ "lint:fix": "fluid-build . --task eslint:fix --task format",
121
122
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
122
123
  "typetests:gen": "fluid-type-test-generator",
123
124
  "typetests:prepare": "flub typetests --dir . --reset --previous --normalize"