@fluidframework/datastore-definitions 2.53.0 → 2.60.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 +4 -0
- package/api-report/{datastore-definitions.legacy.alpha.api.md → datastore-definitions.legacy.beta.api.md} +16 -16
- package/dist/channel.d.ts +6 -12
- package/dist/channel.d.ts.map +1 -1
- package/dist/dataStoreRuntime.d.ts +4 -8
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/jsonable.d.ts +3 -6
- package/dist/jsonable.d.ts.map +1 -1
- package/dist/serializable.d.ts +1 -2
- package/dist/serializable.d.ts.map +1 -1
- package/dist/storage.d.ts +1 -2
- package/dist/storage.d.ts.map +1 -1
- package/lib/channel.d.ts +6 -12
- package/lib/channel.d.ts.map +1 -1
- package/lib/dataStoreRuntime.d.ts +4 -8
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/jsonable.d.ts +3 -6
- package/lib/jsonable.d.ts.map +1 -1
- package/lib/serializable.d.ts +1 -2
- package/lib/serializable.d.ts.map +1 -1
- package/lib/storage.d.ts +1 -2
- package/lib/storage.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/channel.ts +6 -12
- package/src/dataStoreRuntime.ts +4 -8
- package/src/jsonable.ts +3 -6
- package/src/serializable.ts +1 -2
- package/src/storage.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
##
|
|
1
|
+
## Beta API Report File for "@fluidframework/datastore-definitions"
|
|
2
2
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
// @
|
|
7
|
+
// @beta @legacy
|
|
8
8
|
export interface IChannel extends IFluidLoadable {
|
|
9
9
|
// (undocumented)
|
|
10
10
|
readonly attributes: IChannelAttributes;
|
|
@@ -16,14 +16,14 @@ export interface IChannel extends IFluidLoadable {
|
|
|
16
16
|
summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext): Promise<ISummaryTreeWithStats>;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
// @
|
|
19
|
+
// @beta @legacy
|
|
20
20
|
export interface IChannelAttributes {
|
|
21
21
|
readonly packageVersion?: string;
|
|
22
22
|
readonly snapshotFormatVersion: string;
|
|
23
23
|
readonly type: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
// @
|
|
26
|
+
// @beta @legacy
|
|
27
27
|
export interface IChannelFactory<out TChannel = unknown> {
|
|
28
28
|
readonly attributes: IChannelAttributes;
|
|
29
29
|
create(runtime: IFluidDataStoreRuntime, id: string): TChannel & IChannel;
|
|
@@ -31,7 +31,7 @@ export interface IChannelFactory<out TChannel = unknown> {
|
|
|
31
31
|
readonly type: string;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
// @
|
|
34
|
+
// @beta @legacy
|
|
35
35
|
export interface IChannelServices {
|
|
36
36
|
// (undocumented)
|
|
37
37
|
deltaConnection: IDeltaConnection;
|
|
@@ -39,7 +39,7 @@ export interface IChannelServices {
|
|
|
39
39
|
objectStorage: IChannelStorageService;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
// @
|
|
42
|
+
// @beta @legacy
|
|
43
43
|
export interface IChannelStorageService {
|
|
44
44
|
contains(path: string): Promise<boolean>;
|
|
45
45
|
getSnapshotTree?(): ISnapshotTree | undefined;
|
|
@@ -47,7 +47,7 @@ export interface IChannelStorageService {
|
|
|
47
47
|
readBlob(path: string): Promise<ArrayBufferLike>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// @
|
|
50
|
+
// @beta @legacy
|
|
51
51
|
export interface IDeltaConnection {
|
|
52
52
|
attach(handler: IDeltaHandler): void;
|
|
53
53
|
// (undocumented)
|
|
@@ -56,7 +56,7 @@ export interface IDeltaConnection {
|
|
|
56
56
|
submit(messageContent: any, localOpMetadata: unknown): void;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
// @
|
|
59
|
+
// @beta @legacy
|
|
60
60
|
export interface IDeltaHandler {
|
|
61
61
|
applyStashedOp(message: any): void;
|
|
62
62
|
processMessages: (messageCollection: IRuntimeMessageCollection) => void;
|
|
@@ -65,10 +65,10 @@ export interface IDeltaHandler {
|
|
|
65
65
|
setConnectionState(connected: boolean): void;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// @
|
|
68
|
+
// @beta @legacy
|
|
69
69
|
export type IDeltaManagerErased = ErasedType<"@fluidframework/container-definitions.IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>">;
|
|
70
70
|
|
|
71
|
-
// @
|
|
71
|
+
// @beta @sealed @legacy
|
|
72
72
|
export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRuntimeEvents>, IDisposable {
|
|
73
73
|
addChannel(channel: IChannel): void;
|
|
74
74
|
readonly attachState: AttachState;
|
|
@@ -105,7 +105,7 @@ export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRu
|
|
|
105
105
|
waitAttached(): Promise<void>;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
// @
|
|
108
|
+
// @beta @legacy
|
|
109
109
|
export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
110
110
|
// (undocumented)
|
|
111
111
|
(event: "disconnected", listener: () => void): any;
|
|
@@ -125,7 +125,7 @@ export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
|
125
125
|
(event: "readonly", listener: (isReadOnly: boolean) => void): any;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
// @
|
|
128
|
+
// @beta @sealed @deprecated @legacy (undocumented)
|
|
129
129
|
export interface IFluidDataStoreRuntimeExperimental extends IFluidDataStoreRuntime {
|
|
130
130
|
// (undocumented)
|
|
131
131
|
readonly inStagingMode?: boolean;
|
|
@@ -133,21 +133,21 @@ export interface IFluidDataStoreRuntimeExperimental extends IFluidDataStoreRunti
|
|
|
133
133
|
readonly isDirty?: boolean;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// @
|
|
136
|
+
// @beta @legacy (undocumented)
|
|
137
137
|
export interface Internal_InterfaceOfJsonableTypesWith<T> {
|
|
138
138
|
// (undocumented)
|
|
139
139
|
[index: string | number]: JsonableTypeWith<T>;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
// @
|
|
142
|
+
// @beta @legacy
|
|
143
143
|
export type Jsonable<T, TReplaced = never> = boolean extends (T extends never ? true : false) ? JsonableTypeWith<TReplaced> : unknown extends T ? JsonableTypeWith<TReplaced> : T extends undefined | null | boolean | number | string | TReplaced ? T : Extract<T, Function> extends never ? T extends object ? T extends (infer U)[] ? Jsonable<U, TReplaced>[] : {
|
|
144
144
|
[K in keyof T]: Extract<K, symbol> extends never ? Jsonable<T[K], TReplaced> : never;
|
|
145
145
|
} : never : never;
|
|
146
146
|
|
|
147
|
-
// @
|
|
147
|
+
// @beta @legacy
|
|
148
148
|
export type JsonableTypeWith<T> = undefined | null | boolean | number | string | T | Internal_InterfaceOfJsonableTypesWith<T> | ArrayLike<JsonableTypeWith<T>>;
|
|
149
149
|
|
|
150
|
-
// @
|
|
150
|
+
// @beta @legacy
|
|
151
151
|
export type Serializable<T> = Jsonable<T, IFluidHandle>;
|
|
152
152
|
|
|
153
153
|
```
|
package/dist/channel.d.ts
CHANGED
|
@@ -23,8 +23,7 @@ import type { IChannelAttributes } from "./storage.js";
|
|
|
23
23
|
* TODO:
|
|
24
24
|
* Either Channels should become a useful well documented abstraction of which there could be another implementation, or it should be better integrated with SharedObject to reduce concept count.
|
|
25
25
|
*
|
|
26
|
-
* @legacy
|
|
27
|
-
* @alpha
|
|
26
|
+
* @legacy @beta
|
|
28
27
|
*/
|
|
29
28
|
export interface IChannel extends IFluidLoadable {
|
|
30
29
|
/**
|
|
@@ -111,8 +110,7 @@ export interface IChannel extends IFluidLoadable {
|
|
|
111
110
|
}
|
|
112
111
|
/**
|
|
113
112
|
* Handler provided by shared data structure to process requests from the runtime.
|
|
114
|
-
* @legacy
|
|
115
|
-
* @alpha
|
|
113
|
+
* @legacy @beta
|
|
116
114
|
*/
|
|
117
115
|
export interface IDeltaHandler {
|
|
118
116
|
/**
|
|
@@ -164,8 +162,7 @@ export interface IDeltaHandler {
|
|
|
164
162
|
}
|
|
165
163
|
/**
|
|
166
164
|
* Interface to represent a connection to a delta notification stream.
|
|
167
|
-
* @legacy
|
|
168
|
-
* @alpha
|
|
165
|
+
* @legacy @beta
|
|
169
166
|
*/
|
|
170
167
|
export interface IDeltaConnection {
|
|
171
168
|
connected: boolean;
|
|
@@ -189,8 +186,7 @@ export interface IDeltaConnection {
|
|
|
189
186
|
}
|
|
190
187
|
/**
|
|
191
188
|
* Storage services to read the objects at a given path.
|
|
192
|
-
* @legacy
|
|
193
|
-
* @alpha
|
|
189
|
+
* @legacy @beta
|
|
194
190
|
*/
|
|
195
191
|
export interface IChannelStorageService {
|
|
196
192
|
/**
|
|
@@ -213,8 +209,7 @@ export interface IChannelStorageService {
|
|
|
213
209
|
}
|
|
214
210
|
/**
|
|
215
211
|
* Storage services to read the objects at a given path using the given delta connection.
|
|
216
|
-
* @legacy
|
|
217
|
-
* @alpha
|
|
212
|
+
* @legacy @beta
|
|
218
213
|
*/
|
|
219
214
|
export interface IChannelServices {
|
|
220
215
|
deltaConnection: IDeltaConnection;
|
|
@@ -246,8 +241,7 @@ export interface IChannelServices {
|
|
|
246
241
|
* This approach (not requiring TChannel to extend IChannel) also makes it possible for SharedObject's public interfaces to not include IChannel if desired
|
|
247
242
|
* (while still requiring the implementation to implement it).
|
|
248
243
|
*
|
|
249
|
-
* @legacy
|
|
250
|
-
* @alpha
|
|
244
|
+
* @legacy @beta
|
|
251
245
|
*/
|
|
252
246
|
export interface IChannelFactory<out TChannel = unknown> {
|
|
253
247
|
/**
|
package/dist/channel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,KAAK,EACX,sCAAsC,EACtC,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,KAAK,EACX,sCAAsC,EACtC,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,gBAAgB,CACf,QAAQ,CAAC,EAAE,OAAO,EAClB,UAAU,CAAC,EAAE,OAAO,EACpB,gBAAgB,CAAC,EAAE,iBAAiB,GAClC,qBAAqB,CAAC;IAEzB;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WAAW,sBAAsB;IACtC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAEjD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEtC;;;OAGG;IACH,eAAe,CAAC,IAAI,aAAa,GAAG,SAAS,CAAC;CAC9C;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC,eAAe,EAAE,gBAAgB,CAAC;IAElC,aAAa,EAAE,sBAAsB,CAAC;CACtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,eAAe,CAAC,GAAG,CAAC,QAAQ,GAAG,OAAO;IACtD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAExC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACH,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,iBAAiB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAC7C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;CACzE"}
|
|
@@ -12,8 +12,7 @@ import type { IInboundSignalMessage } from "@fluidframework/runtime-definitions/
|
|
|
12
12
|
import type { IChannel } from "./channel.js";
|
|
13
13
|
/**
|
|
14
14
|
* Events emitted by {@link IFluidDataStoreRuntime}.
|
|
15
|
-
* @legacy
|
|
16
|
-
* @alpha
|
|
15
|
+
* @legacy @beta
|
|
17
16
|
*/
|
|
18
17
|
export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
19
18
|
(event: "disconnected", listener: () => void): any;
|
|
@@ -27,15 +26,13 @@ export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
28
|
* Manages the transmission of ops between the runtime and storage.
|
|
30
|
-
* @legacy
|
|
31
|
-
* @alpha
|
|
29
|
+
* @legacy @beta
|
|
32
30
|
*/
|
|
33
31
|
export type IDeltaManagerErased = ErasedType<"@fluidframework/container-definitions.IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>">;
|
|
34
32
|
/**
|
|
35
33
|
* Represents the runtime for the data store. Contains helper functions/state of the data store.
|
|
36
34
|
* @sealed
|
|
37
|
-
* @legacy
|
|
38
|
-
* @alpha
|
|
35
|
+
* @legacy @beta
|
|
39
36
|
*/
|
|
40
37
|
export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRuntimeEvents>, IDisposable {
|
|
41
38
|
readonly id: string;
|
|
@@ -132,8 +129,7 @@ export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRu
|
|
|
132
129
|
/**
|
|
133
130
|
* @experimental
|
|
134
131
|
* @deprecated - These APIs are unstable, and can be changed at will. They should only be used with direct agreement with the Fluid Framework.
|
|
135
|
-
* @legacy
|
|
136
|
-
* @alpha
|
|
132
|
+
* @legacy @beta
|
|
137
133
|
* @sealed
|
|
138
134
|
*/
|
|
139
135
|
export interface IFluidDataStoreRuntimeExperimental extends IFluidDataStoreRuntime {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStoreRuntime.d.ts","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EACX,YAAY,EACZ,WAAW,EACX,WAAW,EACX,MAA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AKG;AACH,MAAM,WAAW,oCAAoC;IACpD,QAAQ,CAAC,oCAAoC,CAAC,EAAE,OAAO,CAAC;CACxD"}
|
package/dist/jsonable.d.ts
CHANGED
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @privateRemarks
|
|
14
14
|
* Prefer using `Jsonable<unknown>` over this type that is an implementation detail.
|
|
15
|
-
* @legacy
|
|
16
|
-
* @alpha
|
|
15
|
+
* @legacy @beta
|
|
17
16
|
*/
|
|
18
17
|
export type JsonableTypeWith<T> = undefined | null | boolean | number | string | T | Internal_InterfaceOfJsonableTypesWith<T> | ArrayLike<JsonableTypeWith<T>>;
|
|
19
18
|
/**
|
|
@@ -25,8 +24,7 @@ export type JsonableTypeWith<T> = undefined | null | boolean | number | string |
|
|
|
25
24
|
* This interface along with ArrayLike above avoids pure type recursion issues, but introduces a limitation on
|
|
26
25
|
* the ability of {@link Jsonable} to detect array-like types that are not handled naively ({@link JSON.stringify}).
|
|
27
26
|
* The TypeOnly filter is not useful for {@link JsonableTypeWith}; so, if type testing improves, this can be removed.
|
|
28
|
-
* @legacy
|
|
29
|
-
* @alpha
|
|
27
|
+
* @legacy @beta
|
|
30
28
|
*/
|
|
31
29
|
export interface Internal_InterfaceOfJsonableTypesWith<T> {
|
|
32
30
|
[index: string | number]: JsonableTypeWith<T>;
|
|
@@ -69,8 +67,7 @@ export interface Internal_InterfaceOfJsonableTypesWith<T> {
|
|
|
69
67
|
* ```typescript
|
|
70
68
|
* function foo<T>(value: Jsonable<T>) { ... }
|
|
71
69
|
* ```
|
|
72
|
-
* @legacy
|
|
73
|
-
* @alpha
|
|
70
|
+
* @legacy @beta
|
|
74
71
|
*/
|
|
75
72
|
export type Jsonable<T, TReplaced = never> = boolean extends (T extends never ? true : false) ? JsonableTypeWith<TReplaced> : unknown extends T ? JsonableTypeWith<TReplaced> : T extends undefined | null | boolean | number | string | TReplaced ? T : Extract<T, Function> extends never ? T extends object ? T extends (infer U)[] ? Jsonable<U, TReplaced>[] : {
|
|
76
73
|
[K in keyof T]: Extract<K, symbol> extends never ? Jsonable<T[K], TReplaced> : never;
|
package/dist/jsonable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonable.d.ts","sourceRoot":"","sources":["../src/jsonable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH
|
|
1
|
+
{"version":3,"file":"jsonable.d.ts","sourceRoot":"","sources":["../src/jsonable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC3B,SAAS,GACT,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,CAAC,GACD,qCAAqC,CAAC,CAAC,CAAC,GACxC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAElC;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,qCAAqC,CAAC,CAAC;IACvD,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,SAAS,GAAG,KAAK,IAAyB,OAAO,SAAS,CACjF,CAAC,SAAS,KAAK,GACZ,IAAI,GACJ,KAAK,CACR,GACiB,gBAAgB,CAAC,SAAS,CAAC,GACjB,OAAO,SAAS,CAAC,GACtB,gBAAgB,CAAC,SAAS,CAAC,GACN,CAAC,SACtC,SAAS,GACT,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACc,CAAC,GAEG,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,SAAS,KAAK,GAClB,CAAC,SAAS,MAAM,GAC5B,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GACpC,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,GACjB;KACrB,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,SAAS,KAAK,GAC7C,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GACzB,KAAK;CACR,GACsB,KAAK,GACX,KAAK,CAAC"}
|
package/dist/serializable.d.ts
CHANGED
|
@@ -20,8 +20,7 @@ import type { Jsonable } from "./jsonable.js";
|
|
|
20
20
|
* ```typescript
|
|
21
21
|
* function serialize<T>(value: Serializable<T>) { ... }
|
|
22
22
|
* ```
|
|
23
|
-
* @legacy
|
|
24
|
-
* @alpha
|
|
23
|
+
* @legacy @beta
|
|
25
24
|
*/
|
|
26
25
|
export type Serializable<T> = Jsonable<T, IFluidHandle>;
|
|
27
26
|
//# sourceMappingURL=serializable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializable.d.ts","sourceRoot":"","sources":["../src/serializable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"serializable.d.ts","sourceRoot":"","sources":["../src/serializable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC"}
|
package/dist/storage.d.ts
CHANGED
package/dist/storage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CACjC"}
|
package/lib/channel.d.ts
CHANGED
|
@@ -23,8 +23,7 @@ import type { IChannelAttributes } from "./storage.js";
|
|
|
23
23
|
* TODO:
|
|
24
24
|
* Either Channels should become a useful well documented abstraction of which there could be another implementation, or it should be better integrated with SharedObject to reduce concept count.
|
|
25
25
|
*
|
|
26
|
-
* @legacy
|
|
27
|
-
* @alpha
|
|
26
|
+
* @legacy @beta
|
|
28
27
|
*/
|
|
29
28
|
export interface IChannel extends IFluidLoadable {
|
|
30
29
|
/**
|
|
@@ -111,8 +110,7 @@ export interface IChannel extends IFluidLoadable {
|
|
|
111
110
|
}
|
|
112
111
|
/**
|
|
113
112
|
* Handler provided by shared data structure to process requests from the runtime.
|
|
114
|
-
* @legacy
|
|
115
|
-
* @alpha
|
|
113
|
+
* @legacy @beta
|
|
116
114
|
*/
|
|
117
115
|
export interface IDeltaHandler {
|
|
118
116
|
/**
|
|
@@ -164,8 +162,7 @@ export interface IDeltaHandler {
|
|
|
164
162
|
}
|
|
165
163
|
/**
|
|
166
164
|
* Interface to represent a connection to a delta notification stream.
|
|
167
|
-
* @legacy
|
|
168
|
-
* @alpha
|
|
165
|
+
* @legacy @beta
|
|
169
166
|
*/
|
|
170
167
|
export interface IDeltaConnection {
|
|
171
168
|
connected: boolean;
|
|
@@ -189,8 +186,7 @@ export interface IDeltaConnection {
|
|
|
189
186
|
}
|
|
190
187
|
/**
|
|
191
188
|
* Storage services to read the objects at a given path.
|
|
192
|
-
* @legacy
|
|
193
|
-
* @alpha
|
|
189
|
+
* @legacy @beta
|
|
194
190
|
*/
|
|
195
191
|
export interface IChannelStorageService {
|
|
196
192
|
/**
|
|
@@ -213,8 +209,7 @@ export interface IChannelStorageService {
|
|
|
213
209
|
}
|
|
214
210
|
/**
|
|
215
211
|
* Storage services to read the objects at a given path using the given delta connection.
|
|
216
|
-
* @legacy
|
|
217
|
-
* @alpha
|
|
212
|
+
* @legacy @beta
|
|
218
213
|
*/
|
|
219
214
|
export interface IChannelServices {
|
|
220
215
|
deltaConnection: IDeltaConnection;
|
|
@@ -246,8 +241,7 @@ export interface IChannelServices {
|
|
|
246
241
|
* This approach (not requiring TChannel to extend IChannel) also makes it possible for SharedObject's public interfaces to not include IChannel if desired
|
|
247
242
|
* (while still requiring the implementation to implement it).
|
|
248
243
|
*
|
|
249
|
-
* @legacy
|
|
250
|
-
* @alpha
|
|
244
|
+
* @legacy @beta
|
|
251
245
|
*/
|
|
252
246
|
export interface IChannelFactory<out TChannel = unknown> {
|
|
253
247
|
/**
|
package/lib/channel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,KAAK,EACX,sCAAsC,EACtC,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA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AAQ,GAAG,OAAO;IACtD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAExC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACH,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,iBAAiB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAC7C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;CACzE"}
|
|
@@ -12,8 +12,7 @@ import type { IInboundSignalMessage } from "@fluidframework/runtime-definitions/
|
|
|
12
12
|
import type { IChannel } from "./channel.js";
|
|
13
13
|
/**
|
|
14
14
|
* Events emitted by {@link IFluidDataStoreRuntime}.
|
|
15
|
-
* @legacy
|
|
16
|
-
* @alpha
|
|
15
|
+
* @legacy @beta
|
|
17
16
|
*/
|
|
18
17
|
export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
19
18
|
(event: "disconnected", listener: () => void): any;
|
|
@@ -27,15 +26,13 @@ export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
28
|
* Manages the transmission of ops between the runtime and storage.
|
|
30
|
-
* @legacy
|
|
31
|
-
* @alpha
|
|
29
|
+
* @legacy @beta
|
|
32
30
|
*/
|
|
33
31
|
export type IDeltaManagerErased = ErasedType<"@fluidframework/container-definitions.IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>">;
|
|
34
32
|
/**
|
|
35
33
|
* Represents the runtime for the data store. Contains helper functions/state of the data store.
|
|
36
34
|
* @sealed
|
|
37
|
-
* @legacy
|
|
38
|
-
* @alpha
|
|
35
|
+
* @legacy @beta
|
|
39
36
|
*/
|
|
40
37
|
export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRuntimeEvents>, IDisposable {
|
|
41
38
|
readonly id: string;
|
|
@@ -132,8 +129,7 @@ export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRu
|
|
|
132
129
|
/**
|
|
133
130
|
* @experimental
|
|
134
131
|
* @deprecated - These APIs are unstable, and can be changed at will. They should only be used with direct agreement with the Fluid Framework.
|
|
135
|
-
* @legacy
|
|
136
|
-
* @alpha
|
|
132
|
+
* @legacy @beta
|
|
137
133
|
* @sealed
|
|
138
134
|
*/
|
|
139
135
|
export interface IFluidDataStoreRuntimeExperimental extends IFluidDataStoreRuntime {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStoreRuntime.d.ts","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EACX,YAAY,EACZ,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,UAAU,EACV,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAE1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C
|
|
1
|
+
{"version":3,"file":"dataStoreRuntime.d.ts","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,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,GAAG,IAAI,CAAC;IAGrC;;;OAGG;IACH,UAAU,CACT,IAAI,EAAE,eAAe,EACrB,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC;IAE1C;;;;;OAKG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAEhF;;OAEG;IACH,SAAS,IAAI,cAAc,CAAC;IAE5B;;OAEG;IACH,WAAW,IAAI,SAAS,CAAC;IAEzB;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CAC/C;AAED;;;;;GAKG;AACH,MAAM,WAAW,kCAAmC,SAAQ,sBAAsB;IACjF,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,oCAAoC;IACpD,QAAQ,CAAC,oCAAoC,CAAC,EAAE,OAAO,CAAC;CACxD"}
|
package/lib/jsonable.d.ts
CHANGED
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @privateRemarks
|
|
14
14
|
* Prefer using `Jsonable<unknown>` over this type that is an implementation detail.
|
|
15
|
-
* @legacy
|
|
16
|
-
* @alpha
|
|
15
|
+
* @legacy @beta
|
|
17
16
|
*/
|
|
18
17
|
export type JsonableTypeWith<T> = undefined | null | boolean | number | string | T | Internal_InterfaceOfJsonableTypesWith<T> | ArrayLike<JsonableTypeWith<T>>;
|
|
19
18
|
/**
|
|
@@ -25,8 +24,7 @@ export type JsonableTypeWith<T> = undefined | null | boolean | number | string |
|
|
|
25
24
|
* This interface along with ArrayLike above avoids pure type recursion issues, but introduces a limitation on
|
|
26
25
|
* the ability of {@link Jsonable} to detect array-like types that are not handled naively ({@link JSON.stringify}).
|
|
27
26
|
* The TypeOnly filter is not useful for {@link JsonableTypeWith}; so, if type testing improves, this can be removed.
|
|
28
|
-
* @legacy
|
|
29
|
-
* @alpha
|
|
27
|
+
* @legacy @beta
|
|
30
28
|
*/
|
|
31
29
|
export interface Internal_InterfaceOfJsonableTypesWith<T> {
|
|
32
30
|
[index: string | number]: JsonableTypeWith<T>;
|
|
@@ -69,8 +67,7 @@ export interface Internal_InterfaceOfJsonableTypesWith<T> {
|
|
|
69
67
|
* ```typescript
|
|
70
68
|
* function foo<T>(value: Jsonable<T>) { ... }
|
|
71
69
|
* ```
|
|
72
|
-
* @legacy
|
|
73
|
-
* @alpha
|
|
70
|
+
* @legacy @beta
|
|
74
71
|
*/
|
|
75
72
|
export type Jsonable<T, TReplaced = never> = boolean extends (T extends never ? true : false) ? JsonableTypeWith<TReplaced> : unknown extends T ? JsonableTypeWith<TReplaced> : T extends undefined | null | boolean | number | string | TReplaced ? T : Extract<T, Function> extends never ? T extends object ? T extends (infer U)[] ? Jsonable<U, TReplaced>[] : {
|
|
76
73
|
[K in keyof T]: Extract<K, symbol> extends never ? Jsonable<T[K], TReplaced> : never;
|
package/lib/jsonable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonable.d.ts","sourceRoot":"","sources":["../src/jsonable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH
|
|
1
|
+
{"version":3,"file":"jsonable.d.ts","sourceRoot":"","sources":["../src/jsonable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC3B,SAAS,GACT,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,CAAC,GACD,qCAAqC,CAAC,CAAC,CAAC,GACxC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAElC;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,qCAAqC,CAAC,CAAC;IACvD,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,SAAS,GAAG,KAAK,IAAyB,OAAO,SAAS,CACjF,CAAC,SAAS,KAAK,GACZ,IAAI,GACJ,KAAK,CACR,GACiB,gBAAgB,CAAC,SAAS,CAAC,GACjB,OAAO,SAAS,CAAC,GACtB,gBAAgB,CAAC,SAAS,CAAC,GACN,CAAC,SACtC,SAAS,GACT,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACc,CAAC,GAEG,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,SAAS,KAAK,GAClB,CAAC,SAAS,MAAM,GAC5B,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GACpC,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,GACjB;KACrB,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,SAAS,KAAK,GAC7C,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GACzB,KAAK;CACR,GACsB,KAAK,GACX,KAAK,CAAC"}
|
package/lib/serializable.d.ts
CHANGED
|
@@ -20,8 +20,7 @@ import type { Jsonable } from "./jsonable.js";
|
|
|
20
20
|
* ```typescript
|
|
21
21
|
* function serialize<T>(value: Serializable<T>) { ... }
|
|
22
22
|
* ```
|
|
23
|
-
* @legacy
|
|
24
|
-
* @alpha
|
|
23
|
+
* @legacy @beta
|
|
25
24
|
*/
|
|
26
25
|
export type Serializable<T> = Jsonable<T, IFluidHandle>;
|
|
27
26
|
//# sourceMappingURL=serializable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializable.d.ts","sourceRoot":"","sources":["../src/serializable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"serializable.d.ts","sourceRoot":"","sources":["../src/serializable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC"}
|
package/lib/storage.d.ts
CHANGED
package/lib/storage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CACjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/datastore-definitions",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.60.0",
|
|
4
4
|
"description": "Fluid data store definitions",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"main": "",
|
|
42
42
|
"types": "lib/public.d.ts",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@fluidframework/container-definitions": "~2.
|
|
45
|
-
"@fluidframework/core-interfaces": "~2.
|
|
46
|
-
"@fluidframework/driver-definitions": "~2.
|
|
47
|
-
"@fluidframework/id-compressor": "~2.
|
|
48
|
-
"@fluidframework/runtime-definitions": "~2.
|
|
44
|
+
"@fluidframework/container-definitions": "~2.60.0",
|
|
45
|
+
"@fluidframework/core-interfaces": "~2.60.0",
|
|
46
|
+
"@fluidframework/driver-definitions": "~2.60.0",
|
|
47
|
+
"@fluidframework/id-compressor": "~2.60.0",
|
|
48
|
+
"@fluidframework/runtime-definitions": "~2.60.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@fluid-tools/build-cli": "^0.57.0",
|
|
54
54
|
"@fluidframework/build-common": "^2.0.3",
|
|
55
55
|
"@fluidframework/build-tools": "^0.57.0",
|
|
56
|
-
"@fluidframework/datastore-definitions-previous": "npm:@fluidframework/datastore-definitions@2.
|
|
57
|
-
"@fluidframework/eslint-config-fluid": "^
|
|
56
|
+
"@fluidframework/datastore-definitions-previous": "npm:@fluidframework/datastore-definitions@2.53.0",
|
|
57
|
+
"@fluidframework/eslint-config-fluid": "^6.0.0",
|
|
58
58
|
"@microsoft/api-extractor": "7.52.8",
|
|
59
59
|
"concurrently": "^8.2.1",
|
|
60
60
|
"copyfiles": "^2.4.1",
|
package/src/channel.ts
CHANGED
|
@@ -32,8 +32,7 @@ import type { IChannelAttributes } from "./storage.js";
|
|
|
32
32
|
* TODO:
|
|
33
33
|
* Either Channels should become a useful well documented abstraction of which there could be another implementation, or it should be better integrated with SharedObject to reduce concept count.
|
|
34
34
|
*
|
|
35
|
-
* @legacy
|
|
36
|
-
* @alpha
|
|
35
|
+
* @legacy @beta
|
|
37
36
|
*/
|
|
38
37
|
export interface IChannel extends IFluidLoadable {
|
|
39
38
|
/**
|
|
@@ -136,8 +135,7 @@ export interface IChannel extends IFluidLoadable {
|
|
|
136
135
|
|
|
137
136
|
/**
|
|
138
137
|
* Handler provided by shared data structure to process requests from the runtime.
|
|
139
|
-
* @legacy
|
|
140
|
-
* @alpha
|
|
138
|
+
* @legacy @beta
|
|
141
139
|
*/
|
|
142
140
|
export interface IDeltaHandler {
|
|
143
141
|
/**
|
|
@@ -200,8 +198,7 @@ export interface IDeltaHandler {
|
|
|
200
198
|
|
|
201
199
|
/**
|
|
202
200
|
* Interface to represent a connection to a delta notification stream.
|
|
203
|
-
* @legacy
|
|
204
|
-
* @alpha
|
|
201
|
+
* @legacy @beta
|
|
205
202
|
*/
|
|
206
203
|
export interface IDeltaConnection {
|
|
207
204
|
connected: boolean;
|
|
@@ -231,8 +228,7 @@ export interface IDeltaConnection {
|
|
|
231
228
|
|
|
232
229
|
/**
|
|
233
230
|
* Storage services to read the objects at a given path.
|
|
234
|
-
* @legacy
|
|
235
|
-
* @alpha
|
|
231
|
+
* @legacy @beta
|
|
236
232
|
*/
|
|
237
233
|
export interface IChannelStorageService {
|
|
238
234
|
/**
|
|
@@ -259,8 +255,7 @@ export interface IChannelStorageService {
|
|
|
259
255
|
|
|
260
256
|
/**
|
|
261
257
|
* Storage services to read the objects at a given path using the given delta connection.
|
|
262
|
-
* @legacy
|
|
263
|
-
* @alpha
|
|
258
|
+
* @legacy @beta
|
|
264
259
|
*/
|
|
265
260
|
export interface IChannelServices {
|
|
266
261
|
deltaConnection: IDeltaConnection;
|
|
@@ -294,8 +289,7 @@ export interface IChannelServices {
|
|
|
294
289
|
* This approach (not requiring TChannel to extend IChannel) also makes it possible for SharedObject's public interfaces to not include IChannel if desired
|
|
295
290
|
* (while still requiring the implementation to implement it).
|
|
296
291
|
*
|
|
297
|
-
* @legacy
|
|
298
|
-
* @alpha
|
|
292
|
+
* @legacy @beta
|
|
299
293
|
*/
|
|
300
294
|
export interface IChannelFactory<out TChannel = unknown> {
|
|
301
295
|
/**
|
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -23,8 +23,7 @@ import type { IChannel } from "./channel.js";
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Events emitted by {@link IFluidDataStoreRuntime}.
|
|
26
|
-
* @legacy
|
|
27
|
-
* @alpha
|
|
26
|
+
* @legacy @beta
|
|
28
27
|
*/
|
|
29
28
|
export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
30
29
|
(event: "disconnected", listener: () => void);
|
|
@@ -43,8 +42,7 @@ export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
44
|
* Manages the transmission of ops between the runtime and storage.
|
|
46
|
-
* @legacy
|
|
47
|
-
* @alpha
|
|
45
|
+
* @legacy @beta
|
|
48
46
|
*/
|
|
49
47
|
export type IDeltaManagerErased =
|
|
50
48
|
ErasedType<"@fluidframework/container-definitions.IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>">;
|
|
@@ -52,8 +50,7 @@ export type IDeltaManagerErased =
|
|
|
52
50
|
/**
|
|
53
51
|
* Represents the runtime for the data store. Contains helper functions/state of the data store.
|
|
54
52
|
* @sealed
|
|
55
|
-
* @legacy
|
|
56
|
-
* @alpha
|
|
53
|
+
* @legacy @beta
|
|
57
54
|
*/
|
|
58
55
|
export interface IFluidDataStoreRuntime
|
|
59
56
|
extends IEventProvider<IFluidDataStoreRuntimeEvents>,
|
|
@@ -179,8 +176,7 @@ export interface IFluidDataStoreRuntime
|
|
|
179
176
|
/**
|
|
180
177
|
* @experimental
|
|
181
178
|
* @deprecated - These APIs are unstable, and can be changed at will. They should only be used with direct agreement with the Fluid Framework.
|
|
182
|
-
* @legacy
|
|
183
|
-
* @alpha
|
|
179
|
+
* @legacy @beta
|
|
184
180
|
* @sealed
|
|
185
181
|
*/
|
|
186
182
|
export interface IFluidDataStoreRuntimeExperimental extends IFluidDataStoreRuntime {
|
package/src/jsonable.ts
CHANGED
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @privateRemarks
|
|
18
18
|
* Prefer using `Jsonable<unknown>` over this type that is an implementation detail.
|
|
19
|
-
* @legacy
|
|
20
|
-
* @alpha
|
|
19
|
+
* @legacy @beta
|
|
21
20
|
*/
|
|
22
21
|
export type JsonableTypeWith<T> =
|
|
23
22
|
| undefined
|
|
@@ -38,8 +37,7 @@ export type JsonableTypeWith<T> =
|
|
|
38
37
|
* This interface along with ArrayLike above avoids pure type recursion issues, but introduces a limitation on
|
|
39
38
|
* the ability of {@link Jsonable} to detect array-like types that are not handled naively ({@link JSON.stringify}).
|
|
40
39
|
* The TypeOnly filter is not useful for {@link JsonableTypeWith}; so, if type testing improves, this can be removed.
|
|
41
|
-
* @legacy
|
|
42
|
-
* @alpha
|
|
40
|
+
* @legacy @beta
|
|
43
41
|
*/
|
|
44
42
|
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style -- Use of mapped type required to prevent circular reference issue
|
|
45
43
|
export interface Internal_InterfaceOfJsonableTypesWith<T> {
|
|
@@ -84,8 +82,7 @@ export interface Internal_InterfaceOfJsonableTypesWith<T> {
|
|
|
84
82
|
* ```typescript
|
|
85
83
|
* function foo<T>(value: Jsonable<T>) { ... }
|
|
86
84
|
* ```
|
|
87
|
-
* @legacy
|
|
88
|
-
* @alpha
|
|
85
|
+
* @legacy @beta
|
|
89
86
|
*/
|
|
90
87
|
export type Jsonable<T, TReplaced = never> = /* test for 'any' */ boolean extends (
|
|
91
88
|
T extends never
|
package/src/serializable.ts
CHANGED