@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.
Files changed (56) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/api-extractor.json +0 -3
  3. package/api-report/map.api.md +27 -27
  4. package/dist/directory.cjs +3 -3
  5. package/dist/directory.cjs.map +1 -1
  6. package/dist/directory.d.ts +13 -13
  7. package/dist/interfaces.cjs.map +1 -1
  8. package/dist/interfaces.d.ts +10 -10
  9. package/dist/localValues.cjs +1 -1
  10. package/dist/localValues.cjs.map +1 -1
  11. package/dist/localValues.d.ts +2 -2
  12. package/dist/map-alpha.d.ts +919 -27
  13. package/dist/map-beta.d.ts +16 -0
  14. package/dist/map-public.d.ts +16 -0
  15. package/dist/map-untrimmed.d.ts +27 -27
  16. package/dist/map.cjs +2 -2
  17. package/dist/map.cjs.map +1 -1
  18. package/dist/map.d.ts +2 -2
  19. package/dist/packageVersion.cjs +1 -1
  20. package/dist/packageVersion.cjs.map +1 -1
  21. package/dist/packageVersion.d.ts +1 -1
  22. package/lib/directory.d.ts +15 -15
  23. package/lib/directory.d.ts.map +1 -1
  24. package/lib/directory.mjs +3 -3
  25. package/lib/directory.mjs.map +1 -1
  26. package/lib/index.d.ts +4 -15
  27. package/lib/index.d.ts.map +1 -1
  28. package/lib/interfaces.d.ts +10 -10
  29. package/lib/interfaces.d.ts.map +1 -1
  30. package/lib/interfaces.mjs.map +1 -1
  31. package/lib/internalInterfaces.d.ts +2 -2
  32. package/lib/internalInterfaces.d.ts.map +1 -1
  33. package/lib/localValues.d.ts +3 -3
  34. package/lib/localValues.d.ts.map +1 -1
  35. package/lib/localValues.mjs +1 -1
  36. package/lib/localValues.mjs.map +1 -1
  37. package/lib/map-alpha.d.ts +919 -27
  38. package/lib/map-beta.d.ts +16 -0
  39. package/lib/map-public.d.ts +16 -0
  40. package/lib/map-untrimmed.d.ts +27 -27
  41. package/lib/map.d.ts +3 -3
  42. package/lib/map.d.ts.map +1 -1
  43. package/lib/map.mjs +2 -2
  44. package/lib/map.mjs.map +1 -1
  45. package/lib/mapKernel.d.ts +2 -2
  46. package/lib/mapKernel.d.ts.map +1 -1
  47. package/lib/packageVersion.d.ts +1 -1
  48. package/lib/packageVersion.mjs +1 -1
  49. package/lib/packageVersion.mjs.map +1 -1
  50. package/map.test-files.tar +0 -0
  51. package/package.json +17 -15
  52. package/src/directory.ts +14 -14
  53. package/src/interfaces.ts +10 -10
  54. package/src/localValues.ts +2 -2
  55. package/src/map.ts +2 -2
  56. 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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
200
+ * @alpha
201
201
  */
202
202
  export type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDirectoryOperation;
203
203
 
204
204
  /**
205
205
  * Create info for the subdirectory.
206
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- "The count of keys for iteration should be consistent with the size of actual data",
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
401
+ * @alpha
402
402
  */
403
403
  export interface ISerializedValue {
404
404
  /**
@@ -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
- * @internal
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
- * @internal
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
- * @internal
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
- * @internal
92
+ * @alpha
93
93
  */
94
94
  export class SharedMap extends SharedObject<ISharedMapEvents> implements ISharedMap {
95
95
  /**
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/map";
9
- export const pkgVersion = "2.0.0-dev.7.4.0.217884";
9
+ export const pkgVersion = "2.0.0-dev.7.4.0.221926";