@fluidframework/synthesize 2.32.0 → 2.33.0
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/CHANGELOG.md
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
// @alpha
|
|
7
|
+
// @alpha @legacy
|
|
8
8
|
export type AsyncFluidObjectProvider<O, R = undefined> = AsyncOptionalFluidObjectProvider<O> & AsyncRequiredFluidObjectProvider<R>;
|
|
9
9
|
|
|
10
|
-
// @alpha
|
|
10
|
+
// @alpha @legacy
|
|
11
11
|
export type AsyncOptionalFluidObjectProvider<T> = T extends undefined ? Record<string, never> : {
|
|
12
12
|
[P in keyof T]?: Promise<T[P] | undefined>;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
// @alpha
|
|
15
|
+
// @alpha @legacy
|
|
16
16
|
export type AsyncRequiredFluidObjectProvider<T> = T extends undefined ? Record<string, never> : {
|
|
17
17
|
[P in keyof T]: Promise<NonNullable<Exclude<T[P], undefined | null>>>;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
// @alpha
|
|
20
|
+
// @alpha @legacy
|
|
21
21
|
export class DependencyContainer<TMap> implements IFluidDependencySynthesizer {
|
|
22
22
|
constructor(...parents: (IFluidDependencySynthesizer | undefined)[]);
|
|
23
23
|
has(type: string, excludeParents?: boolean): boolean;
|
|
@@ -28,24 +28,24 @@ export class DependencyContainer<TMap> implements IFluidDependencySynthesizer {
|
|
|
28
28
|
unregister(type: keyof TMap): void;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
// @alpha
|
|
31
|
+
// @alpha @legacy
|
|
32
32
|
export type FluidObjectProvider<T> = NonNullable<T> | Promise<NonNullable<T>> | ((dependencyContainer: IFluidDependencySynthesizer) => NonNullable<T>) | ((dependencyContainer: IFluidDependencySynthesizer) => Promise<NonNullable<T>>);
|
|
33
33
|
|
|
34
|
-
// @alpha
|
|
34
|
+
// @alpha @legacy
|
|
35
35
|
export type FluidObjectSymbolProvider<T> = {
|
|
36
36
|
[P in keyof T]?: P;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
// @alpha (undocumented)
|
|
39
|
+
// @alpha @legacy (undocumented)
|
|
40
40
|
export const IFluidDependencySynthesizer: keyof IProvideFluidDependencySynthesizer;
|
|
41
41
|
|
|
42
|
-
// @alpha
|
|
42
|
+
// @alpha @legacy
|
|
43
43
|
export interface IFluidDependencySynthesizer extends IProvideFluidDependencySynthesizer {
|
|
44
44
|
has(type: string): boolean;
|
|
45
45
|
synthesize<O, R = undefined | Record<string, never>>(optionalTypes: FluidObjectSymbolProvider<O>, requiredTypes: Required<FluidObjectSymbolProvider<R>>): AsyncFluidObjectProvider<O, R>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
// @alpha (undocumented)
|
|
48
|
+
// @alpha @legacy (undocumented)
|
|
49
49
|
export interface IProvideFluidDependencySynthesizer {
|
|
50
50
|
// (undocumented)
|
|
51
51
|
IFluidDependencySynthesizer: IFluidDependencySynthesizer;
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/synthesize",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.0",
|
|
4
4
|
"description": "A library for synthesizing scope objects.",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -69,21 +69,21 @@
|
|
|
69
69
|
"temp-directory": "nyc/.nyc_output"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@fluidframework/core-utils": "~2.
|
|
72
|
+
"@fluidframework/core-utils": "~2.33.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
76
76
|
"@biomejs/biome": "~1.9.3",
|
|
77
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
77
|
+
"@fluid-internal/mocha-test-setup": "~2.33.0",
|
|
78
78
|
"@fluid-tools/build-cli": "^0.55.0",
|
|
79
79
|
"@fluidframework/build-common": "^2.0.3",
|
|
80
80
|
"@fluidframework/build-tools": "^0.55.0",
|
|
81
|
-
"@fluidframework/core-interfaces": "~2.
|
|
82
|
-
"@fluidframework/datastore": "~2.
|
|
81
|
+
"@fluidframework/core-interfaces": "~2.33.0",
|
|
82
|
+
"@fluidframework/datastore": "~2.33.0",
|
|
83
83
|
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
84
|
-
"@fluidframework/runtime-utils": "~2.
|
|
85
|
-
"@fluidframework/synthesize-previous": "npm:@fluidframework/synthesize@2.
|
|
86
|
-
"@microsoft/api-extractor": "7.
|
|
84
|
+
"@fluidframework/runtime-utils": "~2.33.0",
|
|
85
|
+
"@fluidframework/synthesize-previous": "npm:@fluidframework/synthesize@2.32.0",
|
|
86
|
+
"@microsoft/api-extractor": "7.52.5",
|
|
87
87
|
"@types/mocha": "^10.0.10",
|
|
88
88
|
"@types/node": "^18.19.0",
|
|
89
89
|
"c8": "^8.0.1",
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
"eslint": "~8.55.0",
|
|
94
94
|
"mocha": "^10.8.2",
|
|
95
95
|
"mocha-multi-reporters": "^1.5.1",
|
|
96
|
-
"moment": "^2.21.0",
|
|
97
96
|
"rimraf": "^4.4.0",
|
|
98
97
|
"typescript": "~5.4.5"
|
|
99
98
|
},
|