@fluidframework/datastore-definitions 2.0.0-dev.7.4.0.217212 → 2.0.0-dev.7.4.0.221926
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-extractor.json +0 -3
- package/api-report/datastore-definitions.api.md +12 -12
- package/dist/channel.d.ts +6 -6
- package/dist/channel.js.map +1 -1
- package/dist/dataStoreRuntime.d.ts +5 -3
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js.map +1 -1
- package/dist/datastore-definitions-alpha.d.ts +428 -33
- package/dist/datastore-definitions-beta.d.ts +22 -0
- package/dist/datastore-definitions-public.d.ts +22 -0
- package/dist/datastore-definitions-untrimmed.d.ts +13 -12
- package/dist/jsonable.d.ts +1 -1
- package/dist/jsonable.js.map +1 -1
- package/dist/serializable.d.ts +1 -1
- package/dist/serializable.js.map +1 -1
- package/dist/storage.d.ts +1 -1
- package/dist/storage.js.map +1 -1
- package/lib/datastore-definitions-alpha.d.ts +428 -33
- package/lib/datastore-definitions-beta.d.ts +22 -0
- package/lib/datastore-definitions-public.d.ts +22 -0
- package/lib/datastore-definitions-untrimmed.d.ts +13 -12
- package/package.json +7 -4
- package/src/channel.ts +6 -6
- package/src/dataStoreRuntime.ts +4 -3
- package/src/jsonable.ts +1 -1
- package/src/serializable.ts +1 -1
- package/src/storage.ts +1 -1
|
@@ -19,7 +19,7 @@ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
|
19
19
|
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
20
20
|
import { IFluidRouter } from '@fluidframework/core-interfaces';
|
|
21
21
|
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
|
|
22
|
-
import { IIdCompressor } from '@fluidframework/
|
|
22
|
+
import { IIdCompressor } from '@fluidframework/id-compressor';
|
|
23
23
|
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
24
24
|
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
25
25
|
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
@@ -32,7 +32,7 @@ import { ITelemetryContext } from '@fluidframework/runtime-definitions';
|
|
|
32
32
|
import { ITelemetryLogger } from '@fluidframework/core-interfaces';
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* @
|
|
35
|
+
* @alpha
|
|
36
36
|
*/
|
|
37
37
|
export declare interface IChannel extends IFluidLoadable {
|
|
38
38
|
/**
|
|
@@ -120,7 +120,7 @@ export declare interface IChannel extends IFluidLoadable {
|
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Represents the attributes of a channel/DDS.
|
|
123
|
-
* @
|
|
123
|
+
* @alpha
|
|
124
124
|
*/
|
|
125
125
|
export declare interface IChannelAttributes {
|
|
126
126
|
/**
|
|
@@ -157,7 +157,7 @@ export declare interface IChannelAttributes {
|
|
|
157
157
|
*
|
|
158
158
|
* If a collaboration includes a {@link https://fluidframework.com/docs/data-structures/map/ | SharedMap},
|
|
159
159
|
* the collaborating clients will need to have access to a factory that can produce the `SharedMap` object.
|
|
160
|
-
* @
|
|
160
|
+
* @alpha
|
|
161
161
|
*/
|
|
162
162
|
export declare interface IChannelFactory {
|
|
163
163
|
/**
|
|
@@ -200,7 +200,7 @@ export declare interface IChannelFactory {
|
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* Storage services to read the objects at a given path using the given delta connection.
|
|
203
|
-
* @
|
|
203
|
+
* @alpha
|
|
204
204
|
*/
|
|
205
205
|
export declare interface IChannelServices {
|
|
206
206
|
deltaConnection: IDeltaConnection;
|
|
@@ -209,7 +209,7 @@ export declare interface IChannelServices {
|
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* Storage services to read the objects at a given path.
|
|
212
|
-
* @
|
|
212
|
+
* @alpha
|
|
213
213
|
*/
|
|
214
214
|
export declare interface IChannelStorageService {
|
|
215
215
|
/**
|
|
@@ -228,7 +228,7 @@ export declare interface IChannelStorageService {
|
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
* Interface to represent a connection to a delta notification stream.
|
|
231
|
-
* @
|
|
231
|
+
* @alpha
|
|
232
232
|
*/
|
|
233
233
|
export declare interface IDeltaConnection {
|
|
234
234
|
connected: boolean;
|
|
@@ -260,7 +260,7 @@ export declare interface IDeltaConnection {
|
|
|
260
260
|
|
|
261
261
|
/**
|
|
262
262
|
* Handler provided by shared data structure to process requests from the runtime.
|
|
263
|
-
* @
|
|
263
|
+
* @alpha
|
|
264
264
|
*/
|
|
265
265
|
export declare interface IDeltaHandler {
|
|
266
266
|
/**
|
|
@@ -304,7 +304,7 @@ export declare interface IDeltaHandler {
|
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* Represents the runtime for the data store. Contains helper functions/state of the data store.
|
|
307
|
-
* @
|
|
307
|
+
* @alpha
|
|
308
308
|
*/
|
|
309
309
|
export declare interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRuntimeEvents>, IDisposable, Partial<IProvideFluidDataStoreRegistry> {
|
|
310
310
|
readonly id: string;
|
|
@@ -386,7 +386,8 @@ export declare interface IFluidDataStoreRuntime extends IEventProvider<IFluidDat
|
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
|
-
* @
|
|
389
|
+
* Events emitted by {@link IFluidDataStoreRuntime}.
|
|
390
|
+
* @alpha
|
|
390
391
|
*/
|
|
391
392
|
export declare interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
392
393
|
(event: "disconnected" | "dispose" | "attaching" | "attached", listener: () => void): any;
|
|
@@ -432,7 +433,7 @@ export declare interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
|
432
433
|
* ```typescript
|
|
433
434
|
* function foo<T>(value: Jsonable<T>) { ... }
|
|
434
435
|
* ```
|
|
435
|
-
* @
|
|
436
|
+
* @alpha
|
|
436
437
|
*/
|
|
437
438
|
export declare type Jsonable<T = any, TReplaced = void> = T extends undefined | null | boolean | number | string | TReplaced ? T : Extract<T, Function> extends never ? {
|
|
438
439
|
[K in keyof T]: Extract<K, symbol> extends never ? Jsonable<T[K], TReplaced> : never;
|
|
@@ -454,7 +455,7 @@ export declare type Jsonable<T = any, TReplaced = void> = T extends undefined |
|
|
|
454
455
|
* ```typescript
|
|
455
456
|
* function serialize<T>(value: Serializable<T>) { ... }
|
|
456
457
|
* ```
|
|
457
|
-
* @
|
|
458
|
+
* @alpha
|
|
458
459
|
*/
|
|
459
460
|
export declare type Serializable<T = any> = Jsonable<T, IFluidHandle>;
|
|
460
461
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/datastore-definitions",
|
|
3
|
-
"version": "2.0.0-dev.7.4.0.
|
|
3
|
+
"version": "2.0.0-dev.7.4.0.221926",
|
|
4
4
|
"description": "Fluid data store definitions",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@fluidframework/container-definitions": "2.0.0-dev.7.4.0.
|
|
18
|
-
"@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.
|
|
17
|
+
"@fluidframework/container-definitions": "2.0.0-dev.7.4.0.221926",
|
|
18
|
+
"@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.221926",
|
|
19
|
+
"@fluidframework/id-compressor": "2.0.0-dev.7.4.0.221926",
|
|
19
20
|
"@fluidframework/protocol-definitions": "^3.0.0",
|
|
20
|
-
"@fluidframework/runtime-definitions": "2.0.0-dev.7.4.0.
|
|
21
|
+
"@fluidframework/runtime-definitions": "2.0.0-dev.7.4.0.221926"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
24
|
+
"@arethetypeswrong/cli": "^0.13.3",
|
|
23
25
|
"@fluid-tools/build-cli": "^0.28.0",
|
|
24
26
|
"@fluidframework/build-common": "^2.0.3",
|
|
25
27
|
"@fluidframework/build-tools": "^0.28.0",
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
"build:compile": "fluid-build . --task compile",
|
|
56
58
|
"build:docs": "fluid-build . --task api",
|
|
57
59
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
60
|
+
"check:are-the-types-wrong": "attw --pack",
|
|
58
61
|
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
59
62
|
"ci:build:docs": "api-extractor run",
|
|
60
63
|
"clean": "rimraf --glob dist \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
|
package/src/channel.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { IChannelAttributes } from "./storage";
|
|
|
15
15
|
import { IFluidDataStoreRuntime } from "./dataStoreRuntime";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* @
|
|
18
|
+
* @alpha
|
|
19
19
|
*/
|
|
20
20
|
export interface IChannel extends IFluidLoadable {
|
|
21
21
|
/**
|
|
@@ -118,7 +118,7 @@ export interface IChannel extends IFluidLoadable {
|
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* Handler provided by shared data structure to process requests from the runtime.
|
|
121
|
-
* @
|
|
121
|
+
* @alpha
|
|
122
122
|
*/
|
|
123
123
|
export interface IDeltaHandler {
|
|
124
124
|
/**
|
|
@@ -166,7 +166,7 @@ export interface IDeltaHandler {
|
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Interface to represent a connection to a delta notification stream.
|
|
169
|
-
* @
|
|
169
|
+
* @alpha
|
|
170
170
|
*/
|
|
171
171
|
export interface IDeltaConnection {
|
|
172
172
|
connected: boolean;
|
|
@@ -202,7 +202,7 @@ export interface IDeltaConnection {
|
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
204
|
* Storage services to read the objects at a given path.
|
|
205
|
-
* @
|
|
205
|
+
* @alpha
|
|
206
206
|
*/
|
|
207
207
|
export interface IChannelStorageService {
|
|
208
208
|
/**
|
|
@@ -223,7 +223,7 @@ export interface IChannelStorageService {
|
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* Storage services to read the objects at a given path using the given delta connection.
|
|
226
|
-
* @
|
|
226
|
+
* @alpha
|
|
227
227
|
*/
|
|
228
228
|
export interface IChannelServices {
|
|
229
229
|
deltaConnection: IDeltaConnection;
|
|
@@ -250,7 +250,7 @@ export interface IChannelServices {
|
|
|
250
250
|
*
|
|
251
251
|
* If a collaboration includes a {@link https://fluidframework.com/docs/data-structures/map/ | SharedMap},
|
|
252
252
|
* the collaborating clients will need to have access to a factory that can produce the `SharedMap` object.
|
|
253
|
-
* @
|
|
253
|
+
* @alpha
|
|
254
254
|
*/
|
|
255
255
|
export interface IChannelFactory {
|
|
256
256
|
/**
|
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -28,14 +28,15 @@ import {
|
|
|
28
28
|
ISequencedDocumentMessage,
|
|
29
29
|
} from "@fluidframework/protocol-definitions";
|
|
30
30
|
import {
|
|
31
|
-
IIdCompressor,
|
|
32
31
|
IInboundSignalMessage,
|
|
33
32
|
IProvideFluidDataStoreRegistry,
|
|
34
33
|
} from "@fluidframework/runtime-definitions";
|
|
34
|
+
import { IIdCompressor } from "@fluidframework/id-compressor";
|
|
35
35
|
import { IChannel } from ".";
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* @
|
|
38
|
+
* Events emitted by {@link IFluidDataStoreRuntime}.
|
|
39
|
+
* @alpha
|
|
39
40
|
*/
|
|
40
41
|
export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
41
42
|
(event: "disconnected" | "dispose" | "attaching" | "attached", listener: () => void);
|
|
@@ -46,7 +47,7 @@ export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
|
46
47
|
|
|
47
48
|
/**
|
|
48
49
|
* Represents the runtime for the data store. Contains helper functions/state of the data store.
|
|
49
|
-
* @
|
|
50
|
+
* @alpha
|
|
50
51
|
*/
|
|
51
52
|
export interface IFluidDataStoreRuntime
|
|
52
53
|
extends IEventProvider<IFluidDataStoreRuntimeEvents>,
|
package/src/jsonable.ts
CHANGED
package/src/serializable.ts
CHANGED