@fluidframework/sequence 0.52.1 → 0.53.0-46105

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.
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/sequence";
8
- export const pkgVersion = "0.52.1";
8
+ export const pkgVersion = "0.53.0-46105";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"0.52.1\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"0.53.0-46105\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/sequence",
3
- "version": "0.52.1",
3
+ "version": "0.53.0-46105",
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.41.0",
63
- "@fluidframework/datastore-definitions": "^0.52.1",
64
- "@fluidframework/merge-tree": "^0.52.1",
63
+ "@fluidframework/datastore-definitions": "0.53.0-46105",
64
+ "@fluidframework/merge-tree": "0.53.0-46105",
65
65
  "@fluidframework/protocol-definitions": "^0.1026.0",
66
- "@fluidframework/runtime-definitions": "^0.52.1",
67
- "@fluidframework/runtime-utils": "^0.52.1",
68
- "@fluidframework/shared-object-base": "^0.52.1",
69
- "@fluidframework/telemetry-utils": "^0.52.1",
66
+ "@fluidframework/runtime-definitions": "0.53.0-46105",
67
+ "@fluidframework/runtime-utils": "0.53.0-46105",
68
+ "@fluidframework/shared-object-base": "0.53.0-46105",
69
+ "@fluidframework/telemetry-utils": "0.53.0-46105",
70
70
  "uuid": "^8.3.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@fluid-internal/test-dds-utils": "^0.52.1",
73
+ "@fluid-internal/test-dds-utils": "0.53.0-46105",
74
74
  "@fluidframework/build-common": "^0.23.0",
75
75
  "@fluidframework/eslint-config-fluid": "^0.24.0",
76
76
  "@fluidframework/gitresources": "^0.1034.0",
77
- "@fluidframework/mocha-test-setup": "^0.52.1",
77
+ "@fluidframework/mocha-test-setup": "0.53.0-46105",
78
78
  "@fluidframework/server-services-client": "^0.1034.0",
79
- "@fluidframework/test-runtime-utils": "^0.52.1",
79
+ "@fluidframework/test-runtime-utils": "0.53.0-46105",
80
80
  "@microsoft/api-extractor": "^7.16.1",
81
81
  "@types/diff": "^3.5.1",
82
82
  "@types/mocha": "^8.2.2",
@@ -653,31 +653,6 @@ export class LocalIntervalCollection<TInterval extends ISerializableInterval> {
653
653
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return
654
654
  return intervals.map((interval) => interval.serialize(client));
655
655
  }
656
-
657
- /**
658
- * @deprecated This method only exists to support the deprecated IntervalCollection.delete(start, end).
659
- */
660
- public getLegacyInterval(start: number, end: number): TInterval | undefined {
661
- const transientInterval: TInterval = this.helpers.create(
662
- "transient",
663
- start,
664
- end,
665
- this.client,
666
- IntervalType.Transient,
667
- );
668
-
669
- let result: TInterval;
670
- this.mapUntil((interval: TInterval): boolean => {
671
- if (interval.compareStart(transientInterval) === 0 &&
672
- interval.compareEnd(transientInterval) === 0 &&
673
- interval.getIntervalId()?.startsWith(LocalIntervalCollection.legacyIdPrefix)) {
674
- result = interval;
675
- return false;
676
- }
677
- return true;
678
- });
679
- return result;
680
- }
681
656
  }
682
657
 
683
658
  const compareSequenceIntervalEnds = (a: SequenceInterval, b: SequenceInterval): number => a.end.compare(b.end);
@@ -960,23 +935,6 @@ export class IntervalCollection<TInterval extends ISerializableInterval>
960
935
  return interval;
961
936
  }
962
937
 
963
- /**
964
- * @deprecated delete by start/end position is deprecated. Use removeIntervalById.
965
- */
966
- public delete(
967
- start: number,
968
- end: number,
969
- ) {
970
- if (!this.attached) {
971
- throw new Error("attach must be called prior to deleting intervals");
972
- }
973
-
974
- const interval = this.localCollection.getLegacyInterval(start, end);
975
- if (interval) {
976
- this.deleteExistingInterval(interval, true, undefined);
977
- }
978
- }
979
-
980
938
  private deleteExistingInterval(interval: TInterval, local: boolean, op: ISequencedDocumentMessage) {
981
939
  // The given interval is known to exist in the collection.
982
940
  this.localCollection.removeExistingInterval(interval);
@@ -1194,22 +1152,6 @@ export class IntervalCollection<TInterval extends ISerializableInterval>
1194
1152
  });
1195
1153
  }
1196
1154
 
1197
- /**
1198
- * @deprecated IntervalCollectionView has been removed. Refer to IntervalCollection directly.
1199
- */
1200
- public async getView(onDeserialize?: DeserializeCallback): Promise<IntervalCollection<TInterval>> {
1201
- if (!this.attached) {
1202
- return Promise.reject(new Error("attachSequence must be called prior to retrieving the view"));
1203
- }
1204
-
1205
- // Attach custom deserializers if specified
1206
- if (onDeserialize) {
1207
- this.attachDeserializer(onDeserialize);
1208
- }
1209
-
1210
- return this;
1211
- }
1212
-
1213
1155
  public addInternal(
1214
1156
  serializedInterval: ISerializedInterval,
1215
1157
  local: boolean,
@@ -118,11 +118,9 @@ export interface ISharedMapEvents extends ISharedObjectEvents {
118
118
  (event: "valueChanged", listener: (
119
119
  changed: IValueChanged,
120
120
  local: boolean,
121
- op: ISequencedDocumentMessage | null,
122
121
  target: IEventThisPlaceHolder) => void);
123
122
  (event: "clear", listener: (
124
123
  local: boolean,
125
- op: ISequencedDocumentMessage | null,
126
124
  target: IEventThisPlaceHolder
127
125
  ) => void);
128
126
  }
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/sequence";
9
- export const pkgVersion = "0.52.1";
9
+ export const pkgVersion = "0.53.0-46105";