@fluidframework/sequence 0.56.5 → 0.57.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/dist/localValues.d.ts.map +1 -1
- package/dist/localValues.js +0 -3
- package/dist/localValues.js.map +1 -1
- package/dist/mapKernel.d.ts.map +1 -1
- package/dist/mapKernel.js +0 -2
- 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/dist/sequence.d.ts +0 -1
- package/dist/sequence.d.ts.map +1 -1
- package/dist/sequence.js +1 -10
- package/dist/sequence.js.map +1 -1
- package/dist/sharedIntervalCollection.d.ts +0 -1
- package/dist/sharedIntervalCollection.d.ts.map +1 -1
- package/dist/sharedIntervalCollection.js +0 -7
- package/dist/sharedIntervalCollection.js.map +1 -1
- package/lib/localValues.d.ts.map +1 -1
- package/lib/localValues.js +1 -4
- package/lib/localValues.js.map +1 -1
- package/lib/mapKernel.d.ts.map +1 -1
- package/lib/mapKernel.js +0 -2
- 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/lib/sequence.d.ts +0 -1
- package/lib/sequence.d.ts.map +1 -1
- package/lib/sequence.js +1 -10
- package/lib/sequence.js.map +1 -1
- package/lib/sharedIntervalCollection.d.ts +0 -1
- package/lib/sharedIntervalCollection.d.ts.map +1 -1
- package/lib/sharedIntervalCollection.js +0 -7
- package/lib/sharedIntervalCollection.js.map +1 -1
- package/package.json +11 -11
- package/src/localValues.ts +0 -5
- package/src/mapKernel.ts +0 -2
- package/src/packageVersion.ts +1 -1
- package/src/sequence.ts +1 -12
- package/src/sharedIntervalCollection.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/sequence",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "Distributed sequence",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": "https://github.com/microsoft/FluidFramework",
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
61
61
|
"@fluidframework/common-utils": "^0.32.1",
|
|
62
62
|
"@fluidframework/core-interfaces": "^0.42.0",
|
|
63
|
-
"@fluidframework/datastore-definitions": "^0.
|
|
64
|
-
"@fluidframework/merge-tree": "^0.
|
|
63
|
+
"@fluidframework/datastore-definitions": "^0.57.0",
|
|
64
|
+
"@fluidframework/merge-tree": "^0.57.0",
|
|
65
65
|
"@fluidframework/protocol-definitions": "^0.1026.0",
|
|
66
|
-
"@fluidframework/runtime-definitions": "^0.
|
|
67
|
-
"@fluidframework/runtime-utils": "^0.
|
|
68
|
-
"@fluidframework/shared-object-base": "^0.
|
|
69
|
-
"@fluidframework/telemetry-utils": "^0.
|
|
66
|
+
"@fluidframework/runtime-definitions": "^0.57.0",
|
|
67
|
+
"@fluidframework/runtime-utils": "^0.57.0",
|
|
68
|
+
"@fluidframework/shared-object-base": "^0.57.0",
|
|
69
|
+
"@fluidframework/telemetry-utils": "^0.57.0",
|
|
70
70
|
"uuid": "^8.3.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@fluid-internal/test-dds-utils": "^0.
|
|
73
|
+
"@fluid-internal/test-dds-utils": "^0.57.0",
|
|
74
74
|
"@fluidframework/build-common": "^0.23.0",
|
|
75
|
-
"@fluidframework/eslint-config-fluid": "^0.
|
|
75
|
+
"@fluidframework/eslint-config-fluid": "^0.26.0",
|
|
76
76
|
"@fluidframework/gitresources": "^0.1034.0",
|
|
77
|
-
"@fluidframework/mocha-test-setup": "^0.
|
|
77
|
+
"@fluidframework/mocha-test-setup": "^0.57.0",
|
|
78
78
|
"@fluidframework/server-services-client": "^0.1034.0",
|
|
79
|
-
"@fluidframework/test-runtime-utils": "^0.
|
|
79
|
+
"@fluidframework/test-runtime-utils": "^0.57.0",
|
|
80
80
|
"@microsoft/api-extractor": "^7.16.1",
|
|
81
81
|
"@rushstack/eslint-config": "^2.5.1",
|
|
82
82
|
"@types/diff": "^3.5.1",
|
package/src/localValues.ts
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
ISerializedHandle,
|
|
10
10
|
parseHandles,
|
|
11
11
|
serializeHandles,
|
|
12
|
-
SharedObject,
|
|
13
12
|
ValueType,
|
|
14
13
|
} from "@fluidframework/shared-object-base";
|
|
15
14
|
import {
|
|
@@ -219,10 +218,6 @@ export class LocalValueMaker {
|
|
|
219
218
|
* @returns An ILocalValue containing the value
|
|
220
219
|
*/
|
|
221
220
|
public fromInMemory(value: any): ILocalValue {
|
|
222
|
-
if (SharedObject.is(value)) {
|
|
223
|
-
throw new Error("SharedObject sets are no longer supported. Instead set the SharedObject handle.");
|
|
224
|
-
}
|
|
225
|
-
|
|
226
221
|
return new PlainLocalValue(value);
|
|
227
222
|
}
|
|
228
223
|
|
package/src/mapKernel.ts
CHANGED
|
@@ -331,7 +331,6 @@ export class MapKernel implements IValueTypeCreator {
|
|
|
331
331
|
*/
|
|
332
332
|
public set(key: string, value: any) {
|
|
333
333
|
// Undefined/null keys can't be serialized to JSON in the manner we currently snapshot.
|
|
334
|
-
// eslint-disable-next-line no-null/no-null
|
|
335
334
|
if (key === undefined || key === null) {
|
|
336
335
|
throw new Error("Undefined and null keys are not supported");
|
|
337
336
|
}
|
|
@@ -825,7 +824,6 @@ export class MapKernel implements IValueTypeCreator {
|
|
|
825
824
|
this.submitMessage(op, undefined /* localOpMetadata */);
|
|
826
825
|
|
|
827
826
|
const event: IValueChanged = { key, previousValue };
|
|
828
|
-
// eslint-disable-next-line no-null/no-null
|
|
829
827
|
this.eventEmitter.emit("valueChanged", event, true, null, this.eventEmitter);
|
|
830
828
|
};
|
|
831
829
|
|
package/src/packageVersion.ts
CHANGED
package/src/sequence.ts
CHANGED
|
@@ -114,7 +114,6 @@ export abstract class SharedSegmentSequence<T extends ISegment>
|
|
|
114
114
|
const props = {};
|
|
115
115
|
for (const key of Object.keys(r.propertyDeltas)) {
|
|
116
116
|
props[key] =
|
|
117
|
-
// eslint-disable-next-line no-null/no-null
|
|
118
117
|
r.segment.properties[key] === undefined ? null : r.segment.properties[key];
|
|
119
118
|
}
|
|
120
119
|
if (lastAnnotate && lastAnnotate.pos2 === r.position &&
|
|
@@ -565,16 +564,6 @@ export abstract class SharedSegmentSequence<T extends ISegment>
|
|
|
565
564
|
}
|
|
566
565
|
}
|
|
567
566
|
|
|
568
|
-
protected registerCore() {
|
|
569
|
-
for (const value of this.intervalMapKernel.values()) {
|
|
570
|
-
if (SharedObject.is(value)) {
|
|
571
|
-
value.bindToContext();
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
this.client.startOrUpdateCollaboration(this.runtime.clientId);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
567
|
protected didAttach() {
|
|
579
568
|
// If we are not local, and we've attached we need to start generating and sending ops
|
|
580
569
|
// so start collaboration and provide a default client id incase we are not connected
|
|
@@ -595,7 +584,7 @@ export abstract class SharedSegmentSequence<T extends ISegment>
|
|
|
595
584
|
|
|
596
585
|
this.processMinSequenceNumberChanged(minSeq);
|
|
597
586
|
|
|
598
|
-
this.messagesSinceMSNChange.forEach((m) => m.minimumSequenceNumber = minSeq);
|
|
587
|
+
this.messagesSinceMSNChange.forEach((m) => { m.minimumSequenceNumber = minSeq; });
|
|
599
588
|
|
|
600
589
|
return this.client.summarize(this.runtime, this.handle, serializer, this.messagesSinceMSNChange);
|
|
601
590
|
}
|
|
@@ -170,14 +170,6 @@ export class SharedIntervalCollection<TInterval extends ISerializableInterval =
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
protected registerCore() {
|
|
174
|
-
for (const value of this.intervalMapKernel.values()) {
|
|
175
|
-
if (SharedObject.is(value)) {
|
|
176
|
-
value.bindToContext();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
173
|
/**
|
|
182
174
|
* Creates the full path of the intervalCollection label
|
|
183
175
|
* @param label - the incoming lable
|