@fluidframework/aqueduct 2.0.0-dev-rc.5.0.0.263932 → 2.0.0-dev-rc.5.0.0.265721
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-report/aqueduct.api.md +9 -5
- package/dist/container-runtime-factories/baseContainerRuntimeFactory.js.map +1 -1
- package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
- package/dist/data-object-factories/dataObjectFactory.d.ts +1 -1
- package/dist/data-object-factories/dataObjectFactory.d.ts.map +1 -1
- package/dist/data-object-factories/dataObjectFactory.js.map +1 -1
- package/dist/data-object-factories/pureDataObjectFactory.d.ts +1 -1
- package/dist/data-object-factories/pureDataObjectFactory.d.ts.map +1 -1
- package/dist/data-object-factories/pureDataObjectFactory.js.map +1 -1
- package/dist/data-objects/dataObject.d.ts +6 -0
- package/dist/data-objects/dataObject.d.ts.map +1 -1
- package/dist/data-objects/dataObject.js +9 -1
- package/dist/data-objects/dataObject.js.map +1 -1
- package/dist/data-objects/index.d.ts +1 -1
- package/dist/data-objects/index.d.ts.map +1 -1
- package/dist/data-objects/index.js +2 -1
- package/dist/data-objects/index.js.map +1 -1
- package/dist/data-objects/pureDataObject.d.ts +3 -3
- package/dist/data-objects/pureDataObject.d.ts.map +1 -1
- package/dist/data-objects/pureDataObject.js.map +1 -1
- package/dist/data-objects/types.d.ts +1 -1
- package/dist/data-objects/types.d.ts.map +1 -1
- package/dist/data-objects/types.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/lib/container-runtime-factories/baseContainerRuntimeFactory.js.map +1 -1
- package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
- package/lib/data-object-factories/dataObjectFactory.d.ts +1 -1
- package/lib/data-object-factories/dataObjectFactory.d.ts.map +1 -1
- package/lib/data-object-factories/dataObjectFactory.js.map +1 -1
- package/lib/data-object-factories/pureDataObjectFactory.d.ts +1 -1
- package/lib/data-object-factories/pureDataObjectFactory.d.ts.map +1 -1
- package/lib/data-object-factories/pureDataObjectFactory.js.map +1 -1
- package/lib/data-objects/dataObject.d.ts +6 -0
- package/lib/data-objects/dataObject.d.ts.map +1 -1
- package/lib/data-objects/dataObject.js +7 -0
- package/lib/data-objects/dataObject.js.map +1 -1
- package/lib/data-objects/index.d.ts +1 -1
- package/lib/data-objects/index.d.ts.map +1 -1
- package/lib/data-objects/index.js +1 -1
- package/lib/data-objects/index.js.map +1 -1
- package/lib/data-objects/pureDataObject.d.ts +3 -3
- package/lib/data-objects/pureDataObject.d.ts.map +1 -1
- package/lib/data-objects/pureDataObject.js.map +1 -1
- package/lib/data-objects/types.d.ts +1 -1
- package/lib/data-objects/types.d.ts.map +1 -1
- package/lib/data-objects/types.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +21 -25
- package/src/data-object-factories/dataObjectFactory.ts +1 -1
- package/src/data-object-factories/pureDataObjectFactory.ts +1 -1
- package/src/data-objects/dataObject.ts +11 -0
- package/src/data-objects/index.ts +1 -1
- package/src/data-objects/pureDataObject.ts +6 -4
- package/src/data-objects/types.ts +1 -1
- package/src/index.ts +1 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line import/no-deprecated
|
|
7
7
|
import { type ISharedDirectory, MapFactory, SharedDirectory } from "@fluidframework/map/internal";
|
|
8
|
+
import type { SharedObjectKind } from "@fluidframework/shared-object-base";
|
|
8
9
|
|
|
9
10
|
import { PureDataObject } from "./pureDataObject.js";
|
|
10
11
|
import { type DataObjectTypes } from "./types.js";
|
|
@@ -78,3 +79,13 @@ export abstract class DataObject<
|
|
|
78
79
|
return `${item} must be initialized before being accessed.`;
|
|
79
80
|
}
|
|
80
81
|
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Utility for creating SharedObjectKind instances for data objects.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
export function createDataObjectKind<T extends new (...any) => DataObject>(
|
|
88
|
+
factory: T,
|
|
89
|
+
): T & SharedObjectKind<InstanceType<T>> {
|
|
90
|
+
return factory as T & SharedObjectKind<InstanceType<T>>;
|
|
91
|
+
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export { DataObject } from "./dataObject.js";
|
|
6
|
+
export { DataObject, createDataObjectKind } from "./dataObject.js";
|
|
7
7
|
export { PureDataObject } from "./pureDataObject.js";
|
|
8
8
|
export type { DataObjectTypes, IDataObjectProps } from "./types.js";
|
|
@@ -4,16 +4,18 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
7
|
-
import { type IEvent } from "@fluidframework/core-interfaces";
|
|
8
7
|
import {
|
|
9
|
-
type
|
|
8
|
+
type IEvent,
|
|
10
9
|
type IFluidLoadable,
|
|
11
|
-
type IProvideFluidHandle,
|
|
12
10
|
type IRequest,
|
|
13
11
|
type IResponse,
|
|
12
|
+
} from "@fluidframework/core-interfaces";
|
|
13
|
+
import {
|
|
14
|
+
type IFluidHandleInternal,
|
|
15
|
+
type IProvideFluidHandle,
|
|
14
16
|
} from "@fluidframework/core-interfaces/internal";
|
|
15
17
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
16
|
-
import { type IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
18
|
+
import { type IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions/internal";
|
|
17
19
|
import { type IFluidDataStoreContext } from "@fluidframework/runtime-definitions/internal";
|
|
18
20
|
import { create404Response } from "@fluidframework/runtime-utils/internal";
|
|
19
21
|
import { type AsyncFluidObjectProvider } from "@fluidframework/synthesize/internal";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { type FluidObject, type IEvent } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { type IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
7
|
+
import { type IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions/internal";
|
|
8
8
|
import { type IFluidDataStoreContext } from "@fluidframework/runtime-definitions/internal";
|
|
9
9
|
import { type AsyncFluidObjectProvider } from "@fluidframework/synthesize/internal";
|
|
10
10
|
|