@fluidframework/sequence 0.56.7 → 0.57.1

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 (40) hide show
  1. package/dist/localValues.d.ts.map +1 -1
  2. package/dist/localValues.js +0 -3
  3. package/dist/localValues.js.map +1 -1
  4. package/dist/mapKernel.d.ts.map +1 -1
  5. package/dist/mapKernel.js +0 -2
  6. package/dist/mapKernel.js.map +1 -1
  7. package/dist/packageVersion.d.ts +1 -1
  8. package/dist/packageVersion.js +1 -1
  9. package/dist/packageVersion.js.map +1 -1
  10. package/dist/sequence.d.ts +0 -1
  11. package/dist/sequence.d.ts.map +1 -1
  12. package/dist/sequence.js +1 -10
  13. package/dist/sequence.js.map +1 -1
  14. package/dist/sharedIntervalCollection.d.ts +0 -1
  15. package/dist/sharedIntervalCollection.d.ts.map +1 -1
  16. package/dist/sharedIntervalCollection.js +0 -7
  17. package/dist/sharedIntervalCollection.js.map +1 -1
  18. package/lib/localValues.d.ts.map +1 -1
  19. package/lib/localValues.js +1 -4
  20. package/lib/localValues.js.map +1 -1
  21. package/lib/mapKernel.d.ts.map +1 -1
  22. package/lib/mapKernel.js +0 -2
  23. package/lib/mapKernel.js.map +1 -1
  24. package/lib/packageVersion.d.ts +1 -1
  25. package/lib/packageVersion.js +1 -1
  26. package/lib/packageVersion.js.map +1 -1
  27. package/lib/sequence.d.ts +0 -1
  28. package/lib/sequence.d.ts.map +1 -1
  29. package/lib/sequence.js +1 -10
  30. package/lib/sequence.js.map +1 -1
  31. package/lib/sharedIntervalCollection.d.ts +0 -1
  32. package/lib/sharedIntervalCollection.d.ts.map +1 -1
  33. package/lib/sharedIntervalCollection.js +0 -7
  34. package/lib/sharedIntervalCollection.js.map +1 -1
  35. package/package.json +11 -11
  36. package/src/localValues.ts +0 -5
  37. package/src/mapKernel.ts +0 -2
  38. package/src/packageVersion.ts +1 -1
  39. package/src/sequence.ts +1 -12
  40. package/src/sharedIntervalCollection.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/sequence",
3
- "version": "0.56.7",
3
+ "version": "0.57.1",
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.56.7",
64
- "@fluidframework/merge-tree": "^0.56.7",
63
+ "@fluidframework/datastore-definitions": "^0.57.1",
64
+ "@fluidframework/merge-tree": "^0.57.1",
65
65
  "@fluidframework/protocol-definitions": "^0.1026.0",
66
- "@fluidframework/runtime-definitions": "^0.56.7",
67
- "@fluidframework/runtime-utils": "^0.56.7",
68
- "@fluidframework/shared-object-base": "^0.56.7",
69
- "@fluidframework/telemetry-utils": "^0.56.7",
66
+ "@fluidframework/runtime-definitions": "^0.57.1",
67
+ "@fluidframework/runtime-utils": "^0.57.1",
68
+ "@fluidframework/shared-object-base": "^0.57.1",
69
+ "@fluidframework/telemetry-utils": "^0.57.1",
70
70
  "uuid": "^8.3.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@fluid-internal/test-dds-utils": "^0.56.7",
73
+ "@fluid-internal/test-dds-utils": "^0.57.1",
74
74
  "@fluidframework/build-common": "^0.23.0",
75
- "@fluidframework/eslint-config-fluid": "^0.25.0",
75
+ "@fluidframework/eslint-config-fluid": "^0.26.0",
76
76
  "@fluidframework/gitresources": "^0.1034.0",
77
- "@fluidframework/mocha-test-setup": "^0.56.7",
77
+ "@fluidframework/mocha-test-setup": "^0.57.1",
78
78
  "@fluidframework/server-services-client": "^0.1034.0",
79
- "@fluidframework/test-runtime-utils": "^0.56.7",
79
+ "@fluidframework/test-runtime-utils": "^0.57.1",
80
80
  "@microsoft/api-extractor": "^7.16.1",
81
81
  "@rushstack/eslint-config": "^2.5.1",
82
82
  "@types/diff": "^3.5.1",
@@ -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
 
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/sequence";
9
- export const pkgVersion = "0.56.7";
9
+ export const pkgVersion = "0.57.1";
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