@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/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.225277",
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
- "import": {
22
- "types": "./lib/runtime-definitions-alpha.d.mts",
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
- "import": {
32
- "types": "./lib/runtime-definitions-beta.d.mts",
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
- "import": {
42
- "types": "./lib/index.d.mts",
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
- "import": {
52
- "types": "./lib/runtime-definitions-public.d.mts",
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.225277",
65
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.1.0.0.225277",
66
- "@fluidframework/driver-definitions": "2.0.0-dev-rc.1.0.0.225277",
67
- "@fluidframework/id-compressor": "2.0.0-dev-rc.1.0.0.225277",
68
- "@fluidframework/protocol-definitions": "^3.1.0-223007"
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-222379",
48
+ "@fluid-tools/build-cli": "^0.29.0",
73
49
  "@fluidframework/build-common": "^2.0.3",
74
- "@fluidframework/build-tools": "0.29.0-222379",
75
- "@fluidframework/eslint-config-fluid": "^3.1.0",
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.38.3",
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",
@@ -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. Total size of all messages must be less than maxOpSize.
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(pkg: Readonly<string[]>): IFluidDataStoreContextDetached;
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
@@ -23,6 +23,7 @@ export interface IEnvelope {
23
23
 
24
24
  /**
25
25
  * @internal
26
+ * @deprecated - This interface is now moved to `@fluidframework/container-definitions` package. Please import from that package.
26
27
  */
27
28
  export interface ISignalEnvelope {
28
29
  /**
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