@fluidframework/map 2.0.0-dev.7.4.0.215930 → 2.0.0-dev.7.4.0.217212

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 (52) hide show
  1. package/api-extractor-lint.json +13 -0
  2. package/api-report/map.api.md +42 -44
  3. package/dist/directory.cjs +2 -11
  4. package/dist/directory.cjs.map +1 -1
  5. package/dist/directory.d.ts +14 -36
  6. package/dist/directory.d.ts.map +1 -1
  7. package/dist/interfaces.cjs.map +1 -1
  8. package/dist/interfaces.d.ts +10 -20
  9. package/dist/interfaces.d.ts.map +1 -1
  10. package/dist/localValues.cjs +1 -2
  11. package/dist/localValues.cjs.map +1 -1
  12. package/dist/localValues.d.ts +2 -4
  13. package/dist/localValues.d.ts.map +1 -1
  14. package/dist/map-alpha.d.ts +51 -902
  15. package/dist/map-beta.d.ts +59 -906
  16. package/dist/map-public.d.ts +59 -906
  17. package/dist/map-untrimmed.d.ts +28 -70
  18. package/dist/map.cjs +2 -10
  19. package/dist/map.cjs.map +1 -1
  20. package/dist/map.d.ts +2 -10
  21. package/dist/map.d.ts.map +1 -1
  22. package/dist/packageVersion.cjs +1 -1
  23. package/dist/packageVersion.cjs.map +1 -1
  24. package/dist/packageVersion.d.ts +1 -1
  25. package/lib/directory.d.ts +14 -36
  26. package/lib/directory.d.ts.map +1 -1
  27. package/lib/directory.mjs +2 -11
  28. package/lib/directory.mjs.map +1 -1
  29. package/lib/interfaces.d.ts +10 -20
  30. package/lib/interfaces.d.ts.map +1 -1
  31. package/lib/interfaces.mjs.map +1 -1
  32. package/lib/localValues.d.ts +2 -4
  33. package/lib/localValues.d.ts.map +1 -1
  34. package/lib/localValues.mjs +1 -2
  35. package/lib/localValues.mjs.map +1 -1
  36. package/lib/map-alpha.d.ts +51 -902
  37. package/lib/map-beta.d.ts +59 -906
  38. package/lib/map-public.d.ts +59 -906
  39. package/lib/map-untrimmed.d.ts +28 -70
  40. package/lib/map.d.ts +2 -10
  41. package/lib/map.d.ts.map +1 -1
  42. package/lib/map.mjs +2 -10
  43. package/lib/map.mjs.map +1 -1
  44. package/lib/packageVersion.d.ts +1 -1
  45. package/lib/packageVersion.mjs +1 -1
  46. package/lib/packageVersion.mjs.map +1 -1
  47. package/package.json +17 -16
  48. package/src/directory.ts +14 -36
  49. package/src/interfaces.ts +10 -20
  50. package/src/localValues.ts +2 -4
  51. package/src/map.ts +2 -10
  52. package/src/packageVersion.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/map",
3
- "version": "2.0.0-dev.7.4.0.215930",
3
+ "version": "2.0.0-dev.7.4.0.217212",
4
4
  "description": "Distributed map",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -35,30 +35,30 @@
35
35
  "temp-directory": "nyc/.nyc_output"
36
36
  },
37
37
  "dependencies": {
38
- "@fluid-internal/client-utils": "2.0.0-dev.7.4.0.215930",
39
- "@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.215930",
40
- "@fluidframework/core-utils": "2.0.0-dev.7.4.0.215930",
41
- "@fluidframework/datastore-definitions": "2.0.0-dev.7.4.0.215930",
42
- "@fluidframework/driver-utils": "2.0.0-dev.7.4.0.215930",
43
- "@fluidframework/merge-tree": "2.0.0-dev.7.4.0.215930",
38
+ "@fluid-internal/client-utils": "2.0.0-dev.7.4.0.217212",
39
+ "@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.217212",
40
+ "@fluidframework/core-utils": "2.0.0-dev.7.4.0.217212",
41
+ "@fluidframework/datastore-definitions": "2.0.0-dev.7.4.0.217212",
42
+ "@fluidframework/driver-utils": "2.0.0-dev.7.4.0.217212",
43
+ "@fluidframework/merge-tree": "2.0.0-dev.7.4.0.217212",
44
44
  "@fluidframework/protocol-definitions": "^3.0.0",
45
- "@fluidframework/runtime-definitions": "2.0.0-dev.7.4.0.215930",
46
- "@fluidframework/runtime-utils": "2.0.0-dev.7.4.0.215930",
47
- "@fluidframework/shared-object-base": "2.0.0-dev.7.4.0.215930",
48
- "@fluidframework/telemetry-utils": "2.0.0-dev.7.4.0.215930",
45
+ "@fluidframework/runtime-definitions": "2.0.0-dev.7.4.0.217212",
46
+ "@fluidframework/runtime-utils": "2.0.0-dev.7.4.0.217212",
47
+ "@fluidframework/shared-object-base": "2.0.0-dev.7.4.0.217212",
48
+ "@fluidframework/telemetry-utils": "2.0.0-dev.7.4.0.217212",
49
49
  "path-browserify": "^1.0.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@fluid-private/stochastic-test-utils": "2.0.0-dev.7.4.0.215930",
53
- "@fluid-private/test-dds-utils": "2.0.0-dev.7.4.0.215930",
52
+ "@fluid-private/stochastic-test-utils": "2.0.0-dev.7.4.0.217212",
53
+ "@fluid-private/test-dds-utils": "2.0.0-dev.7.4.0.217212",
54
54
  "@fluid-tools/benchmark": "^0.48.0",
55
55
  "@fluid-tools/build-cli": "^0.28.0",
56
56
  "@fluidframework/build-common": "^2.0.3",
57
57
  "@fluidframework/build-tools": "^0.28.0",
58
58
  "@fluidframework/eslint-config-fluid": "^3.1.0",
59
59
  "@fluidframework/map-previous": "npm:@fluidframework/map@2.0.0-internal.7.2.0",
60
- "@fluidframework/mocha-test-setup": "2.0.0-dev.7.4.0.215930",
61
- "@fluidframework/test-runtime-utils": "2.0.0-dev.7.4.0.215930",
60
+ "@fluidframework/mocha-test-setup": "2.0.0-dev.7.4.0.217212",
61
+ "@fluidframework/test-runtime-utils": "2.0.0-dev.7.4.0.217212",
62
62
  "@microsoft/api-extractor": "^7.38.3",
63
63
  "@types/mocha": "^9.1.1",
64
64
  "@types/node": "^16.18.38",
@@ -102,12 +102,13 @@
102
102
  "build:esnext": "tsc-multi --config ../../../common/build/build-common/tsc-multi.esm.json",
103
103
  "build:genver": "gen-version",
104
104
  "build:test": "tsc-multi --config tsc-multi.test.json",
105
+ "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
105
106
  "ci:build:docs": "api-extractor run",
106
107
  "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
107
108
  "eslint": "eslint --format stylish src",
108
109
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
109
110
  "format": "npm run prettier:fix",
110
- "lint": "npm run prettier && npm run eslint",
111
+ "lint": "npm run prettier && npm run check:release-tags && npm run eslint",
111
112
  "lint:fix": "npm run prettier:fix && npm run eslint:fix",
112
113
  "prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
113
114
  "prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
package/src/directory.ts CHANGED
@@ -71,8 +71,7 @@ interface IDirectoryMessageHandler {
71
71
 
72
72
  /**
73
73
  * Operation indicating a value should be set for a key.
74
- *
75
- * @public
74
+ * @internal
76
75
  */
77
76
  export interface IDirectorySetOperation {
78
77
  /**
@@ -99,8 +98,7 @@ export interface IDirectorySetOperation {
99
98
 
100
99
  /**
101
100
  * Operation indicating a key should be deleted from the directory.
102
- *
103
- * @public
101
+ * @internal
104
102
  */
105
103
  export interface IDirectoryDeleteOperation {
106
104
  /**
@@ -121,15 +119,13 @@ export interface IDirectoryDeleteOperation {
121
119
 
122
120
  /**
123
121
  * An operation on a specific key within a directory.
124
- *
125
- * @public
122
+ * @internal
126
123
  */
127
124
  export type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
128
125
 
129
126
  /**
130
127
  * Operation indicating the directory should be cleared.
131
- *
132
- * @public
128
+ * @internal
133
129
  */
134
130
  export interface IDirectoryClearOperation {
135
131
  /**
@@ -145,15 +141,13 @@ export interface IDirectoryClearOperation {
145
141
 
146
142
  /**
147
143
  * An operation on one or more of the keys within a directory.
148
- *
149
- * @public
144
+ * @internal
150
145
  */
151
146
  export type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
152
147
 
153
148
  /**
154
149
  * Operation indicating a subdirectory should be created.
155
- *
156
- * @public
150
+ * @internal
157
151
  */
158
152
  export interface IDirectoryCreateSubDirectoryOperation {
159
153
  /**
@@ -174,8 +168,7 @@ export interface IDirectoryCreateSubDirectoryOperation {
174
168
 
175
169
  /**
176
170
  * Operation indicating a subdirectory should be deleted.
177
- *
178
- * @public
171
+ * @internal
179
172
  */
180
173
  export interface IDirectoryDeleteSubDirectoryOperation {
181
174
  /**
@@ -196,8 +189,7 @@ export interface IDirectoryDeleteSubDirectoryOperation {
196
189
 
197
190
  /**
198
191
  * An operation on the subdirectories within a directory.
199
- *
200
- * @public
192
+ * @internal
201
193
  */
202
194
  export type IDirectorySubDirectoryOperation =
203
195
  | IDirectoryCreateSubDirectoryOperation
@@ -205,15 +197,13 @@ export type IDirectorySubDirectoryOperation =
205
197
 
206
198
  /**
207
199
  * Any operation on a directory.
208
- *
209
- * @public
200
+ * @internal
210
201
  */
211
202
  export type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDirectoryOperation;
212
203
 
213
204
  /**
214
205
  * Create info for the subdirectory.
215
- *
216
- * @public
206
+ * @internal
217
207
  */
218
208
  export interface ICreateInfo {
219
209
  /**
@@ -234,8 +224,7 @@ export interface ICreateInfo {
234
224
  * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
235
225
  * | JSON.stringify}, direct result from
236
226
  * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse | JSON.parse}.
237
- *
238
- * @public
227
+ * @internal
239
228
  */
240
229
  export interface IDirectoryDataObject {
241
230
  /**
@@ -280,7 +269,7 @@ export interface IDirectoryNewStorageFormat {
280
269
  * {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link SharedDirectory}.
281
270
  *
282
271
  * @sealed
283
- * @public
272
+ * @internal
284
273
  */
285
274
  export class DirectoryFactory implements IChannelFactory {
286
275
  /**
@@ -458,7 +447,7 @@ class DirectoryCreationTracker {
458
447
  * ```
459
448
  *
460
449
  * @sealed
461
- * @public
450
+ * @internal
462
451
  */
463
452
  export class SharedDirectory
464
453
  extends SharedObject<ISharedDirectoryEvents>
@@ -496,9 +485,7 @@ export class SharedDirectory
496
485
  return this.root.absolutePath;
497
486
  }
498
487
 
499
- /**
500
- * @internal
501
- */
488
+ /***/
502
489
  public readonly localValueMaker: LocalValueMaker;
503
490
 
504
491
  /**
@@ -715,7 +702,6 @@ export class SharedDirectory
715
702
 
716
703
  /**
717
704
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.summarizeCore}
718
- * @internal
719
705
  */
720
706
  protected summarizeCore(
721
707
  serializer: IFluidSerializer,
@@ -729,7 +715,6 @@ export class SharedDirectory
729
715
  * @param op - Op to submit
730
716
  * @param localOpMetadata - The local metadata associated with the op. We send a unique id that is used to track
731
717
  * this op while it has not been ack'd. This will be sent when we receive this op back from the server.
732
- * @internal
733
718
  */
734
719
  public submitDirectoryMessage(op: IDirectoryOperation, localOpMetadata: unknown): void {
735
720
  this.submitLocalMessage(op, localOpMetadata);
@@ -737,13 +722,11 @@ export class SharedDirectory
737
722
 
738
723
  /**
739
724
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}
740
- * @internal
741
725
  */
742
726
  protected onDisconnect(): void {}
743
727
 
744
728
  /**
745
729
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.reSubmitCore}
746
- * @internal
747
730
  */
748
731
  protected reSubmitCore(content: unknown, localOpMetadata: unknown): void {
749
732
  const message = content as IDirectoryOperation;
@@ -754,7 +737,6 @@ export class SharedDirectory
754
737
 
755
738
  /**
756
739
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
757
- * @internal
758
740
  */
759
741
  protected async loadCore(storage: IChannelStorageService): Promise<void> {
760
742
  const data = await readAndParse(storage, snapshotFileName);
@@ -777,7 +759,6 @@ export class SharedDirectory
777
759
  /**
778
760
  * Populate the directory with the given directory data.
779
761
  * @param data - A JSON string containing serialized directory data
780
- * @internal
781
762
  */
782
763
  protected populate(data: IDirectoryDataObject): void {
783
764
  const stack: [SubDirectory, IDirectoryDataObject][] = [];
@@ -851,7 +832,6 @@ export class SharedDirectory
851
832
 
852
833
  /**
853
834
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
854
- * @internal
855
835
  */
856
836
  protected processCore(
857
837
  message: ISequencedDocumentMessage,
@@ -868,7 +848,6 @@ export class SharedDirectory
868
848
 
869
849
  /**
870
850
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.rollback}
871
- * @internal
872
851
  */
873
852
  protected rollback(content: unknown, localOpMetadata: unknown): void {
874
853
  const op: IDirectoryOperation = content as IDirectoryOperation;
@@ -1092,7 +1071,6 @@ export class SharedDirectory
1092
1071
 
1093
1072
  /**
1094
1073
  * {@inheritDoc @fluidframework/shared-object-base#SharedObjectCore.applyStashedOp}
1095
- * @internal
1096
1074
  */
1097
1075
  protected applyStashedOp(op: unknown): unknown {
1098
1076
  const handler = this.messageHandlers.get((op as IDirectoryOperation).type);
package/src/interfaces.ts CHANGED
@@ -13,8 +13,7 @@ import {
13
13
 
14
14
  /**
15
15
  * Type of "valueChanged" event parameter.
16
- *
17
- * @public
16
+ * @internal
18
17
  */
19
18
  export interface IValueChanged {
20
19
  /**
@@ -34,8 +33,7 @@ export interface IValueChanged {
34
33
  * Interface describing actions on a directory.
35
34
  *
36
35
  * @remarks When used as a Map, operates on its keys.
37
- *
38
- * @public
36
+ * @internal
39
37
  */
40
38
  // TODO: Use `unknown` instead (breaking change).
41
39
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -119,8 +117,7 @@ export interface IDirectory
119
117
  *
120
118
  * @remarks
121
119
  * These events only emit on the {@link ISharedDirectory} itself, and not on subdirectories.
122
- *
123
- * @public
120
+ * @internal
124
121
  */
125
122
  export interface ISharedDirectoryEvents extends ISharedObjectEvents {
126
123
  /**
@@ -193,8 +190,7 @@ export interface ISharedDirectoryEvents extends ISharedObjectEvents {
193
190
 
194
191
  /**
195
192
  * Events emitted in response to changes to the directory data.
196
- *
197
- * @public
193
+ * @internal
198
194
  */
199
195
  export interface IDirectoryEvents extends IEvent {
200
196
  /**
@@ -275,8 +271,7 @@ export interface IDirectoryEvents extends IEvent {
275
271
  * Provides a hierarchical organization of map-like data structures as SubDirectories.
276
272
  * The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.
277
273
  * SubDirectories can be retrieved for use as working directories.
278
- *
279
- * @public
274
+ * @internal
280
275
  */
281
276
  export interface ISharedDirectory
282
277
  extends ISharedObject<ISharedDirectoryEvents & IDirectoryEvents>,
@@ -291,8 +286,7 @@ export interface ISharedDirectory
291
286
 
292
287
  /**
293
288
  * Type of "valueChanged" event parameter for {@link ISharedDirectory}.
294
- *
295
- * @public
289
+ * @internal
296
290
  */
297
291
  export interface IDirectoryValueChanged extends IValueChanged {
298
292
  /**
@@ -303,8 +297,7 @@ export interface IDirectoryValueChanged extends IValueChanged {
303
297
 
304
298
  /**
305
299
  * Events emitted in response to changes to the {@link ISharedMap | map} data.
306
- *
307
- * @public
300
+ * @internal
308
301
  */
309
302
  export interface ISharedMapEvents extends ISharedObjectEvents {
310
303
  /**
@@ -343,8 +336,7 @@ export interface ISharedMapEvents extends ISharedObjectEvents {
343
336
  * {@link @fluidframework/datastore#FluidObjectHandle}.
344
337
  *
345
338
  * For more information, including example usages, see {@link https://fluidframework.com/docs/data-structures/map/}.
346
- *
347
- * @public
339
+ * @internal
348
340
  */
349
341
  // TODO: Use `unknown` instead (breaking change).
350
342
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -389,8 +381,7 @@ export interface ISharedMap extends ISharedObject<ISharedMapEvents>, Map<string,
389
381
  * channel ID.
390
382
  *
391
383
  * @deprecated This type is legacy and deprecated.
392
- *
393
- * @public
384
+ * @internal
394
385
  */
395
386
  export interface ISerializableValue {
396
387
  /**
@@ -407,8 +398,7 @@ export interface ISerializableValue {
407
398
 
408
399
  /**
409
400
  * Serialized {@link ISerializableValue} counterpart.
410
- *
411
- * @public
401
+ * @internal
412
402
  */
413
403
  export interface ISerializedValue {
414
404
  /**
@@ -16,8 +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
- *
20
- * @public
19
+ * @internal
21
20
  */
22
21
  export interface ILocalValue {
23
22
  /**
@@ -99,8 +98,7 @@ export class PlainLocalValue implements ILocalValue {
99
98
  /**
100
99
  * Enables a container type {@link https://fluidframework.com/docs/build/dds/ | DDS} to produce and store local
101
100
  * values with minimal awareness of how those objects are stored, serialized, and deserialized.
102
- *
103
- * @public
101
+ * @internal
104
102
  */
105
103
  export class LocalValueMaker {
106
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
- * @public
33
+ * @internal
34
34
  */
35
35
  export class MapFactory implements IChannelFactory {
36
36
  /**
@@ -89,8 +89,7 @@ export class MapFactory implements IChannelFactory {
89
89
 
90
90
  /**
91
91
  * {@inheritDoc ISharedMap}
92
- *
93
- * @public
92
+ * @internal
94
93
  */
95
94
  export class SharedMap extends SharedObject<ISharedMapEvents> implements ISharedMap {
96
95
  /**
@@ -250,7 +249,6 @@ export class SharedMap extends SharedObject<ISharedMapEvents> implements IShared
250
249
 
251
250
  /**
252
251
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.summarizeCore}
253
- * @internal
254
252
  */
255
253
  protected summarizeCore(
256
254
  serializer: IFluidSerializer,
@@ -330,7 +328,6 @@ export class SharedMap extends SharedObject<ISharedMapEvents> implements IShared
330
328
 
331
329
  /**
332
330
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
333
- * @internal
334
331
  */
335
332
  protected async loadCore(storage: IChannelStorageService): Promise<void> {
336
333
  const json = await readAndParse<object>(storage, snapshotFileName);
@@ -350,13 +347,11 @@ export class SharedMap extends SharedObject<ISharedMapEvents> implements IShared
350
347
 
351
348
  /**
352
349
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}
353
- * @internal
354
350
  */
355
351
  protected onDisconnect(): void {}
356
352
 
357
353
  /**
358
354
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.reSubmitCore}
359
- * @internal
360
355
  */
361
356
  protected reSubmitCore(content: unknown, localOpMetadata: unknown): void {
362
357
  this.kernel.trySubmitMessage(content as IMapOperation, localOpMetadata);
@@ -364,7 +359,6 @@ export class SharedMap extends SharedObject<ISharedMapEvents> implements IShared
364
359
 
365
360
  /**
366
361
  * {@inheritDoc @fluidframework/shared-object-base#SharedObjectCore.applyStashedOp}
367
- * @internal
368
362
  */
369
363
  protected applyStashedOp(content: unknown): unknown {
370
364
  return this.kernel.tryApplyStashedOp(content as IMapOperation);
@@ -372,7 +366,6 @@ export class SharedMap extends SharedObject<ISharedMapEvents> implements IShared
372
366
 
373
367
  /**
374
368
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
375
- * @internal
376
369
  */
377
370
  protected processCore(
378
371
  message: ISequencedDocumentMessage,
@@ -390,7 +383,6 @@ export class SharedMap extends SharedObject<ISharedMapEvents> implements IShared
390
383
 
391
384
  /**
392
385
  * {@inheritDoc @fluidframework/shared-object-base#SharedObject.rollback}
393
- * @internal
394
386
  */
395
387
  protected rollback(content: unknown, localOpMetadata: unknown): void {
396
388
  this.kernel.rollback(content, localOpMetadata);
@@ -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.215930";
9
+ export const pkgVersion = "2.0.0-dev.7.4.0.217212";