@fluidframework/map 2.0.0-internal.6.1.0 → 2.0.0-internal.6.2.0
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 +31 -0
- package/README.md +4 -3
- package/dist/directory.d.ts.map +1 -1
- package/dist/directory.js +6 -3
- package/dist/directory.js.map +1 -1
- package/dist/interfaces.d.ts +1 -2
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/internalInterfaces.d.ts.map +1 -1
- package/dist/internalInterfaces.js.map +1 -1
- package/dist/localValues.d.ts.map +1 -1
- package/dist/localValues.js +1 -0
- package/dist/localValues.js.map +1 -1
- package/dist/mapKernel.d.ts.map +1 -1
- package/dist/mapKernel.js +1 -0
- package/dist/mapKernel.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.map +1 -1
- package/lib/directory.js +5 -2
- package/lib/directory.js.map +1 -1
- package/lib/interfaces.d.ts +1 -2
- package/lib/interfaces.d.ts.map +1 -1
- package/lib/interfaces.js.map +1 -1
- package/lib/internalInterfaces.d.ts.map +1 -1
- package/lib/internalInterfaces.js.map +1 -1
- package/lib/localValues.d.ts.map +1 -1
- package/lib/localValues.js +1 -0
- package/lib/localValues.js.map +1 -1
- package/lib/mapKernel.d.ts.map +1 -1
- package/lib/mapKernel.js +1 -0
- package/lib/mapKernel.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 +17 -18
- package/src/directory.ts +6 -1
- package/src/interfaces.ts +6 -2
- package/src/internalInterfaces.ts +2 -0
- package/src/localValues.ts +3 -0
- package/src/mapKernel.ts +3 -0
- package/src/packageVersion.ts +1 -1
package/src/localValues.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
serializeHandles,
|
|
12
12
|
ValueType,
|
|
13
13
|
} from "@fluidframework/shared-object-base";
|
|
14
|
+
// eslint-disable-next-line import/no-deprecated
|
|
14
15
|
import { ISerializableValue, ISerializedValue } from "./interfaces";
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -51,6 +52,7 @@ export function makeSerializable(
|
|
|
51
52
|
localValue: ILocalValue,
|
|
52
53
|
serializer: IFluidSerializer,
|
|
53
54
|
bind: IFluidHandle,
|
|
55
|
+
// eslint-disable-next-line import/no-deprecated
|
|
54
56
|
): ISerializableValue {
|
|
55
57
|
const value = localValue.makeSerialized(serializer, bind);
|
|
56
58
|
return {
|
|
@@ -107,6 +109,7 @@ export class LocalValueMaker {
|
|
|
107
109
|
* Create a new local value from an incoming serialized value.
|
|
108
110
|
* @param serializable - The serializable value to make local
|
|
109
111
|
*/
|
|
112
|
+
// eslint-disable-next-line import/no-deprecated
|
|
110
113
|
public fromSerializable(serializable: ISerializableValue): ILocalValue {
|
|
111
114
|
// Migrate from old shared value to handles
|
|
112
115
|
if (serializable.type === ValueType[ValueType.Shared]) {
|
package/src/mapKernel.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
7
7
|
import { IFluidSerializer, ValueType } from "@fluidframework/shared-object-base";
|
|
8
8
|
import { assert, TypedEventEmitter } from "@fluidframework/common-utils";
|
|
9
|
+
// eslint-disable-next-line import/no-deprecated
|
|
9
10
|
import { ISerializableValue, ISerializedValue, ISharedMapEvents } from "./interfaces";
|
|
10
11
|
import {
|
|
11
12
|
IMapSetOperation,
|
|
@@ -59,6 +60,7 @@ export type IMapOperation = IMapKeyOperation | IMapClearOperation;
|
|
|
59
60
|
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse | JSON.parse}.
|
|
60
61
|
*/
|
|
61
62
|
export interface IMapDataObjectSerializable {
|
|
63
|
+
// eslint-disable-next-line import/no-deprecated
|
|
62
64
|
[key: string]: ISerializableValue;
|
|
63
65
|
}
|
|
64
66
|
|
|
@@ -572,6 +574,7 @@ export class MapKernel {
|
|
|
572
574
|
* @param serializable - The remote information that we can convert into a real object
|
|
573
575
|
* @returns The local value that was produced
|
|
574
576
|
*/
|
|
577
|
+
// eslint-disable-next-line import/no-deprecated
|
|
575
578
|
private makeLocal(key: string, serializable: ISerializableValue): ILocalValue {
|
|
576
579
|
if (
|
|
577
580
|
serializable.type === ValueType[ValueType.Plain] ||
|
package/src/packageVersion.ts
CHANGED