@fluidframework/sequence 2.0.0-dev.3.1.0.125672 → 2.0.0-dev.4.2.0.153917

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 ADDED
@@ -0,0 +1,12 @@
1
+ # @fluidframework/sequence
2
+
3
+ ## 2.0.0-internal.4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - IntervalConflictResolver deprecation ([#15089](https://github.com/microsoft/FluidFramework/pull-requests/15089)) [38345841a7](https://github.com/microsoft/FluidFramework/commits/38345841a75d68e94748823c3da5078a2fc57449)
8
+
9
+ In `SharedString`, interval conflict resolvers have been unused since [this
10
+ change](https://github.com/microsoft/FluidFramework/pull/6407), which added support for multiple intervals at the same
11
+ position. As such, any existing usages can be removed. Related APIs have been deprecated and will be removed in an
12
+ upcoming release.
package/README.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @fluidframework/sequence
2
2
 
3
+ <!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) -->
4
+
5
+ <!-- prettier-ignore-start -->
6
+ <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
7
+
8
+ ## Using Fluid Framework libraries
9
+
10
+ When taking a dependency on a Fluid Framework library, we recommend using a `^` (caret) version range, such as `^1.3.4`.
11
+ While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
12
+ library consumers should always prefer `^`.
13
+
14
+ Note that when depending on a library version of the form 2.0.0-internal.x.y.z, called the Fluid internal version
15
+ scheme, you must use a `>= <` dependency range. Standard `^` and `~` ranges will not work as expected. See the
16
+ [@fluid-tools/version-tools](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/version-tools/README.md)
17
+ package for more information including tools to convert between version schemes.
18
+
19
+ <!-- prettier-ignore-end -->
20
+
21
+ <!-- AUTO-GENERATED-CONTENT:END -->
22
+
23
+ ## Description
24
+
3
25
  The **@fluidframework/sequence** package supports distributed data structures which are list-like.
4
26
  Its main export is [SharedString][], a DDS for storing and simultaneously editing a sequence of text.
5
27
 
@@ -14,7 +36,7 @@ For that reason, all of the examples in this README use `SharedString`. However,
14
36
 
15
37
  For the remainder of this document, the term _sequence_ will refer to this base class.
16
38
 
17
- *Item*s are the individual units that are stored within the sequence (e.g. in a SharedString, the items are characters),
39
+ _Items_ are the individual units that are stored within the sequence (e.g. in a SharedString, the items are characters),
18
40
  but regardless of the type of data stored in the sequence, every item in a sequence is at a specific _position_ starting
19
41
  at 0, similar to an array. However, sequences differ from arrays in that the positions can move as local and remote
20
42
  editors make modifications to the sequence.
@@ -328,8 +350,8 @@ The following example illustrates these properties and highlights the major APIs
328
350
 
329
351
  const comments = sharedString.getIntervalCollection("comments");
330
352
  const comment = comments.add(
331
- 3,
332
- 7, // (inclusive range): references "world"
353
+ 3, // (inclusive)
354
+ 8, // (exclusive): references "world"
333
355
  IntervalType.SlideOnRemove,
334
356
  {
335
357
  creator: "my-user-id",
@@ -338,7 +360,7 @@ const comment = comments.add(
338
360
  );
339
361
  // content: hi world!
340
362
  // positions: 012345678
341
- // comment: [ ]
363
+ // comment: [ )
342
364
 
343
365
  // Interval collection supports iterating over all intervals via Symbol.iterator or `.map()`:
344
366
  const allIntervalsInCollection = Array.from(comments);
@@ -347,14 +369,14 @@ const allProperties = comments.map((comment) => comment.properties);
347
369
  const intervalsOverlappingFirstHalf = comments.findOverlappingIntervals(0, 4);
348
370
 
349
371
  // Interval endpoints are LocalReferencePositions, so all APIs in the above section can be used:
350
- const startPosition = sharedString.localReferencePositionToPosition(comment.start);
351
- const endPosition = sharedString.localReferencePositionToPosition(comment.end);
372
+ const startPosition = sharedString.localReferencePositionToPosition(comment.start); // returns 3
373
+ const endPosition = sharedString.localReferencePositionToPosition(comment.end); // returns 8: note this is exclusive!
352
374
 
353
375
  // Intervals can be modified:
354
376
  comments.change(comment.getIntervalId(), 0, 1);
355
377
  // content: hi world!
356
378
  // positions: 012345678
357
- // comment: []
379
+ // comment: [)
358
380
 
359
381
  // their properties can be changed:
360
382
  comments.changeProperties(comment.getIntervalId(), { status: "resolved" });
@@ -408,18 +430,35 @@ Using the interval collection API has two main benefits:
408
430
 
409
431
  SharedString supports storing information attributing each character position to the user who inserted it and the time at which that insertion happened.
410
432
  This functionality is off by default.
411
- Enable it by setting `{ attribution: { track: true } }` on the `IFluidDataStoreRuntime` options used to initialize the SharedString.
412
- If the config flag `"Fluid.Attribution.EnableOnNewFile"` is set, its value will override the runtime options one.
433
+ To enable this functionality, first ensure that all clients are created with an attribution policy factory in the loader settings:
413
434
 
414
- Attribution information is stored on the `attribution` field of the SharedString's segments.
435
+ ```typescript
436
+ import { createInsertOnlyAttributionPolicy } from "@fluidframework/merge-tree";
437
+ // Use these options in the IContainerContext used to instantiate your container runtime.
438
+ const options: ILoaderOptions = {
439
+ attribution: {
440
+ policyFactory: createInsertOnlyAttributionPolicy,
441
+ },
442
+ };
443
+ ```
444
+
445
+ This ensures that the client is able to load existing documents containing attribution information,
446
+ and specifies which kinds of operations should be attributed at the SharedString level (currently, only insertions).
447
+ The stored attribution information can be found on the `attribution` field of the SharedString's segments.
448
+
449
+ Next, enable the `"Fluid.Attribution.EnableOnNewFile"` config flag to start tracking attribution information for new files.
415
450
 
416
451
  ```typescript
417
452
  const { segment, offset } = sharedString.getContainingSegment(5);
418
453
  const key = segment.attribution.getAtOffset(offset);
419
454
  // `key` can be used with an IAttributor to recover user/timestamp info about the insertion of the character at offset 5.
420
- // See the @fluidframework/attributor package for more details.
455
+ // See the @fluid-experimental/attributor package for more details.
421
456
  ```
422
457
 
458
+ For further reading on attribution, see the [@fluid-experimental/attributor README](https://github.com/microsoft/FluidFramework/blob/main/packages/framework/attributor/README.md).
459
+
460
+ There are plans to make attribution policies more flexible, for example tracking attribution of property changes separately from segment insertion.
461
+
423
462
  ### Examples
424
463
 
425
464
  - Rich Text Editor Implementations
@@ -38,9 +38,9 @@ export interface ISerializedInterval {
38
38
  * At the time of writing, it's not plumbed through to the reconnect/rebase code, however, which does need it.
39
39
  */
40
40
  sequenceNumber: number;
41
- /** Start position of the interval (inclusive) */
41
+ /** Start position of the interval */
42
42
  start: number;
43
- /** End position of the interval (inclusive) */
43
+ /** End position of the interval */
44
44
  end: number;
45
45
  /** Interval type to create */
46
46
  intervalType: IntervalType;
@@ -117,13 +117,14 @@ export declare class Interval implements ISerializableInterval {
117
117
  auxProps: PropertySet[] | undefined;
118
118
  /**
119
119
  * {@inheritDoc ISerializableInterval.propertyManager}
120
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
120
121
  */
121
122
  propertyManager: PropertiesManager;
122
123
  constructor(start: number, end: number, props?: PropertySet);
123
124
  /**
124
125
  * {@inheritDoc ISerializableInterval.getIntervalId}
125
126
  */
126
- getIntervalId(): string | undefined;
127
+ getIntervalId(): string;
127
128
  /**
128
129
  * @returns an array containing any auxiliary property sets added with `addPropertySet`.
129
130
  */
@@ -164,15 +165,18 @@ export declare class Interval implements ISerializableInterval {
164
165
  overlaps(b: Interval): boolean;
165
166
  /**
166
167
  * {@inheritDoc IInterval.union}
168
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
167
169
  */
168
170
  union(b: Interval): Interval;
169
171
  getProperties(): PropertySet;
170
172
  /**
171
173
  * {@inheritDoc ISerializableInterval.addProperties}
174
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
172
175
  */
173
176
  addProperties(newProps: PropertySet, collaborating?: boolean, seq?: number, op?: ICombiningOp): PropertySet | undefined;
174
177
  /**
175
178
  * {@inheritDoc IInterval.modify}
179
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
176
180
  */
177
181
  modify(label: string, start: number, end: number, op?: ISequencedDocumentMessage): Interval | undefined;
178
182
  private initializeProperties;
@@ -181,6 +185,22 @@ export declare class Interval implements ISerializableInterval {
181
185
  * Interval impelmentation whose ends are associated with positions in a mutatable sequence.
182
186
  * As such, when content is inserted into the middle of the interval, the interval expands to
183
187
  * include that content.
188
+ *
189
+ * @remarks - The endpoint's position should be treated exclusively to get reasonable behavior--i.e.
190
+ * an interval referring to "hello" in "hello world" should have a start position of 0 and an end
191
+ * position of 5.
192
+ *
193
+ * To see why, consider what happens if "llo wor" is removed from the string to make "held".
194
+ * The interval's startpoint remains on the "h" (it isn't altered), but the interval's endpoint
195
+ * slides forward to the next unremoved position, which is the "l" in "held".
196
+ * Users would generally expect the interval to now refer to "he" (as it is the subset of content
197
+ * remaining after the removal), hence the "l" should be excluded.
198
+ * If the interval endpoint was treated inclusively, the interval would now refer to "hel", which
199
+ * is undesirable.
200
+ *
201
+ * Since the end of an interval is treated exclusively but cannot be greater than or equal to the
202
+ * length of the associated sequence, application models which leverage interval collections should
203
+ * consider inserting a marker at the end of the sequence to represent the end of the content.
184
204
  */
185
205
  export declare class SequenceInterval implements ISerializableInterval {
186
206
  private readonly client;
@@ -201,6 +221,7 @@ export declare class SequenceInterval implements ISerializableInterval {
201
221
  properties: PropertySet;
202
222
  /**
203
223
  * {@inheritDoc ISerializableInterval.propertyManager}
224
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
204
225
  */
205
226
  propertyManager: PropertiesManager;
206
227
  constructor(client: Client,
@@ -253,22 +274,24 @@ export declare class SequenceInterval implements ISerializableInterval {
253
274
  /**
254
275
  * {@inheritDoc ISerializableInterval.getIntervalId}
255
276
  */
256
- getIntervalId(): string | undefined;
277
+ getIntervalId(): string;
257
278
  /**
258
279
  * {@inheritDoc IInterval.union}
280
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
259
281
  */
260
282
  union(b: SequenceInterval): SequenceInterval;
261
283
  /**
262
284
  * {@inheritDoc ISerializableInterval.addProperties}
285
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
263
286
  */
264
287
  addProperties(newProps: PropertySet, collab?: boolean, seq?: number, op?: ICombiningOp): PropertySet | undefined;
265
288
  /**
266
289
  * @returns whether this interval overlaps two numerical positions.
267
- * @remarks - this is currently strict overlap, which doesn't align with the endpoint treatment of`.overlaps()`
268
290
  */
269
291
  overlapsPos(bstart: number, bend: number): boolean;
270
292
  /**
271
293
  * {@inheritDoc IInterval.modify}
294
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
272
295
  */
273
296
  modify(label: string, start: number, end: number, op?: ISequencedDocumentMessage, localSeq?: number): SequenceInterval;
274
297
  private initializeProperties;
@@ -306,7 +329,7 @@ export declare class LocalIntervalCollection<TInterval extends ISerializableInte
306
329
  gatherIterationResults(results: TInterval[], iteratesForward: boolean, start?: number, end?: number): void;
307
330
  /**
308
331
  * @returns an array of all intervals contained in this collection that overlap the range
309
- * `[startPosition, endPosition]`.
332
+ * `[startPosition, endPosition)`.
310
333
  */
311
334
  findOverlappingIntervals(startPosition: number, endPosition: number): TInterval[];
312
335
  previousInterval(pos: number): TInterval | undefined;
@@ -422,11 +445,13 @@ export declare class IntervalCollection<TInterval extends ISerializableInterval>
422
445
  getIntervalById(id: string): TInterval | undefined;
423
446
  /**
424
447
  * Creates a new interval and add it to the collection.
425
- * @param start - interval start position
426
- * @param end - interval end position
448
+ * @param start - interval start position (inclusive)
449
+ * @param end - interval end position (exclusive)
427
450
  * @param intervalType - type of the interval. All intervals are SlideOnRemove. Intervals may not be Transient.
428
451
  * @param props - properties of the interval
429
452
  * @returns - the created interval
453
+ * @remarks - See documentation on {@link SequenceInterval} for comments on interval endpoint semantics: there are subtleties
454
+ * with how the current half-open behavior is represented.
430
455
  */
431
456
  add(start: number, end: number, intervalType: IntervalType, props?: PropertySet): TInterval;
432
457
  private deleteExistingInterval;
@@ -459,6 +484,13 @@ export declare class IntervalCollection<TInterval extends ISerializableInterval>
459
484
  private hasPendingChangeEnd;
460
485
  /** @internal */
461
486
  ackChange(serializedInterval: ISerializedInterval, local: boolean, op: ISequencedDocumentMessage, localOpMetadata: IMapMessageLocalMetadata | undefined): void;
487
+ /**
488
+ * @deprecated - This functionality was useful when adding two intervals at the same start/end positions resulted
489
+ * in a conflict. This is no longer the case (as of PR#6407), as interval collections support multiple intervals
490
+ * at the same location and gives each interval a unique id.
491
+ *
492
+ * As such, the conflict resolver is never invoked and unnecessary. This API will be removed in an upcoming release.
493
+ */
462
494
  addConflictResolver(conflictResolver: IntervalConflictResolver<TInterval>): void;
463
495
  attachDeserializer(onDeserialize: DeserializeCallback): void;
464
496
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"intervalCollection.d.ts","sourceRoot":"","sources":["../src/intervalCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAU,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAEN,MAAM,EAIN,YAAY,EAIZ,iBAAiB,EACjB,WAAW,EAEX,sBAAsB,EAQtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAGjF,OAAO,EACN,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,eAAe,EACf,UAAU,EAEV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAA8B,MAAM,gBAAgB,CAAC;AAIjG,oBAAY,YAAY;IACvB,MAAM,IAAM;IACZ,IAAI,IAAM;IAEV;;;;;OAKG;IACH,aAAa,IAAM;IAEnB;;;OAGG;IACH,SAAS,IAAM;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,8BAA8B;IAC9B,YAAY,EAAE,YAAY,CAAC;IAC3B,sCAAsC;IACtC,UAAU,CAAC,EAAE,WAAW,CAAC;CACzB;AAED;;;;GAIG;AACH,oBAAY,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,KAAK,G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EG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAC1C,iBAAiB,EAAE,sBAAsB,GACvC,eAAe,GAAG,SAAS,CAM7B"}
@@ -87,9 +87,7 @@ class Interval {
87
87
  getIntervalId() {
88
88
  var _a;
89
89
  const id = (_a = this.properties) === null || _a === void 0 ? void 0 : _a[reservedIntervalIdKey];
90
- if (id === undefined) {
91
- return undefined;
92
- }
90
+ (0, common_utils_1.assert)(id !== undefined, 0x5e1 /* interval ID should not be undefined */);
93
91
  return `${id}`;
94
92
  }
95
93
  /**
@@ -182,6 +180,7 @@ class Interval {
182
180
  }
183
181
  /**
184
182
  * {@inheritDoc IInterval.union}
183
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
185
184
  */
186
185
  union(b) {
187
186
  return new Interval(Math.min(this.start, b.start), Math.max(this.end, b.end), this.properties);
@@ -191,6 +190,7 @@ class Interval {
191
190
  }
192
191
  /**
193
192
  * {@inheritDoc ISerializableInterval.addProperties}
193
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
194
194
  */
195
195
  addProperties(newProps, collaborating = false, seq, op) {
196
196
  if (newProps) {
@@ -200,6 +200,7 @@ class Interval {
200
200
  }
201
201
  /**
202
202
  * {@inheritDoc IInterval.modify}
203
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
203
204
  */
204
205
  modify(label, start, end, op) {
205
206
  const startPos = start !== null && start !== void 0 ? start : this.start;
@@ -229,6 +230,22 @@ exports.Interval = Interval;
229
230
  * Interval impelmentation whose ends are associated with positions in a mutatable sequence.
230
231
  * As such, when content is inserted into the middle of the interval, the interval expands to
231
232
  * include that content.
233
+ *
234
+ * @remarks - The endpoint's position should be treated exclusively to get reasonable behavior--i.e.
235
+ * an interval referring to "hello" in "hello world" should have a start position of 0 and an end
236
+ * position of 5.
237
+ *
238
+ * To see why, consider what happens if "llo wor" is removed from the string to make "held".
239
+ * The interval's startpoint remains on the "h" (it isn't altered), but the interval's endpoint
240
+ * slides forward to the next unremoved position, which is the "l" in "held".
241
+ * Users would generally expect the interval to now refer to "he" (as it is the subset of content
242
+ * remaining after the removal), hence the "l" should be excluded.
243
+ * If the interval endpoint was treated inclusively, the interval would now refer to "hel", which
244
+ * is undesirable.
245
+ *
246
+ * Since the end of an interval is treated exclusively but cannot be greater than or equal to the
247
+ * length of the associated sequence, application models which leverage interval collections should
248
+ * consider inserting a marker at the end of the sequence to represent the end of the content.
232
249
  */
233
250
  class SequenceInterval {
234
251
  constructor(client,
@@ -357,19 +374,19 @@ class SequenceInterval {
357
374
  getIntervalId() {
358
375
  var _a;
359
376
  const id = (_a = this.properties) === null || _a === void 0 ? void 0 : _a[reservedIntervalIdKey];
360
- if (id === undefined) {
361
- return undefined;
362
- }
377
+ (0, common_utils_1.assert)(id !== undefined, 0x5e2 /* interval ID should not be undefined */);
363
378
  return `${id}`;
364
379
  }
365
380
  /**
366
381
  * {@inheritDoc IInterval.union}
382
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
367
383
  */
368
384
  union(b) {
369
385
  return new SequenceInterval(this.client, (0, merge_tree_1.minReferencePosition)(this.start, b.start), (0, merge_tree_1.maxReferencePosition)(this.end, b.end), this.intervalType);
370
386
  }
371
387
  /**
372
388
  * {@inheritDoc ISerializableInterval.addProperties}
389
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
373
390
  */
374
391
  addProperties(newProps, collab = false, seq, op) {
375
392
  this.initializeProperties();
@@ -377,7 +394,6 @@ class SequenceInterval {
377
394
  }
378
395
  /**
379
396
  * @returns whether this interval overlaps two numerical positions.
380
- * @remarks - this is currently strict overlap, which doesn't align with the endpoint treatment of`.overlaps()`
381
397
  */
382
398
  overlapsPos(bstart, bend) {
383
399
  const startPos = this.client.localReferencePositionToPosition(this.start);
@@ -386,6 +402,7 @@ class SequenceInterval {
386
402
  }
387
403
  /**
388
404
  * {@inheritDoc IInterval.modify}
405
+ * @deprecated - This API was never intended to be public and will be marked internal in a future release.
389
406
  */
390
407
  modify(label, start, end, op, localSeq) {
391
408
  const getRefType = (baseType) => {
@@ -427,7 +444,7 @@ class SequenceInterval {
427
444
  }
428
445
  }
429
446
  exports.SequenceInterval = SequenceInterval;
430
- function createPositionReferenceFromSegoff(client, segoff, refType, op, localSeq) {
447
+ function createPositionReferenceFromSegoff(client, segoff, refType, op, localSeq, fromSnapshot) {
431
448
  if (segoff.segment) {
432
449
  const ref = client.createLocalReferencePosition(segoff.segment, segoff.offset, refType, undefined);
433
450
  return ref;
@@ -437,7 +454,10 @@ function createPositionReferenceFromSegoff(client, segoff, refType, op, localSeq
437
454
  // - References coming from a remote client (location may have been concurrently removed)
438
455
  // - References being rebased to a new sequence number
439
456
  // (segment they originally referred to may have been removed with no suitable replacement)
440
- if (!op && !localSeq && !(0, merge_tree_1.refTypeIncludesFlag)(refType, merge_tree_1.ReferenceType.Transient)) {
457
+ if (!op &&
458
+ !localSeq &&
459
+ !fromSnapshot &&
460
+ !(0, merge_tree_1.refTypeIncludesFlag)(refType, merge_tree_1.ReferenceType.Transient)) {
441
461
  throw new container_utils_1.UsageError("Non-transient references need segment");
442
462
  }
443
463
  return (0, merge_tree_1.createDetachedLocalReferencePosition)(refType);
@@ -456,7 +476,7 @@ function createPositionReference(client, pos, refType, op, fromSnapshot, localSe
456
476
  (0, common_utils_1.assert)((refType & merge_tree_1.ReferenceType.SlideOnRemove) === 0 || !!fromSnapshot, 0x2f6 /* SlideOnRemove references must be op created */);
457
477
  segoff = client.getContainingSegment(pos, undefined, localSeq);
458
478
  }
459
- return createPositionReferenceFromSegoff(client, segoff, refType, op, localSeq);
479
+ return createPositionReferenceFromSegoff(client, segoff, refType, op, localSeq, fromSnapshot);
460
480
  }
461
481
  function createSequenceInterval(label, start, end, client, intervalType, op, fromSnapshot) {
462
482
  let beginRefType = merge_tree_1.ReferenceType.RangeBegin;
@@ -637,7 +657,7 @@ class LocalIntervalCollection {
637
657
  }
638
658
  /**
639
659
  * @returns an array of all intervals contained in this collection that overlap the range
640
- * `[startPosition, endPosition]`.
660
+ * `[startPosition, endPosition)`.
641
661
  */
642
662
  findOverlappingIntervals(startPosition, endPosition) {
643
663
  if (endPosition < startPosition || this.intervalTree.intervals.isEmpty()) {
@@ -1053,11 +1073,13 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
1053
1073
  }
1054
1074
  /**
1055
1075
  * Creates a new interval and add it to the collection.
1056
- * @param start - interval start position
1057
- * @param end - interval end position
1076
+ * @param start - interval start position (inclusive)
1077
+ * @param end - interval end position (exclusive)
1058
1078
  * @param intervalType - type of the interval. All intervals are SlideOnRemove. Intervals may not be Transient.
1059
1079
  * @param props - properties of the interval
1060
1080
  * @returns - the created interval
1081
+ * @remarks - See documentation on {@link SequenceInterval} for comments on interval endpoint semantics: there are subtleties
1082
+ * with how the current half-open behavior is represented.
1061
1083
  */
1062
1084
  add(start, end, intervalType, props) {
1063
1085
  var _a, _b;
@@ -1301,6 +1323,13 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
1301
1323
  }
1302
1324
  }
1303
1325
  }
1326
+ /**
1327
+ * @deprecated - This functionality was useful when adding two intervals at the same start/end positions resulted
1328
+ * in a conflict. This is no longer the case (as of PR#6407), as interval collections support multiple intervals
1329
+ * at the same location and gives each interval a unique id.
1330
+ *
1331
+ * As such, the conflict resolver is never invoked and unnecessary. This API will be removed in an upcoming release.
1332
+ */
1304
1333
  addConflictResolver(conflictResolver) {
1305
1334
  if (!this.localCollection) {
1306
1335
  throw new telemetry_utils_1.LoggingError("attachSequence must be called");