@fluidframework/map 2.1.0-274160 → 2.1.0-276985
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/README.md +68 -1
- package/api-report/{map.alpha.api.md → map.legacy.alpha.api.md} +2 -0
- package/dist/directory.d.ts +13 -0
- package/dist/directory.d.ts.map +1 -1
- package/dist/directory.js +1 -0
- package/dist/directory.js.map +1 -1
- package/dist/directoryFactory.d.ts +3 -0
- package/dist/directoryFactory.d.ts.map +1 -1
- package/dist/directoryFactory.js +2 -0
- package/dist/directoryFactory.js.map +1 -1
- package/dist/interfaces.d.ts +8 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/internalInterfaces.d.ts +2 -0
- package/dist/internalInterfaces.d.ts.map +1 -1
- package/dist/internalInterfaces.js.map +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/localValues.d.ts +2 -0
- package/dist/localValues.d.ts.map +1 -1
- package/dist/localValues.js +1 -0
- package/dist/localValues.js.map +1 -1
- package/dist/mapFactory.d.ts +3 -0
- package/dist/mapFactory.d.ts.map +1 -1
- package/dist/mapFactory.js +2 -0
- package/dist/mapFactory.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/directory.d.ts +13 -0
- package/lib/directory.d.ts.map +1 -1
- package/lib/directory.js +1 -0
- package/lib/directory.js.map +1 -1
- package/lib/directoryFactory.d.ts +3 -0
- package/lib/directoryFactory.d.ts.map +1 -1
- package/lib/directoryFactory.js +2 -0
- package/lib/directoryFactory.js.map +1 -1
- package/lib/interfaces.d.ts +8 -0
- package/lib/interfaces.d.ts.map +1 -1
- package/lib/interfaces.js.map +1 -1
- package/lib/internalInterfaces.d.ts +2 -0
- package/lib/internalInterfaces.d.ts.map +1 -1
- package/lib/internalInterfaces.js.map +1 -1
- package/lib/legacy.d.ts +1 -1
- package/lib/localValues.d.ts +2 -0
- package/lib/localValues.d.ts.map +1 -1
- package/lib/localValues.js +1 -0
- package/lib/localValues.js.map +1 -1
- package/lib/mapFactory.d.ts +3 -0
- package/lib/mapFactory.d.ts.map +1 -1
- package/lib/mapFactory.js +2 -0
- package/lib/mapFactory.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +19 -19
- package/src/directory.ts +13 -0
- package/src/directoryFactory.ts +3 -0
- package/src/interfaces.ts +8 -0
- package/src/internalInterfaces.ts +2 -0
- package/src/localValues.ts +2 -0
- package/src/mapFactory.ts +3 -0
- package/src/packageVersion.ts +1 -1
package/src/directoryFactory.ts
CHANGED
|
@@ -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 {
|
package/src/localValues.ts
CHANGED
|
@@ -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.
|
package/src/packageVersion.ts
CHANGED