@fluidframework/aqueduct 2.0.0-dev-rc.5.0.0.263932 → 2.0.0-dev-rc.5.0.0.267932
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 +11 -7
- 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/lib/tsdoc-metadata.json +1 -1
- package/package.json +22 -26
- 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 +8 -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,19 @@
|
|
|
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 type {
|
|
14
|
+
IFluidHandleInternal,
|
|
15
|
+
// eslint-disable-next-line import/no-deprecated
|
|
16
|
+
IProvideFluidHandle,
|
|
14
17
|
} from "@fluidframework/core-interfaces/internal";
|
|
15
18
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
16
|
-
import { type IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
19
|
+
import { type IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions/internal";
|
|
17
20
|
import { type IFluidDataStoreContext } from "@fluidframework/runtime-definitions/internal";
|
|
18
21
|
import { create404Response } from "@fluidframework/runtime-utils/internal";
|
|
19
22
|
import { type AsyncFluidObjectProvider } from "@fluidframework/synthesize/internal";
|
|
@@ -30,6 +33,7 @@ import { type DataObjectTypes, type IDataObjectProps } from "./types.js";
|
|
|
30
33
|
*/
|
|
31
34
|
export abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes>
|
|
32
35
|
extends TypedEventEmitter<I["Events"] & IEvent>
|
|
36
|
+
// eslint-disable-next-line import/no-deprecated
|
|
33
37
|
implements IFluidLoadable, IProvideFluidHandle
|
|
34
38
|
{
|
|
35
39
|
/**
|
|
@@ -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
|
|