@fluidframework/runtime-definitions 2.0.0-dev-rc.1.0.0.225277 → 2.0.0-dev-rc.1.0.0.232845
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 +44 -0
- package/README.md +0 -6
- package/api-report/runtime-definitions.api.md +6 -36
- package/dist/dataStoreContext.d.ts +14 -3
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/index.d.ts +0 -45
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/dist/protocol.d.ts +1 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/runtime-definitions-alpha.d.ts +14 -48
- package/dist/runtime-definitions-beta.d.ts +0 -29
- package/dist/runtime-definitions-public.d.ts +0 -29
- package/dist/runtime-definitions-untrimmed.d.ts +15 -48
- package/dist/summary.d.ts +0 -13
- package/dist/summary.d.ts.map +1 -1
- package/dist/summary.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +64 -43
- package/src/dataStoreContext.ts +18 -3
- package/src/index.ts +0 -49
- package/src/protocol.ts +1 -0
- package/src/summary.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/runtime-definitions",
|
|
3
|
-
"version": "2.0.0-dev-rc.1.0.0.
|
|
3
|
+
"version": "2.0.0-dev-rc.1.0.0.232845",
|
|
4
4
|
"description": "Fluid Runtime definitions",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -18,63 +18,39 @@
|
|
|
18
18
|
"default": "./dist/index.js"
|
|
19
19
|
},
|
|
20
20
|
"./alpha": {
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"default": "./lib/index.mjs"
|
|
24
|
-
},
|
|
25
|
-
"require": {
|
|
26
|
-
"types": "./dist/runtime-definitions-alpha.d.ts",
|
|
27
|
-
"default": "./dist/index.cjs"
|
|
28
|
-
}
|
|
21
|
+
"types": "./dist/runtime-definitions-alpha.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
29
23
|
},
|
|
30
24
|
"./beta": {
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"default": "./lib/index.mjs"
|
|
34
|
-
},
|
|
35
|
-
"require": {
|
|
36
|
-
"types": "./dist/runtime-definitions-beta.d.ts",
|
|
37
|
-
"default": "./dist/index.cjs"
|
|
38
|
-
}
|
|
25
|
+
"types": "./dist/runtime-definitions-beta.d.ts",
|
|
26
|
+
"default": "./dist/index.js"
|
|
39
27
|
},
|
|
40
28
|
"./internal": {
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
"default": "./lib/index.mjs"
|
|
44
|
-
},
|
|
45
|
-
"require": {
|
|
46
|
-
"types": "./dist/index.d.ts",
|
|
47
|
-
"default": "./dist/index.cjs"
|
|
48
|
-
}
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"default": "./dist/index.js"
|
|
49
31
|
},
|
|
50
32
|
"./public": {
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
"default": "./lib/index.mjs"
|
|
54
|
-
},
|
|
55
|
-
"require": {
|
|
56
|
-
"types": "./dist/runtime-definitions-public.d.ts",
|
|
57
|
-
"default": "./dist/index.cjs"
|
|
58
|
-
}
|
|
33
|
+
"types": "./dist/runtime-definitions-public.d.ts",
|
|
34
|
+
"default": "./dist/index.js"
|
|
59
35
|
}
|
|
60
36
|
},
|
|
61
37
|
"main": "dist/index.js",
|
|
62
38
|
"types": "dist/index.d.ts",
|
|
63
39
|
"dependencies": {
|
|
64
|
-
"@fluidframework/container-definitions": "2.0.0-dev-rc.1.0.0.
|
|
65
|
-
"@fluidframework/core-interfaces": "2.0.0-dev-rc.1.0.0.
|
|
66
|
-
"@fluidframework/driver-definitions": "2.0.0-dev-rc.1.0.0.
|
|
67
|
-
"@fluidframework/id-compressor": "2.0.0-dev-rc.1.0.0.
|
|
68
|
-
"@fluidframework/protocol-definitions": "^3.
|
|
40
|
+
"@fluidframework/container-definitions": "2.0.0-dev-rc.1.0.0.232845",
|
|
41
|
+
"@fluidframework/core-interfaces": "2.0.0-dev-rc.1.0.0.232845",
|
|
42
|
+
"@fluidframework/driver-definitions": "2.0.0-dev-rc.1.0.0.232845",
|
|
43
|
+
"@fluidframework/id-compressor": "2.0.0-dev-rc.1.0.0.232845",
|
|
44
|
+
"@fluidframework/protocol-definitions": "^3.2.0-231454"
|
|
69
45
|
},
|
|
70
46
|
"devDependencies": {
|
|
71
47
|
"@arethetypeswrong/cli": "^0.13.3",
|
|
72
|
-
"@fluid-tools/build-cli": "0.29.0
|
|
48
|
+
"@fluid-tools/build-cli": "^0.29.0",
|
|
73
49
|
"@fluidframework/build-common": "^2.0.3",
|
|
74
|
-
"@fluidframework/build-tools": "0.29.0
|
|
75
|
-
"@fluidframework/eslint-config-fluid": "^3.
|
|
50
|
+
"@fluidframework/build-tools": "^0.29.0",
|
|
51
|
+
"@fluidframework/eslint-config-fluid": "^3.3.0",
|
|
76
52
|
"@fluidframework/runtime-definitions-previous": "npm:@fluidframework/runtime-definitions@2.0.0-internal.8.0.0",
|
|
77
|
-
"@microsoft/api-extractor": "^7.
|
|
53
|
+
"@microsoft/api-extractor": "^7.39.1",
|
|
78
54
|
"copyfiles": "^2.4.1",
|
|
79
55
|
"eslint": "~8.50.0",
|
|
80
56
|
"eslint-plugin-deprecation": "~2.0.0",
|
|
@@ -94,7 +70,52 @@
|
|
|
94
70
|
}
|
|
95
71
|
},
|
|
96
72
|
"typeValidation": {
|
|
97
|
-
"broken": {
|
|
73
|
+
"broken": {
|
|
74
|
+
"RemovedInterfaceDeclaration_IIdCompressorCore": {
|
|
75
|
+
"forwardCompat": false,
|
|
76
|
+
"backCompat": false
|
|
77
|
+
},
|
|
78
|
+
"RemovedClassDeclaration_IdCompressor": {
|
|
79
|
+
"forwardCompat": false,
|
|
80
|
+
"backCompat": false
|
|
81
|
+
},
|
|
82
|
+
"RemovedInterfaceDeclaration_IIdCompressor": {
|
|
83
|
+
"forwardCompat": false,
|
|
84
|
+
"backCompat": false
|
|
85
|
+
},
|
|
86
|
+
"RemovedInterfaceDeclaration_IdCreationRange": {
|
|
87
|
+
"forwardCompat": false,
|
|
88
|
+
"backCompat": false
|
|
89
|
+
},
|
|
90
|
+
"RemovedTypeAliasDeclaration_OpSpaceCompressedId": {
|
|
91
|
+
"forwardCompat": false,
|
|
92
|
+
"backCompat": false
|
|
93
|
+
},
|
|
94
|
+
"RemovedTypeAliasDeclaration_SerializedIdCompressor": {
|
|
95
|
+
"forwardCompat": false,
|
|
96
|
+
"backCompat": false
|
|
97
|
+
},
|
|
98
|
+
"RemovedTypeAliasDeclaration_SerializedIdCompressorWithNoSession": {
|
|
99
|
+
"forwardCompat": false,
|
|
100
|
+
"backCompat": false
|
|
101
|
+
},
|
|
102
|
+
"RemovedTypeAliasDeclaration_SerializedIdCompressorWithOngoingSession": {
|
|
103
|
+
"forwardCompat": false,
|
|
104
|
+
"backCompat": false
|
|
105
|
+
},
|
|
106
|
+
"RemovedTypeAliasDeclaration_SessionId": {
|
|
107
|
+
"forwardCompat": false,
|
|
108
|
+
"backCompat": false
|
|
109
|
+
},
|
|
110
|
+
"RemovedTypeAliasDeclaration_SessionSpaceCompressedId": {
|
|
111
|
+
"forwardCompat": false,
|
|
112
|
+
"backCompat": false
|
|
113
|
+
},
|
|
114
|
+
"RemovedTypeAliasDeclaration_StableId": {
|
|
115
|
+
"forwardCompat": false,
|
|
116
|
+
"backCompat": false
|
|
117
|
+
}
|
|
118
|
+
}
|
|
98
119
|
},
|
|
99
120
|
"scripts": {
|
|
100
121
|
"api": "fluid-build . --task api",
|
package/src/dataStoreContext.ts
CHANGED
|
@@ -170,7 +170,9 @@ export interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeB
|
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Invokes the given callback and guarantees that all operations generated within the callback will be ordered
|
|
173
|
-
* sequentially.
|
|
173
|
+
* sequentially.
|
|
174
|
+
*
|
|
175
|
+
* If the callback throws an error, the container will close and the error will be logged.
|
|
174
176
|
*/
|
|
175
177
|
orderSequentially(callback: () => void): void;
|
|
176
178
|
|
|
@@ -197,14 +199,22 @@ export interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeB
|
|
|
197
199
|
* already attached DDS (or non-attached DDS that will eventually get attached to storage) will result in this
|
|
198
200
|
* store being attached to storage.
|
|
199
201
|
* @param pkg - Package name of the data store factory
|
|
202
|
+
* @param groupId - group to which this data stores belongs to. This is also known at service side and can be used to
|
|
203
|
+
* fetch snapshot contents like snapshot tree, blobs using this id from the storage.
|
|
200
204
|
*/
|
|
201
|
-
createDataStore(pkg: string | string[]): Promise<IDataStore>;
|
|
205
|
+
createDataStore(pkg: string | string[], groupId?: string): Promise<IDataStore>;
|
|
202
206
|
|
|
203
207
|
/**
|
|
204
208
|
* Creates detached data store context. Only after context.attachRuntime() is called,
|
|
205
209
|
* data store initialization is considered complete.
|
|
210
|
+
* @param pkg - Package name of the data store factory
|
|
211
|
+
* @param groupId - group to which this data stores belongs to. This is also known at service side and can be used to
|
|
212
|
+
* fetch snapshot contents like snapshot tree, blobs using this id from the storage.
|
|
206
213
|
*/
|
|
207
|
-
createDetachedDataStore(
|
|
214
|
+
createDetachedDataStore(
|
|
215
|
+
pkg: Readonly<string[]>,
|
|
216
|
+
groupId?: string,
|
|
217
|
+
): IFluidDataStoreContextDetached;
|
|
208
218
|
|
|
209
219
|
/**
|
|
210
220
|
* Get an absolute url for a provided container-relative request.
|
|
@@ -382,6 +392,8 @@ export interface IFluidDataStoreContext
|
|
|
382
392
|
readonly logger: ITelemetryBaseLogger;
|
|
383
393
|
readonly clientDetails: IClientDetails;
|
|
384
394
|
readonly idCompressor?: IIdCompressor;
|
|
395
|
+
// Represents the group to which the data store belongs too.
|
|
396
|
+
readonly groupId?: string;
|
|
385
397
|
/**
|
|
386
398
|
* Indicates the attachment state of the data store to a host service.
|
|
387
399
|
*/
|
|
@@ -481,6 +493,9 @@ export interface IFluidDataStoreContext
|
|
|
481
493
|
getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
|
|
482
494
|
|
|
483
495
|
/**
|
|
496
|
+
* @deprecated There is no replacement for this, its functionality is no longer needed at this layer.
|
|
497
|
+
* It will be removed in a future release, sometime after 2.0.0-internal.8.0.0
|
|
498
|
+
*
|
|
484
499
|
* Called when a new outbound reference is added to another node. This is used by garbage collection to identify
|
|
485
500
|
* all references added in the system.
|
|
486
501
|
* @param srcHandle - The handle of the node that added the reference.
|
package/src/index.ts
CHANGED
|
@@ -65,52 +65,3 @@ export {
|
|
|
65
65
|
SummarizeInternalFn,
|
|
66
66
|
totalBlobSizePropertyName,
|
|
67
67
|
} from "./summary";
|
|
68
|
-
|
|
69
|
-
// Re-exports for backwards compatibility.
|
|
70
|
-
// Will be removed in the future.
|
|
71
|
-
export {
|
|
72
|
-
/**
|
|
73
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
74
|
-
*/
|
|
75
|
-
IdCompressor,
|
|
76
|
-
/**
|
|
77
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
78
|
-
*/
|
|
79
|
-
IIdCompressor,
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
82
|
-
*/
|
|
83
|
-
IIdCompressorCore,
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
86
|
-
*/
|
|
87
|
-
IdCreationRange,
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
90
|
-
*/
|
|
91
|
-
OpSpaceCompressedId,
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
94
|
-
*/
|
|
95
|
-
SerializedIdCompressor,
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
98
|
-
*/
|
|
99
|
-
SerializedIdCompressorWithNoSession,
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
102
|
-
*/
|
|
103
|
-
SerializedIdCompressorWithOngoingSession,
|
|
104
|
-
/**
|
|
105
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
106
|
-
*/
|
|
107
|
-
SessionId,
|
|
108
|
-
/**
|
|
109
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
110
|
-
*/
|
|
111
|
-
SessionSpaceCompressedId,
|
|
112
|
-
/**
|
|
113
|
-
* @deprecated Import from `@fluidframework/id-compressor` instead.
|
|
114
|
-
*/
|
|
115
|
-
StableId,
|
|
116
|
-
} from "@fluidframework/id-compressor";
|
package/src/protocol.ts
CHANGED
package/src/summary.ts
CHANGED
|
@@ -125,16 +125,6 @@ export interface ISummarizerNodeConfig {
|
|
|
125
125
|
* Defaults to true.
|
|
126
126
|
*/
|
|
127
127
|
readonly canReuseHandle?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* True to always stop execution on error during summarize, or false to
|
|
130
|
-
* attempt creating a summary that is a pointer ot the last acked summary
|
|
131
|
-
* plus outstanding ops in case of internal summarize failure.
|
|
132
|
-
* Defaults to false.
|
|
133
|
-
*
|
|
134
|
-
* BUG BUG: Default to true while we investigate problem
|
|
135
|
-
* with differential summaries
|
|
136
|
-
*/
|
|
137
|
-
readonly throwOnFailure?: true;
|
|
138
128
|
}
|
|
139
129
|
|
|
140
130
|
/**
|
|
@@ -187,9 +177,6 @@ export interface ISummarizerNode {
|
|
|
187
177
|
invalidate(sequenceNumber: number): void;
|
|
188
178
|
/**
|
|
189
179
|
* Calls the internal summarize function and handles internal state tracking.
|
|
190
|
-
* If unchanged and fullTree is false, it will reuse previous summary subtree.
|
|
191
|
-
* If an error is encountered and throwOnFailure is false, it will try to make
|
|
192
|
-
* a summary with a pointer to the previous summary + a blob of outstanding ops.
|
|
193
180
|
* @param fullTree - true to skip optimizations and always generate the full tree
|
|
194
181
|
* @param trackState - indicates whether the summarizer node should track the state of the summary or not
|
|
195
182
|
* @param telemetryContext - summary data passed through the layers for telemetry purposes
|