@fluidframework/map 2.0.0-dev.7.4.0.217884 → 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/map.api.md +27 -27
- package/dist/directory.cjs +3 -3
- package/dist/directory.cjs.map +1 -1
- package/dist/directory.d.ts +13 -13
- package/dist/interfaces.cjs.map +1 -1
- package/dist/interfaces.d.ts +10 -10
- package/dist/localValues.cjs +1 -1
- package/dist/localValues.cjs.map +1 -1
- package/dist/localValues.d.ts +2 -2
- package/dist/map-alpha.d.ts +919 -27
- package/dist/map-beta.d.ts +16 -0
- package/dist/map-public.d.ts +16 -0
- package/dist/map-untrimmed.d.ts +27 -27
- package/dist/map.cjs +2 -2
- package/dist/map.cjs.map +1 -1
- package/dist/map.d.ts +2 -2
- package/dist/packageVersion.cjs +1 -1
- package/dist/packageVersion.cjs.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/lib/directory.d.ts +15 -15
- package/lib/directory.d.ts.map +1 -1
- package/lib/directory.mjs +3 -3
- package/lib/directory.mjs.map +1 -1
- package/lib/index.d.ts +4 -15
- package/lib/index.d.ts.map +1 -1
- package/lib/interfaces.d.ts +10 -10
- package/lib/interfaces.d.ts.map +1 -1
- package/lib/interfaces.mjs.map +1 -1
- package/lib/internalInterfaces.d.ts +2 -2
- package/lib/internalInterfaces.d.ts.map +1 -1
- package/lib/localValues.d.ts +3 -3
- package/lib/localValues.d.ts.map +1 -1
- package/lib/localValues.mjs +1 -1
- package/lib/localValues.mjs.map +1 -1
- package/lib/map-alpha.d.ts +919 -27
- package/lib/map-beta.d.ts +16 -0
- package/lib/map-public.d.ts +16 -0
- package/lib/map-untrimmed.d.ts +27 -27
- package/lib/map.d.ts +3 -3
- package/lib/map.d.ts.map +1 -1
- package/lib/map.mjs +2 -2
- package/lib/map.mjs.map +1 -1
- package/lib/mapKernel.d.ts +2 -2
- package/lib/mapKernel.d.ts.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.mjs +1 -1
- package/lib/packageVersion.mjs.map +1 -1
- package/map.test-files.tar +0 -0
- package/package.json +17 -15
- package/src/directory.ts +14 -14
- package/src/interfaces.ts +10 -10
- package/src/localValues.ts +2 -2
- package/src/map.ts +2 -2
- package/src/packageVersion.ts +1 -1
package/src/directory.ts
CHANGED
|
@@ -71,7 +71,7 @@ interface IDirectoryMessageHandler {
|
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* Operation indicating a value should be set for a key.
|
|
74
|
-
* @
|
|
74
|
+
* @alpha
|
|
75
75
|
*/
|
|
76
76
|
export interface IDirectorySetOperation {
|
|
77
77
|
/**
|
|
@@ -98,7 +98,7 @@ export interface IDirectorySetOperation {
|
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Operation indicating a key should be deleted from the directory.
|
|
101
|
-
* @
|
|
101
|
+
* @alpha
|
|
102
102
|
*/
|
|
103
103
|
export interface IDirectoryDeleteOperation {
|
|
104
104
|
/**
|
|
@@ -119,13 +119,13 @@ export interface IDirectoryDeleteOperation {
|
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* An operation on a specific key within a directory.
|
|
122
|
-
* @
|
|
122
|
+
* @alpha
|
|
123
123
|
*/
|
|
124
124
|
export type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* Operation indicating the directory should be cleared.
|
|
128
|
-
* @
|
|
128
|
+
* @alpha
|
|
129
129
|
*/
|
|
130
130
|
export interface IDirectoryClearOperation {
|
|
131
131
|
/**
|
|
@@ -141,13 +141,13 @@ export interface IDirectoryClearOperation {
|
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* An operation on one or more of the keys within a directory.
|
|
144
|
-
* @
|
|
144
|
+
* @alpha
|
|
145
145
|
*/
|
|
146
146
|
export type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* Operation indicating a subdirectory should be created.
|
|
150
|
-
* @
|
|
150
|
+
* @alpha
|
|
151
151
|
*/
|
|
152
152
|
export interface IDirectoryCreateSubDirectoryOperation {
|
|
153
153
|
/**
|
|
@@ -168,7 +168,7 @@ export interface IDirectoryCreateSubDirectoryOperation {
|
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* Operation indicating a subdirectory should be deleted.
|
|
171
|
-
* @
|
|
171
|
+
* @alpha
|
|
172
172
|
*/
|
|
173
173
|
export interface IDirectoryDeleteSubDirectoryOperation {
|
|
174
174
|
/**
|
|
@@ -189,7 +189,7 @@ export interface IDirectoryDeleteSubDirectoryOperation {
|
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* An operation on the subdirectories within a directory.
|
|
192
|
-
* @
|
|
192
|
+
* @alpha
|
|
193
193
|
*/
|
|
194
194
|
export type IDirectorySubDirectoryOperation =
|
|
195
195
|
| IDirectoryCreateSubDirectoryOperation
|
|
@@ -197,13 +197,13 @@ export type IDirectorySubDirectoryOperation =
|
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Any operation on a directory.
|
|
200
|
-
* @
|
|
200
|
+
* @alpha
|
|
201
201
|
*/
|
|
202
202
|
export type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDirectoryOperation;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Create info for the subdirectory.
|
|
206
|
-
* @
|
|
206
|
+
* @alpha
|
|
207
207
|
*/
|
|
208
208
|
export interface ICreateInfo {
|
|
209
209
|
/**
|
|
@@ -224,7 +224,7 @@ export interface ICreateInfo {
|
|
|
224
224
|
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
|
|
225
225
|
* | JSON.stringify}, direct result from
|
|
226
226
|
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse | JSON.parse}.
|
|
227
|
-
* @
|
|
227
|
+
* @alpha
|
|
228
228
|
*/
|
|
229
229
|
export interface IDirectoryDataObject {
|
|
230
230
|
/**
|
|
@@ -269,7 +269,7 @@ export interface IDirectoryNewStorageFormat {
|
|
|
269
269
|
* {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link SharedDirectory}.
|
|
270
270
|
*
|
|
271
271
|
* @sealed
|
|
272
|
-
* @
|
|
272
|
+
* @alpha
|
|
273
273
|
*/
|
|
274
274
|
export class DirectoryFactory implements IChannelFactory {
|
|
275
275
|
/**
|
|
@@ -447,7 +447,7 @@ class DirectoryCreationTracker {
|
|
|
447
447
|
* ```
|
|
448
448
|
*
|
|
449
449
|
* @sealed
|
|
450
|
-
* @
|
|
450
|
+
* @alpha
|
|
451
451
|
*/
|
|
452
452
|
export class SharedDirectory
|
|
453
453
|
extends SharedObject<ISharedDirectoryEvents>
|
|
@@ -1508,7 +1508,7 @@ class SubDirectory extends TypedEventEmitter<IDirectoryEvents> implements IDirec
|
|
|
1508
1508
|
|
|
1509
1509
|
assert(
|
|
1510
1510
|
subdirNames.length === this._subdirectories.size,
|
|
1511
|
-
|
|
1511
|
+
0x85c /* The count of keys for iteration should be consistent with the size of actual data */,
|
|
1512
1512
|
);
|
|
1513
1513
|
|
|
1514
1514
|
const entriesIterator = {
|
package/src/interfaces.ts
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Type of "valueChanged" event parameter.
|
|
16
|
-
* @
|
|
16
|
+
* @alpha
|
|
17
17
|
*/
|
|
18
18
|
export interface IValueChanged {
|
|
19
19
|
/**
|
|
@@ -33,7 +33,7 @@ export interface IValueChanged {
|
|
|
33
33
|
* Interface describing actions on a directory.
|
|
34
34
|
*
|
|
35
35
|
* @remarks When used as a Map, operates on its keys.
|
|
36
|
-
* @
|
|
36
|
+
* @alpha
|
|
37
37
|
*/
|
|
38
38
|
// TODO: Use `unknown` instead (breaking change).
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -117,7 +117,7 @@ export interface IDirectory
|
|
|
117
117
|
*
|
|
118
118
|
* @remarks
|
|
119
119
|
* These events only emit on the {@link ISharedDirectory} itself, and not on subdirectories.
|
|
120
|
-
* @
|
|
120
|
+
* @alpha
|
|
121
121
|
*/
|
|
122
122
|
export interface ISharedDirectoryEvents extends ISharedObjectEvents {
|
|
123
123
|
/**
|
|
@@ -190,7 +190,7 @@ export interface ISharedDirectoryEvents extends ISharedObjectEvents {
|
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* Events emitted in response to changes to the directory data.
|
|
193
|
-
* @
|
|
193
|
+
* @alpha
|
|
194
194
|
*/
|
|
195
195
|
export interface IDirectoryEvents extends IEvent {
|
|
196
196
|
/**
|
|
@@ -271,7 +271,7 @@ export interface IDirectoryEvents extends IEvent {
|
|
|
271
271
|
* Provides a hierarchical organization of map-like data structures as SubDirectories.
|
|
272
272
|
* The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.
|
|
273
273
|
* SubDirectories can be retrieved for use as working directories.
|
|
274
|
-
* @
|
|
274
|
+
* @alpha
|
|
275
275
|
*/
|
|
276
276
|
export interface ISharedDirectory
|
|
277
277
|
extends ISharedObject<ISharedDirectoryEvents & IDirectoryEvents>,
|
|
@@ -286,7 +286,7 @@ export interface ISharedDirectory
|
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
288
|
* Type of "valueChanged" event parameter for {@link ISharedDirectory}.
|
|
289
|
-
* @
|
|
289
|
+
* @alpha
|
|
290
290
|
*/
|
|
291
291
|
export interface IDirectoryValueChanged extends IValueChanged {
|
|
292
292
|
/**
|
|
@@ -297,7 +297,7 @@ export interface IDirectoryValueChanged extends IValueChanged {
|
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
* Events emitted in response to changes to the {@link ISharedMap | map} data.
|
|
300
|
-
* @
|
|
300
|
+
* @alpha
|
|
301
301
|
*/
|
|
302
302
|
export interface ISharedMapEvents extends ISharedObjectEvents {
|
|
303
303
|
/**
|
|
@@ -336,7 +336,7 @@ export interface ISharedMapEvents extends ISharedObjectEvents {
|
|
|
336
336
|
* {@link @fluidframework/datastore#FluidObjectHandle}.
|
|
337
337
|
*
|
|
338
338
|
* For more information, including example usages, see {@link https://fluidframework.com/docs/data-structures/map/}.
|
|
339
|
-
* @
|
|
339
|
+
* @alpha
|
|
340
340
|
*/
|
|
341
341
|
// TODO: Use `unknown` instead (breaking change).
|
|
342
342
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -381,7 +381,7 @@ export interface ISharedMap extends ISharedObject<ISharedMapEvents>, Map<string,
|
|
|
381
381
|
* channel ID.
|
|
382
382
|
*
|
|
383
383
|
* @deprecated This type is legacy and deprecated.
|
|
384
|
-
* @
|
|
384
|
+
* @alpha
|
|
385
385
|
*/
|
|
386
386
|
export interface ISerializableValue {
|
|
387
387
|
/**
|
|
@@ -398,7 +398,7 @@ export interface ISerializableValue {
|
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
400
|
* Serialized {@link ISerializableValue} counterpart.
|
|
401
|
-
* @
|
|
401
|
+
* @alpha
|
|
402
402
|
*/
|
|
403
403
|
export interface ISerializedValue {
|
|
404
404
|
/**
|
package/src/localValues.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { ISerializableValue, ISerializedValue } from "./interfaces";
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A local value to be stored in a container type Distributed Data Store (DDS).
|
|
19
|
-
* @
|
|
19
|
+
* @alpha
|
|
20
20
|
*/
|
|
21
21
|
export interface ILocalValue {
|
|
22
22
|
/**
|
|
@@ -98,7 +98,7 @@ export class PlainLocalValue implements ILocalValue {
|
|
|
98
98
|
/**
|
|
99
99
|
* Enables a container type {@link https://fluidframework.com/docs/build/dds/ | DDS} to produce and store local
|
|
100
100
|
* values with minimal awareness of how those objects are stored, serialized, and deserialized.
|
|
101
|
-
* @
|
|
101
|
+
* @alpha
|
|
102
102
|
*/
|
|
103
103
|
export class LocalValueMaker {
|
|
104
104
|
/**
|
package/src/map.ts
CHANGED
|
@@ -30,7 +30,7 @@ const snapshotFileName = "header";
|
|
|
30
30
|
* {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link SharedMap}.
|
|
31
31
|
*
|
|
32
32
|
* @sealed
|
|
33
|
-
* @
|
|
33
|
+
* @alpha
|
|
34
34
|
*/
|
|
35
35
|
export class MapFactory implements IChannelFactory {
|
|
36
36
|
/**
|
|
@@ -89,7 +89,7 @@ export class MapFactory implements IChannelFactory {
|
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* {@inheritDoc ISharedMap}
|
|
92
|
-
* @
|
|
92
|
+
* @alpha
|
|
93
93
|
*/
|
|
94
94
|
export class SharedMap extends SharedObject<ISharedMapEvents> implements ISharedMap {
|
|
95
95
|
/**
|
package/src/packageVersion.ts
CHANGED