@fluidframework/map 2.0.2 → 2.1.0-276326

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.
Files changed (66) hide show
  1. package/api-extractor/api-extractor.legacy.json +4 -0
  2. package/api-report/map.beta.api.md +0 -13
  3. package/api-report/{map.alpha.api.md → map.legacy.alpha.api.md} +2 -13
  4. package/api-report/map.public.api.md +0 -13
  5. package/dist/directory.d.ts +13 -0
  6. package/dist/directory.d.ts.map +1 -1
  7. package/dist/directory.js +1 -0
  8. package/dist/directory.js.map +1 -1
  9. package/dist/directoryFactory.d.ts +3 -0
  10. package/dist/directoryFactory.d.ts.map +1 -1
  11. package/dist/directoryFactory.js +2 -0
  12. package/dist/directoryFactory.js.map +1 -1
  13. package/dist/interfaces.d.ts +8 -0
  14. package/dist/interfaces.d.ts.map +1 -1
  15. package/dist/interfaces.js.map +1 -1
  16. package/dist/internalInterfaces.d.ts +2 -0
  17. package/dist/internalInterfaces.d.ts.map +1 -1
  18. package/dist/internalInterfaces.js.map +1 -1
  19. package/dist/legacy.d.ts +1 -1
  20. package/dist/localValues.d.ts +2 -0
  21. package/dist/localValues.d.ts.map +1 -1
  22. package/dist/localValues.js +1 -0
  23. package/dist/localValues.js.map +1 -1
  24. package/dist/mapFactory.d.ts +3 -0
  25. package/dist/mapFactory.d.ts.map +1 -1
  26. package/dist/mapFactory.js +2 -0
  27. package/dist/mapFactory.js.map +1 -1
  28. package/dist/packageVersion.d.ts +1 -1
  29. package/dist/packageVersion.d.ts.map +1 -1
  30. package/dist/packageVersion.js +1 -1
  31. package/dist/packageVersion.js.map +1 -1
  32. package/lib/directory.d.ts +13 -0
  33. package/lib/directory.d.ts.map +1 -1
  34. package/lib/directory.js +1 -0
  35. package/lib/directory.js.map +1 -1
  36. package/lib/directoryFactory.d.ts +3 -0
  37. package/lib/directoryFactory.d.ts.map +1 -1
  38. package/lib/directoryFactory.js +2 -0
  39. package/lib/directoryFactory.js.map +1 -1
  40. package/lib/interfaces.d.ts +8 -0
  41. package/lib/interfaces.d.ts.map +1 -1
  42. package/lib/interfaces.js.map +1 -1
  43. package/lib/internalInterfaces.d.ts +2 -0
  44. package/lib/internalInterfaces.d.ts.map +1 -1
  45. package/lib/internalInterfaces.js.map +1 -1
  46. package/lib/legacy.d.ts +1 -1
  47. package/lib/localValues.d.ts +2 -0
  48. package/lib/localValues.d.ts.map +1 -1
  49. package/lib/localValues.js +1 -0
  50. package/lib/localValues.js.map +1 -1
  51. package/lib/mapFactory.d.ts +3 -0
  52. package/lib/mapFactory.d.ts.map +1 -1
  53. package/lib/mapFactory.js +2 -0
  54. package/lib/mapFactory.js.map +1 -1
  55. package/lib/packageVersion.d.ts +1 -1
  56. package/lib/packageVersion.d.ts.map +1 -1
  57. package/lib/packageVersion.js +1 -1
  58. package/lib/packageVersion.js.map +1 -1
  59. package/package.json +27 -23
  60. package/src/directory.ts +13 -0
  61. package/src/directoryFactory.ts +3 -0
  62. package/src/interfaces.ts +8 -0
  63. package/src/internalInterfaces.ts +2 -0
  64. package/src/localValues.ts +2 -0
  65. package/src/mapFactory.ts +3 -0
  66. package/src/packageVersion.ts +1 -1
package/src/directory.ts CHANGED
@@ -85,6 +85,7 @@ interface IDirectoryMessageHandler {
85
85
 
86
86
  /**
87
87
  * Operation indicating a value should be set for a key.
88
+ * @legacy
88
89
  * @alpha
89
90
  */
90
91
  export interface IDirectorySetOperation {
@@ -112,6 +113,7 @@ export interface IDirectorySetOperation {
112
113
 
113
114
  /**
114
115
  * Operation indicating a key should be deleted from the directory.
116
+ * @legacy
115
117
  * @alpha
116
118
  */
117
119
  export interface IDirectoryDeleteOperation {
@@ -133,12 +135,14 @@ export interface IDirectoryDeleteOperation {
133
135
 
134
136
  /**
135
137
  * An operation on a specific key within a directory.
138
+ * @legacy
136
139
  * @alpha
137
140
  */
138
141
  export type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
139
142
 
140
143
  /**
141
144
  * Operation indicating the directory should be cleared.
145
+ * @legacy
142
146
  * @alpha
143
147
  */
144
148
  export interface IDirectoryClearOperation {
@@ -155,12 +159,14 @@ export interface IDirectoryClearOperation {
155
159
 
156
160
  /**
157
161
  * An operation on one or more of the keys within a directory.
162
+ * @legacy
158
163
  * @alpha
159
164
  */
160
165
  export type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
161
166
 
162
167
  /**
163
168
  * Operation indicating a subdirectory should be created.
169
+ * @legacy
164
170
  * @alpha
165
171
  */
166
172
  export interface IDirectoryCreateSubDirectoryOperation {
@@ -182,6 +188,7 @@ export interface IDirectoryCreateSubDirectoryOperation {
182
188
 
183
189
  /**
184
190
  * Operation indicating a subdirectory should be deleted.
191
+ * @legacy
185
192
  * @alpha
186
193
  */
187
194
  export interface IDirectoryDeleteSubDirectoryOperation {
@@ -203,6 +210,7 @@ export interface IDirectoryDeleteSubDirectoryOperation {
203
210
 
204
211
  /**
205
212
  * An operation on the subdirectories within a directory.
213
+ * @legacy
206
214
  * @alpha
207
215
  */
208
216
  export type IDirectorySubDirectoryOperation =
@@ -211,6 +219,7 @@ export type IDirectorySubDirectoryOperation =
211
219
 
212
220
  /**
213
221
  * Any operation on a directory.
222
+ * @legacy
214
223
  * @alpha
215
224
  */
216
225
  export type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDirectoryOperation;
@@ -220,6 +229,7 @@ export type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDire
220
229
  *
221
230
  * @deprecated - This interface will no longer be exported in the future(AB#8004).
222
231
  *
232
+ * @legacy
223
233
  * @alpha
224
234
  */
225
235
  export interface ICreateInfo {
@@ -244,6 +254,7 @@ export interface ICreateInfo {
244
254
  *
245
255
  * @deprecated - This interface will no longer be exported in the future(AB#8004).
246
256
  *
257
+ * @legacy
247
258
  * @alpha
248
259
  */
249
260
  export interface IDirectoryDataObject {
@@ -273,6 +284,7 @@ export interface IDirectoryDataObject {
273
284
  *
274
285
  * @deprecated - This interface will no longer be exported in the future(AB#8004).
275
286
  *
287
+ * @legacy
276
288
  * @alpha
277
289
  */
278
290
  export interface IDirectoryNewStorageFormat {
@@ -412,6 +424,7 @@ class DirectoryCreationTracker {
412
424
  * ```
413
425
  *
414
426
  * @sealed
427
+ * @legacy
415
428
  * @alpha
416
429
  */
417
430
  export class SharedDirectory
@@ -19,6 +19,7 @@ import { pkgVersion } from "./packageVersion.js";
19
19
  * {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link ISharedDirectory}.
20
20
  *
21
21
  * @sealed
22
+ * @legacy
22
23
  * @alpha
23
24
  */
24
25
  export class DirectoryFactory implements IChannelFactory<ISharedDirectory> {
@@ -78,12 +79,14 @@ export class DirectoryFactory implements IChannelFactory<ISharedDirectory> {
78
79
 
79
80
  /**
80
81
  * Entrypoint for {@link ISharedDirectory} creation.
82
+ * @legacy
81
83
  * @alpha
82
84
  */
83
85
  export const SharedDirectory = createSharedObjectKind<ISharedDirectory>(DirectoryFactory);
84
86
 
85
87
  /**
86
88
  * Entrypoint for {@link ISharedDirectory} creation.
89
+ * @legacy
87
90
  * @alpha
88
91
  * @privateRemarks
89
92
  * This alias is for legacy compat from when the SharedDirectory class was exported as public.
package/src/interfaces.ts CHANGED
@@ -17,6 +17,7 @@ import type {
17
17
  /**
18
18
  * Type of "valueChanged" event parameter.
19
19
  * @sealed
20
+ * @legacy
20
21
  * @alpha
21
22
  */
22
23
  export interface IValueChanged {
@@ -37,6 +38,7 @@ export interface IValueChanged {
37
38
  * Interface describing actions on a directory.
38
39
  *
39
40
  * @remarks When used as a Map, operates on its keys.
41
+ * @legacy
40
42
  * @alpha
41
43
  */
42
44
  export interface IDirectory
@@ -121,6 +123,7 @@ export interface IDirectory
121
123
  *
122
124
  * @remarks
123
125
  * These events only emit on the {@link ISharedDirectory} itself, and not on subdirectories.
126
+ * @legacy
124
127
  * @alpha
125
128
  */
126
129
  export interface ISharedDirectoryEvents extends ISharedObjectEvents {
@@ -194,6 +197,7 @@ export interface ISharedDirectoryEvents extends ISharedObjectEvents {
194
197
 
195
198
  /**
196
199
  * Events emitted in response to changes to the directory data.
200
+ * @legacy
197
201
  * @alpha
198
202
  */
199
203
  export interface IDirectoryEvents extends IEvent {
@@ -275,6 +279,7 @@ export interface IDirectoryEvents extends IEvent {
275
279
  * Provides a hierarchical organization of map-like data structures as SubDirectories.
276
280
  * The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.
277
281
  * SubDirectories can be retrieved for use as working directories.
282
+ * @legacy
278
283
  * @alpha
279
284
  */
280
285
  export interface ISharedDirectory
@@ -290,6 +295,7 @@ export interface ISharedDirectory
290
295
 
291
296
  /**
292
297
  * Type of "valueChanged" event parameter for {@link ISharedDirectory}.
298
+ * @legacy
293
299
  * @alpha
294
300
  */
295
301
  export interface IDirectoryValueChanged extends IValueChanged {
@@ -302,6 +308,7 @@ export interface IDirectoryValueChanged extends IValueChanged {
302
308
  /**
303
309
  * Events emitted in response to changes to the {@link ISharedMap | map} data.
304
310
  * @sealed
311
+ * @legacy
305
312
  * @alpha
306
313
  */
307
314
  export interface ISharedMapEvents extends ISharedObjectEvents {
@@ -346,6 +353,7 @@ export interface ISharedMapEvents extends ISharedObjectEvents {
346
353
  *
347
354
  * For more information, including example usages, see {@link https://fluidframework.com/docs/data-structures/map/}.
348
355
  * @sealed
356
+ * @legacy
349
357
  * @alpha
350
358
  */
351
359
  // TODO: Use `unknown` instead (breaking change).
@@ -137,6 +137,7 @@ export type MapLocalOpMetadata = IMapClearLocalOpMetadata | MapKeyLocalOpMetadat
137
137
  * channel ID.
138
138
  *
139
139
  * @deprecated This type is legacy and deprecated(AB#8004).
140
+ * @legacy
140
141
  * @alpha
141
142
  */
142
143
  export interface ISerializableValue {
@@ -154,6 +155,7 @@ export interface ISerializableValue {
154
155
 
155
156
  /**
156
157
  * Serialized {@link ISerializableValue} counterpart.
158
+ * @legacy
157
159
  * @alpha
158
160
  */
159
161
  export interface ISerializedValue {
@@ -17,6 +17,7 @@ import type { ISerializableValue, ISerializedValue } from "./internalInterfaces.
17
17
 
18
18
  /**
19
19
  * A local value to be stored in a container type Distributed Data Store (DDS).
20
+ * @legacy
20
21
  * @alpha
21
22
  */
22
23
  export interface ILocalValue {
@@ -99,6 +100,7 @@ export class PlainLocalValue implements ILocalValue {
99
100
  /**
100
101
  * Enables a container type {@link https://fluidframework.com/docs/build/dds/ | DDS} to produce and store local
101
102
  * values with minimal awareness of how those objects are stored, serialized, and deserialized.
103
+ * @legacy
102
104
  * @alpha
103
105
  */
104
106
  export class LocalValueMaker {
package/src/mapFactory.ts CHANGED
@@ -19,6 +19,7 @@ import { pkgVersion } from "./packageVersion.js";
19
19
  * {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link ISharedMap}.
20
20
  *
21
21
  * @sealed
22
+ * @legacy
22
23
  * @alpha
23
24
  */
24
25
  export class MapFactory implements IChannelFactory<ISharedMap> {
@@ -78,12 +79,14 @@ export class MapFactory implements IChannelFactory<ISharedMap> {
78
79
 
79
80
  /**
80
81
  * Entrypoint for {@link ISharedMap} creation.
82
+ * @legacy
81
83
  * @alpha
82
84
  */
83
85
  export const SharedMap = createSharedObjectKind<ISharedMap>(MapFactory);
84
86
 
85
87
  /**
86
88
  * Entrypoint for {@link ISharedMap} creation.
89
+ * @legacy
87
90
  * @alpha
88
91
  * @privateRemarks
89
92
  * This alias is for legacy compat from when the SharedMap class was exported as public.
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/map";
9
- export const pkgVersion = "2.0.2";
9
+ export const pkgVersion = "2.1.0-276326";